joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427a5e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx + 0x550]
cmp esi, 0xffffffff
je 0x427aab
mov eax, dword [ecx + 0x544]
mov eax, dword [eax]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x427aab
test edx, edx
je 0x427a83
mov dword [edx], eax
cmp dword [eax + 0x150], 0
mov esi, dword [eax + 0x130]
je 0x427ab3
push 1
lea ecx, [ebp - 1]
push ecx
push dword [eax + 0x15c]
call dword [sym.imp.SSLEAY32.dll_Ordinal_76]
add esp, 0xc
test eax, eax
jne 0x427ac4
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 1
lea eax, [ebp - 1]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x427aa7
mov eax, esi
jmp 0x427aae

Function at 0x4283a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x44
push 1
mov dword [ebp - 4], edx
mov esi, ecx
call dword [0x493218]
pop ecx
pop ecx
mov edi, eax
mov dword [esi + 0x3e4], edi
push 8
pop ebx
test edi, edi
je 0x42845f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
mov dword [esi + 0x3dc], ecx
mov dword [esi + 0x3e0], ecx
mov dword [esi + 0x3d8], ecx
mov dword [esi + 0x3d4], eax
mov dword [edi], ecx
lea ecx, [edi + 0xc]
push ecx
push eax
call fcn.0042824a
pop ecx
pop ecx
test eax, eax
je 0x42845f
mov eax, dword [esi + 0x3d0]
test eax, eax
je 0x42841a
push eax
call dword [0x493210]
and dword [esi + 0x3d0], 0
pop ecx
push dword [ebp - 4]
call dword [0x493214]
mov dword [esi + 0x3d0], eax
pop ecx
test eax, eax
je 0x42845f
xor ebx, ebx
lea eax, [edi + 0xc]
push ebx
push ebx
push eax
push 0x4282d7
push ebx
push ebx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x42844f
cmp eax, 0xffffffff
jne 0x428451
mov eax, ebx
mov dword [edi], eax
test eax, eax
jne 0x42847a
call dword [sym.imp.MSVCR120.dll__errno]
mov ebx, dword [eax]
lea ecx, [esi + 0x3d0]
call fcn.00428363
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
inc eax
jmp 0x428473

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebx + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
and dword [edi], 0
cmp esi, 0xffffffff
jne 0x4289af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x428985
xor esi, esi
mov dword [edi], 0x51
jmp 0x4289af
mov edx, eax
mov ecx, ebx
call fcn.00440317
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.00428799
mov eax, dword [ebx]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax + 0x858c], ecx
mov dword [edi], 0x37
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x428ce5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 0x164]
test eax, eax
je 0x428d0a
push dword [edi + 0xf4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push edi
call eax
add esp, 0x14
jmp 0x428d41
cmp edx, 2
ja 0x428d3f
push dword [edi + 0xf0]
imul eax, edx, 3
push 1
push 2
add eax, 0x481cb0
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [edi + 0xf0]
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 0x42f92e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 4], edx
xor ebx, ebx
and dword [eax], ebx
xor edx, edx
mov dword [ebp - 8], ecx
mov ecx, dword [ecx]
push 1
call fcn.00426cd7
pop ecx
test eax, eax
js 0x42f9b1
mov edi, dword [ebp + 0xc]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov edx, esi
push eax
push esi
call fcn.0043f696
pop ecx
pop ecx
test eax, eax
jle 0x42f9b4
push 0
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x42f98f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x42f99e
push 0x38
jmp 0x42f9b3
cmp edi, eax
je 0x42f9bd
test eax, eax
je 0x42f9b4
add dword [ebp + 8], eax
sub edi, eax
add ebx, eax
mov eax, dword [ebp - 8]
xor edx, edx
push 1
mov ecx, dword [eax]
call fcn.00426cd7
pop ecx
test eax, eax
jns 0x42f959
push 0x1c
pop esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
add eax, ebx
xor esi, esi
mov dword [ecx], eax
jmp 0x42f9b4
Function at 0x437c22
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x4931e0]
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 + 0x3f8]
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 0x437cb2
push dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0xc8]
push eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov ebx, dword [esi + 0x14c]
cmp ebx, 4
jge 0x437ce4
push str.Received_too_short_packet
push edi
call fcn.00428799
pop ecx
pop ecx
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047259d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [esi + 0xc], edx
sub edx, 3
je 0x437d64
dec edx
je 0x437dd9
dec edx
je 0x437d3a
dec edx
je 0x437d21
push str.Internal_error:_Unexpected_packet
push 0x485544
push edi
call fcn.00428799
jmp 0x437d5f
lea eax, [ebx - 2]
lea edx, [ecx + 2]
mov ecx, esi
push eax
call fcn.00436ed0
pop ecx
test eax, eax
je 0x437dd9
jmp 0x437cd3
mov edx, ecx
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
lea eax, [edx + 4]
push eax
push 0x485364
push edi
mov dword [esi + 8], ecx
call fcn.00428725
add esp, 0xc
jmp 0x437dd9
cmp ebx, 4
jle 0x437dd9
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne 0x437dd9
lea eax, [ebx - 4]
add ecx, 4
push eax
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x90]
inc edx
call fcn.00428aaf
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x437db7
push 5
pop edx
mov ecx, esi
call fcn.004379ea
mov eax, ebx
jmp 0x437cd3
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
mov eax, dword [edi + 0x38]
adc dword [edi + 0x3c], edx
mov dword [edi + 0x450], eax
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x454], eax
mov ecx, dword [ebp - 0x90]
call fcn.0042f239
test eax, eax
je 0x437cd1
push 5
pop edx
mov ecx, esi
call fcn.004379ea
push 0x2a
pop eax
jmp 0x437cd3
Function at 0x4390b7
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4931e0]
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 + 0x134]
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 0x43910e
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.00427ac8
cmp edi, 0xffffffff
jne 0x43912f
push str.Error_accept__ing_server_connect
push ebx
call fcn.00428799
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x439193
push str.Connection_accepted_from_server_n
push ebx
call fcn.00428725
pop ecx
pop ecx
lea eax, [ebp - 0x18]
mov dword [esi + 0x134], edi
push eax
push 0x8004667e
push edi
mov dword [ebp - 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
inc ecx
mov dword [esi + 0x13c], ecx
mov eax, dword [ebx + 0x16c]
test eax, eax
je 0x439191
push ecx
push edi
push dword [ebx + 0x170]
call eax
add esp, 0xc
test eax, eax
je 0x439191
mov edx, edi
mov ecx, esi
call fcn.00427ac8
or dword [esi + 0x134], 0xffffffff
push 0x2a
jmp 0x43912c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047259d
mov esp, ebp
pop ebp
ret
Function at 0x43ac6a
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], 0x64
mov eax, ebx
cdq
idiv dword [ebp - 4]
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, dword [edi]
cmp eax, 2
je 0x43ac9e
push str.Couldnt_set_desired_mode
push ecx
call fcn.00428799
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x43acf3
cmp ebx, 0xc8
je 0x43acb5
push ebx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.00428725
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x43acc6
mov ecx, edi
call fcn.00439f31
jmp 0x43acef
cmp eax, 0x14
jne 0x43acd4
mov ecx, edi
call fcn.00439f77
jmp 0x43acef
cmp eax, 0x15
jne 0x43acdd
push 0xd
jmp 0x43ace4
cmp eax, 0x16
jne 0x43acf1
push 0xe
xor edx, edx
mov ecx, edi
inc edx
call fcn.0043a338
pop ecx
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43d127
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x43d132
jmp dword [eax*4 + 0x43d18b]
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 0x43d2a3
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4931e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x43d2dd
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.00428799
add esp, 0xc
jmp 0x43d305
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x43d2f8
shr eax, 8
test al, al
jne 0x43d2f8
xor eax, eax
jmp 0x43d308
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.00428799
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047259d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
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 + 0x130]
mov edi, dword [esi]
mov ebx, edx
mov byte [ebp - 3], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43d546
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00428799
add esp, 0xc
push dword [ebp + 8]
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
call fcn.0043d416
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43dce5
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
mov eax, dword [0x4931e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
push esi
mov dword [ebp - 0x90c], eax
push edi
mov esi, dword [eax]
mov ecx, esi
mov dword [ebp - 0x910], esi
mov ebx, dword [esi + 0x8684]
mov eax, dword [ebx + 0x1eb4]
sub eax, dword [ebx + 0x1eb0]
add eax, 2
push eax
lea eax, [ebx + 0x1cb0]
push eax
push 0x3c
pop edx
call fcn.0043d7e2
mov eax, dword [ebx + 0x1eb0]
pop ecx
pop ecx
movzx ecx, byte [eax]
inc eax
mov dword [ebx + 0x1eb0], eax
cmp ecx, 0x18
je 0x43de58
cmp ecx, 0x23
je 0x43de34
cmp ecx, 0x27
jne 0x43deea
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.00422167
mov ebx, dword [ebx + 0x1cac]
add esp, 0x1c
push 4
pop edi
test ebx, ebx
je 0x43de07
mov ecx, dword [ebx]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43dd97
sub ecx, edx
lea esi, [edi + 1]
add esi, ecx
cmp esi, 0x7fa
jae 0x43ddfa
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push eax
push str._127_____127s
push dword [ebx]
call dword [sym.imp.MSVCR120.dll_sscanf]
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.00422167
add esp, 0x2c
mov edi, esi
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x43dd92
mov esi, dword [ebp - 0x910]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push 0x489340
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.00422167
add esp, 0x14
add edi, 2
jmp 0x43de9e
add ebx, 0x1c28
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43de3f
push 0xf0
mov eax, 0xff
push eax
push ebx
push 0
push 0x23
jmp 0x43de7a
add ebx, 0x1c08
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43de63
push 0xf0
mov eax, 0xff
push eax
push ebx
push 0
push 0x18
push 0xfa
push eax
push str._c_c_c_c_s_c_c
sub ecx, edx
lea eax, [ebp - 0x908]
push 0x800
push eax
lea edi, [ecx + 6]
call fcn.00422167
add esp, 0x28
push 0
push edi
lea eax, [ebp - 0x908]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43ded3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00428799
add esp, 0xc
lea eax, [edi - 2]
mov ecx, esi
push eax
lea eax, [ebp - 0x906]
push eax
push 0x3e
pop edx
call fcn.0043d7e2
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047259d
mov esp, ebp
pop ebp
ret
Function at 0x43defb
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
mov dword [ebp - 0xc], eax
push ebx
push esi
mov eax, dword [eax]
mov dword [ebp - 8], eax
push edi
mov ebx, dword [eax + 0x8684]
cmp edx, 0x1f
jne 0x43e047
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x43df34
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43df3f
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43df4a
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp - 4], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [ebp - 4]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x43df7a
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43df84
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43df8e
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43df98
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43dfa3
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43dfae
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebx + 0x1cb0]
mov dword [ebx + 0x1eb4], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
mov edi, dword [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
pop edx
call fcn.0043d7e2
pop ecx
pop ecx
push 0
push 3
push esi
mov esi, dword [ebp - 0xc]
push dword [esi + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43e007
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00428799
add esp, 0xc
push 4
lea edx, [ebx + 0x1cb3]
mov ecx, esi
call fcn.0043e3ce
pop ecx
push 0
push 2
lea eax, [ebx + 0x1cb7]
push eax
push dword [esi + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43e047
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00428799
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f99d
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x4931e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
or ebx, 0xffffffff
push edi
test esi, esi
je 0x43f9cd
xor edi, edi
xor ecx, ecx
mov eax, edi
inc ecx
cmp dword [esi + eax*8], ebx
jne 0x43f9e5
inc eax
cmp eax, ecx
jb 0x43f9c3
mov ecx, ebx
call fcn.0043f677
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047259d
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x218], edi
mov word [esi + 6], ax
mov edx, ebx
mov eax, dword [esi]
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x320], edi
cmp eax, ebx
je 0x43fa48
movzx ecx, word [esi + 4]
test cl, 7
je 0x43fa48
cmp eax, ebx
cmova edx, eax
xor ebx, ebx
inc ebx
test bl, cl
je 0x43fa26
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], ebx
test cl, 4
je 0x43fa37
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], ebx
test cl, 2
je 0x43fa48
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x320], ebx
lea ebx, [edx + 1]
push edi
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x43fa80
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x43fa4b
cmp eax, 0x2714
je 0x43fa4b
jmp 0x43fa84
test eax, eax
jns 0x43fa8c
or eax, 0xffffffff
jmp 0x43f9d4
jne 0x43fa95
xor eax, eax
jmp 0x43f9d4
xor eax, eax
cmp dword [esi], 0xffffffff
mov word [esi + 6], ax
je 0x43faee
mov ebx, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea eax, [ebp - 0x218]
push eax
push dword [esi]
call ebx
test eax, eax
je 0x43fabc
xor eax, eax
inc eax
or word [esi + 6], ax
lea eax, [ebp - 0x110]
push eax
push dword [esi]
call ebx
test eax, eax
je 0x43fad0
or word [esi + 6], 4
lea eax, [ebp - 0x320]
push eax
push dword [esi]
call ebx
test eax, eax
je 0x43fae4
or word [esi + 6], 2
cmp word [esi + 6], di
push 1
pop eax
cmovne edi, eax
mov eax, edi
jmp 0x43f9d4
Function at 0x4404d2
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
and dword [ebp - 0xc], edi
and dword [eax], edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edi
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x440637
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x440623
push ebx
cmp dword [esi + 4], 2
jne 0x4405c3
cmp dword [esi + 0x18], 0
je 0x4405c3
cmp dword [esi + 0x10], 0
jbe 0x4405c3
cmp dword [esi + 0x10], 0x10
jb 0x4405c3
push 0x20
call dword [0x493208]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x440617
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
and dword [ebx + 0x18], 0
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push 0x10
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0x10
call dword [0x493208]
mov dword [ebx + 0x18], eax
pop ecx
test eax, eax
je 0x44060b
mov esi, dword [esi + 0x18]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x14], 0
je 0x4405ab
push dword [esi + 0x14]
call dword [0x493214]
mov dword [ebx + 0x14], eax
pop ecx
test eax, eax
je 0x4405f4
mov edi, dword [ebp - 4]
test edi, edi
mov eax, dword [ebp - 0xc]
cmove edi, ebx
mov dword [ebp - 4], edi
test eax, eax
je 0x4405c0
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x440510
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
pop ebx
je 0x4405e4
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x44061c
mov ecx, dword [ebp - 4]
call fcn.00440496
xor edi, edi
jmp 0x44062f
push 8
pop esi
push dword [ebx + 0x18]
call dword [0x493210]
push ebx
call dword [0x493210]
pop ecx
pop ecx
jmp 0x4405d4
push 8
pop esi
push ebx
call dword [0x493210]
jmp 0x440608
push 8
pop esi
jmp 0x4405d4
mov edi, dword [ebp - 4]
test edi, edi
jne 0x44062f
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, dword [ecx + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a8]
test esi, esi
jne 0x444c0c
mov esi, dword [ecx + 0x28]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
call fcn.0043e9af
push edx
push eax
call fcn.0043e9c5
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x444c56
push dword [ebx + 0x124]
push dword [ebx + 0x120]
call fcn.0043e9af
push edx
push eax
call fcn.0043e9c5
mov ecx, dword [edi + 0x19c]
add esp, 0x10
sub ecx, eax
cmp esi, ecx
cmovl ecx, esi
mov esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x445960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x445989
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x44597c
xor eax, eax
jmp 0x4459dd
push dword [eax + 8]
push dword [ebp + 8]
push 1
push edi
call ecx
jmp 0x4459ba
cmp dword [esi + 8], 0
jne 0x4459ab
push 0x48b984
push dword [eax + 8]
call dword [sym.imp.MSVCR120.dll_fopen]
mov dword [esi + 8], eax
pop ecx
pop ecx
test eax, eax
jne 0x4459ab
or eax, 0xffffffff
jmp 0x4459dd
push dword [esi + 8]
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.MSVCR120.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4459db
cmp dword [esi + 8], eax
je 0x4459d5
push dword [esi + 8]
call dword [sym.imp.MSVCR120.dll_fclose]
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x446df7
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0xd4
mov dword [ebp - 8], edx
call dword [0x493208]
mov esi, eax
pop ecx
test esi, esi
je 0x446ef2
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0xc]
push edi
push 0x40
pop edi
mov dword [esi], 0x4828f0
lea eax, [ecx + 0x5c]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
cmp ebx, edi
jbe 0x446e65
push ecx
call dword [0x4828f0]
push ebx
push dword [ebp - 8]
push dword [esi + 4]
call dword [0x4828f4]
mov eax, dword [esi + 8]
push dword [esi + 4]
add eax, 0x5c
push eax
mov dword [ebp - 8], eax
call dword [0x4828f8]
add esp, 0x18
push 0x10
pop ebx
mov dword [ebp + 8], ebx
push dword [esi + 4]
call dword [0x4828f0]
push dword [esi + 8]
call dword [0x4828f0]
pop ecx
xor eax, eax
pop ecx
test ebx, ebx
je 0x446ec6
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov al, byte [edi]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
call dword [0x4828f4]
mov al, byte [edi]
xor al, 0x5c
inc edi
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
call dword [0x4828f4]
add esp, 0x18
dec ebx
jne 0x446e88
push 0x40
pop edi
cmp dword [ebp + 8], edi
jae 0x446eee
mov eax, dword [ebp - 0x10]
sub edi, eax
push 1
push 0x47afad
push dword [esi + 4]
call dword [0x4828f4]
push 1
push 0x47afae
push dword [esi + 8]
call dword [0x4828f4]
add esp, 0x18
dec edi
jne 0x446ec8
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret