joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fc88
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x476018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
push eax
mov ebx, 0x104
lea esi, [ebp - 0x48]
mov dword [ebp - 4], eax
call fcn.00401120
push 0x100
xor ebx, ebx
push ebx
push 0x505dc8
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x417ce0
mov cl, byte [eax + 0x476190]
xor cl, 0xb0
mov byte [eax + 0x505dc8], cl
inc eax
cmp eax, 0xff
jl 0x417ce0
mov eax, 0x505dc8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417d00
sub eax, edx
mov edi, eax
mov eax, 0x505dc8
lea esi, [ebp - 0x48]
call fcn.004013c0
push 6
mov eax, str.notify
mov ecx, esi
call fcn.00405260
mov edi, 3
mov eax, 0x470468
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004013c0
mov eax, 0x479c48
mov byte [ebp - 4], 1
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x417d51
sub eax, ecx
push eax
mov eax, 0x479c48
lea ecx, [ebp - 0x2c]
call fcn.00405260
push 7
mov eax, str.text
lea ecx, [ebp - 0x2c]
call fcn.00405260
mov esi, dword [ebp - 0x68]
mov eax, esi
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x417d80
sub eax, ecx
push eax
mov eax, esi
lea ecx, [ebp - 0x2c]
call fcn.00405260
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x68], esp
mov byte [ecx], bl
push edx
or eax, 0xffffffff
xor ebx, ebx
call fcn.004012e0
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
mov dword [ebp - 0x6c], esp
push eax
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov byte [ecx], bl
call fcn.004012e0
lea ecx, [ebx + 1]
lea edi, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00411de0
push esi
push 0x46eff0
push 1
call fcn.00417090
mov esi, 0x10
add esp, 0xc
cmp dword [ebp - 0x50], esi
jb 0x417e12
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x18], esi
jb 0x417e34
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], esi
jb 0x417e4f
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004183ef
mov esp, ebp
pop ebp
ret 4

Function at 0x4183ef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x476018]
jne 0x4183f9
repz ret
jmp fcn.00418999
Function at 0x4191c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x419215
mov eax, dword [esp]
cmp al, 2
jne 0x41920f
shr eax, 8
cmp al, 2
jne 0x41920f
call fcn.0041ca10
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004183ef
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004183ef
add esp, 0x194
ret
Function at 0x41d580
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x358], 2
jne 0x41d592
jmp fcn.0041d520
mov eax, 1
ret
Function at 0x4281c0
Capabilities:
Receive data
Receive data on socket

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

Function at 0x428330
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
cmp dword [esi + 0x638], ebx
je 0x42837a
push 1
push esi
call fcn.00425e60
mov eax, dword [esi + 0x5c4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x638]
push edx
push eax
push esi
call ecx
push ebx
push esi
mov edi, eax
call fcn.00425e60
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x14]
test eax, eax
js 0x4283ba
cmp eax, 2
jg 0x4283ba
mov edx, dword [esi + 0x5c0]
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push edx
push 1
lea eax, [eax + eax*2 + 0x4627fc]
push 2
push eax
call edi
mov ecx, dword [esi + 0x5c0]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push 1
push edx
push eax
call edi
add esp, 0x20
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4283c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x804], eax
push esi
mov esi, dword [esp + 0x810]
test esi, esi
je 0x4284eb
cmp dword [esi + 0x9dc], 0
je 0x4284eb
mov ecx, dword [esp + 0x814]
push edi
lea eax, [esp + 0x81c]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x801
push edx
call fcn.0042f5b0
add esp, 0x10
cmp eax, 0x801
jb 0x42845f
mov edx, dword [esp + 0x818]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428427
sub eax, edi
cmp byte [eax + edx - 1], 0xa
jne 0x428448
push str...._n
push 5
lea eax, [esp + 0x80c]
push eax
jmp 0x428457
push 0x462814
push 4
lea ecx, [esp + 0x80d]
push ecx
call fcn.0042f610
add esp, 0xc
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428466
sub eax, edx
cmp dword [esi + 0x638], 0
mov edi, eax
je 0x4284bc
push 1
push esi
call fcn.00425e60
mov edx, dword [esi + 0x5c4]
mov ecx, dword [esi + 0x638]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push 0
push esi
call ecx
push 0
push esi
call fcn.00425e60
add esp, 0x24
pop edi
pop esi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.004183ef
add esp, 0x808
ret
mov edx, dword [esi + 0x5c0]
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
push edx
push 1
push 2
push 0x4627fc
call ebx
mov eax, dword [esi + 0x5c0]
push eax
push 1
lea ecx, [esp + 0x24]
push edi
push ecx
call ebx
add esp, 0x20
pop ebx
pop edi
mov ecx, dword [esp + 0x808]
pop esi
xor ecx, esp
call fcn.004183ef
add esp, 0x808
ret
Function at 0x428510
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
cmp dword [esi + 0x9dc], 0
jne 0x428542
cmp dword [esi + 0x5c8], 0
je 0x428639
mov ecx, dword [esp + 0x114]
lea eax, [esp + 0x118]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x100
push edx
call fcn.0042f5b0
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 1]
jmp 0x428570
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428570
sub eax, edx
mov edx, dword [esi + 0x5c8]
push edi
mov edi, eax
test edx, edx
je 0x4285a7
cmp dword [esi + 0xe14], 0
jne 0x4285a7
lea ecx, [esp + 8]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x428593
mov dword [esi + 0xe14], 1
cmp dword [esi + 0x9dc], 0
je 0x428638
mov byte [esp + edi + 8], 0xa
inc edi
cmp dword [esi + 0x638], 0
mov byte [esp + edi + 8], 0
je 0x42860a
push 1
push esi
call fcn.00425e60
mov eax, dword [esi + 0x5c4]
mov edx, dword [esi + 0x638]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
call edx
push 0
push esi
call fcn.00425e60
add esp, 0x24
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004183ef
add esp, 0x108
ret
mov eax, dword [esi + 0x5c0]
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
push eax
push 1
push 2
push 0x4627fc
call ebx
mov ecx, dword [esi + 0x5c0]
push ecx
push 1
lea edx, [esp + 0x24]
push edi
push edx
call ebx
add esp, 0x20
pop ebx
pop edi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004183ef
add esp, 0x108
ret

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

Disassembly:
mov ecx, dword [ebx + 0x350]
push ebp
mov ebp, dword [ebx + eax*4 + 0x1a8]
push esi
lea esi, [eax + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [ecx + 0x40], 3
je 0x428a7f
cmp dword [ebx + eax*4 + 0x1c0], 0x428750
jne 0x428a7f
cmp dword [esi], 0
je 0x428a1a
test edi, edi
je 0x428a7f
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0041cd30
add esp, 0x14
cmp eax, 0xffffffff
je 0x428a7f
test al, 1
je 0x428a7f
cmp dword [esi], 0
jne 0x428a61
mov edx, dword [ebx]
mov eax, dword [edx + 0x960]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x47604c]
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 0x428a7c
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x428a7f
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebp
ret
Function at 0x428a90
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [ebx + eax*4 + 0x1a8]
push edi
call fcn.004289e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x20]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x428b12
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x428ae9
pop ebp
mov dword [edi], 0x51
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push ebx
call fcn.00453df0
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.00428510
mov eax, dword [ebx]
mov dword [eax + 0xe18], ebp
add esp, 0x14
mov dword [edi], 0x37
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42ace0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x42ad0e
movzx eax, byte [esi]
push eax
call fcn.0042e510
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x42acf1
pop edi
pop esi
movzx eax, bl
pop ebx
ret

