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

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test esi, esi
je 0x4061a6
test byte [0xa3d055], 1
je 0x4061a6
mov ebp, dword [0xa3d058]
test ebp, ebp
je 0x4061cb
dec ebp
mov dword [0xa3d058], ebp
push edx
push ebx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x4061b4
push edx
push ebx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test esi, esi
je 0x40621e
push eax
push ebx
push edi
push esi
push str.RECV__s:_d_recv__lu____ld_n
mov esi, eax
call fcn.00405c90
mov eax, esi
add esp, 0x14
jmp 0x40621e
push str.recv
push edi
push esi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.00405c90
add esp, 0x10
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.recv
push edi
push esi
push str.LIMIT__s:_d__s_reached_memlimit_n
push eax
call fcn.0040b510
add esp, 0x14
push dword [0xa3d050]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
mov eax, 0xffffffff
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x414d20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
call fcn.0041c2b0
add esp, 4
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
add esp, 4
mov edi, eax
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
add esp, 4
mov esi, eax
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x414db2
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
nop dword [eax]
mov eax, esp
push eax
call fcn.0041c2b0
sub esp, 0x1c
movups xmm0, xmmword [esp + 0x30]
movups xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [esp + 0x20]
movups xmmword [esp], xmm0
call fcn.0041c390
add esp, 0x20
cmp eax, 0x3e9
sbb edx, 0
jae 0x414dd8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x414d70
test edi, edi
je 0x414dbf
push edi
call fcn.00786dc0
add esp, 4
xor edi, edi
test esi, esi
je 0x414dce
push esi
call fcn.00786dc0
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test edi, edi
je 0x414de5
push edi
call fcn.00786dc0
add esp, 4
mov edi, 1
test esi, esi
jne 0x414dc5
jmp 0x414dce
Function at 0x41b6c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
push esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test ecx, ecx
sete dl
test eax, eax
sete dh
or dh, dl
jne 0x41b705
mov dh, byte [ecx]
test dh, dh
je 0x41b710
inc ecx
nop
movzx esi, byte [eax]
test esi, esi
setne dl
je 0x41b712
movzx edi, dh
mov dh, byte [edi + 0x8f8928]
cmp dh, byte [esi + 0x8f8928]
jne 0x41b720
inc eax
mov dh, byte [ecx]
inc ecx
test dh, dh
jne 0x41b6e0
jmp 0x41b712
or ecx, eax
sete al
movzx eax, al
pop esi
pop edi
ret
mov dl, 1
cmp byte [eax], 0
setne al
xor al, dl
movzx eax, al
pop esi
pop edi
ret
xor eax, eax
movzx eax, al
pop esi
pop edi
ret

Function at 0x41bfd0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
test byte [esp + 0x194], 2
jne 0x41c042
push str.iphlpapi.dll
call fcn.0041c080
add esp, 4
mov dword [0xa3d064], eax
test eax, eax
je 0x41c00b
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c00b
mov dword [0xa3d060], eax
sub esp, 0x14
movaps xmm0, xmmword [0x8fa450]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 3
call fcn.00426010
add esp, 0x14
mov byte [0xa3d068], al
push 0xa3d070
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add esp, 0x190
ret
mov eax, esp
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41c060
mov eax, 2
add esp, 0x190
ret
cmp word [esp], 0x202
je 0x41bfe0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
Function at 0x41c080
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edi, edi
test eax, eax
je 0x41c192
mov ebx, eax
mov ebp, dword [esp + 0x14]
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x8fa494
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
add esp, 8
test eax, eax
je 0x41c0c7
test esi, esi
je 0x41c0ea
push 8
jmp 0x41c0e0
test esi, esi
je 0x41c0f6
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c0f6
push 0x800
push 0
push ebp
call esi
jmp 0x41c194
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x41c194
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41c192
mov ebp, eax
push dword [esp + 0x14]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, ebp
inc eax
push str.system_win32.c
push 0xd9
push eax
call fcn.00405bd0
add esp, 0xc
mov ebx, eax
xor edi, edi
test eax, eax
je 0x41c17f
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41c17f
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [ebx + eax], 0x5c
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, ebx
add ecx, eax
push dword [esp + 0x14]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
test esi, esi
je 0x41c176
push 8
push 0
push ebx
call esi
jmp 0x41c17d
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push str.system_win32.c
push 0xe6
push ebx
call fcn.00405f90
add esp, 0xc
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x424740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, edx
mov edi, ecx
mov ebp, dword [esp + 0x1c]
cmp byte [esp + 0x20], 0
mov ebx, edx
jne 0x4247a1
mov dword [esp], edi
push 0x8fb55e
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
add esp, 8
lea edi, [eax + 2]
test eax, eax
cmove edi, esi
push 0x3f
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
mov ebx, eax
push 0x2f
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
test eax, eax
je 0x424869
test ebx, ebx
mov edi, dword [esp]
je 0x42487f
cmp eax, ebx
cmovb ebx, eax
xor eax, eax
test ebp, ebp
je 0x424861
movzx eax, byte [esp + 0x24]
xor al, 1
mov dword [esp], eax
nop word cs:[eax + eax]
cmp esi, ebx
jb 0x424800
movzx eax, byte [esi]
cmp eax, 0x3f
je 0x4247e0
cmp eax, 0x20
jne 0x4247e9
test byte [esp], 1
je 0x424816
push 3
push 0x8fb55a
jmp 0x424803
mov dword [esp], 0
jmp 0x424800
cmp al, 0x20
jb 0x424800
cmp eax, 0x20
je 0x424800
cmp eax, 0x7f
je 0x424800
cmp al, 0x7f
jae 0x42481f
nop dword [eax + eax]
push 1
push esi
push edi
call fcn.00446cb0
add esp, 0xc
test eax, eax
jne 0x42484b
inc esi
dec ebp
jne 0x4247c0
jmp 0x42485f
push 1
push 0x8fb51c
jmp 0x424803
mov byte [esp + 5], 0x25
mov ecx, eax
shr ecx, 4
movzx ecx, byte [ecx + 0x8fb51e]
mov byte [esp + 6], cl
and eax, 0xf
movzx eax, byte [eax + 0x8fb51e]
mov byte [esp + 7], al
push 3
lea eax, [esp + 9]
push eax
jmp 0x424803
cmp eax, 0x64
mov eax, 0x1f
mov ecx, 7
cmove ecx, eax
mov eax, ecx
jmp 0x424861
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, esi
test ebx, ebx
mov edi, dword [esp]
jne 0x42479c
push esi
mov edi, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
mov eax, edi
mov edi, dword [esp]
add ebx, esi
jmp 0x42479c
Function at 0x4372b0
Capabilities:
Set socket configuration

Disassembly:
push esi
sub esp, 0xc
mov dword [esp + 8], 0x4020
mov dword [esp], 0
mov dword [esp + 4], 4
mov eax, dword [0xa3d158]
cmp eax, 2
je 0x437305
test eax, eax
jne 0x437314
sub esp, 0x14
movaps xmm0, xmmword [0x8fe0e0]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 3
call fcn.00426010
add esp, 0x14
test al, al
je 0x43730a
mov dword [0xa3d158], 2
add esp, 0xc
pop esi
ret
mov dword [0xa3d158], 1
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
mov ecx, esp
push eax
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x43733e
cmp dword [esp], 0x4020
jg 0x437305
lea eax, [esp + 8]
push 4
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
pop esi
ret

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

Disassembly:
mov eax, dword [ecx + 0x98]
cmp eax, 0xffffffff
je 0x438c40
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1a0
mov esi, dword [edx + 0x18]
mov esi, dword [esi + 0x2a8]
test byte [esi + 0x49], 8
jne 0x438c39
mov esi, ecx
mov edi, edx
mov dword [esp + 0xc], pe_nt_image_headers32
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x80], xmm0
lea ecx, [esp + 0xc]
lea ebx, [esp + 0x10]
push ecx
push ebx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x438be7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x9c]
push 0x100
push eax
push esi
call fcn.0041ba80
add esp, 0xc
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x438c30
lea eax, [esi + 0xca]
add esi, 0xfc
push esi
push eax
push dword [esp + 0x14]
push ebx
call fcn.0043d920
add esp, 0x10
test al, al
jne 0x438c39
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call ebx
mov esi, dword [eax]
call ebx
lea ecx, [esp + 0x9c]
push 0x100
push ecx
push dword [eax]
call fcn.0041ba80
add esp, 0xc
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.00443930
add esp, 0x10
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x439bd0
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push esi
push eax
mov edi, edx
mov esi, ecx
mov eax, dword [ecx + 0x6ec]
shr eax, 7
and eax, 1
mov dword [esp], eax
mov ebx, esp
push 4
push ebx
push 8
push 0xffff
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x439ce3
push dword [esi + 0x690]
call fcn.00426240
add esp, 4
mov dword [esp], eax
push 4
push ebx
push 3
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x439c54
test byte [esi + 0x6eb], 0x20
je 0x439c54
mov eax, dword [esi + 0xd20]
test eax, eax
je 0x439c3e
cmp dword [eax + 4], 0
jle 0x439c54
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_TCP_KEEPIDLE_on_fd__d:_errno__d
push esi
call fcn.004439c0
add esp, 0x10
push dword [esi + 0x694]
call fcn.00426240
add esp, 4
mov dword [esp], eax
push 4
push ebx
push 0x11
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x439ca6
test byte [esi + 0x6eb], 0x20
je 0x439ca6
mov eax, dword [esi + 0xd20]
test eax, eax
je 0x439c90
cmp dword [eax + 4], 0
jle 0x439ca6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_TCP_KEEPINTVL_on_fd__d:_errno__d
push esi
call fcn.004439c0
add esp, 0x10
push dword [esi + 0x698]
call fcn.00426240
add esp, 4
mov dword [esp], eax
push 4
push ebx
push 0x10
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x439d13
test byte [esi + 0x6eb], 0x20
je 0x439d13
mov eax, dword [esi + 0xd20]
mov ebx, str.Failed_to_set_TCP_KEEPCNT_on_fd__d:_errno__d
test eax, eax
jne 0x439cfb
jmp 0x439d01
test byte [esi + 0x6eb], 0x20
je 0x439d13
mov eax, dword [esi + 0xd20]
mov ebx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d:_errno__d
test eax, eax
je 0x439d01
cmp dword [eax + 4], 0
jle 0x439d13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push ebx
push esi
call fcn.004439c0
add esp, 0x10
add esp, 4
pop esi
pop edi
pop ebx
ret

Function at 0x441c60
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
xor edi, edi
test ecx, ecx
je 0x441d11
mov esi, ecx
push ecx
call fcn.00451260
add esp, 4
test al, al
jne 0x441d11
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
push eax
push 0x2e
push esi
call fcn.00443270
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x441cb6
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00443270
add esp, 0xc
test eax, eax
je 0x441cb6
inc eax
add edi, esi
sub edi, eax
mov ebx, eax
test ebx, ebx
cmovne esi, ebx
test edi, edi
jle 0x441d0c
add edi, esi
mov ebx, 0x1505
nop word cs:[eax + eax]
movsx eax, byte [esi]
inc esi
push eax
call fcn.0041b6a0
add esp, 4
movsx eax, al
mov ecx, ebx
shl ecx, 5
add ebx, ecx
xor ebx, eax
cmp esi, edi
jb 0x441cd0
mov ecx, 0x4104105
mov eax, ebx
mul ecx
mov edi, ebx
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 5
mov eax, edi
shl eax, 6
sub edi, eax
add edi, ebx
jmp 0x441d11
mov edi, 0x1a
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x443890
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x14]
test byte [esi + 0x6eb], 0x20
je 0x443926
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
cmp dword [esi + 0x194], 0
je 0x4438f1
push esi
call fcn.00411e30
add esp, 4
mov ebx, eax
push 1
push esi
call fcn.00411e00
add esp, 8
push dword [esi + 0x144]
push ebp
push dword [esp + 0x24]
push edi
push esi
call dword [esi + 0x194]
add esp, 0x14
movzx eax, bl
push eax
push esi
call fcn.00411e00
add esp, 8
jmp 0x443926
cmp edi, 2
ja 0x443926
lea eax, [edi + edi*2]
add eax, 0x8ff2c4
push dword [esi + 0x140]
push 1
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push dword [esi + 0x140]
push 1
push ebp
push dword [esp + 0x28]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44aed0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push esi
mov edx, dword [ecx + 0x18]
test byte [ecx + 0x6e9], 1
jne 0x44aee6
cmp byte [ecx + 0x3b0], 0
je 0x44af0e
mov eax, dword [edx + 0x374]
test eax, eax
je 0x44af0e
add edx, 0x308
push eax
push str.MDTM__s
push edx
mov esi, ecx
push ecx
call fcn.00465a50
add esp, 0x10
test eax, eax
je 0x44af44
pop esi
ret
test byte [ecx + 0x13e], 2
je 0x44af3e
cmp dword [edx + 0x374], 0
je 0x44af3e
xor eax, eax
test byte [ecx + 0xd61], 0x10
sete al
movsx esi, byte [edx + 0x384]
lea eax, [eax*8 + 0x41]
cmp eax, esi
jne 0x44af9f
pop esi
jmp fcn.0044cdd0
mov eax, esi
mov esi, dword [esi + 0x18]
movzx ecx, byte [esi + 0x3b6]
cmp ecx, 0x12
je 0x44af94
test byte [eax + 0x6eb], 0x20
je 0x44af94
mov edx, dword [eax + 0xd20]
test edx, edx
je 0x44af6e
cmp dword [edx + 4], 0
jle 0x44af94
mov edx, dword [0xa39174]
cmp dword [edx + 4], 0
jle 0x44af94
push str.MDTM
push dword [ecx*4 + 0x8ffd28]
push str.__s_______s_
push eax
call fcn.00443d30
add esp, 0x10
mov byte [esi + 0x3b6], 0x12
xor eax, eax
pop esi
ret
mov eax, dword [ecx + 0x130]
mov dword [eax + 8], 1
mov eax, dword [ecx + 0xd60]
shr eax, 0xc
and eax, 1
push 0x13
push eax
call fcn.0044cc60
add esp, 8
pop esi
ret

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

Disassembly:
push ebx
push edi
push esi
lea eax, [edx - 0xc8]
cmp eax, 0x64
jae 0x44b446
movzx ebx, byte [esp + 0x10]
mov esi, dword [ecx + 0x18]
cmp edx, 0xc8
je 0x44b42a
test byte [ecx + 0x6eb], 0x20
je 0x44b42a
mov eax, dword [ecx + 0xd20]
test eax, eax
je 0x44b417
cmp dword [eax + 4], 0
jle 0x44b42a
push edx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push ecx
mov edi, ecx
call fcn.004439c0
mov ecx, edi
add esp, 0xc
movzx eax, bl
add eax, 0xffffffed
cmp eax, 3
ja case.default.0x44b435
jmp dword [eax*4 + 0x8ffb90]
mov edx, esi
pop esi
pop edi
pop ebx
jmp fcn.0044cdd0
push str.Couldnt_set_desired_mode
push ecx
call fcn.00443930
add esp, 8
mov eax, 0x11
pop esi
pop edi
pop ebx
ret
mov edx, 1
push 0xd
call fcn.0044abc0
add esp, 4
pop esi
pop edi
pop ebx
ret
pop esi
pop edi
pop ebx
jmp 0x44db60
pop esi
pop edi
pop ebx
jmp 0x44d9d0
xor eax, eax
pop esi
pop edi
pop ebx
ret
Function at 0x44bef0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push edi
push esi
mov esi, dword [ecx + 0x18]
add edx, 0xffffff38
cmp edx, 0x64
jae 0x44bfa9
test byte [ecx + 0x6eb], 0x20
je 0x44bf32
mov eax, dword [ecx + 0xd20]
test eax, eax
je 0x44bf1d
cmp dword [eax + 4], 0
jle 0x44bf32
push str.Connect_data_stream_actively
push ecx
mov esi, ecx
call fcn.004439c0
mov ecx, esi
add esp, 8
mov esi, dword [esi + 0x18]
movzx eax, byte [esi + 0x3b6]
mov edi, esi
test eax, eax
je 0x44bf8b
test byte [ecx + 0x6eb], 0x20
mov edi, esi
je 0x44bf8b
mov edx, dword [ecx + 0xd20]
test edx, edx
je 0x44bf5c
cmp dword [edx + 4], 0
mov edi, esi
jle 0x44bf8b
mov edx, dword [0xa39174]
cmp dword [edx + 4], 0
mov edi, esi
jle 0x44bf8b
push 0x8ffdb8
push dword [eax*4 + 0x8ffd28]
push str.__s_______s_
push ecx
mov edi, ecx
call fcn.00443d30
mov ecx, edi
add esp, 0x10
mov edi, dword [edi + 0x18]
mov byte [esi + 0x3b6], 0
mov eax, dword [ecx + 0x130]
cmp dword [eax + 8], 0
je 0x44bfcf
push ecx
call fcn.0041d940
add esp, 4
jmp 0x44bfd6
mov edx, dword [esi + 0x3a8]
test edx, edx
je 0x44bfe2
inc edx
cmp edx, 2
jne 0x44c019
push str.Failed_to_do_PORT
push ecx
call fcn.00443930
add esp, 8
mov eax, 0x1e
pop esi
pop edi
ret
or byte [edi + 0x2a1], 0x10
or byte [edi + 0x3bc], 4
xor eax, eax
pop esi
pop edi
ret
test byte [ecx + 0x6eb], 0x20
je 0x44c00d
mov eax, dword [ecx + 0xd20]
test eax, eax
je 0x44bffb
cmp dword [eax + 4], 0
jle 0x44c00d
push str.disabling_EPRT_usage
push ecx
mov edi, ecx
call fcn.004439c0
mov ecx, edi
add esp, 8
and byte [esi + 0x2a2], 0xfe
mov edx, 1
pop esi
pop edi
jmp fcn.0044d070
Function at 0x44cdd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, dword [ecx + 0x130]
cmp dword [eax + 8], 1
jne fcn.0044ce70
mov eax, dword [edx + 0x374]
test eax, eax
je fcn.0044ce70
push esi
add edx, 0x308
push eax
push str.SIZE__s
push edx
mov esi, ecx
push ecx
call fcn.00465a50
add esp, 0x10
test eax, eax
je 0x44ce0d
pop esi
ret
mov eax, esi
mov esi, dword [esi + 0x18]
movzx ecx, byte [esi + 0x3b6]
cmp ecx, 0x17
je 0x44ce5d
test byte [eax + 0x6eb], 0x20
je 0x44ce5d
mov edx, dword [eax + 0xd20]
test edx, edx
je 0x44ce37
cmp dword [edx + 4], 0
jle 0x44ce5d
mov edx, dword [0xa39174]
cmp dword [edx + 4], 0
jle 0x44ce5d
push 0x8ffe54
push dword [ecx*4 + 0x8ffd28]
push str.__s_______s_
push eax
call fcn.00443d30
add esp, 0x10
mov byte [esi + 0x3b6], 0x17
xor eax, eax
pop esi
ret

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

