joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436f30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, edx
mov dword [ebp - 0xc], ecx
push esi
mov esi, dword [ecx + 0x208]
xor eax, eax
mov ecx, dword [ecx + 0x20c]
mov edx, 0x493e0
test esi, esi
mov dword [ebp - 4], edx
mov edx, 1
mov dword [ebp - 8], 0
cmovg eax, edx
push edi
test ecx, ecx
jle 0x436f6c
or eax, 2
dec eax
je 0x436f86
dec eax
je 0x436f81
dec eax
jne 0x436f89
cmp esi, ecx
mov edx, ecx
cmovl edx, esi
mov dword [ebp - 4], edx
jmp 0x436f89
mov dword [ebp - 4], ecx
jmp 0x436f89
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov edi, edx
shr edi, 6
imul eax, edi, 0x3e8
sub ecx, eax
mov eax, dword [ebp - 0xc]
imul ecx, ecx, 0x3e8
mov esi, dword [eax + 0x508]
sub esi, edi
sub ecx, dword [eax + 0x50c]
mov eax, 0x10624dd3
imul ecx
imul eax, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, 0xffffffff
cmove ecx, eax
cmp byte [ebx + 0x252], 0
je 0x436ffa
mov ecx, dword [ebp + 8]
xor eax, eax
mov byte [ecx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0xa8]
test edx, edx
je 0x43708b
cmp byte [edx], 0
je 0x43708b
mov dword [ebp - 4], 0
test ecx, ecx
js 0x4370f8
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push dword [ebx + 0xb0]
call fcn.00439e60
add esp, 8
cmp eax, 1
jne 0x43704b
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov eax, dword [ebp - 4]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xfffffffe
je 0x4370f8
cmp dword [ebp - 4], 0
jne 0x4370ff
push dword [ebx + 0xac]
push str.Couldnt_resolve_proxy__s
push dword [ebp - 0xc]
call fcn.0043aef0
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], 5
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0xb0], eax
mov dword [ebp - 4], 0
test ecx, ecx
js 0x4370f8
mov edx, dword [ebx + 0x98]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, ebx
call fcn.00439e60
add esp, 8
cmp eax, 1
je 0x437035
cmp eax, 0xfffffffe
je 0x4370f8
cmp dword [ebp - 4], 0
jne 0x4370ff
push dword [ebx + 0x9c]
push str.Couldnt_resolve_host__s
push dword [ebp - 0xc]
call fcn.0043aef0
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], 6
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0x1c
mov eax, dword [ebp - 4]
pop edi
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437b30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x50c]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x508]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.0043b7d0
movsd qword [ebx + 0x4d0], xmm0
add esp, 0x10
mov eax, dword [edi + 0x27c]
test byte [eax + 0x40], 0x10
mov eax, dword [esp + 0xc]
je 0x437b9c
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax], 0
mov byte [edi + 0x266], 0
cmp dword [ebx + 0x3a8], 0
je 0x437bf1
push dword [edi + 0x294]
call dword [0x4a1134]
add esp, 4
mov dword [edi + 0x294], 0
push dword [ebx + 0x3a8]
push str.User_Agent:__s_r_n
call fcn.00448560
add esp, 8
mov dword [edi + 0x294], eax
test eax, eax
jne 0x437bf1
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x80], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [edi + 0x144], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [edi + 0x148], eax
cmp dword [edi + 0x154], 0xffffffff
jne 0x437c50
mov byte [edi + 0x25a], 0
mov ecx, edi
mov edx, dword [edi + 0x48]
call fcn.00439710
test eax, eax
je 0x437cee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x50c]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x508]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.0043b7d0
add esp, 0x10
movsd qword [ebx + 0x4d8], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x50c]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x508]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.0043b7d0
mov eax, dword [esp + 0x1c]
add esp, 0x10
movsd qword [ebx + 0x4e0], xmm0
mov ecx, edi
mov byte [edi + 0x25a], 1
mov byte [eax], 1
mov edx, dword [edi + 0x154]
call fcn.00438c00
mov ecx, edi
call fcn.00435360
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [edi + 0x144], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [edi + 0x148], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4383a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
push 4
mov edi, edx
cmp byte [esi + 0x430], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4383fb
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0043ae30
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x434]
and eax, 0x7fffffff
mov dword [ebp - 0x10], 1
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x438]
and eax, 0x7fffffff
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x438465
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.0043ae30
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00452da4
mov esp, ebp
pop ebp
ret
Function at 0x438c00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x438dd2
cmp byte [edi + 0x252], 0
jne 0x438dcb
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x438c8b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0044bc40
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0043aef0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 0x10c], 0x80
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x438cf6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0044bc40
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0043aef0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xe8]
lea esi, [edi + 0xb8]
push eax
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.00438bb0
add esp, 4
test al, al
jne 0x438d49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0044bc40
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0043aef0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
movdqu xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
lea edx, [edi + 0xec]
lea ecx, [ebp - 0x88]
movdqu xmmword [edi + 0x58], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x11c]
push eax
call fcn.00438bb0
add esp, 4
test al, al
jne 0x438dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0044bc40
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0043aef0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00438af0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452da4
mov esp, ebp
pop ebp
ret
Function at 0x439240
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 1
mov edi, ecx
push 6
push edx
mov esi, dword [edi]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43928c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.0044bc40
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0043ae30
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0043ae30
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4392a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4a590c]
mov dword [ebp - 0x12c], 0x4020
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 4
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x43936e
push 0x11c
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MSVCR120.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
mov dword [ebp - 0x124], 6
push 3
push 2
push 0
push 0
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x439362
mov dword [0x4a590c], 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
mov dword [0x4a590c], 1
jmp 0x439373
cmp eax, 2
je 0x4393be
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4393a4
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x12c]
jg 0x4393be
push 4
lea eax, [ebp - 0x12c]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00452da4
mov esp, ebp
pop ebp
ret
Function at 0x4398e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x598]
test edi, edi
je 0x439931
mov ecx, dword [esi + 0x44]
test ecx, ecx
jne 0x439900
cmp dword [esi + 0x40], ecx
je 0x439931
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0
test ecx, ecx
jne 0x43990e
mov ecx, dword [esi + 0x40]
add ecx, 0x68
lea edx, [ebp - 0xc]
push 0x4398c0
call fcn.00441b30
add esp, 4
cmp byte [ebp - 8], 0
jne 0x43993a
mov dword [esi + 0x598], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x178], 0
mov esi, dword [edi + 0x154]
jne 0x439961
cmp esi, 0xffffffff
je 0x439961
push 2
push 1
lea eax, [ebp - 1]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x439931
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43a660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov dword [ebp - 4], edx
mov esi, ecx
call dword [0x4a112c]
mov edi, eax
add esp, 8
mov dword [esi + 0x498], edi
mov ebx, 8
test edi, edi
je 0x43a722
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [esi + 0x488], ecx
push ecx
mov byte [esi + 0x490], 0
mov ecx, edi
mov dword [esi + 0x494], 0
mov dword [esi + 0x48c], 0
mov dword [edi], 0
call fcn.0043a3f0
add esp, 8
test eax, eax
je 0x43a722
push dword [esi + 0x484]
call dword [0x4a1134]
push dword [ebp - 4]
call dword [0x4a1124]
add esp, 8
mov dword [esi + 0x484], eax
test eax, eax
je 0x43a722
push 0
push 0
lea eax, [edi + 0xc]
push eax
push 0x43a4b0
push 0
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x43a712
cmp eax, 0xffffffff
jne 0x43a714
xor eax, eax
mov dword [edi], eax
test eax, eax
jne 0x43a73d
call dword [sym.imp.MSVCR120.dll__errno]
mov ebx, dword [eax]
lea ecx, [esi + 0x484]
call fcn.0043a5a0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43aef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push esi
push edi
push eax
push dword [ebp + 0xc]
lea esi, [ebx + 0x5a4]
mov dword [ebp - 8], 0
mov edx, 0x448430
mov dword [ebp - 0xc], esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], 0x4000
call fcn.00447a50
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x43af42
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jne 0x43af3f
mov byte [eax - 1], 0
jmp 0x43af42
mov byte [eax], 0
mov eax, dword [ebx + 0x160]
test eax, eax
je 0x43af70
cmp byte [ebx + 0x85d0], 0
jne 0x43af70
push esi
push 0x48b65c
push 0x100
push eax
call fcn.00448460
add esp, 0x10
mov byte [ebx + 0x85d0], 1
cmp byte [ebx + 0x310], 0
je 0x43afee
mov edi, esi
lea ecx, [edi + 1]
mov edi, edi
mov al, byte [edi]
inc edi
test al, al
jne 0x43af80
sub edi, ecx
cmp edi, 0x3fff
jae 0x43afa1
mov byte [ebx + edi + 0x5a4], 0xa
inc edi
mov byte [ebx + edi + 0x5a4], al
mov eax, dword [ebx + 0x1d0]
test eax, eax
je 0x43afc2
push dword [ebx + 0x15c]
push edi
push esi
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x158]
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
push 1
push 2
push 0x48accc
call esi
push dword [ebx + 0x158]
lea eax, [ebx + 0x5a4]
push 1
push edi
push eax
call esi
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x43b07e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x43b04e
mov dword [edi], 0x51
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, ebx
call fcn.0044bc40
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.0043aef0
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
mov dword [eax + 0x85d4], ebx
mov eax, esi
mov dword [edi], 0x37
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x43b4e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 0x1d0]
test eax, eax
je 0x43b506
push dword [edi + 0x15c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push edi
call eax
add esp, 0x14
pop edi
pop ebp
ret
cmp edx, 2
ja 0x43b53c
push dword [edi + 0x158]
lea eax, [edx*2 + 0x48accc]
push 1
add eax, edx
push 2
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [edi + 0x158]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret
Function at 0x43b550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
cmp byte [edi + 0x2f8], 0
je case.default.0x43b594
test eax, eax
je case.default.0x43b594
mov edx, dword [eax + 0x9c]
test edx, edx
je case.default.0x43b594
lea ecx, [esi - 1]
mov eax, str.Data
cmp ecx, 3
ja case.default.0x43b594
jmp dword [ecx*4 + 0x43b668]
mov eax, str.Header
mov ecx, str.from
jmp 0x43b5b1
mov eax, str.Header
mov ecx, 0x48ef68
push edx
push ecx
push eax
push str.__s__s__s_
lea eax, [ebp - 0xac]
push 0xa0
push eax
call fcn.00448460
lea ecx, [ebp - 0xac]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b5d6
sub ecx, edx
lea eax, [ebp - 0xac]
push ecx
push eax
xor edx, edx
mov ecx, edi
call fcn.0043b4e0
add esp, 8
test eax, eax
jne 0x43b657
mov eax, dword [edi + 0x1d0]
test eax, eax
je 0x43b623
push dword [edi + 0x15c]
push dword [ebp + 0xc]
push ebx
push esi
push edi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
cmp esi, 2
ja 0x43b655
push dword [edi + 0x158]
lea eax, [esi*2 + 0x48accc]
push 1
add eax, esi
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
push 2
push eax
call esi
push dword [edi + 0x158]
push 1
push dword [ebp + 0xc]
push ebx
call esi
add esp, 0x20
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452da4
mov esp, ebp
pop ebp
ret

Function at 0x43ba10
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
mov ebx, ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x43ba60
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
test eax, eax
jne 0x43bacc
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [0x4a54aa], 0
jne 0x43badc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
push str.WARNING:_Using_weak_random_seed_n
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
push ebx
sub esi, ecx
imul esi, esi, 0x3e8
call fcn.0043ae30
mov eax, dword [0x4a5ba0]
add esp, 8
add eax, esi
mov byte [0x4a54aa], 1
add eax, edi
imul eax, eax, 0x41c64e6d
add eax, 0x3039
imul eax, eax, 0x41c64e6d
add eax, 0x3039
imul eax, eax, 0x41c64e6d
add eax, 0x3039
jmp 0x43bae1
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a5ba0]
imul eax, eax, 0x41c64e6d
pop edi
pop esi
pop ebx
add eax, 0x3039
mov dword [0x4a5ba0], eax
rol eax, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x448880
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
mov dword [eax], esi
mov ecx, dword [ecx]
xor eax, eax
mov esi, 1
mov dword [ebp - 0xc], ecx
mov ebx, 0x493e0
mov edx, dword [ecx + 0x208]
test edx, edx
mov ecx, dword [ecx + 0x20c]
cmovg eax, esi
test ecx, ecx
jle 0x4488c2
or eax, 2
dec eax
je 0x4488d8
dec eax
je 0x4488d4
dec eax
jne 0x4488da
cmp edx, ecx
mov ebx, ecx
cmovl ebx, edx
jmp 0x4488da
mov ebx, ecx
jmp 0x4488da
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, dword [ebp - 0xc]
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
sub esi, ecx
imul ecx, esi, 0x3e8
mov esi, dword [eax + 0x508]
sub esi, edi
sub ecx, dword [eax + 0x50c]
mov eax, 0x10624dd3
imul ecx
imul eax, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
add ebx, eax
je 0x4489b9
test ebx, ebx
js 0x4489b9
mov edi, dword [ebp - 0x10]
mov ecx, edi
push ebx
push 0xffffffffffffffff
call fcn.0043ab30
add esp, 8
test eax, eax
jle 0x4489af
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x448975
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x448992
mov ecx, dword [ebp - 8]
jmp 0x448899
cmp ebx, eax
je 0x44899e
test eax, eax
je 0x4489af
mov ecx, dword [ebp - 8]
sub ebx, eax
add esi, eax
mov dword [ebp + 0xc], ebx
add dword [ebp - 4], eax
mov dword [ebp + 8], esi
jmp 0x448899
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
add eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a290
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x44a2f2
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x44a2f2
lea eax, [ebp - 0x108]
push eax
call dword [0x4a1124]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret