joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0xc6ef3720
mov dword [ebp - 8], 0x20
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
test eax, eax
je 0x4010a9
mov edx, dword [ebp + 8]
mov eax, dword [edx]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
xor ecx, dword [edx]
add eax, ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 5
mov edx, dword [ebp - 4]
xor edx, ecx
add eax, edx
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
sub ecx, eax
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [edx]
xor edx, dword [eax + 4]
add ecx, edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
shr edx, 5
mov eax, dword [ebp - 4]
xor eax, edx
add ecx, eax
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
sub edx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
add ecx, 0x61c88647
mov dword [ebp - 4], ecx
jmp 0x401014
mov esp, ebp
pop ebp
ret

Function at 0x401480
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
push 4
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x4014e1
push 2
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [ebp - 4]
add edx, 8
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x401680
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x402380
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dword [ebp - 0x20c], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x404], 0
je 0x402457
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x404]
add eax, 0x10
push eax
lea ecx, [ebp - 0x208]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x2e
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x4023eb
push 0x40d080
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x200
push edx
call fcn.00402180
add esp, 8
test eax, eax
je 0x40243d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x404]
push edx
call fcn.00402620
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x404]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 8]
mov dword [edx + 0x404], eax
mov eax, 1
jmp 0x4024d3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x404]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 8]
mov dword [eax + 0x404], ecx
jmp 0x402395
mov edx, dword [ebp - 4]
cmp dword [edx + 0x400], 0
je 0x402479
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x400]
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
jmp 0x4024d3
mov eax, dword [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00401ce0
add esp, 0xc
test eax, eax
jne 0x40249b
xor eax, eax
jmp 0x4024d3
movsx eax, byte [ebp - 0x208]
test eax, eax
je 0x4024d1
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x400], eax
mov edx, dword [ebp - 4]
xor eax, eax
cmp dword [edx + 0x400], 0xffffffff
setne al
jmp 0x4024d3
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x402580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov dword [ebp - 0x20c], ecx
mov eax, dword [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401e20
add esp, 8
test eax, eax
je 0x4025ad
mov eax, 1
jmp 0x40260b
mov edx, dword [ebp - 0x20c]
push edx
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401ce0
add esp, 0xc
test eax, eax
jne 0x4025cf
xor eax, eax
jmp 0x40260b
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4025fb
mov eax, dword [ebp - 4]
and eax, 0x10
test eax, eax
je 0x4025fb
mov dword [ebp - 0x210], 1
jmp 0x402605
mov dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x210]
mov esp, ebp
pop ebp
ret 4
Function at 0x402740
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov dword [ebp - 0x204], ecx
mov eax, dword [ebp - 0x204]
push eax
lea ecx, [ebp - 0x200]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401ce0
add esp, 0xc
test eax, eax
je 0x40278a
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
je 0x40278a
mov dword [ebp - 0x208], 1
jmp 0x402794
mov dword [ebp - 0x208], 0
mov eax, dword [ebp - 0x208]
mov esp, ebp
pop ebp
ret 4

Function at 0x4027a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov dword [ebp - 0x404], ecx
mov eax, dword [ebp - 0x404]
push eax
lea ecx, [ebp - 0x200]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401ce0
add esp, 0xc
test eax, eax
je 0x40280f
mov eax, dword [ebp - 0x404]
push eax
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401ce0
add esp, 0xc
test eax, eax
je 0x40280f
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x200]
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
je 0x40280f
mov dword [ebp - 0x408], 1
jmp 0x402819
mov dword [ebp - 0x408], 0
mov eax, dword [ebp - 0x408]
mov esp, ebp
pop ebp
ret 8

Function at 0x402830
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov dword [ebp - 0x204], ecx
mov eax, dword [ebp - 0x204]
push eax
lea ecx, [ebp - 0x200]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401ce0
add esp, 0xc
test eax, eax
je 0x40287c
push 0
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x40287c
mov dword [ebp - 0x208], 1
jmp 0x402886
mov dword [ebp - 0x208], 0
mov eax, dword [ebp - 0x208]
mov esp, ebp
pop ebp
ret 4

Function at 0x4028a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov dword [ebp - 0x204], ecx
mov eax, dword [ebp - 0x204]
push eax
lea ecx, [ebp - 0x200]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401ce0
add esp, 0xc
test eax, eax
je 0x4028ea
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
je 0x4028ea
mov dword [ebp - 0x208], 1
jmp 0x4028f4
mov dword [ebp - 0x208], 0
mov eax, dword [ebp - 0x208]
mov esp, ebp
pop ebp
ret 4
Function at 0x403210
Capabilities:
Create tcp socket
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b65e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5a4
push 0x200
lea eax, [ebp - 0x5a4]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [ebp - 0x5a4]
push ecx
lea edx, [ebp - 0x39c]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push str.SlimFTPd.log
push 0x5c
lea eax, [ebp - 0x5a4]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push str.SlimFTPd.conf
push 0x5c
lea ecx, [ebp - 0x39c]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x5ac], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x5ac], 0
je 0x4032d2
lea edx, [ebp - 0x5a4]
push edx
mov ecx, dword [ebp - 0x5ac]
call fcn.00401480
mov dword [ebp - 0x5b0], eax
jmp 0x4032dc
mov dword [ebp - 0x5b0], 0
mov eax, dword [ebp - 0x5b0]
mov dword [ebp - 0x5a8], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x5a8]
mov dword [0x40eb08], ecx
push str._______________________________________________________________________________
mov ecx, dword [0x40eb08]
call fcn.00401550
push str.SlimFTPd_3.12__by_WhitSoft_Development__www.whitsoftdev.com_
mov ecx, dword [0x40eb08]
call fcn.00401550
cmp dword [0x40eb54], 0
je 0x403336
push str.The_SlimFTPd_service_is_starting.
mov ecx, dword [0x40eb08]
call fcn.00401550
jmp 0x403346
push str.SlimFTPd_is_starting.
mov ecx, dword [0x40eb08]
call fcn.00401550
push 0x10
push 0
push 0x40eb3c
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [0x40eb3c], 2
mov dword [0x40eb40], 0
push 0x15
call sub.WSOCK32.dll_htons
mov word [0x40eb3e], ax
lea edx, [ebp - 0x19c]
push edx
push 0x101
call sub.WSOCK32.dll_WSAStartup
lea eax, [ebp - 0x39c]
push eax
call fcn.00403530
add esp, 4
test eax, eax
jne 0x40339f
xor eax, eax
jmp 0x403419
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [0x40eb38], eax
push 0x10
push 0x40eb3c
mov ecx, dword [0x40eb38]
push ecx
call sub.WSOCK32.dll_bind
test eax, eax
je 0x4033e6
push str.Unable_to_bind_socket._Specified_port_may_already_be_in_use.
mov ecx, dword [0x40eb08]
call fcn.00401550
mov edx, dword [0x40eb38]
push edx
call sub.WSOCK32.dll_closesocket
xor eax, eax
jmp 0x403419
push 5
mov eax, dword [0x40eb38]
push eax
call sub.WSOCK32.dll_listen
lea ecx, [ebp - 0x3a0]
push ecx
push 0
push 0
push 0x404720
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x404450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401ef0
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x4044a1
push 0x5c
push 0x2f
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004020e0
add esp, 0xc
push 0x5c
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4044a1
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 1]
test ecx, ecx
jne 0x4044a1
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x4044c5
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
push str.Mount_directive_cannot_parse_invalid_virtual_path___s_._Virtual_paths_must_begin_with_a_slash.
call fcn.004034d0
add esp, 0xc
xor eax, eax
jmp 0x40451f
cmp dword [ebp + 0x10], 0
je 0x4044f3
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4044f3
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
push str.Mount_directive_cannot_find_local_path___s_.
call fcn.004034d0
add esp, 0xc
xor eax, eax
jmp 0x40451f
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0x40eb28
call fcn.00402c90
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40451a
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
call fcn.00401730
mov eax, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x406ee8
xor eax, eax
jmp 0x406eed
mov eax, 1
pop ebp
ret
Function at 0x406ef0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x40d024]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
jmp 0x406f29
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], 0
cmp dword [ebp - 0x108], 0x40
jae 0x406f5b
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x104], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
xor edx, edx
test edx, edx
jne 0x406f33
lea eax, [ebp - 0x114]
push eax
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
call sub.WSOCK32.dll_select
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x406f92
cmp dword [ebp - 0x118], 0
jne 0x406f97
or eax, 0xffffffff
jmp 0x40700a
push 0
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x406fc0
cmp dword [ebp - 0x118], 0
jne 0x406fc5
or eax, 0xffffffff
jmp 0x40700a
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x406fd8
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
jmp 0x406ff1
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x406ff1
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov eax, dword [ebp - 0x10c]
jmp 0x40700a
mov ecx, dword [ebp - 0x10c]
cmp ecx, dword [ebp + 0x10]
jae 0x407005
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
jmp 0x406f1a
mov esp, ebp
pop ebp
ret

Function at 0x407010
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x40d028]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
cmp dword [ebp - 0x108], 0x40
jae 0x407060
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x104], edx
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
xor ecx, ecx
test ecx, ecx
jne 0x407038
lea edx, [ebp - 0x110]
push edx
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call sub.WSOCK32.dll_select
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x407097
cmp dword [ebp - 0x114], 0
jne 0x40709c
or eax, 0xffffffff
jmp 0x4070c9
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
jne 0x4070c3
or eax, 0xffffffff
jmp 0x4070c9
mov eax, dword [ebp - 0x114]
mov esp, ebp
pop ebp
ret
Function at 0x4070d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0
je 0x4071be
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4071be
mov ecx, dword [0x40d028]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x108], 0
cmp dword [ebp - 0x108], 0x40
jae 0x407139
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp + edx*4 - 0x104], ecx
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
xor eax, eax
test eax, eax
jne 0x40710f
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0
lea edx, [ebp - 0x108]
push edx
push 0
call sub.WSOCK32.dll_select
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x407198
cmp dword [ebp - 0x118], 0xffffffff
je 0x407198
mov dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call sub.WSOCK32.dll_accept
mov dword [ebp - 0x10c], eax
jmp 0x4071a2
mov dword [ebp - 0x10c], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_closesocket
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10c]
jmp 0x4071fb
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x10c], eax
push 0x10
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
call sub.WSOCK32.dll_connect
test eax, eax
je 0x4071f5
mov eax, dword [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_closesocket
xor eax, eax
jmp 0x4071fb
mov eax, dword [ebp - 0x10c]
mov esp, ebp
pop ebp
ret
Function at 0x407260
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5b8
cmp dword [ebp + 0x18], 0
je 0x407278
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x5b8], ecx
cmp dword [ebp - 0x5b8], 1
je 0x40729c
cmp dword [ebp - 0x5b8], 2
je 0x407370
jmp 0x4073d6
push 0
lea edx, [ebp - 0x5b4]
push edx
push 0x5ac
lea eax, [ebp - 0x5b0]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4072c6
xor eax, eax
jmp 0x4073d8
cmp dword [ebp - 0x5b4], 0
jne 0x4072d9
mov eax, 1
jmp 0x4073d8
push 0
mov edx, dword [ebp - 0x5b4]
push edx
lea eax, [ebp - 0x5b0]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x4072fe
xor eax, eax
jmp 0x4073d8
lea edx, [ebp - 0x5b4]
push edx
push 0x4004667f
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_ioctlsocket
cmp dword [ebp - 0x5b4], 0
je 0x40736b
push 0x1ff
lea ecx, [ebp - 0x5b0]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406ef0
add esp, 0xc
push str.ABOR
lea eax, [ebp - 0x5b0]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40735a
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
xor eax, eax
jmp 0x4073d8
push str.500_Only_command_allowed_at_this_time_is_ABOR._r_n
mov edx, dword [ebp + 8]
push edx
call fcn.00406ec0
add esp, 8
jmp 0x40729c
push 0x5ac
lea eax, [ebp - 0x5b0]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00407010
add esp, 0xc
mov dword [ebp - 0x5b4], eax
cmp dword [ebp - 0x5b4], 0xffffffff
jne 0x40739b
xor eax, eax
jmp 0x4073d8
cmp dword [ebp - 0x5b4], 0
jne 0x4073ab
mov eax, 1
jmp 0x4073d8
push 0
lea edx, [ebp - 0x5b4]
push edx
mov eax, dword [ebp - 0x5b4]
push eax
lea ecx, [ebp - 0x5b0]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x4073d4
xor eax, eax
jmp 0x4073d8
jmp 0x407370
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4073e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40741e
cmp dword [ebp - 8], 0
je 0x407423
cmp dword [ebp - 0xc], 0
jne 0x407423
cmp dword [ebp - 4], 0
jne 0x407423
or eax, 0xffffffff
jmp 0x407466
cmp dword [ebp - 0xc], 0
je 0x407434
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
cmp ecx, 0xa
jne 0x407436
jmp 0x40745d
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
cmp eax, 0xd
je 0x40745b
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jae 0x40745b
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
jmp 0x4073ed
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4001360d
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x40025d24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
lea edx, [ebp - 0x4cc]
push edi
call fcn.40015517
mov edi, eax
test edi, edi
je 0x400136e6
push esi
xor edx, edx
mov ecx, edi
call fcn.4001569b
mov esi, eax
test esi, esi
je 0x400136da
push 0x2b4
lea eax, [ebp - 0x4c0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c0]
push 0x208
push 0x2b4
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x400136d3
cmp dword [edi], 1
jbe 0x400136c0
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
push 0x14b
push dword [0x40026300]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call fcn.40007625
add esp, 0x10
jmp 0x400136d3
lea eax, [ebp - 0x4b4]
mov edx, 0x104
push eax
mov ecx, ebx
call fcn.4000a269
push esi
call dword [sym.imp.SHELL32.dll_Ordinal_12443]
lea edx, [ebp - 0x4cc]
call fcn.40006670
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.40020a80
leave
ret 4

Function at 0x40015c9c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x40025d24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40026300]
push ebx
mov dword [ebp - 0x214], eax
mov ebx, 0x80004005
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40015d89
push 0x40003d58
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40015d89
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40015d81
push edi
push 0x40003d70
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40015d80
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x40003d7c
mov dword [ebp - 0x218], eax
mov ecx, edi
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x228], 0x40003d80
push eax
push dword [ebp - 0x210]
mov dword [ebp - 0x224], 0x40003d90
push dword [ebp - 0x214]
mov dword [ebp - 0x220], 0x40003d94
mov dword [ebp - 0x21c], 2
call dword [0x400272ac]
call edi
mov ebx, eax
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.40020a80
leave
ret