Disassembly:
mov eax, dword [ecx + 0x130]
cmp dword [eax + 8], 0
je fcn.0044cf10
cmp dword [edx + 0x374], 0
je fcn.0044cf10
push esi
add edx, 0x308
push 0
push str.REST__d
push edx
mov esi, ecx
push ecx
call fcn.00465a50
add esp, 0x10
test eax, eax
je 0x44cead
pop esi
ret
mov eax, esi
mov esi, dword [esi + 0x18]
movzx ecx, byte [esi + 0x3b6]
cmp ecx, 0x1a
je 0x44cefd
test byte [eax + 0x6eb], 0x20
je 0x44cefd
mov edx, dword [eax + 0xd20]
test edx, edx
je 0x44ced7
cmp dword [edx + 4], 0
jle 0x44cefd
mov edx, dword [0xa39174]
cmp dword [edx + 4], 0
jle 0x44cefd
push str.REST
push dword [ecx*4 + 0x8ffd28]
push str.__s_______s_
push eax
call fcn.00443d30
add esp, 0x10
mov byte [esi + 0x3b6], 0x1a
xor eax, eax
pop esi
ret
Function at 0x44cf10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push edi
push esi
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x130]
cmp dword [eax + 8], 0
je 0x44cf89
movzx eax, byte [esi + 0x3b6]
cmp eax, 0xd
je 0x44cf70
test byte [ecx + 0x6eb], 0x20
je 0x44cf70
mov edx, dword [ecx + 0xd20]
test edx, edx
je 0x44cf46
cmp dword [edx + 4], 0
jle 0x44cf70
mov edx, dword [0xa39174]
cmp dword [edx + 4], 0
jle 0x44cf70
push str.RETR_PREQUOTE
push dword [eax*4 + 0x8ffd28]
push str.__s_______s_
push ecx
mov edi, ecx
call fcn.00443d30
mov ecx, edi
add esp, 0x10
mov byte [esi + 0x3b6], 0xd
mov edx, 1
push 0xd
call fcn.0044abc0
add esp, 4
pop esi
pop edi
ret
mov eax, dword [ecx + 0x6e8]
test eax, 0x2000
jne 0x44cfa6
test eax, 0x10000
jne 0x44cfaf
mov edx, esi
pop esi
pop edi
jmp fcn.0044b790
xor edx, edx
pop esi
pop edi
jmp fcn.0044d070
mov eax, dword [esi + 0x374]
add esi, 0x308
test eax, eax
je 0x44cfd0
test byte [ecx + 0xd62], 2
jne 0x44cff6
push eax
push str.PRET_RETR__s
jmp 0x44cffc
mov eax, dword [ecx + 0x568]
test eax, eax
jne 0x44cfee
test byte [ecx + 0xd61], 0x20
mov edx, 0x8ffe8b
mov eax, str.NLST
cmove eax, edx
push eax
push str.PRET__s
jmp 0x44cffc
push eax
push str.PRET_STOR__s
push esi
mov esi, ecx
push ecx
call fcn.00465a50
add esp, 0x10
test eax, eax
jne 0x44cf86
mov eax, esi
mov esi, dword [esi + 0x18]
movzx ecx, byte [esi + 0x3b6]
cmp ecx, 0x1d
je 0x44d060
test byte [eax + 0x6eb], 0x20
je 0x44d060
mov edx, dword [eax + 0xd20]
test edx, edx
je 0x44d03a
cmp dword [edx + 4], 0
jle 0x44d060
mov edx, dword [0xa39174]
cmp dword [edx + 4], 0
jle 0x44d060
push str.PRET
push dword [ecx*4 + 0x8ffd28]
push str.__s_______s_
push eax
call fcn.00443d30
add esp, 0x10
mov byte [esi + 0x3b6], 0x1d
xor eax, eax
pop esi
pop edi
ret
Function at 0x44e2d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov esi, ecx
mov eax, dword [ecx + 0x18]
mov dword [esp + 0xc], eax
mov ebx, dword [eax + 0x1ac]
mov dword [esp + 4], pe_nt_image_headers32
lea eax, [esp + 4]
lea edi, [esp + 0x10]
push eax
push edi
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x44e326
push str.Error_accept__ing_server_connect
push esi
call fcn.00443930
add esp, 8
mov eax, 0x1e
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], pe_nt_image_headers32
push str.ftp.c
push 0x1bc
lea eax, [esp + 0xc]
push eax
push edi
push ebx
call fcn.00406230
add esp, 0x14
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x44e30b
test byte [esi + 0x6eb], 0x20
mov ebx, esi
je 0x44e37d
mov ecx, dword [ebx + 0xd20]
test ecx, ecx
je 0x44e36b
cmp dword [ecx + 4], 0
jle 0x44e37d
push str.Connection_accepted_from_server
push ebx
mov esi, eax
call fcn.004439c0
mov eax, esi
add esp, 8
mov esi, dword [esp + 0xc]
and byte [esi + 0x2a1], 0xef
push 1
push eax
call fcn.004651d0
add esp, 8
lea eax, [esp + 8]
push eax
push 1
push esi
push ebx
call fcn.00438c50
add esp, 0x10
test eax, eax
je 0x44e3c7
push str.ftp.c
push 0x1cc
push dword [esp + 0x10]
mov esi, eax
call fcn.004062a0
mov eax, esi
add esp, 0xc
jmp 0x44e31e
xor eax, eax
cmp dword [ebx + 0x19c], 0
je 0x44e31e
push 1
push ebx
call fcn.00411e00
add esp, 8
push 1
push dword [esp + 0xc]
push dword [ebx + 0x1a0]
call dword [ebx + 0x19c]
add esp, 0xc
mov edi, eax
push 0
push ebx
call fcn.00411e00
xor eax, eax
add esp, 8
test edi, edi
je 0x44e31e
test byte [ebx + 0x6eb], 0x20
je 0x44e45c
mov eax, dword [ebx + 0xd20]
test eax, eax
je 0x44e426
cmp dword [eax + 4], 0
jle 0x44e45c
mov eax, dword [0xa39174]
cmp dword [eax + 4], 0
jle 0x44e45c
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x44e448
movzx eax, byte [eax + 0x3b6]
mov eax, dword [eax*4 + 0x8ffd28]
jmp 0x44e44d
mov eax, 0x8ffdb4
push eax
push str.__s__closing_DATA_connection
push ebx
call fcn.00443d30
add esp, 0xc
push 1
push ebx
call fcn.00439f60
add esp, 8
push 1
push dword [ebx + 0x18]
push ebx
call fcn.00439ef0
add esp, 0xc
mov eax, 0x2a
jmp 0x44e31e

Function at 0x44f780
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov edi, 1
xor ebx, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop word cs:[eax + eax]
push str.getenv.c
push 0x30
push edi
push ebx
call fcn.00405ec0
add esp, 0x10
test eax, eax
je 0x44f7e2
mov esi, eax
push edi
push eax
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x44f7d8
cmp eax, edi
je 0x44f7d8
cmp eax, 0x8001
jae 0x44f7d8
mov ebx, esi
cmp eax, edi
mov edi, eax
jae 0x44f7a0
jmp 0x44f7f4
push str.getenv.c
push 0x3d
push esi
jmp 0x44f7ea
push str.getenv.c
push 0x32
push ebx
call fcn.00405f90
add esp, 0xc
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret