joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414b30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x1ac]
mov esi, dword [ebx]
test eax, eax
jne 0x414c50
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x11c]
lea edi, [ebp - 0x118]
mov dword [esp + 8], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x11c], 0x80
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getpeername]
mov edx, dword [ebp - 0x12c]
sub esp, 0xc
test eax, eax
je 0x414bc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov edi, eax
call fcn.00413750
mov dword [esp + 8], edi
mov dword [esp + 4], str.getpeername___failed_with_errno__d:__s
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.00416580
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x98]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x11c], 0x80
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getsockname]
sub esp, 0xc
test eax, eax
jne 0x414c60
lea ecx, [ebx + 0xcc]
mov eax, edi
lea edx, [ebx + 0x9e]
call fcn.00414890
test eax, eax
jne 0x414c30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov edi, eax
call fcn.00413750
mov dword [esp + 8], edi
mov dword [esp + 4], str.ssrem_inet_ntop___failed_with_errno__d:__s
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.00416580
jmp 0x414bb8
lea ecx, [ebx + 0x100]
lea edx, [ebx + 0xd0]
lea eax, [ebp - 0x98]
call fcn.00414890
test eax, eax
je 0x414c94
nop
lea esi, [esi]
mov dword [esp], ebx
call fcn.00414a10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov edi, eax
call fcn.00413750
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], str.getsockname___failed_with_errno__d:__s
mov dword [esp + 0xc], eax
call fcn.00416580
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov edi, eax
call fcn.00413750
mov dword [esp + 8], edi
mov dword [esp + 4], str.ssloc_inet_ntop___failed_with_errno__d:__s
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.00416580
jmp 0x414bb8
Function at 0x414cd0
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0xc4
mov eax, dword [0x473284]
mov dword [ebp - 0xa8], 0x4020
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 4
test eax, eax
mov edx, eax
je 0x414d90
cmp edx, 2
je 0x414d51
lea eax, [ebp - 0xa0]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xa4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x1001
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getsockopt]
sub esp, 0x14
test eax, eax
jne 0x414d56
mov eax, dword [ebp - 0xa8]
cmp dword [ebp - 0xa4], eax
jle 0x414d56
mov edi, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0xa8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 4
mov dword [esp + 8], 0x1001
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, dword [ebp - 4]
sub esp, 0x14
leave
ret
lea edx, [ebp - 0x9c]
mov ecx, 0x25
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [0x473284], 1
mov dword [ebp - 0x9c], 0x94
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
sub esp, 4
test eax, eax
je 0x414de0
cmp dword [ebp - 0x98], 5
jbe 0x414de0
mov dword [0x473284], 2
jmp 0x414d51
mov edx, dword [0x473284]
jmp 0x414d07

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

Disassembly:
push ebp
mov eax, 0xffffffff
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x5c8]
test esi, esi
je 0x414e4b
mov edx, dword [ebx + 0x44]
test edx, edx
je 0x414e4b
lea eax, [ebp - 0x10]
mov dword [esp + 8], 0x4147e0
mov dword [esp + 4], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0
mov dword [esp], eax
call fcn.00423610
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x414e52
mov dword [ebx + 0x5c8], 0
mov eax, 0xffffffff
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x414e5e
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [esi + 0x158]
mov ebx, dword [esi + 0x138]
test eax, eax
jne 0x414e46
lea eax, [ebp - 0x11]
mov dword [esp + 0xc], 2
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_recv]
mov edx, eax
sub esp, 0x10
test edx, edx
mov eax, ebx
je 0x414e46
jmp 0x414e4b
Function at 0x416100
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
mov ebx, eax
sub esp, 0x24
mov eax, dword [eax + 0x1d8]
test eax, eax
je 0x416140
mov esi, dword [ebx + 0x164]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], esi
call eax
mov esi, eax
add esp, 0x24
mov eax, esi
pop ebx
pop esi
ret
xor esi, esi
cmp edx, 2
ja 0x416132
mov eax, dword [ebx + 0x160]
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], eax
lea eax, [edx + edx*2 + 0x4671a0]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x160]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
add esp, 0x24
mov eax, esi
pop ebx
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
cmp eax, 0xffffffff
je 0x416280
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
xor eax, eax
leave
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
leave
mov edx, eax
mov eax, 0x51
cmp edx, 0x2733
mov edx, 0x38
cmovne eax, edx
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [esi + eax*4 + 0x138]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
sub esp, 0x10
cmp ebx, 0xffffffff
mov dword [eax], 0
je 0x416692
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov edi, eax
je 0x4166e0
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00413750
mov dword [esp + 4], str.Send_failure:__s
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00416580
mov eax, dword [esi]
mov dword [eax + 0x8604], edi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x18]
xor ebx, ebx
mov dword [eax], 0x51
jmp 0x416688
Function at 0x422b80
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x3b4]
test eax, eax
je 0x422cf0
mov eax, dword [esi + 0x4a0]
test eax, eax
je 0x422bb3
mov dword [esp], esi
call fcn.00422640
mov dword [esp + 8], 2
mov dword [esp + 4], 2
mov dword [esp], esi
call fcn.00425db0
mov ebx, dword [esi + 0x4a8]
mov edi, dword [esi + 0x3b4]
test ebx, ebx
je 0x422be2
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x422c20
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x422c04
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x4a8]
test eax, eax
je 0x422bfc
cmp edx, dword [eax + 0x18]
je 0x422c04
mov dword [esp], edx
call fcn.00422ab0
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 2
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00425e10
lea edx, [ebx + 0xc]
mov eax, ebx
call fcn.004216e0
mov dword [esp + 4], edi
mov dword [esp], 0x467dfd
call sym.curl.exe_curl_strequal
test eax, eax
je 0x422d50
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0x1c], 1
lea edi, [eax + 0x20]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x87
mov dword [esp + 4], 1
mov dword [esp], str._Netscape_HTTP_Cookie_File_n_http:__curl.haxx.se_docs_http_cookies.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebx]
test ebx, ebx
jne 0x422ca7
jmp 0x422d31
mov dword [esp + 8], eax
mov dword [esp + 4], 0x467eb1
mov dword [esp], edi
call sym.curl.exe_curl_mfprintf
mov dword [esp], ebp
call dword [0x451010]
mov ebx, dword [ebx]
test ebx, ebx
je 0x422d31
mov eax, ebx
call fcn.004215e0
test eax, eax
mov ebp, eax
jne 0x422c80
mov dword [esp + 4], str._n_Fatal_libcurl_error_n
mov dword [esp], edi
call sym.curl.exe_curl_mfprintf
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x422d77
mov eax, dword [esi + 0x3b4]
mov dword [esp + 4], str.WARNING:_failed_to_save_cookies_in__s_n
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00416500
jmp 0x422be2
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x422d14
mov eax, dword [esi + 0x4a0]
test eax, eax
je 0x422d14
mov dword [esp], eax
call sym.curl.exe_curl_slist_free_all
mov dword [esi + 0x4a0], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 2
mov dword [esp], esi
call fcn.00425db0
jmp 0x422be2
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x422be2
mov dword [esp], edi
call sub.msvcrt.dll_fclose
jmp 0x422be2
mov dword [esp], edi
mov dword [esp + 4], 0x467e0d
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x422cd0
mov dword [esp + 0x1c], 0
jmp 0x422c52
mov dword [esp], edi
call sub.msvcrt.dll_fclose
jmp 0x422cd0
Function at 0x424d50
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
sub esp, 0x10
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x424eb6
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x424ef6
xor esi, esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], esi
jmp 0x424dc5
cmp eax, 0x17
mov esi, 0x1c
je 0x424dd2
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
je 0x424e90
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x424db0
mov esi, 0x10
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x424dba
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x424dba
cmp esi, eax
ja 0x424dba
mov dword [esp], 0x20
call dword [0x451014]
test eax, eax
mov edi, eax
je 0x424eea
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x10], esi
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], 0
mov dword [esp], esi
call dword [0x451014]
test eax, eax
mov dword [edi + 0x18], eax
je 0x424ed5
mov edx, dword [ebx + 0x18]
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x424e6b
mov dword [esp], eax
call dword [0x451008]
test eax, eax
mov dword [edi + 0x14], eax
je 0x424f11
mov eax, dword [ebp - 0x2c]
test eax, eax
cmove eax, edi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x424ecd
mov dword [eax + 0x1c], edi
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x30], edi
test ebx, ebx
jne 0x424dc5
nop
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x424ea6
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
sub esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x424ec1
test esi, esi
je 0x424ef6
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
xor esi, esi
call fcn.00424d00
jmp 0x424eb1
mov dword [ebp - 0x30], edi
jmp 0x424dba
mov esi, dword [ebp - 0x2c]
mov dword [esp], edi
call dword [0x451010]
mov dword [ebp - 0x34], 8
jmp 0x424e93
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], 8
jmp 0x424e93
mov dword [esp], 0x2af9
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [ebp - 0x34], 0x2af9
sub esp, 4
jmp 0x424eb1
mov eax, dword [edi + 0x18]
mov esi, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [0x451010]
mov dword [esp], edi
call dword [0x451010]
mov dword [ebp - 0x34], 8
jmp 0x424e93
Function at 0x425380
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp], 0
mov dword [esp + 8], eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
xor edx, edx
lea ecx, [eax - 1]
cmp ecx, 0xfffffffd
cmovbe edx, eax
add esp, 0x2c
mov eax, edx
ret

