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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], esi
push edi
mov ecx, 1
mov dword [ebp - 8], 0
mov edi, dword [esi + 0x1c8]
mov ebx, edx
test edi, edi
mov edx, 0x493e0
mov dword [ebp - 4], edx
cmovg eax, ecx
mov ecx, dword [esi + 0x1cc]
test ecx, ecx
jle 0x43f484
or eax, 2
dec eax
je 0x43f49e
dec eax
je 0x43f499
dec eax
jne 0x43f4a1
cmp edi, ecx
mov edx, ecx
cmovl edx, edi
mov dword [ebp - 4], edx
jmp 0x43f4a1
mov dword [ebp - 4], ecx
jmp 0x43f4a1
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, eax
mov esi, dword [esi + 0x4a8]
mov eax, 0x10624dd3
mul ecx
mov edi, edx
mov edx, dword [ebp - 0x10]
shr edi, 6
imul eax, edi, 0x3e8
sub esi, edi
sub ecx, eax
mov eax, 0x10624dd3
imul ecx, ecx, 0x3e8
sub ecx, dword [edx + 0x4ac]
imul ecx
imul ecx, esi, 0x3e8
mov esi, dword [ebp - 4]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0xffffffff
add esi, ecx
cmove esi, eax
cmp byte [ebx + 0x1c1], 0
je 0x43f512
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x10]
lea eax, [ebx + 0x90]
push eax
mov ecx, edi
call fcn.0043d930
mov eax, dword [ebx + 0xa8]
add esp, 4
test eax, eax
je 0x43f5d0
cmp byte [eax], 0
je 0x43f5d0
lea eax, [ebx + 0xa0]
mov ecx, edi
push eax
call fcn.0043d930
add esp, 4
mov dword [ebp - 4], 0
test esi, esi
js 0x43f63b
mov edx, dword [ebx + 0xa8]
lea eax, [ebp - 4]
push eax
push dword [ebx + 0xb0]
mov ecx, ebx
call fcn.00442280
add esp, 8
cmp eax, 1
jne 0x43f592
mov eax, dword [ebp - 0xc]
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 0x43f63b
cmp dword [ebp - 4], 0
jne 0x43f642
push dword [ebx + 0xac]
push str.Couldnt_resolve_proxy__s
push edi
call fcn.004437f0
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 esi, esi
js 0x43f63b
mov edx, dword [ebx + 0x98]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, ebx
call fcn.00442280
add esp, 8
cmp eax, 1
je 0x43f57c
cmp eax, 0xfffffffe
je 0x43f63b
cmp dword [ebp - 4], 0
jne 0x43f642
push dword [ebx + 0x9c]
push str.Couldnt_resolve_host__s
push edi
call fcn.004437f0
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 0x4400c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push dword [ebx + 0x4ac]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x4a8]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.00444350
movsd qword [ebx + 0x470], xmm0
add esp, 0x10
mov eax, dword [edi + 0x1ec]
test byte [eax + 0x40], 0x10
mov eax, dword [ebp - 4]
je 0x440127
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 + 0x1d5], 0
cmp dword [ebx + 0x364], 0
je 0x44017c
push dword [edi + 0x204]
call dword [0x5007b0]
add esp, 4
mov dword [edi + 0x204], 0
push dword [ebx + 0x364]
push str.User_Agent:__s_r_n
call fcn.004507c0
add esp, 8
mov dword [edi + 0x204], eax
test eax, eax
jne 0x44017c
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 0x4401db
mov byte [edi + 0x1c9], 0
mov ecx, edi
mov edx, dword [edi + 0x48]
call fcn.00441af0
test eax, eax
je 0x440278
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push dword [ebx + 0x4ac]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x4a8]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.00444350
add esp, 0x10
movsd qword [ebx + 0x478], xmm0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push dword [ebx + 0x4ac]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x4a8]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.00444350
mov eax, dword [ebp - 4]
add esp, 0x10
movsd qword [ebx + 0x480], xmm0
mov ecx, edi
mov byte [edi + 0x1c9], 1
mov byte [eax], 1
mov edx, dword [edi + 0x154]
call fcn.00440ff0
mov ecx, edi
call fcn.0043d850
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 0x440760
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 + 0x3dc], al
setne al
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4407bb
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00443730
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3e0]
and eax, 0x7fffffff
mov dword [ebp - 0x14], 1
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x3e4]
and eax, 0x7fffffff
imul eax, eax, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x440825
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.00443730
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
Function at 0x440ff0
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 0x4411b6
cmp byte [edi + 0x1c1], 0
jne 0x4411af
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x80
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x441075
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.004647f0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004437f0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 8], 0x80
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4410da
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.004647f0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004437f0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
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.00440fa0
add esp, 4
test al, al
jne 0x44112d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.004647f0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004437f0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
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.00440fa0
add esp, 4
test al, al
jne 0x4411af
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.004647f0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004437f0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00440ee0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
Function at 0x441610
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x2e6]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x441673
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.004647f0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00443730
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00443730
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.0046bea8
mov esp, ebp
pop ebp
ret

Function at 0x4416a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x505e30]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x441765
push 0x11c
push eax
lea eax, [ebp - 0x130]
push eax
call sub.MSVCR120.dll_memset
mov esi, dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
mov dword [ebp - 0x12c], 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 - 0x130]
push eax
call dword [sym.imp.KERNEL32.DLL_VerifyVersionInfoW]
test eax, eax
je 0x441759
mov dword [0x505e30], 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov dword [0x505e30], 1
jmp 0x44176a
cmp eax, 2
je 0x4417a6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x44178f
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jg 0x4417a6
push 4
lea eax, [ebp - 8]
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.0046bea8
mov esp, ebp
pop ebp
ret
Function at 0x441cd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [edi + 0x538]
test esi, esi
je 0x441d2e
mov ecx, dword [edi + 0x44]
test ecx, ecx
jne 0x441cfd
cmp dword [edi + 0x40], ecx
je 0x441d2e
mov dword [ebp - 0x10], esi
mov byte [ebp - 0xc], 0
test ecx, ecx
jne 0x441d0b
mov ecx, dword [edi + 0x40]
add ecx, 0x68
lea edx, [ebp - 0x10]
push 0x441cb0
call fcn.00449570
add esp, 4
cmp byte [ebp - 0xc], 0
jne 0x441d42
mov dword [edi + 0x538], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x441d48
mov dword [ebx], esi
cmp byte [esi + 0x178], 0
mov edi, dword [esi + 0x154]
jne 0x441d2e
push 2
push 1
lea eax, [ebp - 5]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
test eax, eax
cmove edi, ecx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046bea8
mov esp, ebp
pop ebp
ret

Function at 0x442aa0
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 [0x5007a8]
mov edi, eax
add esp, 8
mov dword [esi + 0x38c], edi
mov ebx, 8
test edi, edi
je 0x442b62
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [esi + 0x37c], ecx
push ecx
mov byte [esi + 0x384], 0
mov ecx, edi
mov dword [esi + 0x388], 0
mov dword [esi + 0x380], 0
mov dword [edi], 0
call fcn.00442830
add esp, 8
test eax, eax
je 0x442b62
push dword [esi + 0x378]
call dword [0x5007b0]
push dword [ebp - 4]
call dword [0x5007a4]
add esp, 8
mov dword [esi + 0x378], eax
test eax, eax
je 0x442b62
push 0
push 0
lea eax, [edi + 0xc]
push eax
push 0x4428f0
push 0
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x442b52
cmp eax, 0xffffffff
jne 0x442b54
xor eax, eax
mov dword [edi], eax
test eax, eax
jne 0x442b7d
call dword [sym.imp.MSVCR120.dll__errno]
mov ebx, dword [eax]
lea ecx, [esi + 0x378]
call fcn.004429e0
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 0x4437f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push esi
push edi
push eax
push dword [ebp + 0xc]
lea esi, [ebx + 0x544]
mov dword [ebp - 0xc], 0
mov edx, 0x450680
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], 0x4000
call fcn.0044fca0
mov eax, dword [ebp - 8]
add esp, 8
test eax, eax
je 0x44384c
cmp eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
jne 0x443849
mov byte [eax - 1], 0
jmp 0x44384c
mov byte [eax], 0
mov eax, dword [ebx + 0x120]
test eax, eax
je 0x44387a
cmp byte [ebx + 0x8570], 0
jne 0x44387a
push esi
push 0x4f0cf0
push 0x100
push eax
call fcn.004506b0
add esp, 0x10
mov byte [ebx + 0x8570], 1
cmp byte [ebx + 0x2d0], 0
je 0x443900
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x443888
sub edi, ecx
cmp edi, 0x3fff
jae 0x4438a9
mov byte [ebx + edi + 0x544], 0xa
inc edi
mov byte [ebx + edi + 0x544], al
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x4438d4
push dword [ebx + 0x11c]
push edi
push esi
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x118]
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
push 1
push 2
push 0x4eebac
call esi
push dword [ebx + 0x118]
lea eax, [ebx + 0x544]
push 1
push edi
push eax
call esi
add esp, 0x20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
Function at 0x443920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov ebx, dword [eax]
push edi
mov dword [ebp - 0xc0], eax
call fcn.00450880
mov edx, eax
mov dword [ebp - 0xc4], edx
test edx, edx
jne 0x44396c
lea eax, [edx + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov edi, edx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x443971
sub edi, ecx
mov dword [ebp - 0xb4], edx
mov esi, edx
mov ecx, dword [ebp - 0xc0]
xor eax, eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0xb0], 0
cmp edx, dword [ecx + 0x158]
lea edx, [ebp - 0xb0]
push edx
push edi
sete al
push esi
push eax
push ecx
mov eax, dword [ecx + eax*4 + 0x170]
call eax
add esp, 0x14
mov dword [ebp - 0xbc], eax
test eax, eax
jns 0x4439e2
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x443aec
cmp eax, 0x51
jne 0x443ae8
mov dword [ebp - 0xbc], 0
cmp byte [ebx + 0x2d0], 0
mov dword [ebp - 0xb8], 0
je 0x443ac9
cmp byte [ebx + 0x2b8], 0
je 0x443aaa
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x9c]
test eax, eax
je 0x443aaa
push eax
push 0x4f0d88
push str.Data
push str.__s__s__s_
lea eax, [ebp - 0xac]
push 0xa0
push eax
call fcn.004506b0
lea esi, [ebp - 0xac]
add esp, 0x18
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x443a47
mov eax, dword [ebx + 0x190]
sub esi, ecx
test eax, eax
je 0x443a76
push dword [ebx + 0x11c]
lea ecx, [ebp - 0xac]
push esi
push ecx
push 0
push ebx
call eax
add esp, 0x14
test eax, eax
jne 0x443ac9
jmp 0x443aa4
push dword [ebx + 0x118]
push 1
push 2
push 0x4eebac
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [ebx + 0x118]
lea eax, [ebp - 0xac]
push 1
push esi
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x20
mov esi, dword [ebp - 0xb4]
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x443ac9
push dword [ebx + 0x11c]
push dword [ebp - 0xbc]
push esi
push 4
push ebx
call eax
add esp, 0x14
mov eax, dword [ebp - 0xbc]
cmp eax, edi
je 0x443af3
mov esi, dword [ebp - 0xb4]
sub edi, eax
add esi, eax
mov dword [ebp - 0xb4], esi
jmp 0x443982
mov esi, eax
jmp 0x443af9
mov esi, 0x37
jmp 0x443af9
mov esi, dword [ebp - 0xb8]
push dword [ebp - 0xc4]
call dword [0x5007b0]
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
Function at 0x443ba0
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 0x443c1e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x443bee
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.004647f0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004437f0
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
mov dword [eax + 0x8574], ebx
mov eax, esi
mov dword [edi], 0x37
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4440a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 0x190]
test eax, eax
je 0x4440c6
push dword [edi + 0x11c]
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 0x4440fc
push dword [edi + 0x118]
lea eax, [edx*2 + 0x4eebac]
push 1
add eax, edx
push 2
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [edi + 0x118]
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 0x444110
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 + 0x2b8], 0
je case.default.0x444154
test eax, eax
je case.default.0x444154
mov edx, dword [eax + 0x9c]
test edx, edx
je case.default.0x444154
lea ecx, [esi - 1]
mov eax, str.Data
cmp ecx, 3
ja case.default.0x444154
jmp dword [ecx*4 + 0x444228]
mov eax, str.Header
mov ecx, str.from
jmp 0x444171
mov eax, str.Header
mov ecx, 0x4f0d88
push edx
push ecx
push eax
push str.__s__s__s_
lea eax, [ebp - 0xac]
push 0xa0
push eax
call fcn.004506b0
lea ecx, [ebp - 0xac]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x444196
sub ecx, edx
lea eax, [ebp - 0xac]
push ecx
push eax
xor edx, edx
mov ecx, edi
call fcn.004440a0
add esp, 8
test eax, eax
jne 0x444217
mov eax, dword [edi + 0x190]
test eax, eax
je 0x4441e3
push dword [edi + 0x11c]
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.0046bea8
mov esp, ebp
pop ebp
ret
cmp esi, 2
ja 0x444215
push dword [edi + 0x118]
lea eax, [esi*2 + 0x4eebac]
push 1
add eax, esi
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
push 2
push eax
call esi
push dword [edi + 0x118]
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.0046bea8
mov esp, ebp
pop ebp
ret
Function at 0x451a20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x14], edx
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov dword [eax], esi
mov ecx, dword [ecx]
xor eax, eax
mov esi, 1
mov dword [ebp - 0x10], ecx
mov ebx, 0x493e0
mov edx, dword [ecx + 0x1c8]
test edx, edx
mov ecx, dword [ecx + 0x1cc]
cmovg eax, esi
test ecx, ecx
jle 0x451a6b
or eax, 2
dec eax
je 0x451a81
dec eax
je 0x451a7d
dec eax
jne 0x451a83
cmp edx, ecx
mov ebx, ecx
cmovl ebx, edx
jmp 0x451a83
mov ebx, ecx
jmp 0x451a83
mov ebx, edx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, dword [ebp - 0x10]
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
sub esi, ecx
imul ecx, esi, 0x3e8
mov esi, dword [eax + 0x4a8]
sub esi, edi
sub ecx, dword [eax + 0x4ac]
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 0x451b65
test ebx, ebx
js 0x451b65
mov edi, dword [ebp - 0x14]
or edx, 0xffffffff
push ebx
push 0xffffffffffffffff
mov ecx, edi
call fcn.00442f70
add esp, 8
test eax, eax
jle 0x451b5b
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
push 0
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x451b21
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x451b3e
mov ecx, dword [ebp - 8]
jmp 0x451a42
cmp ebx, eax
je 0x451b4a
test eax, eax
je 0x451b5b
mov ecx, dword [ebp - 8]
sub ebx, eax
add esi, eax
mov dword [ebp + 0xc], ebx
add dword [ebp - 4], eax
mov dword [ebp - 0xc], esi
jmp 0x451a42
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
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