Function at 0x42cbd0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0xb64], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x42cc24
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004283c0
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004183ef
add esp, 0x18
ret
mov edx, dword [esi + 0xb68]
push edx
mov dword [esp + 0xc], 1
call fcn.0042a920
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xb6c]
push eax
call fcn.0042a920
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x42cc9d
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.004283c0
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004183ef
add esp, 0x18
ret
Function at 0x42d460
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
cmp dword [ebx + 0x90], 2
push ebp
mov ebp, dword [ebx]
je 0x42d5ef
cmp dword [ebx + 0x2a4], 0
push esi
push edi
jne 0x42d5e4
cmp dword [ebx + 0x314], 0
jne 0x42d5e4
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x42d4f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00453df0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.00428510
add esp, 0x18
jmp 0x42d5ed
push edi
lea edx, [esp + 0x18]
push 0
push edx
mov dword [esp + 0x1c], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x42d541
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00453df0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.00428510
add esp, 0x18
jmp 0x42d5ed
lea edx, [ebx + 0x138]
push edx
lea esi, [ebx + 0x10a]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.0042d3c0
add esp, 0xc
test eax, eax
jne 0x42d58e
mov esi, dword [sym.imp.MSVCR100.dll__errno]
call esi
mov edi, eax
call esi
mov ecx, dword [edi]
push ecx
push ebx
mov esi, eax
call fcn.00453df0
mov edx, dword [esi]
push eax
push edx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00428510
add esp, 0x18
jmp 0x42d5ed
lea edi, [ebx + 0x5c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea ecx, [ebx + 0x13c]
push ecx
lea edx, [esp + 0x1c]
push edx
movsw word es:[edi], word [esi]
call fcn.0042d3c0
add esp, 0xc
test eax, eax
jne 0x42d5e4
mov esi, dword [sym.imp.MSVCR100.dll__errno]
call esi
mov edi, eax
call esi
mov esi, eax
mov eax, dword [edi]
push eax
push ebx
call fcn.00453df0
mov ecx, dword [esi]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00428510
add esp, 0x18
jmp 0x42d5ed
push ebx
call fcn.0042d340
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.004183ef
add esp, 0x108
ret

Function at 0x42d610
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x42d659
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00453df0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004283c0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004283c0
add esp, 8
pop edi
pop esi
ret
Function at 0x42d710
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x1f0], 0
je 0x42d72d
push eax
call fcn.0041eac0
add esp, 4
test eax, eax
jne 0x42d74d
xor eax, eax
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x42d72a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x42d74d
ret
mov eax, 1
ret
Function at 0x42ecb0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x42ecca
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x4633d8
push ebx
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCR100.dll_strpbrk]
add esp, 8
test eax, eax
je 0x42ed17
test edi, edi
je 0x42ed08
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x42ed3d
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42ed3d
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x42edf0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ed56
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x47604c]
mov esi, eax
add esp, 4
test esi, esi
je 0x42ede6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x42ede6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ed84
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
jmp 0x42eda0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42eda0
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 0x42edb0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42eddd
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x476050]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x476050]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x4303e0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebp
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], ebp
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
cmp eax, ebp
jne 0x430591
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebp
je 0x43056f
push ebx
push esi
lea esp, [esp]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x43043d
lea ebx, [eax + 0xe]
jmp 0x430449
cmp eax, 0x17
jne 0x4304e8
lea ebx, [eax + 5]
cmp dword [edi + 0x18], ebp
je 0x4304e8
mov eax, dword [edi + 0x10]
cmp eax, ebp
jbe 0x4304e8
cmp eax, ebx
jb 0x4304e8
push 0x20
call dword [0x47604c]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4304f5
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 ebx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [0x47604c]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebp
je 0x4304ff
mov ecx, dword [edi + 0x18]
push ebx
push ecx
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebp
je 0x4304cf
push eax
call dword [0x476058]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebp
je 0x430513
cmp dword [esp + 0x10], ebp
jne 0x4304d9
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4304e4
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebp
jne 0x430430
jmp 0x43052f
mov dword [esp + 0x14], 8
jmp 0x43052f
push esi
mov dword [esp + 0x18], 8
call dword [0x476050]
add esp, 4
jmp 0x43052f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x476050]
push esi
call dword [0x476050]
add esp, 8
mov eax, dword [esp + 0x1c]
pop esi
pop ebx
cmp eax, ebp
je 0x430540
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], ebp
je 0x430569
mov eax, dword [esp + 8]
push eax
call fcn.004303a0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, ebp
pop edi
mov dword [esp + 4], ebp
mov dword [edx], ecx
pop ebp
add esp, 0x10
ret
cmp dword [esp + 8], ebp
jne 0x430582
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dword [edx], ecx
pop edi
pop ebp
add esp, 0x10
ret

Function at 0x430970
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x430994
cmp eax, 0xffffffff
jne 0x430996
xor eax, eax
ret
Function at 0x4336a0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push esi
push 0
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], esi
call sub.MSVCR100.dll_memset
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0xf0000000
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x433780
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 4]
lea edx, [esp]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x433761
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x433761
mov ecx, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 4
push ecx
call ebp
test eax, eax
je 0x433760
cmp esi, dword [esp + 0xc]
jb 0x433760
mov eax, dword [esp + 4]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push 2
push eax
call ebp
pop ebp
mov eax, dword [esp]
test eax, eax
je 0x43376f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x433780
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret
Function at 0x435b20
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x435b86
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x435b86
lea edx, [esp]
push edx
call dword [0x476058]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004183ef
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004183ef
add esp, 0x108
ret
Function at 0x43ec40
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x46f37c
push ecx
call fcn.004283c0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0043dd80
test eax, eax
jne 0x43ec70
mov eax, esi
jmp fcn.0043e1b0
ret