Function at 0x4254c0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x224], 2
je 0x4254d3
mov eax, 1
ret
jmp fcn.00425440
Function at 0x42bbb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0xbc
mov edx, dword [eax + 0x13c]
lea ecx, [ebp - 0x9c]
mov esi, dword [eax]
lea edi, [ebp - 0x98]
mov dword [esp + 8], ecx
mov dword [ebp - 0xb0], ecx
mov dword [esp], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0x9c], 0x80
mov dword [esp + 4], edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov edx, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
sub esp, 0xc
test eax, eax
je 0x42bc35
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00414ea0
mov dword [esp], esi
mov dword [esp + 4], str.Error_accept__ing_server_connect
call fcn.00416580
lea esp, [ebp - 0xc]
mov eax, 0x1e
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], edx
mov dword [ebp - 0x9c], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov edx, dword [ebp - 0xac]
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00414ea0
cmp edi, 0xffffffff
je 0x42bc18
mov dword [esp + 4], str.Connection_accepted_from_server_n
mov dword [esp], esi
call fcn.00416500
mov dword [ebx + 0x13c], edi
mov dword [esp + 4], 1
mov dword [esp], edi
call fcn.00413d80
mov dword [ebx + 0x144], 1
mov eax, dword [esi + 0x1e0]
test eax, eax
je 0x42bcc1
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov edx, dword [esi + 0x1e4]
mov dword [esp], edx
call eax
test eax, eax
jne 0x42bcd0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00414ea0
mov eax, 0x2a
mov dword [ebx + 0x13c], 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x42ce80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
sub esp, 0x10
cmp edx, 1
sbb ebx, ebx
and ebx, 8
add ebx, 0x41
cmp bl, byte [eax + 0x434]
je 0x42ced1
movsx eax, bl
mov dword [esp + 8], eax
lea eax, [esi + 0x3d0]
mov dword [esp + 4], str.TYPE__c
mov dword [esp], eax
call fcn.00443360
test eax, eax
jne 0x42ceca
mov dword [esi + 0x444], edi
mov byte [esi + 0x434], bl
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esi + 0x444], ecx
add esp, 0x10
mov edx, ecx
pop ebx
pop esi
pop edi
jmp fcn.0042d3e0
Function at 0x433850
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x14
mov dword [esp + 8], str.Connected_for_receive
mov dword [esp + 4], 0x46a860
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00416500
mov eax, ebx
mov dword [ebx], 1
call fcn.00433670
test eax, eax
je 0x433890
add esp, 0x14
pop ebx
pop esi
ret
add esp, 0x14
mov edx, esi
mov eax, ebx
pop ebx
pop esi
jmp fcn.00433310
Function at 0x433c70
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x14
mov dword [esp + 8], str.Connected_for_transmit
mov dword [esp + 4], 0x46a860
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00416500
mov eax, ebx
mov dword [ebx], 2
call fcn.00433670
test eax, eax
je 0x433cb0
add esp, 0x14
pop ebx
pop esi
ret
add esp, 0x14
mov edx, esi
mov eax, ebx
pop ebx
pop esi
jmp fcn.004338a0
Function at 0x445480
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
sub esp, 0x14
test eax, eax
je 0x4454e7
lea eax, [ebx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8003
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
sub esp, 0x14
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4454f0
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0xc]
lea esi, [ebp - 0x10]
mov dword [esp], esi
call fcn.00445480
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp], eax
call fcn.00413e10
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp + 8]
sub esp, 0x10
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004453a0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x44ad70
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0044add0
Function at 0x44b770
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x44b7a8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x44b79e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x44b7aa
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x44b790
xor eax, eax
pop ebx
pop esi
ret
Function at 0x450699
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov edi, dword [eax]
mov byte [ebp - 0x1a], cl
mov dword [ebp - 0x2c], ecx
mov eax, esi
mov byte [ebp - 0x19], al
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x1b], 0xff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x2c]
sub esp, 0x10
test eax, eax
jns 0x4506ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 4], str.Sending_data_failed___d_
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00416580
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov edx, str.SENT
mov dword [esp], esi
call fcn.00450578
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x450a89
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov edi, dword [eax]
cmp edx, 0x1f
mov ebx, dword [edi + 0x15c]
jne 0x450c92
lea eax, [ebx + 0x1cb0]
mov dword [ebp - 0x2c], eax
lea edx, [ebx + 0x1eb0]
lea eax, [ebx + 0x1cb1]
cmp edx, eax
mov dword [ebx + 0x1eb0], eax
mov byte [ebx + 0x1cb0], 0xff
jbe 0x450ade
lea eax, [ebx + 0x1cb2]
mov dword [ebx + 0x1eb0], eax
mov byte [ebx + 0x1cb1], 0xfa
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x450af4
lea ecx, [eax + 1]
mov dword [ebx + 0x1eb0], ecx
mov byte [eax], 0x1f
mov ecx, dword [sym.imp.WS2_32.dll_htons]
movzx eax, word [ebx + 0x1ca8]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
mov dword [esp], eax
call ecx
mov ecx, dword [ebp - 0x30]
push edx
mov word [ebp - 0x1c], ax
movzx eax, word [ebx + 0x1caa]
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x34]
push ecx
mov word [ebp - 0x1a], ax
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x450b40
lea ecx, [eax + 1]
mov dword [ebx + 0x1eb0], ecx
mov cl, byte [ebp - 0x1c]
mov byte [eax], cl
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x450b58
lea ecx, [eax + 1]
mov dword [ebx + 0x1eb0], ecx
mov cl, byte [ebp - 0x1b]
mov byte [eax], cl
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x450b70
lea ecx, [eax + 1]
mov dword [ebx + 0x1eb0], ecx
mov cl, byte [ebp - 0x1a]
mov byte [eax], cl
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x450b88
lea ecx, [eax + 1]
mov dword [ebx + 0x1eb0], ecx
mov cl, byte [ebp - 0x19]
mov byte [eax], cl
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x450b9e
lea ecx, [eax + 1]
mov dword [ebx + 0x1eb0], ecx
mov byte [eax], 0xff
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x450bb4
lea edx, [eax + 1]
mov dword [ebx + 0x1eb0], edx
mov byte [eax], 0xf0
mov eax, dword [ebx + 0x1eb0]
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x1eb4], eax
mov dword [ebx + 0x1eb0], ecx
cmp dword [edi + 0x34c], 0
je 0x450bed
sub eax, dword [ebp - 0x2c]
mov edx, 0x3e
lea ecx, [ebx + 0x1cb2]
sub eax, 2
mov dword [esp], eax
mov eax, edi
call fcn.00450716
mov eax, dword [ebp - 0x2c]
mov edx, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], eax
mov eax, dword [esi + 0x138]
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
call edx
sub esp, 0x10
test eax, eax
jns 0x450c39
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 4], str.Sending_data_failed___d_
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00416580
lea edx, [ebx + 0x1cb3]
mov ecx, 4
mov eax, esi
add ebx, 0x1cb7
call fcn.0042ffc0
mov eax, dword [esi + 0x138]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebp - 0x2c]
sub esp, 0x10
test eax, eax
jns 0x450c92
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 4], str.Sending_data_failed___d_
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00416580
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret