joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068b0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x406980
cmp dword [ebx + 4], 0xffffffff
jne 0x406980
push edi
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068e0
sub eax, edx
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x406911
cmp al, 0x2f
je 0x406911
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406900
mov ax, word [0x4695a8]
mov word [edi], ax
mov edi, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
cmp edi, 1
jne 0x40693d
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40693d
pop esi
pop edi
mov eax, 0x2000000
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
push edi
push edx
push esi
call fcn.00405650
add esp, 0x10
test eax, eax
jne 0x406960
mov eax, dword [esp + 0xc]
pop esi
pop edi
pop ebx
pop ecx
ret 0xc
push eax
call fcn.00405b50
add esp, 4
mov dword [ebx], eax
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop edi
add eax, 0x200
pop ebx
pop ecx
ret 0xc
mov eax, 0x1000000
pop ebx
pop ecx
ret 0xc

Function at 0x406ed0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x47ce94]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x406f0d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406f0d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x406fc6
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x406f28
cmp al, 0x5c
jne 0x406f2a
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x406f20
cmp esi, ebp
je 0x406f60
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.00415b00
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.00406ed0
add esp, 0x14
mov byte [esp + 0xc], 0
test edi, edi
je 0x406f7b
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406f71
mov eax, ebp
mov edx, ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406f80
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406f90
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x406fc6
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.00413f73
add esp, 0x20c
ret
Function at 0x413f73
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47ce94]
jne 0x413f7d
repz ret
jmp fcn.0041a34c

Function at 0x42602f
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.00419c8a
and dword [ebp - 4], 0
cmp dword [0x480db8], 0
mov ebx, eax
jne 0x4260e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x426191
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46c934
push edi
call esi
test eax, eax
je 0x426191
push eax
call fcn.00419c18
mov dword [esp], 0x46c924
push edi
mov dword [0x480db8], eax
call esi
push eax
call fcn.00419c18
mov dword [esp], 0x46c910
push edi
mov dword [0x480dbc], eax
call esi
push eax
call fcn.00419c18
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x480dc0], eax
call esi
push eax
call fcn.00419c18
pop ecx
mov dword [0x480dc8], eax
test eax, eax
je 0x4260e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419c18
pop ecx
mov dword [0x480dc4], eax
mov eax, dword [0x480dc4]
cmp eax, ebx
je 0x426138
cmp dword [0x480dc8], ebx
je 0x426138
push eax
call fcn.00419c93
push dword [0x480dc8]
mov esi, eax
call fcn.00419c93
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x426138
test edi, edi
je 0x426138
call esi
test eax, eax
je 0x42612f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42612f
test byte [ebp - 0xc], 1
jne 0x426138
or dword [ebp + 0x10], 0x200000
jmp 0x426171
mov eax, dword [0x480dbc]
cmp eax, ebx
je 0x426171
push eax
call fcn.00419c93
pop ecx
test eax, eax
je 0x426171
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x426171
mov eax, dword [0x480dc0]
cmp eax, ebx
je 0x426171
push eax
call fcn.00419c93
pop ecx
test eax, eax
je 0x426171
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x480db8]
call fcn.00419c93
pop ecx
test eax, eax
je 0x426191
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x426193
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42a320
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x47ce94]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42a373
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x42a36d
shr eax, 8
cmp al, 2
jne 0x42a36d
call fcn.0042a730
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f73
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.00413f73
mov esp, ebp
pop ebp
ret
Function at 0x437070
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4370a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x4371f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x43720b
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0x43723f
cmp eax, 2
jg 0x43723f
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x46da08]
push 2
push edx
call fcn.00414356
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.00414356
add esp, 0x20
xor eax, eax
ret

Function at 0x4377a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [eax + ecx*4 + 0x190]
mov edx, ecx
add edx, edx
push esi
lea esi, [eax + edx*8 + 0x1b8]
mov edx, dword [eax + 0x440]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x3c], 3
je 0x437840
cmp dword [eax + ecx*4 + 0x1a8], 0x437530
jne 0x437840
cmp dword [esi], 0
je 0x4377dd
test edi, edi
je 0x437840
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0042aa40
add esp, 0x14
cmp eax, 0xffffffff
je 0x437840
test al, 1
je 0x437840
cmp dword [esi], 0
jne 0x437822
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x47e274]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x43783d
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x437840
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebx
ret

Function at 0x437850
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + ecx*4 + 0x190]
mov eax, esi
call fcn.004377a0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4378d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x4378a8
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.0043d530
mov edx, dword [esi]
push eax
push str.Send_failure:__s
push edx
call fcn.004373b0
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x473c], ecx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x439860
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47ce94]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x538], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4398b3
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00437330
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f73
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x53c]
push edx
mov dword [ebp - 0x10], 1
call fcn.0043b170
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x540]
push eax
call fcn.0043b170
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x439925
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00437330
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f73
mov esp, ebp
pop ebp
ret
Function at 0x439fc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x47ce94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
je 0x43a1a9
cmp dword [esi + 0x3a0], 0
push edi
jne 0x43a19f
cmp dword [esi + 0x410], 0
jne 0x43a19f
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x43a064
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0043d530
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004373b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f73
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [ebp - 0x84]
push 0
push edx
mov dword [ebp - 0x10c], 0x80
call fcn.00414c70
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x84]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43a0cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0043d530
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004373b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f73
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x102]
lea ebx, [esi + 0x130]
lea esi, [ebp - 0x104]
mov dword [ebp - 0x114], edi
call fcn.00439f80
test eax, eax
jne 0x43a12a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x108]
mov esi, eax
push esi
push edx
call fcn.0043d530
push eax
mov eax, dword [ebp - 0x110]
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.004373b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f73
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
mov esi, dword [ebp - 0x114]
lea edi, [eax + 0x58]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x164]
lea edi, [eax + 0x134]
lea esi, [ebp - 0x84]
call fcn.00439f80
test eax, eax
jne 0x43a199
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.0043d530
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.004373b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f73
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.00439f00
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f73
mov esp, ebp
pop ebp
ret
Function at 0x43a1c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
push 4
lea eax, [ebp + 8]
push eax
push 1
push 6
push ecx
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43a209
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0043d530
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00437330
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00437330
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x43a220
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x481054]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x43a271
push 3
push 2
push eax
push 6
call fcn.0043aea0
add esp, 0x10
test eax, eax
je 0x43a265
mov dword [0x481054], 2
mov esp, ebp
pop ebp
ret
mov dword [0x481054], 1
jmp 0x43a276
cmp eax, 2
je 0x43a2b7
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x43a29f
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jg 0x43a2b6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43a360
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1d8], 0
je 0x43a380
push eax
call fcn.0042c2c0
add esp, 4
test eax, eax
jne 0x43a3a0
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x43a37c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x43a3a0
pop ebp
ret
mov eax, 1
pop ebp
ret
Function at 0x43b020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push str.kernel32
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x43b044
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [ebp + 8]
mov edi, eax
push 0x46e05c
push ebx
mov dword [ebp - 8], edi
call fcn.00463dca
add esp, 8
test eax, eax
je 0x43b092
test edi, edi
je 0x43b081
push 8
push 0
push ebx
call edi
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x43b0ba
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43b0ba
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x43b156
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b0d3
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x47e274]
mov esi, eax
add esp, 4
test esi, esi
je 0x43b14c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x43b14c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b101
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b118
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x43b128
mov eax, dword [ebp - 8]
test eax, eax
je 0x43b142
push 8
push 0
push esi
call eax
jmp 0x43b149
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
push esi
call dword [0x47e278]
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43b1a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.0043b190
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.0041f860
add esp, 0x10
pop ebp
ret
Function at 0x43b220
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x43b3b6
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x43b398
push esi
cmp dword [edi + 4], 2
jne 0x43b31c
cmp dword [edi + 0x18], ebx
je 0x43b31c
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x43b31c
cmp eax, 0x10
jb 0x43b31c
push 0x20
call dword [0x47e274]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x43b329
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x47e274]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x43b332
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x43b307
push eax
call dword [0x47e280]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x43b345
cmp dword [ebp - 4], ebx
jne 0x43b30f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x43b319
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x43b262
jmp 0x43b360
mov dword [ebp - 8], 8
jmp 0x43b360
push esi
mov dword [ebp - 8], 8
call dword [0x47e278]
add esp, 4
jmp 0x43b360
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x47e278]
push esi
call dword [0x47e278]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x43b36f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x43b393
mov eax, dword [ebp - 4]
push eax
call fcn.0043b1e0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x43b3aa
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43cac0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0041853b
add esp, 0x18
test eax, eax
je 0x43cae4
cmp eax, 0xffffffff
jne 0x43cae6
xor eax, eax
pop ebp
ret
Function at 0x43f6c0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x43f706
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
test eax, eax
jne 0x43f70f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x448a10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x46dc24
push ecx
call fcn.00437330
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00447b30
test eax, eax
jne 0x448a44
mov eax, esi
pop ebp
jmp fcn.00447fc0
pop ebp
ret
Function at 0x448e40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x47ce94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x688]
push edi
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x448ed4
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.00415b00
mov edx, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x448f07
push str.Received_too_short_packet
push ebx
call fcn.004373b0
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f73
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x15c]
call fcn.00447ce0
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x448f24
jmp dword [eax*4 + 0x449054]
cmp edx, 4
jle case.0x448f24.4
lea eax, [esi + 0x15c]
call fcn.00447cf0
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x448f24.4
mov eax, dword [ebp - 0x8c]
add edx, 0xfffffffc
push edx
mov edx, dword [esi + 0x15c]
add edx, 4
push edx
push 1
push eax
call fcn.00437760
mov edi, eax
add esp, 0x10
test edi, edi
je 0x448f91
mov ecx, 5
mov eax, esi
call fcn.00448dc0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f73
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], edx
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x70]
push ecx
push edx
push ebx
call fcn.00440170
jmp 0x449015
lea eax, [esi + 0x15c]
call fcn.00447cf0
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
movzx eax, ax
push 0x46dc24
push ebx
mov dword [esi + 8], eax
call fcn.00437330
jmp 0x449015
add edx, 0xfffffffe
push edx
mov edx, dword [esi + 0x15c]
add edx, 2
push edx
push esi
call fcn.00447d80
add esp, 0xc
test eax, eax
je case.0x448f24.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f73
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x467838
push ebx
call fcn.004373b0
add esp, 0xc
mov eax, dword [ebp - 0x8c]
push eax
call fcn.00440350
add esp, 4
test eax, eax
je 0x448ef4
mov ecx, 5
mov eax, esi
call fcn.00448dc0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.00413f73
mov esp, ebp
pop ebp
ret