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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e638
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x67d5bc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x34], str.CRealAg
mov dword [ebp - 0x30], str.Initi
mov dword [ebp - 0x2c], eax
call fcn.004ebfc1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov ecx, 0xa
mov esi, ebx
mov edi, 0x67d5ac
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.00434340
mov edi, dword [ebp - 0x38]
mov ecx, dword [0x67d5c8]
add esp, 4
lea esi, [edi + 8]
mov dword [ebp - 0x20], 0x17c16a9f
mov dword [ebp - 0x1c], 0x4ac5bc38
mov dword [ebp - 0x18], 0xfe366992
mov dword [ebp - 0x14], 0x31b5d39a
mov dword [esi], 0
test ecx, ecx
je 0x461228
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
push esi
lea eax, [ebp - 0x20]
push eax
call edx
cmp dword [esi], 0
jne 0x461288
push str.error_QueryFileClientInterface
push str.RealLogAgent
push 0x67eba0
call fcn.004ebec7
add esp, 0xc
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp dword [ebp - 0x24], 0
je 0x461274
mov ecx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
push str._s_running_time
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004ebdf1
add esp, 0x14
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.004f5a61
or eax, 0xffffffff
jmp 0x4612d5
mov ecx, dword [esi]
mov edx, dword [ecx]
lea eax, [edi + 4]
push eax
mov eax, dword [edx]
call eax
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp dword [ebp - 0x24], 0
je 0x4612c4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
push eax
push ecx
push str._s_running_time
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.004ebdf1
add esp, 0x14
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.004f5a61
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret 4
Function at 0x4616b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push edi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push str.DNSAPI.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DnsGetCacheDataTable
push eax
mov dword [esi + 0xc], eax
call edi
mov ecx, dword [esi + 0xc]
push str.DnsFree
push ecx
mov dword [esi], eax
call edi
mov edx, dword [esi + 0xc]
push str.DnsQuery_W
push edx
mov dword [esi + 4], eax
call edi
mov ecx, dword [ebp - 4]
mov dword [esi + 8], eax
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00534bba
mov esp, ebp
pop ebp
ret
Function at 0x463900
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e8a3
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x676300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x10], 0
mov word [ebp - 0xf], ax
mov byte [ebp - 0xd], al
mov dword [ebp + 8], eax
test ebx, ebx
je 0x463a78
test bl, 1
je 0x463a58
lea ecx, [edi + 4]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x463963
call fcn.004f0b18
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
lea ebx, [edi + 0x1c]
push ecx
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00463760
mov esi, dword [ebp - 0x18]
cmp esi, dword [edi + 0x20]
je 0x4639b2
mov ecx, dword [esi + 0x10]
call fcn.004630b0
mov edi, dword [esi + 0x10]
test edi, edi
je 0x4639a3
mov ecx, edi
call fcn.004634b0
push edi
call fcn.00535f7c
add esp, 4
push esi
lea edx, [ebp - 0x24]
push edx
mov ecx, ebx
call fcn.005159e0
mov edi, dword [ebp - 0x1c]
mov al, byte [ebp + 8]
push 2
lea ecx, [ebp - 0x10]
add al, 0x41
push 0x65c954
push ecx
mov byte [ebp - 0x10], al
call fcn.00537b90
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, edi
mov esi, eax
call fcn.00463620
test eax, eax
je 0x463a45
cmp dword [ebp + 0xc], 0
jne 0x463a45
cmp esi, 2
jne 0x463a45
push 0x1e8
call fcn.00535efc
add esp, 4
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x463a16
mov ecx, dword [ebp + 8]
push ecx
mov ecx, eax
call fcn.00463420
mov esi, eax
jmp 0x463a18
xor esi, esi
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.00463610
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], esi
call fcn.0050aa70
push eax
lea ecx, [ebp - 0x38]
push ecx
mov ecx, ebx
call fcn.00530df0
lea ecx, [edi + 4]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x463a58
call fcn.004f0b20
mov ebx, dword [ebp - 0x14]
shr ebx, 1
push 1
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, 0x1a
jl 0x463943
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x464460
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push eax
push 0
push 0
push Ordinal_4
push Ordinal_4
push Ordinal_4
push Ordinal_4
push 0
push str.rzxc_avtive_info
push str.rzxc_avtive_info
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x67d5dc], eax
test eax, eax
jne 0x4644a2
pop ebp
ret 4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop ebp
ret 4
Function at 0x464790
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x18]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10c], ebx
test eax, eax
je 0x46489c
cmp dword [esi + 0x30], ebx
je 0x46489c
cmp eax, 2
jne 0x4647d3
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], eax
jmp 0x4647d9
lea ebx, [ebp - 0x108]
xor eax, eax
mov dword [ebp - 0x108], eax
push edi
cmp eax, 0x40
jae 0x4647f7
mov ecx, dword [esi + 8]
mov dword [ebp + eax*4 - 0x104], ecx
inc dword [ebp - 0x108]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
lea ecx, [ebp - 0x114]
push ecx
push 0
mov dword [ebp - 0x114], edx
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x110], eax
mov eax, dword [esi + 8]
push edx
push ebx
inc eax
push eax
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x46484c
test eax, eax
jg 0x464885
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x30]
push ecx
push edx
push esi
call eax
mov edi, eax
add esp, 0xc
test edi, edi
je 0x46488a
mov eax, dword [ebp - 0x108]
jmp 0x4647e2
xor edi, edi
call fcn.0053b8b7
mov ecx, dword [eax]
push 0x400
push ecx
call fcn.0053b80b
mov edx, dword [esi + 0x1c]
add esp, 4
push eax
add edx, 0x44
push edx
call fcn.00537970
add esp, 0xc
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00534bba
mov esp, ebp
pop ebp
ret
Function at 0x4648b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
cmp eax, ecx
je 0x4648da
cmp eax, 1
je 0x4648da
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
cmp edi, ecx
jne 0x4648f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x464930
cmp edi, eax
jl 0x4648ff
mov edi, eax
jmp 0x464900
dec edi
mov eax, dword [esi + 4]
push edi
push 0xa
push eax
push ebx
call fcn.005693f0
add esp, 0x10
test eax, eax
je 0x464918
mov edi, eax
sub edi, ebx
add dword [ebp - 4], edi
sub dword [ebp + 0xc], edi
add ebx, edi
mov byte [ebx], 0
add dword [esi + 4], edi
sub dword [esi + 0xc], edi
test eax, eax
jne 0x4649ab
mov edi, dword [ebp + 0xc]
cmp edi, 1
je 0x4649ef
test edi, edi
je 0x464a33
mov ecx, dword [esi]
cmp ecx, dword [esi + 4]
jne 0x46495e
mov eax, dword [esi + 0x14]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x2000
cmp dword [ebp - 8], 0
jne 0x4649ff
call fcn.00464790
test eax, eax
je 0x464a33
mov edx, dword [esi + 0x10]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push 0
push edx
push eax
push ecx
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x464a16
test eax, eax
jne 0x46499b
mov dword [ebp - 8], 1
sub dword [esi + 0x10], eax
add dword [esi + 0xc], eax
add dword [esi], eax
mov edi, dword [ebp + 0xc]
jmp 0x4648f0
mov ecx, 0x57bec0
lea eax, [ebx - 2]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4649d3
test dl, dl
je 0x4649cf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4649d3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4649b3
xor eax, eax
jmp 0x4649d8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x464a33
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov word [ebx - 2], 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov byte [edx], 0
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
jne 0x464a33
pop edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [sym.RzxClient.exe_int_ftplib_debug], 0
je 0x464a2c
push str.read
call fcn.0053b900
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464a40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, eax
xor edi, edi
xor cl, cl
cmp dword [esi + 0x18], 2
je 0x464a5b
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
push ebx
mov ebx, dword [esi + 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], eax
jle 0x464b99
lea ecx, [ecx]
mov edx, dword [ebp + 8]
cmp byte [eax + edx], 0xa
jne 0x464ab0
cmp cl, 0xd
je 0x464ab0
cmp edi, 0x2000
jne 0x464aab
call fcn.00464790
test eax, eax
je 0x464b01
mov eax, dword [esi + 8]
push 0
push edi
push ebx
push eax
call sub.WS2_32.dll_send
mov edi, eax
cmp edi, 0x2000
jne 0x464b0b
mov eax, dword [ebp - 4]
xor edi, edi
mov byte [ebx + edi], 0xd
inc edi
cmp edi, 0x2000
jne 0x464add
call fcn.00464790
test eax, eax
je 0x464b01
mov ecx, dword [esi + 8]
push 0
push edi
push ebx
push ecx
call sub.WS2_32.dll_send
mov edi, eax
cmp edi, 0x2000
jne 0x464b34
mov eax, dword [ebp - 4]
xor edi, edi
mov edx, dword [ebp + 8]
mov cl, byte [eax + edx]
inc eax
mov byte [ebx + edi], cl
inc edi
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jl 0x464a70
test edi, edi
je 0x464b99
call fcn.00464790
test eax, eax
jne 0x464b5d
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [sym.RzxClient.exe_int_ftplib_debug], 0
je 0x464b8f
call fcn.0053b8b7
mov eax, dword [eax]
push eax
push edi
push str.net_write_1__returned__d__errno___d_n
call fcn.00539d83
add esp, 0xc
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [sym.RzxClient.exe_int_ftplib_debug], 0
je 0x464b8f
call fcn.0053b8b7
mov ecx, dword [eax]
push ecx
push edi
push str.net_write_2__returned__d__errno___d_n
call fcn.00539d83
add esp, 0xc
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 8]
push 0
push edi
push ebx
push edx
call sub.WS2_32.dll_send
mov esi, eax
cmp esi, edi
je 0x464b99
cmp dword [sym.RzxClient.exe_int_ftplib_debug], 0
je 0x464b8f
call fcn.0053b8b7
mov eax, dword [eax]
push eax
push esi
push str.net_write_3__returned__d__errno___d_n
call fcn.00539d83
add esp, 0xc
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x464e10
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x464e4f
push eax
push str.Network_failed_to_start:__d_n
call fcn.00535a46
add eax, 0x40
push eax
call fcn.0053593a
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
Function at 0x465270
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x18], 0
jne 0x465319
cmp dword [sym.RzxClient.exe_int_ftplib_debug], 2
jle 0x4652ad
push esi
push 0x579314
call fcn.00535a46
add eax, 0x40
push eax
call fcn.0053593a
add esp, 0xc
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4652b2
sub eax, edx
add eax, 3
cmp eax, 0x400
ja 0x465319
push esi
lea eax, [ebp - 0x404]
push str._s_r_n
push eax
call fcn.00535bfb
lea eax, [ebp - 0x404]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4652e3
push 0
sub eax, edx
mov edx, dword [edi + 8]
push eax
lea ecx, [ebp - 0x404]
push ecx
push edx
call sub.WS2_32.dll_send
test eax, eax
jg 0x465329
cmp dword [sym.RzxClient.exe_int_ftplib_debug], 0
je 0x465319
push str.write
call fcn.0053b900
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.00464bb0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 4
call fcn.00534bba
mov esp, ebp
pop ebp
ret
Function at 0x465970
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
push edi
xor edi, edi
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x118], 2
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x128], 0x1e
cmp ecx, eax
jge 0x4659bb
mov ecx, eax
lea eax, [ebp - 0x128]
push eax
push edi
push edi
lea edx, [ebp - 0x118]
push edx
inc ecx
push ecx
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x465a17
call fcn.0053b8b7
mov eax, dword [eax]
push 0x400
push eax
call fcn.0053b80b
add esp, 4
push eax
add esi, 0x44
push esi
call fcn.00537970
mov ecx, dword [ebx + 8]
add esp, 0xc
push ecx
call sub.WS2_32.dll_closesocket
mov dword [ebx + 8], edi
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
cmp eax, edi
jne 0x465a49
lea edi, [esi + 0x44]
mov ecx, 8
mov esi, str.timed_out_waiting_for_connection
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 8]
push edx
call sub.WS2_32.dll_closesocket
xor eax, eax
pop edi
mov dword [ebx + 8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x118]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x465ae9
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x120], 0x10
call sub.WS2_32.dll_accept
mov edi, eax
call fcn.0053b8b7
mov edx, dword [eax]
mov eax, dword [ebx + 8]
push eax
mov dword [ebp - 0x11c], edx
call sub.WS2_32.dll_closesocket
test edi, edi
jle 0x465ab3
mov dword [ebx + 8], edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x11c]
push 0x400
push ecx
call fcn.0053b80b
add esp, 4
push eax
add esi, 0x44
push esi
call fcn.00537970
add esp, 0xc
xor eax, eax
pop edi
mov dword [ebx + 8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
lea edx, [ebp - 0x118]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x465b27
mov ecx, dword [ebx + 8]
push ecx
call sub.WS2_32.dll_closesocket
push 0x32
mov ecx, esi
mov dword [ebx + 8], edi
call fcn.00464bb0
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
pop edi
xor ecx, ebp
pop esi
call fcn.00534bba
mov esp, ebp
pop ebp
ret
Function at 0x465b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x18], 1
je 0x465b52
xor eax, eax
pop esi
pop ebp
ret
cmp dword [esi + 0x14], 0
push edi
je 0x465b6d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, esi
call fcn.004648b0
add esp, 8
jmp 0x465b8a
call fcn.00464790
cmp eax, 1
jne 0x465bbc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 8]
push 0
push edx
push eax
push ecx
call sub.WS2_32.dll_recv
mov edi, eax
cmp edi, 0xffffffff
je 0x465bbc
add dword [esi + 0x38], edi
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x38]
test ecx, ecx
je 0x465bc9
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x465bc9
add dword [esi + 0x40], edi
cmp dword [esi + 0x40], eax
jbe 0x465bc9
mov eax, dword [esi + 0x34]
push eax
push edx
push esi
call ecx
add esp, 0xc
test eax, eax
jne 0x465bc2
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov dword [esi + 0x40], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x18], 2
je 0x465be2
xor eax, eax
pop esi
pop ebp
ret
cmp dword [esi + 0x14], 0
push edi
je 0x465bfd
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, esi
call fcn.00464a40
add esp, 8
jmp 0x465c15
call fcn.00464790
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 8]
push 0
push edx
push eax
push ecx
call sub.WS2_32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x465c22
pop edi
xor eax, eax
pop esi
pop ebp
ret
add dword [esi + 0x38], edi
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x38]
test eax, eax
je 0x465c50
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x465c50
add dword [esi + 0x40], edi
cmp dword [esi + 0x40], ecx
jbe 0x465c50
mov ecx, dword [esi + 0x34]
push ecx
push edx
push esi
call eax
add esp, 0xc
mov dword [esi + 0x40], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4665d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
push edi
mov ebx, ecx
mov dword [ebp - 0xc], 1
test eax, eax
je 0x466650
cmp ebx, 4
setne cl
dec cl
and cl, 0xfb
add cl, 0x77
mov dword [ebp - 8], 0
mov byte [ebp - 8], cl
cmp esi, 0x49
jne 0x46660c
mov byte [ebp - 7], 0x62
lea edx, [ebp - 8]
push edx
push eax
call fcn.00536808
mov edi, eax
add esp, 8
mov dword [ebp - 4], edi
test edi, edi
jne 0x466662
call fcn.0053b8b7
mov eax, dword [eax]
push 0x400
push eax
call fcn.0053b80b
mov ecx, dword [ebp + 0x10]
add esp, 4
push eax
add ecx, 0x44
push ecx
call fcn.00537970
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00535a46
cmp ebx, 4
je 0x46665d
add eax, 0x20
mov edi, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
push edx
push eax
push esi
push ebx
push ecx
call sym.RzxClient.exe_FtpAccess
add esp, 0x14
test eax, eax
jne 0x4666a3
mov esi, dword [ebp + 8]
test esi, esi
je 0x46669a
push edi
call fcn.00536f74
add esp, 4
cmp ebx, 3
jne 0x46669a
push esi
call fcn.0056947b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2000
call fcn.00535e2e
add esp, 4
cmp ebx, 4
mov ebx, dword [ebp - 0x10]
mov esi, eax
jne 0x46675f
push edi
push 0x2000
push 1
push esi
call fcn.00535632
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x4666fe
push ebx
push edi
push esi
call sym.RzxClient.exe_FtpWrite
add esp, 0xc
cmp eax, edi
jl 0x466747
mov edx, dword [ebp - 4]
push edx
push 0x2000
push 1
push esi
call fcn.00535632
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x4666d5
mov edi, dword [ebp - 4]
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x38], ecx
mov edx, dword [ebx + 0x3c]
mov dword [eax + 0x3c], edx
mov ecx, dword [ebx + 0x40]
push esi
mov dword [eax + 0x40], ecx
call fcn.00535ec2
push edi
call fcn.0053538c
add esp, 8
cmp dword [ebp + 8], 0
je 0x466734
push edi
call fcn.00536f74
add esp, 4
push ebx
call sym.RzxClient.exe_FtpClose
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push edi
push str.short_write:_passed__d__wrote__d_n
call fcn.00539d83
add esp, 0xc
mov dword [ebp - 0xc], 0
jmp 0x4666fe
push ebx
push 0x2000
push esi
call sym.RzxClient.exe_FtpRead
add esp, 0xc
test eax, eax
jle 0x466701
push edi
push eax
push 1
push esi
call fcn.00535138
add esp, 0x10
test eax, eax
je 0x46679b
push ebx
push 0x2000
push esi
call sym.RzxClient.exe_FtpRead
add esp, 0xc
test eax, eax
jg 0x466772
jmp 0x466701
cmp dword [sym.RzxClient.exe_int_ftplib_debug], 0
je 0x4667b1
push str.localfile_write
call fcn.0053b900
add esp, 4
mov dword [ebp - 0xc], 0
jmp 0x466701

Function at 0x4667c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x41
lea ecx, [eax - 0x40]
pop ebp
jmp fcn.004665d0

Function at 0x4667e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x41
lea ecx, [eax - 0x3f]
pop ebp
jmp fcn.004665d0