joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46eed4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24c
mov esi, eax
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.dll_socket
sub esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
jne 0x46ef29
mov dword [esp + 8], str.socket_failed_n
mov dword [esp + 4], 0
mov dword [esp], 0xa
call fcn.00448b72
jmp 0x46f0e6
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
mov dword [esp], ebx
call sub.WS2_32.dll_ioctlsocket
sub esp, 0xc
inc eax
setne al
movzx eax, al
dec eax
mov dword [ebp - 0x1c], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.WS2_32.dll_connect
sub esp, 0xc
inc eax
jne 0x46ef8b
call sub.WS2_32.dll_WSAGetLastError
sub eax, 0x2733
cmp eax, 1
jbe 0x46ef8b
mov dword [esp + 8], str.error_connecting_to_HTTP_server
jmp 0x46f0c6
mov dword [ebp - 0x2c], 0x3c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], 1
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], eax
lea esi, [ebp - 0x234]
mov dword [esp + 0xc], esi
lea edi, [ebp - 0x130]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
lea eax, [ebx + 1]
mov dword [esp], eax
call sub.WS2_32.dll_select
sub esp, 0x14
cmp eax, 0xffffffff
je 0x46f000
test eax, eax
jne 0x46f00d
mov dword [esp + 8], str.Connect_attempt_timed_out
jmp 0x46f0c6
mov dword [esp + 8], str.Connect_failed
jmp 0x46f0c6
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.WS2_32.dll___WSAFDIsSet
push edi
push edi
test eax, eax
jne 0x46f035
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.WS2_32.dll___WSAFDIsSet
push ecx
push ecx
test eax, eax
je 0x46f0be
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1007
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
call sub.WS2_32.dll_getsockopt
sub esp, 0x14
test eax, eax
jns 0x46f087
mov dword [esp + 8], str.getsockopt_failed_n
mov dword [esp + 4], 0
mov dword [esp], 0xa
call fcn.00448b72
jmp 0x46f0e3
cmp dword [ebp - 0x1c], 0
je 0x46f0e6
mov dword [esp + 8], str.Error_connecting_to_remote_host
mov dword [esp + 4], 0
mov dword [esp], 0xa
call fcn.00448b72
mov dword [esp], ebx
call sub.WS2_32.dll_closesocket
push edx
call sub.msvcrt.dll__errno
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
jmp 0x46f0e3
mov dword [esp + 8], str.select_failed_n
mov dword [esp + 4], 0
mov dword [esp], 0xa
call fcn.00448b72
mov dword [esp], ebx
call sub.WS2_32.dll_closesocket
push eax
or ebx, 0xffffffff
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x46f0f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, eax
mov dword [ebp - 0x3c], edx
lea esi, [ebp - 0x2c]
mov ecx, 4
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esp], ebx
call sub.WS2_32.dll_gethostbyname
push ecx
mov ebx, eax
xor edx, edx
test eax, eax
jne 0x46f192
mov dword [esp + 8], str.Failed_to_resolve_host
jmp 0x46f140
cmp word [ebx + 8], 2
jne 0x46f1ad
mov cx, word [ebx + 0xa]
cmp cx, 4
jbe 0x46f156
mov dword [esp + 8], str.address_size_mismatch_n
mov dword [esp + 4], 0
mov dword [esp], 0xa
call fcn.00448b72
jmp 0x46f1ad
movsx ecx, cx
mov edi, dword [ebp - 0x4c]
rep movsb byte es:[edi], byte [esi]
mov word [ebp - 0x2c], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [ebp - 0x40], edx
call sub.WS2_32.dll_htons
push edx
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x2c]
call fcn.0046eed4
mov edx, dword [ebp - 0x40]
add edx, 4
cmp eax, 0xffffffff
je 0x46f19f
jmp 0x46f1b0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
movzx eax, word [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + edx]
test esi, esi
jne 0x46f127
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x46f1b8
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov ebx, eax
mov esi, edx
mov dword [ebp - 0x12c], ecx
test edx, edx
je 0x46f2b2
test byte [eax + 0x18], 1
je 0x46f2b2
xor edi, edi
jmp 0x46f2a4
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x12c]
sub eax, edi
mov dword [esp + 8], eax
lea eax, [esi + edi]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
test eax, eax
jle 0x46f21b
add edi, eax
jmp 0x46f2a4
inc eax
jne 0x46f256
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0xb
je 0x46f256
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x46f256
mov dword [esp + 8], str.send_failed_n
mov dword [esp + 4], 0
mov dword [esp], 0xa
call fcn.00448b72
test edi, edi
jne 0x46f2b9
jmp 0x46f2b6
mov dword [ebp - 0x20], 0x3c
mov dword [ebp - 0x1c], 0
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], 1
lea edx, [ebp - 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
lea edx, [ebp - 0x124]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
inc eax
mov dword [esp], eax
call sub.WS2_32.dll_select
sub esp, 0x14
cmp edi, dword [ebp - 0x12c]
jl 0x46f1e7
jmp 0x46f2b9
xor edi, edi
jmp 0x46f2b9
or edi, 0xffffffff
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x46f4c5
Capabilities:
Initialize winsock library
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
cmp dword [0x6d9700], 0
jne 0x46f553
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
mov dword [esp], 0x101
call sub.WS2_32.dll_WSAStartup
push edx
push edx
test eax, eax
jne 0x46f553
cmp dword [0x6d96f8], 0
jne 0x46f549
mov dword [0x6d96fc], 0x50
mov dword [esp], 0x66c723
call sub.msvcrt.dll_getenv
test eax, eax
je 0x46f521
cmp byte [eax], 0x2a
jne 0x46f521
cmp byte [eax + 1], 0
je 0x46f549
mov dword [esp], str.http_proxy
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x46f541
mov dword [esp], str.HTTP_PROXY
call sub.msvcrt.dll_getenv
test eax, eax
je 0x46f549
mov dword [esp], eax
call sym.evasi0n_gui.exe_xmlNanoHTTPScanProxy
mov dword [0x6d9700], 1
leave
ret
Function at 0x47029c
Capabilities:
Receive data
Receive data on socket
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, eax
or eax, 0xffffffff
test ebx, ebx
je 0x4704b0
cmp dword [ebx + 0x2c], 0xffffffff
je 0x4704b0
lea eax, [ebx + 0x3c]
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x2c], 0xffffffff
je 0x4704ad
mov eax, dword [ebx + 0x440]
cmp eax, 0x400
ja 0x4704ad
mov edx, dword [ebx + 0x444]
cmp edx, 0x400
ja 0x4704ad
cmp eax, edx
jg 0x4704ad
test eax, eax
je 0x470329
sub edx, eax
mov dword [esp + 8], edx
add eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebx + 0x440]
sub dword [ebx + 0x444], eax
mov dword [ebx + 0x440], 0
xor eax, eax
mov edx, 0x400
sub edx, dword [ebx + 0x444]
je 0x4703ab
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x440]
lea eax, [ebx + eax + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
test eax, eax
jns 0x470398
mov dword [esp + 8], str.recv_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00448b72
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push eax
mov dword [ebx + 0x2c], 0xffffffff
jmp 0x4704ad
mov edx, dword [ebx + 0x444]
add edx, eax
mov dword [ebx + 0x444], edx
mov byte [ebx + edx + 0x3c], 0
mov edx, dword [ebx + 0x444]
or eax, edx
je 0x4704ad
mov eax, dword [ebx + 0x440]
lea ecx, [ebx + eax + 0x3c]
lea esi, [ebx + edx + 0x3c]
mov edi, edx
jmp 0x4704a0
mov eax, esi
sub eax, ecx
cmp eax, 2
jle 0x47048b
mov al, byte [ecx]
mov byte [ebp - 0x29], al
mov dl, al
sub edx, 0x30
cmp dl, 9
ja 0x47048b
mov dl, byte [ecx + 1]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x47048b
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
mov al, byte [ecx + 2]
mov byte [ebp - 0x19], al
sub eax, 0x30
cmp al, 9
ja 0x47048b
mov eax, dword [ebp - 0x24]
cmp byte [eax + 1], 0x2d
je 0x47048b
movsx edx, dl
movsx eax, byte [ebp - 0x29]
sub eax, 0x30
imul eax, eax, 0xa
lea eax, [edx + eax - 0x30]
movsx edx, byte [ebp - 0x19]
imul eax, eax, 0xa
lea eax, [edx + eax - 0x30]
test eax, eax
je 0x47048b
mov dword [ebp - 0x20], eax
add ecx, 3
lea edx, [ebx + 0x3c]
mov edi, ecx
sub edi, edx
mov dword [ebx + 0x448], edi
jmp 0x47044e
inc ecx
cmp ecx, esi
jae 0x470457
cmp byte [ecx], 0xa
jne 0x47044d
mov dword [ebp - 0x20], eax
xor eax, eax
cmp byte [ecx], 0xa
sete al
mov esi, eax
add ecx, esi
xor eax, eax
cmp byte [ecx], 0xd
sete al
mov esi, eax
add ecx, esi
sub ecx, edx
mov dword [ebx + 0x440], ecx
mov ecx, 0x64
mov eax, dword [ebp - 0x20]
cdq
idiv ecx
jmp 0x4704b0
cmp ecx, esi
jae 0x470495
cmp byte [ecx], 0xa
lea ecx, [ecx + 1]
jne 0x470487
jmp 0x4704a0
mov dword [ebx + 0x440], edi
jmp 0x4702c2
cmp ecx, esi
jb 0x4703ce
jmp 0x4702c2
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x4708a6
Capabilities:
Initialize winsock library
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
cmp dword [0x6d9718], 0
jne 0x47096f
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
mov dword [esp], 0x101
call sub.WS2_32.dll_WSAStartup
push edx
push edx
test eax, eax
jne 0x47096f
mov dword [0x6d9708], 0x15
mov dword [esp], str.no_proxy
call sub.msvcrt.dll_getenv
test eax, eax
je 0x470901
cmp byte [eax], 0x2a
jne 0x470901
cmp byte [eax + 1], 0
je 0x47096f
mov dword [esp], str.ftp_proxy
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x470921
mov dword [esp], str.FTP_PROXY
call sub.msvcrt.dll_getenv
test eax, eax
je 0x470929
mov dword [esp], eax
call sym.evasi0n_gui.exe_xmlNanoFTPScanProxy
mov dword [esp], str.ftp_proxy_user
call sub.msvcrt.dll_getenv
test eax, eax
je 0x470947
mov dword [esp], eax
call dword [sym.evasi0n_gui.exe_xmlMemStrdup]
mov dword [0x6d970c], eax
mov dword [esp], str.ftp_proxy_password
call sub.msvcrt.dll_getenv
test eax, eax
je 0x470965
mov dword [esp], eax
call dword [sym.evasi0n_gui.exe_xmlMemStrdup]
mov dword [0x6d9710], eax
mov dword [0x6d9718], 1
leave
ret

Function at 0x470ab4
Capabilities:
Receive data
Receive data on socket
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
leave
jmp fcn.0047029c

Function at 0x470ac3
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x130
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
test esi, esi
je 0x470b63
mov eax, dword [esi + 0x2c]
cmp eax, 0xffffffff
je 0x470b63
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], 1
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea edx, [ebp - 0x114]
mov dword [esp + 4], edx
inc eax
mov dword [esp], eax
call sub.WS2_32.dll_select
sub esp, 0x14
cmp eax, 0xffffffff
je 0x470b3c
xor ebx, ebx
test eax, eax
je 0x470b63
jmp 0x470b5a
mov dword [esp + 8], str.select
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00448b72
jmp 0x470b63
mov eax, esi
call fcn.0047029c
mov ebx, eax
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov edx, dword [ebp + 8]
or ebx, 0xffffffff
test edx, edx
je 0x470c07
cmp dword [edx + 0x2c], 0xffffffff
je 0x470c07
mov dword [esp + 8], str.QUIT_r_n
mov dword [esp + 4], 0xc8
lea esi, [ebp - 0xe0]
mov dword [esp], esi
mov dword [ebp - 0xec], edx
call fcn.00597a20
xor eax, eax
mov ecx, ebx
mov edi, esi
repne scasb al, byte es:[edi]
mov ebx, ecx
not ebx
dec ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov edx, dword [ebp - 0xec]
mov eax, dword [edx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov ebx, eax
test eax, eax
jns 0x470c05
mov dword [esp + 8], str.send_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00448b72
jmp 0x470c07
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x47127d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1bc
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
test ebx, ebx
je 0x471346
cmp dword [ebx + 0x2c], 0xffffffff
je 0x471346
xor eax, eax
test edx, edx
je 0x471346
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.CWD__s_r_n
mov dword [esp + 4], 0x190
lea esi, [ebp - 0x1a8]
mov dword [esp], esi
call fcn.00597a20
mov byte [ebp - 0x19], 0
xor eax, eax
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
test eax, eax
jns 0x47132c
mov dword [esp + 8], str.send_failed
mov dword [esp + 4], 0
mov dword [esp], 9
mov dword [ebp - 0x1ac], eax
call fcn.00448b72
mov eax, dword [ebp - 0x1ac]
jmp 0x471346
mov dword [esp], ebx
call sym.evasi0n_gui.exe_xmlNanoFTPGetResponse
mov edx, eax
or eax, 0xffffffff
cmp edx, 4
je 0x471346
xor eax, eax
cmp edx, 2
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1bc
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
or esi, 0xffffffff
test ebx, ebx
je 0x471429
test eax, eax
je 0x471426
cmp dword [ebx + 0x2c], 0xffffffff
sete byte [ebp - 0x1a9]
je 0x471426
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.DELE__s_r_n
mov dword [esp + 4], 0x190
lea edx, [ebp - 0x1a8]
mov dword [esp], edx
mov dword [ebp - 0x1b0], edx
call fcn.00597a20
mov byte [ebp - 0x19], 0
mov edx, dword [ebp - 0x1b0]
mov ecx, esi
mov edi, edx
mov al, byte [ebp - 0x1a9]
repne scasb al, byte es:[edi]
mov esi, ecx
not esi
dec esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov esi, eax
test eax, eax
jns 0x471409
mov dword [esp + 8], str.send_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00448b72
jmp 0x471429
mov dword [esp], ebx
call sym.evasi0n_gui.exe_xmlNanoFTPGetResponse
or esi, 0xffffffff
cmp eax, 4
je 0x471429
cmp eax, 2
sete al
movzx eax, al
mov esi, eax
jmp 0x471429
or esi, 0xffffffff
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x4717b2
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x230
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
test ebx, ebx
je 0x4718a0
cmp dword [ebx + 0x2c], 0xffffffff
je 0x4718a0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push edx
mov dword [ebx + 0x30], 0xffffffff
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0xc], 0
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], 1
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x218]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
lea edx, [ebp - 0x114]
mov dword [esp + 4], edx
inc eax
mov dword [esp], eax
call sub.WS2_32.dll_select
sub esp, 0x14
cmp eax, 0
jge 0x471862
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push eax
mov dword [ebx + 0x2c], 0xffffffff
jmp 0x4718a0
jne 0x47187b
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push esi
mov dword [ebx + 0x2c], 0xffffffff
xor esi, esi
jmp 0x4718a0
mov dword [esp], ebx
call sym.evasi0n_gui.exe_xmlNanoFTPGetResponse
xor esi, esi
cmp eax, 2
je 0x4718a0
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push ecx
mov dword [ebx + 0x2c], 0xffffffff
or esi, 0xffffffff
mov eax, esi
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
Function at 0x471f38
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x15c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14c], 0xffffffff
test ebx, ebx
je 0x4720c8
cmp dword [ebp + 0xc], 0
jne 0x471f69
cmp dword [ebx + 0xc], 0
je 0x4720c8
mov dword [esp], ebx
call sym.evasi0n_gui.exe_xmlNanoFTPGetConnection
mov dword [ebx + 0x30], eax
mov dword [ebp - 0x14c], 0xffffffff
inc eax
je 0x4720c8
mov dword [esp + 8], str.TYPE_I_r_n
mov dword [esp + 4], 0x12c
lea esi, [ebp - 0x144]
mov dword [esp], esi
call fcn.00597a20
xor eax, eax
mov ecx, dword [ebp - 0x14c]
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
test eax, eax
jns 0x471ff2
mov dword [esp + 8], str.send_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00448b72
jmp 0x471ffe
mov eax, ebx
call fcn.0047029c
cmp eax, 2
je 0x472016
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push edx
mov dword [ebx + 0x30], 0xffffffff
jmp 0x4720c8
cmp dword [ebp + 0xc], 0
jne 0x472021
mov eax, dword [ebx + 0xc]
jmp 0x472024
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.RETR__s_r_n
mov dword [esp + 4], 0x12c
mov dword [esp], esi
call fcn.00597a20
mov byte [ebp - 0x19], 0
lea edx, [ebp - 0x144]
xor eax, eax
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
test eax, eax
jns 0x472099
mov dword [esp + 8], str.send_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00448b72
mov eax, dword [ebx + 0x30]
jmp 0x4720a6
mov eax, ebx
call fcn.0047029c
dec eax
mov eax, dword [ebx + 0x30]
je 0x4720c2
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push eax
mov dword [ebx + 0x30], 0xffffffff
mov dword [ebp - 0x14c], 0xffffffff
jmp 0x4720c8
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x4720d6
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, 0x113c
call fcn.00596604
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
or esi, 0xffffffff
test ebx, ebx
je 0x472245
test eax, eax
jne 0x472105
cmp dword [ebx + 0xc], 0
je 0x472245
or esi, 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x472245
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.evasi0n_gui.exe_xmlNanoFTPGetSocket
inc eax
je 0x472245
xor esi, esi
lea edi, [ebp - 0x1124]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], 1
lea edx, [ebp - 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea edx, [ebp - 0x124]
mov dword [esp + 4], edx
inc eax
mov dword [esp], eax
call sub.WS2_32.dll_select
sub esp, 0x14
cmp eax, 0
jl 0x47220a
jne 0x4721b5
mov dword [esp], ebx
call sym.evasi0n_gui.exe_xmlNanoFTPCheckResponse
test eax, eax
js 0x47220a
cmp eax, 2
jne 0x472233
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push esi
mov dword [ebx + 0x30], 0xffffffff
xor esi, esi
jmp 0x472245
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
mov esi, eax
test eax, eax
jns 0x472222
mov dword [esp + 8], str.recv_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00448b72
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [ebp + 0xc]
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push ecx
mov dword [ebx + 0x30], 0xffffffff
or esi, 0xffffffff
jmp 0x472245
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov edx, dword [ebp + 0x10]
mov dword [esp], edx
call dword [ebp + 0xc]
test esi, esi
jne 0x47212d
mov dword [esp], ebx
call sym.evasi0n_gui.exe_xmlNanoFTPCloseConnection
mov esi, eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
or ebx, 0xffffffff
test esi, esi
je 0x4722c6
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x4722c6
or ebx, 0xffffffff
test edx, edx
je 0x4722c6
xor ebx, ebx
test ecx, ecx
jle 0x4722c6
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
mov ebx, eax
cmp eax, 0
jg 0x4722c6
je 0x4722be
mov dword [esp + 8], str.recv_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00448b72
mov dword [esp], esi
call sym.evasi0n_gui.exe_xmlNanoFTPCloseConnection
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret