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

Disassembly:
mov eax, 0x1000
call fcn.004074f0
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 0x40c208
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 0x403aff
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 0x403a52
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

Function at 0x403b50
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 0x40c208
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
Function at 0x404900
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4081f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0xc]
xor edi, edi
push eax
mov dword [esp + 0x8c], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0xc]
push 0x64
push 0x78
push ecx
mov ebx, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebp
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 3
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
push 0xcc0020
push edx
push eax
push edi
push edi
push ecx
push 0x64
push 0x78
push edi
push edi
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
xor edx, edx
mov ecx, 0xa
mov dword [esp + 0x1c], edx
xor eax, eax
mov dword [esp + 0x20], edx
mov word [esp + 0x22], di
mov dword [esp + 0x24], edx
mov word [esp + 0x24], di
lea edi, [esp + 0x2c]
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x58]
push eax
mov ecx, 0xa
lea esi, [esp + 0x34]
lea edi, [esp + 0x5c]
push edx
mov dword [esp + 0x38], 0x28
mov dword [esp + 0x3c], 0x78
mov dword [esp + 0x40], 0x64
mov word [esp + 0x44], 1
mov word [esp + 0x46], 0x18
push 1
push edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.GDI32.dll_GetDIBits]
push ebp
mov word [esp + 0x40], dx
push ebx
mov word [esp + 0x38], 0x4d42
mov dword [esp + 0x3a], 0x8cd6
mov dword [esp + 0x42], 0x36
call edi
mov eax, dword [esp + 0x30]
lea esi, [eax + eax*2]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
imul esi, eax
push esi
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0x10], eax
push 0
push ecx
push eax
push edx
push 0
push ebp
push ebx
call edi
mov eax, dword [esp + 0x90]
push 0x40c068
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x404a94
push edi
push 1
lea ecx, [esp + 0x24]
push 0xe
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
push 1
lea edx, [esp + 0x44]
push 0x28
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x30]
push edi
push 1
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x34
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [esp + 0x90]
mov dword [esp + 0x88], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret 4
Function at 0x404f30
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 0x404fe0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov esi, ecx
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x404ffd
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 8
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x1a0], eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x19e], ax
mov eax, dword [esi + 0x194]
lea edi, [esi + 0x19c]
cmp eax, 0xffffffff
mov word [edi], 2
jne 0x405052
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x194], eax
mov eax, dword [esi + 0x194]
cmp eax, 0xffffffff
jne 0x405065
pop edi
or eax, eax
pop esi
pop ecx
ret 8
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40507c
pop edi
or eax, eax
pop esi
pop ecx
ret 8
mov edx, dword [esi + 0x194]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x24], 0x7530
call edi
mov ecx, dword [esi + 0x194]
lea eax, [esp + 8]
push 4
push eax
push 0x1005
push 0xffff
push ecx
mov dword [esp + 0x1c], 0x7530
call edi
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x405130
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 0x405266
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 0x4051d6
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 0x4051a9
mov ecx, dword [esi + 0x1c4]
push ecx
call eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4051c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4051d6
cmp dword [esi + 0x1ac], 0xffffffff
jne 0x4051d6
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, edi
jle 0x40517f
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 0x405206
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 0x405340
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x408
mov al, byte [0x40c520]
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 0x405474
mov al, byte [esp + 0xc]
mov bl, 0x3e
cmp al, bl
jne 0x405474
mov ecx, dword [esi + 0x194]
push 0
lea eax, [esp + 0x11]
push 1
push eax
push ecx
call edi
cmp eax, 1
jl 0x405474
cmp byte [esp + 0xd], bl
jne 0x405474
mov eax, dword [esi + 0x194]
push 0
lea edx, [esp + 0x12]
push 1
push edx
push eax
call edi
cmp eax, 1
jl 0x405474
mov edx, dword [esi + 0x194]
push 0
lea ecx, [esp + 0x13]
push 1
push ecx
push edx
call edi
cmp eax, 1
jl 0x405474
movsx ebx, byte [esp + 0xf]
mov eax, dword [esp + 0xe]
shl ebx, 8
and eax, 0xff
add ebx, eax
cmp ebx, 0x400
jg 0x405474
lea ecx, [ebx - 4]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00405960
mov eax, dword [esp + 0x418]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0xc]
mov edi, eax
push 0x40c298
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 0x40c298
push 0
call esi
push 0x40c298
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 0x405490
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x410
mov eax, dword [esp + 0x414]
push edi
push 0x40c068
mov edi, ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esp + 8], eax
test eax, eax
je 0x40554d
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 0x4054da
mov eax, ebx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, edi
call fcn.00405960
mov esi, eax
test esi, esi
jle 0x40552a
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 0x405520
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x1c0]
push ecx
push ebp
push edx
call eax
cmp ebx, 1
jl 0x40552a
cmp esi, 1
jge 0x4054cb
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 0x40554d
mov eax, dword [esp + 4]
pop edi
add esp, 0x410
ret 8
or eax, 0xffffffff
pop edi
add esp, 0x410
ret 8
Function at 0x405560
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40c
push ebx
push edi
push 0x40c06c
mov ebx, ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x40561a
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 0x4055d8
lea edx, [esp + 0x14]
push esi
push edx
mov ecx, ebx
call fcn.004058f0
mov esi, eax
mov eax, dword [ebx + 0x1b8]
add ebp, esi
test eax, eax
je 0x4055f3
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x1c0]
push ecx
push ebp
push edx
call eax
cmp esi, 0x400
jge 0x4055ad
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test esi, esi
pop esi
pop ebp
jle 0x40561a
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 0x405690
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x408258
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 0x4056fd
push 0x78
mov ecx, esi
call fcn.00405130
lea edx, [esp + 0x21c]
mov ecx, esi
push edx
call fcn.00405340
test eax, eax
je 0x40585e
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
push ebx
push ebp
push edi
lea eax, [esp + 0x22c]
push 0x40c298
push eax
call esi
push 0x40c298
push 0
mov ebp, eax
call esi
push 0x40c298
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 0x40c520
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 0x4057c8
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, 0x40c1fc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40c520
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 0x405847
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x634]
push ecx
push edx
jmp 0x405851
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0xc]
call fcn.00405490
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x638]
test eax, eax
je 0x405870
mov ecx, esi
call fcn.004050d0
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 0x4058b0
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 sub.MFC42.DLL_CString::operator
add esp, 0x14
ret 4

