joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101320f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x1044dc8c], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x10131b40
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x10131e30
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.10131af0
je 0x10132162
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x10438824]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.10148524
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1013226e
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCR100.dll_strcpy_s]
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call edi
mov ebx, dword [sym.imp.MSVCR100.dll_strcat_s]
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call ebp
mov esi, eax
test esi, esi
je 0x101321df
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1013222f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call edi
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call ebx
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call ebp
mov esi, eax
test esi, esi
je 0x1013226a
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x10132235
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1013226a
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
mov dword [esp + edi*8 + 0x14], eax
test eax, eax
je 0x10132226
inc edi
cmp edi, 3
jl 0x10132237
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x10438824], edx
mov dword [0x1043882c], eax
mov dword [fcn.10131af0], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x10438824]
xor ecx, esp
mov dword [0x1044dc8c], 1
call fcn.10148524
add esp, 0x230
ret 4
Function at 0x10132540
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x118]
push esi
xor esi, esi
test byte [edi + 0x18], 1
je 0x1013261b
cmp dword [esp + 0x118], esi
je 0x1013261b
test ebp, ebp
jle 0x1013261b
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_send]
jmp 0x10132580
mov ecx, dword [esp + 0x11c]
push 0
mov eax, ebp
sub eax, esi
push eax
mov eax, dword [edi + 0x14]
lea edx, [esi + ecx]
push edx
push eax
call ebx
test eax, eax
jle 0x101325a0
add esi, eax
jmp 0x101325e9
cmp eax, 0xffffffff
jne 0x101325b2
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x101325f9
mov ecx, dword [0x1043881c]
mov eax, dword [edi + 0x14]
lea edx, [esp + 0xc]
push edx
push 0
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], eax
push 0
inc eax
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
call dword [sym.imp.WSOCK32.dll_select]
cmp esi, ebp
jl 0x10132580
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0x10c
ret
push str.send_failed_n
push 0
push 0xa
call fcn.100e31a0
add esp, 0xc
test esi, esi
jne 0x101325ed
pop ebx
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x10c
ret
mov eax, esi
pop esi
pop ebp
add esp, 0x10c
ret
Function at 0x10132630
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
test byte [esi + 0x18], 2
push ebx
push ebp
push edi
je case.0x10132739.10054
cmp dword [esi + 0x24], 0
jne 0x10132672
push 0xfde8
call dword [0x10438020]
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
je 0x10132792
mov dword [esi + 0x34], 0xfde8
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x30]
lea edx, [ecx + 0x1000]
cmp eax, edx
jbe 0x101326a0
mov edx, dword [esi + 0x2c]
sub edx, eax
push edx
push eax
mov edi, eax
push ecx
sub edi, ecx
call dword [sym.imp.MSVCR100.dll_memmove]
sub dword [esi + 0x30], edi
sub dword [esi + 0x28], edi
add esp, 0xc
sub dword [esi + 0x2c], edi
mov ecx, dword [esi + 0x34]
mov edi, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
lea edx, [ecx + edi]
lea ebx, [eax + 0x1000]
cmp edx, ebx
jae 0x101326f7
mov ebp, dword [esi + 0x28]
mov ebx, dword [esi + 0x30]
sub eax, edi
mov dword [esp + 0xc], eax
lea eax, [ecx + ecx]
push eax
push edi
sub ebp, edi
sub ebx, edi
mov dword [esi + 0x34], eax
call dword [0x10438024]
add esp, 8
mov dword [esi + 0x24], eax
test eax, eax
je 0x101327b7
mov ecx, dword [esp + 0xc]
lea edx, [eax + ecx]
lea ecx, [eax + ebp]
add eax, ebx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x30], eax
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x14]
push 0
push 0x1000
push edx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
mov dword [esi + 0x38], eax
test eax, eax
jg 0x101327e3
je case.0x10132739.10054
cmp eax, 0xffffffff
jne case.0x10132739.10035
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add eax, 0xffffd8cd
cmp eax, 0x17
ja case.0x10132739.10037
movzx ecx, byte [eax + 0x1013281c]
jmp dword [ecx*4 + 0x10132810]
mov edx, dword [0x1043881c]
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0
mov dword [esp + 0x18], edx
push 0
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
push edx
inc eax
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 1
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 1
jl case.0x10132739.10054
test byte [esi + 0x18], 2
jne 0x10132643
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
push str.allocating_input
push 0
push 0
push 2
push 0xa
call fcn.100cf020
add esp, 0x14
pop edi
or eax, 0xffffffff
pop ebp
mov dword [esi + 0x38], eax
pop ebx
add esp, 0x110
ret
push str.allocating_input_buffer
push 0
push 0
push 2
push 0xa
call fcn.100cf020
push edi
call dword [0x10438018]
add esp, 0x18
pop edi
or eax, 0xffffffff
pop ebp
mov dword [esi + 0x38], eax
pop ebx
add esp, 0x110
ret
add dword [esi + 0x2c], eax
pop edi
pop ebp
pop ebx
add esp, 0x110
ret
push str.recv_failed_n
push 0
push 0xa
call fcn.100e31a0
add esp, 0xc
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x110
ret
Function at 0x10132cd0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status

Disassembly:
sub esp, 0x218
push esi
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10132d05
push str.socket_failed_n
push 0
push 0xa
call fcn.100e31a0
add esp, 0xc
or eax, esi
pop esi
add esp, 0x218
ret
lea eax, [esp + 8]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov ecx, dword [esp + 0x220]
inc eax
neg eax
sbb eax, eax
push 0x10
neg eax
push ecx
dec eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x10132d5e
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jl 0x10132d54
cmp eax, 0x2734
jle 0x10132d5e
push str.error_connecting_to_HTTP_server
jmp 0x10132e77
mov edx, dword [0x1043881c]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x11c]
push ecx
mov dword [esp + 0x14], edx
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esi + 1]
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 1
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], 1
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x10132e72
test eax, eax
je 0x10132e6b
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x10132de8
lea edx, [esp + 0x118]
push edx
push esi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x10132de8
push str.select_failed_n
jmp 0x10132e77
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1007
push 0xffff
push esi
mov dword [esp + 0x1c], 4
call dword [sym.imp.WSOCK32.dll_getsockopt]
test eax, eax
jge 0x10132e2b
push str.getsockopt_failed_n
push 0
push 0xa
call fcn.100e31a0
add esp, 0xc
or eax, 0xffffffff
pop esi
add esp, 0x218
ret
cmp dword [esp + 4], 0
je 0x10132e61
push str.Error_connecting_to_remote_host
push 0
push 0xa
call fcn.100e31a0
add esp, 0xc
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
call dword [sym.imp.MSVCR100.dll__errno]
mov edx, dword [esp + 4]
mov dword [eax], edx
or eax, 0xffffffff
pop esi
add esp, 0x218
ret
mov eax, esi
pop esi
add esp, 0x218
ret
push str.Connect_attempt_timed_out
jmp 0x10132e77
push str.Connect_failed
push 0
push 0xa
call fcn.100e31a0
add esp, 0xc
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x218
ret
Function at 0x101330f0
Capabilities:
Initialize winsock library
Query environment variable

Disassembly:
sub esp, 0x194
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x190], eax
cmp dword [0x1044dc84], 0
jne 0x10133182
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x10133182
cmp dword [0x1044dc88], eax
jne 0x10133178
push esi
mov esi, dword [sym.imp.MSVCR100.dll_getenv]
push str.no_proxy
mov dword [0x1044dc80], 0x50
call esi
add esp, 4
test eax, eax
je 0x10133152
cmp byte [eax], 0x2a
jne 0x10133152
cmp byte [eax + 1], 0
je 0x10133177
push str.http_proxy
call esi
add esp, 4
test eax, eax
jne 0x1013316e
push str.HTTP_PROXY
call esi
add esp, 4
test eax, eax
je 0x10133177
push eax
call fcn.10132380
add esp, 4
pop esi
mov dword [0x1044dc84], 1
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10148524
add esp, 0x194
ret

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

Disassembly:
test esi, esi
je 0x10133b30
mov ecx, dword [esi + 0x440]
test ecx, ecx
jl 0x10133b30
cmp ecx, 0x400
jg 0x10133b30
mov eax, dword [esi + 0x444]
test eax, eax
jl 0x10133b30
cmp eax, 0x400
jg 0x10133b30
cmp ecx, eax
jg 0x10133b30
test ecx, ecx
jle 0x10133ad2
sub eax, ecx
push eax
lea eax, [ecx + esi + 0x3c]
push eax
lea ecx, [esi + 0x3c]
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [esi + 0x440]
add esp, 0xc
sub dword [esi + 0x444], edx
mov dword [esi + 0x440], 0
mov eax, 0x400
sub eax, dword [esi + 0x444]
jne 0x10133ae0
ret
mov edx, dword [esi + 0x2c]
push 0
push eax
mov eax, dword [esi + 0x440]
lea ecx, [eax + esi + 0x3c]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jge 0x10133b1e
push str.recv_failed
push 0
push 9
call fcn.100e31a0
mov eax, dword [esi + 0x2c]
add esp, 0xc
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
or eax, 0xffffffff
mov dword [esi + 0x2c], eax
ret
add dword [esi + 0x444], eax
mov ecx, dword [esi + 0x444]
mov byte [ecx + esi + 0x3c], 0
ret
or eax, 0xffffffff
ret

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

Disassembly:
sub esp, 0xcc
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x10133cb8
push str.USER_anonymous_r_n
lea eax, [esp + 8]
push 0xc8
push eax
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0xc
jmp 0x10133cd1
push eax
push str.USER__s_r_n
lea ecx, [esp + 0xc]
push 0xc8
push ecx
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x10
lea eax, [esp + 4]
mov byte [esp + 0xcb], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10133ce0
sub eax, edx
push 0
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
test esi, esi
jge 0x10133d2a
push str.send_failed
push 0
push 9
call fcn.100e31a0
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.10148524
add esp, 0xcc
ret
mov ecx, dword [esp + 0xcc]
pop esi
xor ecx, esp
xor eax, eax
call fcn.10148524
add esp, 0xcc
ret
Function at 0x10133d50
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xcc
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x10133d88
push str.PASS_anonymous__r_n
lea eax, [esp + 8]
push 0xc8
push eax
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0xc
jmp 0x10133da1
push eax
push str.PASS__s_r_n
lea ecx, [esp + 0xc]
push 0xc8
push ecx
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x10
lea eax, [esp + 4]
mov byte [esp + 0xcb], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10133db0
sub eax, edx
push 0
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
test esi, esi
jge 0x10133dfa
push str.send_failed
push 0
push 9
call fcn.100e31a0
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.10148524
add esp, 0xcc
ret
mov ecx, dword [esp + 0xcc]
pop esi
xor ecx, esp
xor eax, eax
call fcn.10148524
add esp, 0xcc
ret

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

Disassembly:
sub esp, 0xcc
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
mov esi, dword [esp + 0xd4]
test esi, esi
je 0x10133ec5
push str.QUIT_r_n
lea eax, [esp + 8]
push 0xc8
push eax
call dword [sym.imp.MSVCR100.dll__snprintf]
lea eax, [esp + 0x10]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10133e63
push 0
sub eax, edx
mov edx, dword [esi + 0x2c]
push eax
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
test esi, esi
jge 0x10133ead
push str.send_failed
push 0
push 9
call fcn.100e31a0
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.10148524
add esp, 0xcc
ret
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.10148524
add esp, 0xcc
ret
mov ecx, dword [esp + 0xcc]
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.10148524
add esp, 0xcc
ret
Function at 0x101347a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
push esi
mov esi, dword [esp + 0x218]
test esi, esi
je 0x10134865
mov eax, dword [esi + 0x30]
push ebx
push edi
mov edi, dword [sym.imp.WSOCK32.dll_closesocket]
push eax
call edi
mov eax, dword [esi + 0x2c]
mov ecx, 1
mov dword [esp + 0x118], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea ecx, [esp + 0x124]
mov dword [esp + 0x128], eax
mov dword [esp + 0x24], eax
push ecx
inc eax
or ebx, 0xffffffff
push eax
mov dword [esi + 0x30], ebx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x24], 0
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jge 0x1013482d
mov edx, dword [esi + 0x2c]
push edx
call edi
pop edi
mov dword [esi + 0x2c], ebx
mov eax, ebx
pop ebx
pop esi
add esp, 0x210
ret
jne 0x10134844
mov eax, dword [esi + 0x2c]
push eax
call edi
mov dword [esi + 0x2c], ebx
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x210
ret
mov eax, esi
call fcn.10133b40
cmp eax, 2
je 0x10134838
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
mov dword [esi + 0x2c], ebx
mov eax, ebx
pop ebx
pop esi
add esp, 0x210
ret
or eax, 0xffffffff
pop esi
add esp, 0x210
ret
Function at 0x10134870
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x134
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x13c]
push esi
mov esi, dword [esp + 0x13c]
mov dword [esp + 4], eax
test esi, esi
jne 0x101348b4
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.10148524
add esp, 0x134
ret
test eax, eax
jne 0x101348bd
cmp dword [esi + 0xc], eax
je 0x1013489b
push esi
call fcn.101343b0
add esp, 4
mov dword [esi + 0x30], eax
cmp eax, 0xffffffff
je 0x1013489b
push ebp
mov ebp, dword [sym.imp.MSVCR100.dll__snprintf]
push str.TYPE_I_r_n
lea eax, [esp + 0x10]
push 0x12c
push eax
call ebp
lea eax, [esp + 0x18]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101348f0
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_send]
push edi
push 0
sub eax, edx
mov edx, dword [esi + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
call ebx
mov edi, eax
test edi, edi
jge 0x1013493e
push str.send_failed
push 0
push 9
call fcn.100e31a0
mov eax, dword [esi + 0x30]
add esp, 0xc
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 0x30], 0xffffffff
mov eax, edi
jmp 0x10134a01
mov eax, esi
call fcn.10133b40
mov edi, eax
cmp edi, 2
je 0x10134955
mov ecx, dword [esi + 0x30]
push ecx
jmp 0x101349eb
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10134972
mov edx, dword [esi + 0xc]
push edx
push str.RETR__s_r_n
push 0x12c
lea eax, [esp + 0x20]
push eax
jmp 0x10134982
push eax
push str.RETR__s_r_n
push 0x12c
lea ecx, [esp + 0x20]
push ecx
call ebp
lea eax, [esp + 0x24]
add esp, 0x10
mov byte [esp + 0x13f], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10134996
sub eax, edx
push 0
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0x1c]
push edx
push eax
call ebx
mov edi, eax
test edi, edi
jge 0x101349d9
push str.send_failed
push 0
push 9
call fcn.100e31a0
mov ecx, dword [esi + 0x30]
add esp, 0xc
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 0x30], 0xffffffff
mov eax, edi
jmp 0x10134a01
mov eax, esi
call fcn.10133b40
mov edi, eax
cmp edi, 1
je 0x101349fe
mov edx, dword [esi + 0x30]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, edi
mov dword [esi + 0x30], 0xffffffff
neg eax
jmp 0x10134a01
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x140]
pop edi
pop ebx
pop ebp
pop esi
xor ecx, esp
call fcn.10148524
add esp, 0x134
ret
Function at 0x10134ad0
Capabilities:
Initialize winsock library
Query environment variable

Disassembly:
sub esp, 0x194
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x190], eax
cmp dword [0x1044dc98], 0
jne 0x10134b9c
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x10134b9c
push esi
mov esi, dword [sym.imp.MSVCR100.dll_getenv]
push str.no_proxy
mov dword [0x1044dca0], 0x15
call esi
add esp, 4
test eax, eax
je 0x10134b32
cmp byte [eax], 0x2a
jne 0x10134b32
cmp byte [eax + 1], 0
je 0x10134b9b
push str.ftp_proxy
call esi
add esp, 4
test eax, eax
jne 0x10134b4e
push str.FTP_PROXY
call esi
add esp, 4
test eax, eax
je 0x10134b57
push eax
call fcn.10133870
add esp, 4
push str.ftp_proxy_user
call esi
add esp, 4
test eax, eax
je 0x10134b74
push eax
call dword [0x10438028]
add esp, 4
mov dword [0x1044dca4], eax
push str.ftp_proxy_password
call esi
add esp, 4
test eax, eax
je 0x10134b91
push eax
call dword [0x10438028]
add esp, 4
mov dword [0x1044dca8], eax
mov dword [0x1044dc98], 1
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10148524
add esp, 0x194
ret
Function at 0x10148524
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10438fc0]
jne 0x1014852e
repz ret
jmp fcn.10148c8e

Function at 0x10149370
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
xor eax, eax
cmp ecx, edx
je 0x101493a1
push esi
push edi
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movzx edi, word [ecx]
lea esi, [esi + edi - 0x61c88647]
add ecx, 2
xor eax, esi
cmp ecx, edx
jne 0x10149380
pop edi
pop esi
ret
Function at 0x1015d9c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf0
mov eax, 0x101e8f3d
mov dword [esp], eax
mov dword [esp + 4], 0x1017996c
mov dword [esp + 8], 0x10179958
mov dword [esp + 0xc], 0x101978c0
mov dword [esp + 0x10], 0x101978bc
mov dword [esp + 0x14], 0x101782e4
mov dword [esp + 0x18], 0x1041af3c
mov dword [esp + 0x1c], 0x10179954
mov dword [esp + 0x20], 0x10177fd4
mov dword [esp + 0x24], 0x1018945c
mov dword [esp + 0x28], 0x10189414
mov dword [esp + 0x2c], 0x10187de0
mov dword [esp + 0x30], 0x10415720
mov dword [esp + 0x34], 0x101782ec
mov dword [esp + 0x38], str._0__._
mov dword [esp + 0x3c], 0x1018540c
mov dword [esp + 0x40], 0x10185408
mov dword [esp + 0x44], str.0123456789
mov dword [esp + 0x48], 0x101818ac
mov dword [esp + 0x4c], 0x10197680
mov dword [esp + 0x50], 0x1017bf34
mov dword [esp + 0x54], 0x1017bf2c
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x101978ac
mov dword [esp + 0x64], 0x101978a8
mov dword [esp + 0x68], 0x10179298
mov dword [esp + 0x6c], 0x101782e0
mov dword [esp + 0x70], 0x1017aa4c
mov dword [esp + 0x74], 0x101975f4
mov dword [esp + 0x78], str.nNFThdcEeCt
mov dword [esp + 0x7c], 0x101975e0
mov dword [esp + 0x80], 0x101903c0
mov dword [esp + 0x84], 0x10195dd8
mov dword [esp + 0x88], 0x10195df8
mov dword [esp + 0x8c], 0x101903b0
mov dword [esp + 0x90], 0x10416608
mov dword [esp + 0x94], 0x1017d224
mov dword [esp + 0x98], 0x101903b8
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x101903b4
mov dword [esp + 0xc0], 0x10197668
mov dword [esp + 0xc4], 0x10195dfc
mov dword [esp + 0xc8], 0x101903bc
mov dword [esp + 0xcc], 0x10192960
mov dword [esp + 0xd0], 0x1019767c
mov dword [esp + 0xd4], 0x101978a4
mov dword [esp + 0xd8], 0x1018191c
mov dword [esp + 0xdc], 0x10192990
mov dword [esp + 0xe0], 0x1019039c
mov dword [esp + 0xe4], 0x101978a0
mov dword [esp + 0xe8], 0x10197670
mov dword [esp + 0xec], 0x10197664
cmp cl, 0x3c
jae 0x1015dbdd
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xf0
ret
Function at 0x1015dc10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x9c
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x98], eax
mov edx, 0x361
mov dword [esp], 0x3610300
mov dword [esp + 4], 0x4860483
mov dword [esp + 8], 0x9030903
mov dword [esp + 0xc], 0x940093e
mov dword [esp + 0x10], 0x94c0949
mov dword [esp + 0x14], 0x9830982
mov dword [esp + 0x18], 0x9c009be
mov dword [esp + 0x1c], 0x9cc09c7
mov dword [esp + 0x20], 0x9d709d7
mov dword [esp + 0x24], 0xa400a3e
mov dword [esp + 0x28], 0xa830a83
mov dword [esp + 0x2c], 0xac00abe
mov dword [esp + 0x30], 0xacc0ac9
mov dword [esp + 0x34], 0xb030b02
mov dword [esp + 0x38], 0xb3e0b3e
mov dword [esp + 0x3c], 0xb400b40
mov dword [esp + 0x40], 0xb4c0b47
mov dword [esp + 0x44], 0xb570b57
mov dword [esp + 0x48], 0xb830b83
mov dword [esp + 0x4c], 0xbbf0bbe
mov dword [esp + 0x50], 0xbcc0bc1
mov dword [esp + 0x54], 0xbd70bd7
mov dword [esp + 0x58], 0xc030c01
mov dword [esp + 0x5c], 0xc440c41
mov dword [esp + 0x60], 0xc830c82
mov dword [esp + 0x64], 0xcbe0cbe
mov dword [esp + 0x68], 0xcc40cc0
mov dword [esp + 0x6c], 0xccb0cc7
mov dword [esp + 0x70], 0xcd60cd5
mov dword [esp + 0x74], 0xd030d02
mov dword [esp + 0x78], 0xd400d3e
mov dword [esp + 0x7c], 0xd4c0d46
mov dword [esp + 0x80], 0xd570d57
mov dword [esp + 0x84], 0xf7f0f7f
mov dword [esp + 0x88], 0x20e120d0
mov dword [esp + 0x8c], 0x309a3099
mov dword [esp + 0x90], 0xfe23fe20
mov dword [esp + 0x94], 0xffffffff
lea eax, [esp + 2]
cmp dx, cx
jae 0x1015dd7b
add eax, 4
cmp word [eax], cx
jb 0x1015dd73
sub eax, 2
cmp cx, word [eax]
jb 0x1015dda0
cmp cx, word [eax + 2]
ja 0x1015dda0
mov al, 1
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.10148524
add esp, 0x9c
ret
mov ecx, dword [esp + 0x98]
xor ecx, esp
xor al, al
call fcn.10148524
add esp, 0x9c
ret
Function at 0x10004550
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, dword [esp + 0x41c]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100045fd
cmp eax, 0x104
ja 0x100045fd
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x216]
push ecx
mov word [esp + 0x218], ax
call sub.MSVCR100.dll_memset
push esi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x220]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea ecx, [esp + 0x20c]
push ecx
call fcn.10031220
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.1003779c
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1003779c
add esp, 0x414
ret