joyce8/EMBER2024-capa huggingface dataset:
Function at 0x84b5f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x8514cc]
cmp dword [eax + 0x28], 0
jne 0x84b608
xor eax, eax
jmp 0x84b737
mov ecx, dword [0x85143c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x851430], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x85142c], eax
push 0
call dword [0x84f138]
mov dword [ebp - 0x10], eax
push 1
call dword [0x84f138]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x851430]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x85142c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x8514b8]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x84f680
push 0x84f6d0
push 0x88
call dword [0x84f134]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x851428], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x84f10c]
push eax
call fcn.0084b530
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [0x84f148]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x84f12c]
push 0x84b5c0
mov edx, dword [0x8514cc]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [0x84f13c]
mov dword [0x851434], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [0x84f130]
test eax, eax
je 0x84b737
cmp dword [ebp - 0x38], 0x12
jne 0x84b72b
mov dword [0x851444], 0
call fcn.0084b740
xor eax, eax
jmp 0x84b737
lea edx, [ebp - 0x3c]
push edx
call dword [0x84f140]
jmp 0x84b6fc
mov esp, ebp
pop ebp
ret 4

Function at 0x84cb00
Capabilities:
Read .ini file
Read and send data from client to server
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [fcn.0084f0dc]
call dword [fcn.0084f124]
call dword [fcn.0084f128]
call dword [fcn.0084f094]
call dword [0x84f0fc]
call dword [fcn.0084f0f4]
call dword [fcn.0084f150]
call dword [fcn.0084f00c]
call dword [fcn.0084f000]
call dword [fcn.0084f160]
call fcn.0084e644
mov eax, 1
pop ebp
ret 4
Function at 0x84d69c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x84f168
sub eax, eax
test esi, esi
je 0x84d774
sub eax, 1
test ecx, ecx
je 0x84d772
test esi, 3
je 0x84d6da
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x84d6bf
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x84d759
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x84d6e4
mov ecx, edx
test ecx, ecx
je 0x84d772
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x84d75f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x84d77c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0084d7ff
jae 0x84d78a
xor ecx, ecx
call fcn.0084d7ff
jae 0x84d7b9
xor eax, eax
call fcn.0084d7ff
jae 0x84d7c9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0084d7ff
adc al, al
jae 0x84d7ab
jne 0x84d7f5
stosb byte es:[edi], al
jmp 0x84d78d
call fcn.0084d80b
sub ecx, ebx
jne 0x84d7d2
call fcn.0084d809
jmp 0x84d7f1
lodsb al, byte [esi]
shr eax, 1
je 0x84d81b
adc ecx, ecx
jmp 0x84d7ee
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0084d809
cmp eax, 0x7d00
jae 0x84d7ee
cmp ah, 5
jae 0x84d7ef
cmp eax, 0x7f
ja 0x84d7f0
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x84d78d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x84e14c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x851000]
jne 0x84e156
repz ret
jmp fcn.0084e3fd
Function at 0x4042d0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1144
call fcn.0040ae60
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x458598]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x45859c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.004042c0
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x4585a0]
mov edx, dword [0x4585a4]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x45fd1c]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x40435c
mov dword [0x45fd18], 0xedeb2e40
jmp 0x404377
cmp eax, 0x3eb
jne 0x404377
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x45f7a8], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x45fd1c], 0x9e6
mov dword [0x45fd14], 0xf4ea3dee
jne 0x4043b0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x45fd1c], 0x213
jne 0x40444b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
lea eax, [ebp - 0x944]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1144]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
lea eax, [ebp - 0x544]
push eax
push 0
push 0x403f58
push 0x403fa8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x45fd1c], 0xc
jne 0x40445f
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov ecx, ebx
shr ecx, 5
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov edx, ebx
shl edx, 4
add edx, dword [ebp - 0x14]
lea eax, [edi + ebx]
xor edx, eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x404330
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407810
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4574f8]
jne 0x40781a
repz ret
jmp fcn.0040ca4e

Function at 0x40c673
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409b46
and dword [ebp - 4], 0
cmp dword [0x45d798], 0
mov ebx, eax
jne 0x40c724
push 0x401d34
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c7d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401d28
push edi
call esi
test eax, eax
je 0x40c7d5
push eax
call fcn.00409ad4
mov dword [esp], 0x401d18
push edi
mov dword [0x45d798], eax
call esi
push eax
call fcn.00409ad4
mov dword [esp], 0x401d04
push edi
mov dword [0x45d79c], eax
call esi
push eax
call fcn.00409ad4
mov dword [esp], 0x401ce8
push edi
mov dword [0x45d7a0], eax
call esi
push eax
call fcn.00409ad4
pop ecx
mov dword [0x45d7a8], eax
test eax, eax
je 0x40c724
push 0x401cd0
push edi
call esi
push eax
call fcn.00409ad4
pop ecx
mov dword [0x45d7a4], eax
mov eax, dword [0x45d7a4]
cmp eax, ebx
je 0x40c77c
cmp dword [0x45d7a8], ebx
je 0x40c77c
push eax
call fcn.00409b4f
push dword [0x45d7a8]
mov esi, eax
call fcn.00409b4f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c77c
test edi, edi
je 0x40c77c
call esi
test eax, eax
je 0x40c773
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c773
test byte [ebp - 0xc], 1
jne 0x40c77c
or dword [ebp + 0x10], 0x200000
jmp 0x40c7b5
mov eax, dword [0x45d79c]
cmp eax, ebx
je 0x40c7b5
push eax
call fcn.00409b4f
pop ecx
test eax, eax
je 0x40c7b5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c7b5
mov eax, dword [0x45d7a0]
cmp eax, ebx
je 0x40c7b5
push eax
call fcn.00409b4f
pop ecx
test eax, eax
je 0x40c7b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45d798]
call fcn.00409b4f
pop ecx
test eax, eax
je 0x40c7d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c7d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x2e281531
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x33be42b0
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4063fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406422
mov eax, dword [0x40a8c8]
cmp eax, 0xffffffff
je 0x406419
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8c8], 0xffffffff
jmp 0x406495
cmp dword [0x424a80], ebx
je 0x406495
cmp byte [0x424680], bl
je 0x406461
cmp dword [0x40a8c8], 0xffffffff
jne 0x40646a
push 4
push 0x40000000
push 0x424680
call fcn.00405dd9
cmp eax, 0xffffffff
mov dword [0x40a8c8], eax
je 0x406495
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8c8], 0xffffffff
je 0x406495
push esi
mov esi, 0x4252a0
push 0x40ab10
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a8c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40663d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x424284], 0
push esi
jne 0x406674
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40664e
mov dword [ecx*4 + 0x424280], eax
inc ecx
cmp ecx, 0x100
jl 0x406649
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4066a5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x424280]
xor eax, esi
inc ecx
dec edx
jne 0x406687
pop edi
not eax
pop esi
ret 0xc

Function at 0x40890a
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
add ebx, 0x5b0af36a
call fcn.00408943
mov ebx, 0x3a20885
mov ebx, esi
xor dword [edx], edi
add esi, 1
inc edx
sub esp, 4
mov dword [esp], ebx
mov ebx, dword [esp]
add esp, 4
dec esi
cmp edx, eax
jne fcn.0040890a
dec ebx
sub esi, esi
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6c9e1fef
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xa28165d
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40aeb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44edf0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x465040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xc]
or edx, 0xffffffff
mov dword [esi], vtable.CMaaConnectionInTimeCharacteristics.0
test eax, eax
push 0
cmovns edx, eax
lea eax, [edx + 1]
mov dword [esi + 8], eax
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
call fcn.00414220
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40af34
mov eax, dword [esi + 0x14]
shl eax, 2
push eax
push 0
push ecx
call fcn.00434a60
add esp, 0xc
push 0
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.0040b060
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40bb90
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ee8d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x465040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
call fcn.0040b950
push dword [ebp + 0x14]
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov dword [esi], vtable.CMaaSocket.0
mov dword [esi + 0x8d], 0xffffffff
mov dword [esi + 0x91], 0xffffffff
mov dword [esi + 0x95], 0
mov dword [esi + 0x99], 0
mov dword [esi + 0x9d], 0
mov dword [esi + 0xa1], 0
mov dword [esi + 0xa5], 0
mov dword [esi + 0xa9], 0
push 2
mov dword [esi + 0xad], esi
mov dword [esi + 0x18], esi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x8d], eax
cmp eax, 0xffffffff
je 0x40bc5e
mov dword [esi + 0x91], 2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
push str.socket__
mov ecx, esi
call fcn.0040bd30
int3
Function at 0x40bf90
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ef17
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc
push esi
mov eax, dword [0x465040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
push 6
push 1
push ecx
push dword [ebx + 8]
call fcn.0040bb90
mov dword [ebp - 4], 0
mov dword [esi], vtable.CMaaTcpSocket.0
mov dword [esi + 0x11d], 0
mov dword [esi + 0x121], 0
mov byte [esi + 0x125], 0
mov dword [esi + 0x126], 0x7d0
mov dword [esi + 0x12a], 0
mov dword [esi + 0x12e], 0
mov dword [esi + 0x132], 0
mov dword [esi + 0x136], 0
mov dword [esi + 0x13a], 0
mov dword [esi + method.CMaaTcpSocket::CCloseTimer.virtual_0], vtable.CMaaTcpSocket::CCloseTimer.0
mov dword [esi + 0x142], 0
lea ecx, [esi + 0x14a]
push esi
call fcn.0040ad10
lea ecx, [esi + 0x1b5]
push esi
call fcn.0040ad10
push 0x40
mov byte [ebp - 4], 3
lea eax, [esi + 0xd9]
push 0
push eax
mov dword [esi + 0x220], 0
mov dword [esi + 0x99], esi
mov dword [esi + 0x146], 0
call fcn.00434a60
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 0xc9], 0
mov ecx, esi
mov dword [esi + 0xcd], 0
mov dword [esi + 0xc1], 0
mov eax, dword [eax + 0x54]
mov dword [esi + 0xc5], 0
mov dword [esi + 0xb9], 0
mov dword [esi + 0xbd], 0
mov dword [esi + 0xb1], 0
mov dword [esi + 0xb5], 0
mov dword [esi + 0xd5], 0xffffffff
mov dword [esi + 0xd1], 0xffffffff
push 0
cmp eax, fcn.0040c5c0
jne 0x40c118
call fcn.0040c5c0
jmp 0x40c11a
call eax
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 8
xorps xmm0, xmm0
push 0xffff
movups xmmword [esi + 0x224], xmm0
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x40c160
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.setsockopt___
mov ecx, esi
call fcn.0040bd30
int3
Function at 0x40c890
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44efd0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x465040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x40c9fc
or eax, 0xffffffff
mov dword [ebp - 0x10], eax
mov ebx, dword [0x46790c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x40c8e6
mov dword [ebx + 8], edi
jmp 0x40c8ea
test eax, eax
jne 0x40c8f3
inc dword [ebx + 0xc]
inc dword [ebx + 8]
inc dword [ebx + 4]
cmp dword [esi + 0x152], 0
mov ebx, dword [ebp + 0xc]
je 0x40c90e
lea ecx, [esi + 0x14a]
push ebx
call fcn.0040ff30
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x46790c]
call fcn.00431960
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40c9fc
push 0
cmovg ebx, eax
push ebx
push dword [ebp + 8]
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
js 0x40ca18
cmp edi, ebx
jge 0x40c95b
and dword [esi + 0x95], 0xfffffffd
push 3
mov ecx, esi
call fcn.0040b790
mov ecx, dword [esi + 0xb1]
mov eax, ecx
mov ebx, dword [esi + 0xb5]
and eax, ebx
cmp eax, 0xffffffff
jne 0x40c987
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov eax, edi
cdq
add eax, ecx
mov dword [esi + 0xb1], eax
adc edx, ebx
mov dword [esi + 0xb5], edx
mov dword [ebp - 4], 0xffffffff
push ecx
mov ecx, dword [0x46790c]
call fcn.00431920
cmp dword [esi + 0x152], 0
je 0x40c9cc
add dword [esi + 0x162], edi
mov ecx, dword [esi + 0x152]
test ecx, ecx
je 0x40c9cc
push edi
call fcn.004103b0
mov ecx, dword [0x46790c]
call fcn.00431960
test edi, edi
jg 0x40c9e0
cmp edi, 0xffffffff
jg 0x40c9fc
test dword [esi + 0x95], 0xfffffffd
jne 0x40c9f3
and dword [esi + 8], 0xfffdffff
xor eax, eax
test edi, edi
cmovg eax, edi
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
cmovge eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp edi, 0xffffffff
jne 0x40c95b
cmp eax, 0x2733
jne 0x40ca33
and dword [esi + 0x95], 0xfffffffd
or edi, edi
jmp 0x40c9e0
push str.send__
mov ecx, esi
call fcn.0040bdc0
int3
Function at 0x40ca50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44eff0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x465040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov byte [ebp - 0xd], 0
cmp dword [ebp + 0xc], edi
jle 0x40cbfe
or eax, 0xffffffff
mov dword [ebp - 0x14], eax
mov ebx, dword [0x46790c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x40caaa
mov dword [ebx + 8], edi
jmp 0x40caae
test eax, eax
jne 0x40cab7
inc dword [ebx + 0xc]
inc dword [ebx + 8]
inc dword [ebx + 4]
cmp dword [esi + 0x1bd], 0
mov ebx, dword [ebp + 0xc]
je 0x40cad4
lea ecx, [esi + 0x1b5]
push ebx
call fcn.0040ff30
mov dword [ebp - 0x14], eax
jmp 0x40cadc
mov al, byte [0x4674c4]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x46790c]
call fcn.00431960
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40cbf1
push 0
cmovg ebx, eax
push ebx
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
test ebx, ebx
js 0x40cbc3
cmp ebx, dword [ebp + 0xc]
jge 0x40cbc3
and dword [esi + 0x95], 0xfffffffe
test ebx, ebx
je 0x40cbee
push 2
mov ecx, esi
call fcn.0040b790
mov ecx, dword [esi + 0xb9]
mov edi, ebx
mov edx, dword [esi + 0xbd]
mov eax, ecx
and eax, edx
mov dword [ebp + 0xc], edx
cmp eax, 0xffffffff
jne 0x40cb6f
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
mov eax, ebx
cdq
add eax, ecx
mov dword [esi + 0xb9], eax
adc edx, dword [ebp + 0xc]
mov dword [esi + 0xbd], edx
test ebx, ebx
jle 0x40cbf1
mov dword [ebp - 4], 0xffffffff
push ecx
mov ecx, dword [0x46790c]
call fcn.00431920
cmp dword [esi + 0x1bd], 0
je 0x40cbaf
lea ecx, [esi + 0x1b5]
push ebx
call fcn.0040fff0
mov ecx, dword [0x46790c]
call fcn.00431960
and dword [esi + 8], 0xfffeffff
jmp 0x40cbf1
mov eax, dword [esi + 0x95]
and eax, 0xfffffffe
mov dword [esi + 0x95], eax
cmp ebx, 0xffffffff
jne 0x40cb33
cmp ecx, 0x2733
jne 0x40cc14
and eax, 0xfffffffe
mov dword [esi + 0x95], eax
jmp 0x40cbf1
or edi, 0xffffffff
cmp byte [ebp - 0xd], 0
je 0x40cbfe
xor eax, eax
test edi, edi
cmovs edi, eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.recv__
mov ecx, esi
call fcn.0040bdc0
int3