Function at 0x4058f0
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 0x405945
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp esi, 0x200
jle 0x405925
mov eax, dword [ebx + 0x194]
push 0
push 0x200
push edi
push eax
jmp 0x405934
test esi, esi
jle 0x405949
mov ecx, dword [ebx + 0x194]
push 0
push esi
push edi
push ecx
call ebp
cmp eax, 1
jl 0x405949
sub esi, eax
add edi, eax
test esi, esi
jg 0x40590c
jmp 0x405949
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
cmp eax, 0xffffffff
pop ebx
jne 0x405957
or eax, eax
ret 8
mov eax, dword [esp + 8]
ret 8

Function at 0x405960
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 0x4059b1
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 0x4059ba
cmp eax, 0xffffffff
je 0x4059c3
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x40598e
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 0x4067e0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x40840e
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 0x40c520
mov ecx, esi
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::operator
push 0x40c520
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
push 0x40c520
mov ecx, edi
call sub.MFC42.DLL_CString::operator
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 0x4068c5
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.004070c6
inc dword [esi + 0xc]
shl ebp, 1
inc edi
cmp edi, 0x5a
jle 0x40687f
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.004072d0
mov ecx, esi
call fcn.00406920
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 0x406920
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x408449
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 0x4069fb
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 0x406b24
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x18], 0x10
je 0x406a7f
cmp byte [esp + 0x44], 0x2e
je 0x406a44
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 0x406ab1
cmp byte [esp + 0x45], 0x2e
jne 0x406ab6
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 0x406ab1
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.004070c6
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 0x406a02
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