joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae350
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4ae4c9
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x4ae4b5
push esi
nop dword [eax + eax]
cmp dword [edi + 4], 2
jne 0x4ae448
cmp dword [edi + 0x18], 0
je 0x4ae448
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4ae448
cmp eax, 0x10
jb 0x4ae448
push 0x20
call dword [0x5c1c74]
mov esi, eax
add esp, 4
test esi, esi
je 0x4ae4aa
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x5c1c74]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4ae499
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4ae436
push eax
call dword [0x5c1c80]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4ae47f
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4ae445
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4ae390
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x4ae465
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x4ae4b1
mov ecx, ebx
call fcn.004ae310
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x5c1c7c]
push esi
call dword [0x5c1c7c]
add esp, 8
jmp 0x4ae456
push esi
mov edi, 8
call dword [0x5c1c7c]
add esp, 4
jmp 0x4ae456
mov edi, 8
jmp 0x4ae456
test ebx, ebx
jne 0x4ae4c1
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b2ba0
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
nop dword [eax]
mov esi, dword [ecx]
xor eax, eax
mov dword [ebp - 0xc], esi
mov ebx, 0x493e0
mov ecx, dword [esi + 0x220]
test ecx, ecx
mov edx, dword [esi + 0x224]
setg al
test edx, edx
jle 0x4b2be4
or eax, 2
sub eax, 1
je 0x4b2c00
sub eax, 1
je 0x4b2bfc
sub eax, 1
jne 0x4b2c02
cmp ecx, edx
mov ebx, ecx
cmovge ebx, edx
jmp 0x4b2c02
mov ebx, edx
jmp 0x4b2c02
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov esi, dword [esi + 0x570]
mov eax, 0x10624dd3
mul ecx
mov edi, edx
shr edi, 6
imul eax, edi, 0x3e8
sub esi, edi
sub ecx, eax
mov eax, dword [ebp - 0xc]
imul ecx, ecx, 0x3e8
sub ecx, dword [eax + 0x574]
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 0x4b2ce4
test ebx, ebx
js 0x4b2ce4
mov edi, dword [ebp - 0x10]
or edx, 0xffffffff
push ebx
push 0xffffffffffffffff
mov ecx, edi
call fcn.004965b0
add esp, 8
test eax, eax
jle 0x4b2cda
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 0x4b2ca0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4b2cbd
mov ecx, dword [ebp - 8]
jmp 0x4b2bc0
cmp ebx, eax
je 0x4b2cc9
test eax, eax
je 0x4b2cda
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 0x4b2bc0
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 0x4b64a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x5c1334]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x8c], 0x80
push edi
mov dword [ebp - 0x90], eax
mov esi, dword [eax + 0x4d0]
mov edi, dword [eax]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4b6530
push dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0xc8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4b6563
push str.Received_too_short_packet
push edi
call fcn.00494100
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
shl ecx, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x4b6584
jmp dword [ecx*4 + 0x4b66bc]
cmp edx, 4
jle case.0x4b6584.4
mov ebx, dword [esi + 0x15c]
movzx ecx, byte [ebx + 2]
movzx eax, byte [ebx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x4b6584.4
mov ecx, dword [ebp - 0x90]
lea eax, [edx - 4]
push eax
lea eax, [ebx + 4]
mov edx, 1
push eax
call fcn.00494590
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4b65f7
mov edx, 5
mov ecx, esi
call fcn.004b61c0
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
mov eax, dword [edi + 0x70]
adc dword [edi + 0x74], edx
mov ecx, dword [edi + 0x74]
mov dword [edi + 0x4f8], eax
mov dword [edi + 0x4fc], ecx
jmp case.0x4b6584.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x59b20c
push edi
call fcn.00494040
jmp 0x4b6684
lea eax, [edx - 2]
mov ecx, esi
mov edx, dword [esi + 0x15c]
push eax
add edx, 2
call fcn.004b53f0
add esp, 4
test eax, eax
je case.0x4b6584.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x5974d0
push edi
call fcn.00494100
add esp, 0xc
mov ecx, dword [ebp - 0x90]
call fcn.004ad0e0
test eax, eax
je 0x4b6550
mov edx, 5
mov ecx, esi
call fcn.004b61c0
mov ecx, dword [ebp - 4]
mov eax, 0x2a
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00528802
mov esp, ebp
pop ebp
ret
Function at 0x4b9ce0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5c1334]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], 0x10
push edi
lea ecx, [ebp - 0x1c]
or edi, 0xffffffff
push ecx
mov eax, dword [esi + 0x158]
lea ecx, [ebp - 0x14]
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4b9d37
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
mov edx, dword [ebp - 0x18]
mov ecx, esi
call fcn.00496410
cmp edi, 0xffffffff
jne 0x4b9d6a
push str.Error_accept__ing_server_connect
push ebx
call fcn.00494100
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.00494040
add esp, 8
mov dword [esi + 0x158], edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [esi + 0x168], 1
mov eax, dword [ebx + 0x1f0]
test eax, eax
je 0x4b9de4
push 1
push edi
push dword [ebx + 0x1f4]
call eax
add esp, 0xc
test eax, eax
je 0x4b9de4
mov edx, edi
mov ecx, esi
call fcn.00496410
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00528802
mov esp, ebp
pop ebp
ret
Function at 0x4bc1c0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [edx - 0xc8]
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov ecx, dword [ebx]
cmp eax, 0x64
jb 0x4bc1f2
push str.Couldnt_set_desired_mode
push ecx
call fcn.00494100
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 0xc8
je 0x4bc209
push edx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.00494040
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x4bc221
mov ecx, ebx
call fcn.004bb170
mov esi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x14
jne 0x4bc345
mov esi, dword [ebx]
xor edi, edi
cmp dword [esi + 0x310], 2
jne 0x4bc298
mov eax, dword [esi + 0x8f48]
test eax, eax
je 0x4bc298
cmp byte [eax], 0
je 0x4bc298
push 0x2f
push eax
call dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 8
test eax, eax
je 0x4bc298
push dword [esi + 0x8f48]
call dword [0x5c1c80]
mov edi, eax
add esp, 4
test edi, edi
je 0x4bc2ef
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bc274
sub ecx, edx
cmp byte [ecx + edi - 1], 0x2f
je 0x4bc298
push 0x2f
push edi
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
test eax, eax
je 0x4bc298
mov byte [eax + 1], 0
mov ecx, dword [esi + 0x3d8]
test ecx, ecx
jne 0x4bc2b6
cmp dword [esi + 0x334], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x5950c6
test edi, edi
mov eax, edx
cmovne eax, edi
push eax
mov eax, 0x595764
cmove eax, edx
push eax
push ecx
push str._s_s_s
call fcn.004a4250
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
jne 0x4bc2fd
test edi, edi
je 0x4bc2ef
push edi
call dword [0x5c1c7c]
add esp, 4
mov esi, 0x1b
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebx + 0x4d0]
push 0x5974d0
push eax
call fcn.004cf140
add esp, 0xc
mov esi, eax
test edi, edi
je 0x4bc322
push edi
call dword [0x5c1c7c]
add esp, 4
push dword [ebp - 4]
call dword [0x5c1c7c]
add esp, 4
test esi, esi
jne 0x4bc366
mov dword [ebx + 0x544], 0x1f
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x15
jne 0x4bc34e
push 0xd
jmp 0x4bc355
cmp eax, 0x16
jne 0x4bc366
push 0xe
mov edx, 1
mov ecx, ebx
call fcn.004bb630
add esp, 4
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov byte [ebp - 2], al
push 3
lea eax, [ebp - 4]
mov byte [ebp - 4], 0xff
push eax
push dword [esi + 0x154]
mov edi, dword [esi]
mov ebx, edx
mov byte [ebp - 3], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4c01a9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00494100
add esp, 0xc
push dword [ebp + 8]
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
call fcn.004c0050
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c0c00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
mov eax, dword [0x5c1334]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x80
lea eax, [ebp - 0x108]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x910], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x88]
push 0x80
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [edi]
add esp, 0xc
mov edx, 0x3c
mov dword [ebp - 0x90c], ebx
mov ecx, ebx
mov esi, dword [ebx + 0x168]
mov eax, dword [esi + 0x1eb4]
sub eax, dword [esi + 0x1eb0]
add eax, 2
push eax
lea eax, [esi + 0x1cb0]
push eax
call fcn.004c05b0
mov eax, dword [esi + 0x1eb0]
add esp, 8
mov cl, byte [eax]
inc eax
mov dword [esi + 0x1eb0], eax
cmp cl, 0x18
je 0x4c0dee
cmp cl, 0x23
je 0x4c0dcb
cmp cl, 0x27
jne 0x4c0e87
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.004a4150
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov edi, 4
mov eax, 0x800
test esi, esi
je 0x4c0d6a
mov edx, dword [esi]
mov eax, edx
lea ebx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c0cf0
sub eax, ebx
lea ebx, [edi + 1]
add ebx, eax
cmp ebx, 0x7fa
jae 0x4c0d58
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push eax
push str._127_____127s
push edx
call fcn.00476140
add esp, 0x10
test eax, eax
je 0x4c0d58
lea eax, [ebp - 0x88]
push eax
push 1
lea eax, [ebp - 0x108]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.004a4150
add esp, 0x1c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x4c0ce7
mov ebx, dword [ebp - 0x90c]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, edi
push 0x59ee44
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.004a4150
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [ebp - 0x908]
push eax
mov eax, dword [ebp - 0x910]
push dword [eax + 0x154]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4c0dc5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00494100
add esp, 0xc
push edi
jmp 0x4c0e71
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c0dd6
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x4c0e16
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c0e00
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [ebp - 0x908]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.004a4150
add esp, 0x28
lea eax, [ebp - 0x908]
push 0
push esi
push eax
push dword [edi + 0x154]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4c0e6d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00494100
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x906]
mov edx, 0x3e
push eax
mov ecx, ebx
call fcn.004c05b0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00528802
mov esp, ebp
pop ebp
ret
Function at 0x4c0ea0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push edi
mov eax, dword [eax + 0x168]
mov dword [ebp - 0xc], eax
cmp edx, 0x1f
jne 0x4c0ffc
lea ebx, [eax + 0x1cb0]
lea edi, [eax + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x4c0ee0
mov byte [ebx], 0xff
inc dword [edi]
mov ecx, dword [edi]
jmp 0x4c0ee2
mov ecx, ebx
cmp ecx, edi
jae 0x4c0ef6
mov byte [ecx], 0xfa
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4c0ef6
mov byte [ecx], 0x1f
inc dword [edi]
movzx eax, word [eax + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x1caa]
push eax
call esi
mov edx, dword [ebp - 8]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x4c0f61
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c0f61
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c0f61
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c0f61
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c0f61
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c0f61
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [ebp - 0xc]
mov edx, 0x3e
mov dword [edi], ebx
mov edi, dword [ebp - 0x10]
mov ecx, edi
mov dword [esi + 0x1eb4], eax
sub eax, ebx
sub eax, 2
push eax
lea eax, [esi + 0x1cb2]
push eax
call fcn.004c05b0
mov eax, dword [ebp - 4]
add esp, 8
push 0
push 3
push ebx
push dword [eax + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4c0fba
call ebx
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00494100
add esp, 0xc
mov ecx, dword [ebp - 4]
lea edx, [esi + 0x1cb3]
push 4
call fcn.004c1790
add esp, 4
lea eax, [esi + 0x1cb7]
push 0
push 2
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x154]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4c0ffc
call ebx
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00494100
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c2de0
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4c2deb
jmp dword [eax*4 + 0x4c2e44]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, cl
ret
Function at 0x4c2eb0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov bl, byte [esi]
test bl, bl
je 0x4c2f59
mov cl, byte [edi]
test cl, cl
je 0x4c2f59
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4c2ed6
jmp dword [eax*4 + 0x4c2f78]
mov bl, 0x41
jmp case.default.0x4c2ed6
mov bl, 0x42
jmp case.default.0x4c2ed6
mov bl, 0x43
jmp case.default.0x4c2ed6
mov bl, 0x44
jmp case.default.0x4c2ed6
mov bl, 0x45
jmp case.default.0x4c2ed6
mov bl, 0x46
jmp case.default.0x4c2ed6
mov bl, 0x47
jmp case.default.0x4c2ed6
mov bl, 0x48
jmp case.default.0x4c2ed6
mov bl, 0x49
jmp case.default.0x4c2ed6
mov bl, 0x4a
jmp case.default.0x4c2ed6
mov bl, 0x4b
jmp case.default.0x4c2ed6
mov bl, 0x4c
jmp case.default.0x4c2ed6
mov bl, 0x4d
jmp case.default.0x4c2ed6
mov bl, 0x4e
jmp case.default.0x4c2ed6
mov bl, 0x4f
jmp case.default.0x4c2ed6
mov bl, 0x50
jmp case.default.0x4c2ed6
mov bl, 0x51
jmp case.default.0x4c2ed6
mov bl, 0x52
jmp case.default.0x4c2ed6
mov bl, 0x53
jmp case.default.0x4c2ed6
mov bl, 0x54
jmp case.default.0x4c2ed6
mov bl, 0x55
jmp case.default.0x4c2ed6
mov bl, 0x56
jmp case.default.0x4c2ed6
mov bl, 0x57
jmp case.default.0x4c2ed6
mov bl, 0x58
jmp case.default.0x4c2ed6
mov bl, 0x59
jmp case.default.0x4c2ed6
mov bl, 0x5a
call fcn.004c2de0
cmp bl, al
jne 0x4c2f59
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x4c2ec1
mov cl, byte [esi]
call fcn.004c2de0
mov cl, byte [edi]
mov dl, al
call fcn.004c2de0
xor ecx, ecx
cmp dl, al
pop edi
sete cl
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x4c2fe0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov bl, byte [edi]
test bl, bl
je 0x4c30a4
nop dword [eax]
mov cl, byte [edx]
test cl, cl
je 0x4c30a4
test esi, esi
je 0x4c30a8
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4c301d
jmp dword [eax*4 + 0x4c30d8]
mov bl, 0x41
jmp case.default.0x4c301d
mov bl, 0x42
jmp case.default.0x4c301d
mov bl, 0x43
jmp case.default.0x4c301d
mov bl, 0x44
jmp case.default.0x4c301d
mov bl, 0x45
jmp case.default.0x4c301d
mov bl, 0x46
jmp case.default.0x4c301d
mov bl, 0x47
jmp case.default.0x4c301d
mov bl, 0x48
jmp case.default.0x4c301d
mov bl, 0x49
jmp case.default.0x4c301d
mov bl, 0x4a
jmp case.default.0x4c301d
mov bl, 0x4b
jmp case.default.0x4c301d
mov bl, 0x4c
jmp case.default.0x4c301d
mov bl, 0x4d
jmp case.default.0x4c301d
mov bl, 0x4e
jmp case.default.0x4c301d
mov bl, 0x4f
jmp case.default.0x4c301d
mov bl, 0x50
jmp case.default.0x4c301d
mov bl, 0x51
jmp case.default.0x4c301d
mov bl, 0x52
jmp case.default.0x4c301d
mov bl, 0x53
jmp case.default.0x4c301d
mov bl, 0x54
jmp case.default.0x4c301d
mov bl, 0x55
jmp case.default.0x4c301d
mov bl, 0x56
jmp case.default.0x4c301d
mov bl, 0x57
jmp case.default.0x4c301d
mov bl, 0x58
jmp case.default.0x4c301d
mov bl, 0x59
jmp case.default.0x4c301d
mov bl, 0x5a
call fcn.004c2de0
cmp bl, al
jne 0x4c30a4
mov bl, byte [edi + 1]
inc edi
inc edx
dec esi
mov dword [ebp - 4], edx
test bl, bl
jne 0x4c3000
test esi, esi
jne 0x4c30b4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [edi]
call fcn.004c2de0
mov dl, al
mov eax, dword [ebp - 4]
mov cl, byte [eax]
call fcn.004c2de0
xor ecx, ecx
cmp dl, al
pop edi
sete cl
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ceaa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
mov ecx, dword [esi]
cmp dword [ecx + 4], 2
jne 0x4ceac9
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4ceabc
pop edi
pop esi
pop ebp
ret
push dword [ecx + 8]
push dword [ebp + 8]
push 1
push edi
call eax
jmp 0x4ceafc
mov eax, dword [esi + 8]
test eax, eax
jne 0x4ceaef
push 0x5a0878
push dword [ecx + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4ceaef
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push eax
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4ceb1f
mov eax, dword [esi + 8]
test eax, eax
je 0x4ceb19
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4ced80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x22c]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4ceda9
mov eax, dword [ebx + 0x28]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov esi, dword [ebx + 0x20]
mov eax, 0x10624dd3
mul ecx
mov edi, edx
shr edi, 6
imul eax, edi, 0x3e8
sub esi, edi
sub ecx, eax
mov eax, 0x10624dd3
imul ecx, ecx, 0x3e8
sub ecx, dword [ebx + 0x24]
imul ecx
imul ecx, esi, 0x3e8
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [ebp - 8]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
cmp dword [eax + 0x220], 0
je 0x4cee61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, 0x10624dd3
mov ebx, edx
mov edx, dword [ebp - 0xc]
shr ebx, 6
imul ecx, ebx, 0x3e8
mov edi, dword [edx + 0x144]
sub edi, ebx
sub esi, ecx
imul ecx, esi, 0x3e8
sub ecx, dword [edx + 0x148]
imul ecx
imul eax, edi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x220]
cmp dword [ebp - 4], eax
cmovl eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret