joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407bbf
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00415e60
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x41f788
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x41752c
push dword [ebp + 8]
push 0x41f998
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x407c2e
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcscpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x407c32
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00415e60
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x41f788
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x41752c
push dword [ebp + 8]
mov esi, 0x41f998
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x407c99
cmp dword [ebp + 0x10], 0
jne 0x407c99
xor eax, eax
jmp 0x407ca7
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
pop edi
pop esi
leave
ret

Function at 0x40801e
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00404d8f
test eax, eax
pop ecx
je 0x4080a5
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x41f788
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x41f998
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x417fa0
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x41fa20
mov dword [0x41fa1c], eax
call fcn.00407b9a
push 0x3f
push str.TranslatorName
mov esi, 0x41faa0
call fcn.00407b9a
push 0xff
push str.TranslatorURL
mov esi, 0x41fb20
call fcn.00407b9a
add esp, 0x18
pop edi
pop esi
ret

Function at 0x408ede
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
and dword [ebp - 0x2b4], 0
push esi
push 0x2b0
mov esi, eax
lea eax, [ebp - 0x2b0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
neg esi
sbb esi, esi
and esi, 0x10
or esi, 0x111
push esi
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp dword [ebp - 0x2b4], 0
pop esi
je 0x408f42
push dword [ebp - 0x2b4]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x2b0]
leave
ret 4
Function at 0x40940c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00415e60
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x40a502
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4cc
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x2bc], ebx
push edi
je 0x40a5d1
cmp dword [esi + 0x2c4], ebx
je 0x40a593
push 0x2b0
lea eax, [esp + 0x230]
push ebx
push eax
mov dword [esp + 0x234], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x2e]
push ebx
push eax
mov word [esp + 0x34], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x230]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x2b0], eax
push eax
jmp 0x40a5c2
call fcn.00405884
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x2b0]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push 1
push 0x1003
push dword [esi + 0x2a8]
call ebp
cmp dword [esi + 0x2c0], ebx
je 0x40a616
call fcn.00405884
push 0x60
pop ecx
shl eax, 5
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x2b4]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push ebx
push 0x1003
push dword [esi + 0x2a8]
call ebp
call fcn.00405884
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
mov edi, eax
push edi
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
mov dword [esi + 0x2ac], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x1000
push edi
push edi
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x1000
push edi
push edi
push ebx
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
push dword [esi + 0x2ac]
mov dword [esp + 0x1c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
push dword [esi + 0x2ac]
call edi
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x2ac]
call edi
push dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [esp + 0x14]
call edi
mov eax, dword [esi + 0x2ac]
mov esi, dword [esi + 0x2a8]
push eax
push ebx
push 0x1208
push esi
call fcn.00403e8c
pop ecx
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret
Function at 0x40ab95
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
movzx eax, word [esi + 0x2c]
cmp word [esp + 0x10], ax
push edi
jb 0x40abe2
movzx edi, word [esp + 0x14]
movzx eax, ax
add eax, dword [esi + 0x31c]
cmp edi, eax
jge 0x40abe2
push 0x10
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40abc8
inc ebx
movzx ecx, word [esi + 0x2c]
push ebx
mov eax, edi
push 0
sub eax, ecx
call fcn.00408af3
call fcn.0040abeb
xor eax, eax
inc eax
jmp 0x40abe4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x40b180
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
xor eax, eax
push edi
inc eax
call fcn.0040c166
and word [ebp - 0x250], 0
push 0x208
lea eax, [ebp - 0x24e]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x250]
add esp, 0xc
push eax
call fcn.00404dbe
pop ecx
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x250]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.RunAs
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40b209
push dword [edi + 0x208]
call dword [sym.imp.USER32.dll_DestroyWindow]
leave
ret

Function at 0x40bd61
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push edi
lea eax, [ebp - 0x410]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x40bd90
push edi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
and word [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push 0
push 0x418614
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov eax, dword [esi + 0x69c]
push 1
push 1
push 2
lea ecx, [ebp - 0x208]
push ecx
push esi
call fcn.0040bc46
test eax, eax
pop edi
je 0x40be15
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40bdf0
lea eax, [ebp - 0x208]
push eax
call fcn.00404c33
pop ecx
jmp 0x40bdf6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40be08
push dword [esi + 0x208]
mov ecx, eax
call fcn.00404af3
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
leave
ret
Function at 0x40be92
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 0x6c8]
push 0x41752c
mov edi, ebx
mov dword [ebp - 8], ebx
call fcn.00405aa5
mov edi, dword [esi + 0x69c]
push esi
call fcn.0040bcea
mov eax, ebx
call fcn.00405ae6
test eax, eax
jle 0x40bff0
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
xor esi, esi
push esi
push str.NirSoft_IPNetInfo
call ebx
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x40bf82
mov edi, dword [ebp + 8]
add edi, 0x6dc
cmp word [edi], si
je 0x40bff0
push 0x7fe
lea eax, [ebp - 0x872]
push esi
push eax
mov word [ebp - 0x874], si
call sub.msvcrt.dll_memset
push edi
push str.__s___nodlgstart
lea eax, [ebp - 0x874]
push 0x3ff
push eax
call sub.msvcrt.dll__snwprintf
push 0x40
lea eax, [ebp - 0x70]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
add esp, 0x28
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x874]
push eax
push esi
mov dword [ebp - 0x74], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
push str.NirSoft_IPNetInfo
call ebx
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x40bff0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push esi
push 0x500
push dword [ebp - 0xc]
call ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x1388
call fcn.00405ae6
mov esi, eax
lea edi, [esi + 0xa]
lea eax, [ebp - 0x18]
call fcn.00405f1b
mov eax, dword [ebp - 8]
inc esi
push esi
push dword [ebp - 0x18]
call fcn.00405a99
push eax
call fcn.0040565c
mov eax, dword [ebp - 8]
add esp, 0xc
push dword [ebp - 0x18]
call fcn.00405ae6
push eax
push 0x501
push dword [ebp - 0xc]
call ebx
lea esi, [ebp - 0x18]
call fcn.00405f34
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c2b5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x698]
sub esp, 0x18
push ebx
xor ebx, ebx
cmp dword [eax + 0x1c], ebx
push esi
je 0x40c3c0
mov eax, dword [edi + 0x69c]
push 4
call fcn.0040a01b
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov esi, dword [edi + 0x69c]
cmp dword [esi + 0x3c], ebx
mov dword [ebp - 4], ebx
jle 0x40c3b6
push dword [ebp - 4]
call fcn.004083dc
cmp dword [eax + 0x70], 0
mov dword [ebp - 8], eax
jne 0x40c3a1
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
xor ecx, ecx
or ecx, eax
xor esi, esi
or edx, esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
xor ebx, ebx
or eax, esi
mov esi, dword [ebp - 0xc]
or ecx, ebx
push ebx
sub esi, eax
push 0x989680
sbb edx, ecx
push edx
push esi
call fcn.00415ea0
test edx, edx
jl 0x40c3a1
jg 0x40c34a
cmp eax, 3
jb 0x40c3a1
mov eax, dword [ebp - 8]
mov esi, 0x41c3c8
mov dword [eax + 0x70], 1
call fcn.0040ad14
mov esi, dword [edi + 0x69c]
call fcn.004088e8
push 0
push dword [0x41c5d4]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
test eax, eax
jne 0x40c38d
mov ebx, dword [edi + 0x69c]
push eax
push dword [0x41c5d4]
call fcn.00409496
push dword [ebp - 8]
mov ebx, dword [edi + 0x69c]
push dword [0x41c5d4]
call fcn.00409496
inc dword [ebp - 4]
mov esi, dword [edi + 0x69c]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x3c]
jl 0x40c2f7
mov eax, 0x41c3c8
call fcn.0040ad5b
pop esi
pop ebx
leave
ret

Function at 0x40d89b
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0x10]
xor esi, esi
call fcn.00404a7a
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x40d8ed
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, dword [esp + 0x10]
mov edi, eax
add esi, 8
mov eax, esi
call fcn.00405f1b
mov esi, dword [esi]
push edi
push esi
push ebx
call fcn.0040535b
add esp, 0xc
mov esi, eax
test esi, esi
pop edi
je 0x40d8e6
mov eax, dword [esp + 0xc]
call fcn.0040d870
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40de1d
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push dword [ebp + 8]
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x10], 2
call sub.WS2_32.dll_htons
test ebx, ebx
mov word [ebp - 0xe], ax
je 0x40de84
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_connect
test eax, eax
jne 0x40de68
xor ebx, ebx
inc ebx
jmp 0x40de80
call fcn.0040de98
mov ebx, eax
test ebx, ebx
jne 0x40de80
mov edi, dword [esi]
call sub.WS2_32.dll_WSAGetLastError
push eax
mov ecx, esi
call dword [edi + 0x18]
mov eax, ebx
jmp 0x40de92
mov eax, dword [esi]
push 0xffff
mov ecx, esi
call dword [eax + 0x18]
xor eax, eax
pop edi
pop ebx
leave
ret 4
Function at 0x40e100
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
mov eax, esi
call fcn.0040e0c9
test eax, eax
jne 0x40e129
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x40e1a1
push ebx
push edi
call fcn.0040e0a9
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
xor ebx, ebx
test eax, eax
je 0x40e155
push str.LookupPrivilegeValueW
push dword [esi]
call edi
cmp eax, ebx
je 0x40e155
lea ecx, [ebp - 0x14]
push ecx
push str.SeDebugPrivilege
push ebx
call eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], eax
call fcn.0040e0a9
test eax, eax
je 0x40e18c
push str.AdjustTokenPrivileges
push dword [esi]
call edi
cmp eax, ebx
je 0x40e18c
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push dword [ebp - 8]
call eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret

Function at 0x40e220
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push str.DevicePhysicalMemory
lea eax, [ebp - 8]
push eax
call dword [esi + 4]
and dword [ebp - 0x1c], 0
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x14], 0x40
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea edi, [esi + 0x10]
push edi
call dword [esi + 8]
test eax, eax
jne 0x40e28f
mov ecx, esi
call fcn.0040e294
test eax, eax
jne 0x40e275
mov eax, esi
call fcn.0040e2f4
push 0x1000
push eax
push 0
push 4
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
jmp 0x40e291
xor eax, eax
pop edi
leave
ret

Function at 0x40e2f4
Capabilities:
Read file via mapping

Disassembly:
push esi
push edi
push 0xa0000
xor edi, edi
push edi
push edi
push 4
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push 0x67
pop edx
lea ecx, [eax + 0xc00]
mov esi, 0x1000
cmp dword [ecx], edx
je 0x40e329
add edx, esi
inc edi
add ecx, esi
cmp edx, 0xa0067
jb 0x40e318
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, edi
pop edi
shl eax, 0xc
pop esi
ret

Function at 0x40e338
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [edi + 0x14]
push esi
mov esi, eax
shr eax, 0x16
mov eax, dword [ecx + eax*4]
test al, 1
jne 0x40e34c
xor eax, eax
pop esi
ret
test al, al
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
js 0x40e392
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push dword [edi + 0x10]
call ebp
shr esi, 0xc
and esi, 0x3ff
mov ebx, dword [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
test bl, 1
jne 0x40e388
xor eax, eax
jmp 0x40e3ae
and ebx, 0xfffff000
mov esi, ebx
jmp 0x40e39f
and esi, 0x3ff000
and eax, 0xfffff000
add esi, eax
push 0x1000
push esi
push 0
push 4
push dword [edi + 0x10]
call ebp
pop ebp
pop ebx
pop esi
ret
Function at 0x40e423
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea ecx, [eax + 4]
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ecx
cmp eax, ecx
jmp 0x40e4a0
mov eax, dword [ebp - 8]
push 0x1000
and eax, 0xfffff000
push eax
mov eax, dword [ebp + 8]
push 0
push 4
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40e4a5
mov eax, dword [ebp - 8]
push 4
and eax, 0xfff
mov ecx, 0x1000
pop edx
sub edx, ebx
sub ecx, eax
cmp edx, ecx
mov dword [ebp - 4], edx
jb 0x40e479
mov dword [ebp - 4], ecx
push dword [ebp - 4]
add eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
add ebx, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jb 0x40e437
pop edi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x40f0bb
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
jne 0x40f12d
push str.iphlpapi.dll
call fcn.004057ff
cmp eax, ebx
pop ecx
mov dword [esi], eax
je 0x40f12d
push str.GetTcpTable
push eax
call edi
push str.GetUdpTable
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.SetTcpEntry
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.AllocateAndGetTcpExTableFromStack
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.AllocateAndGetUdpExTableFromStack
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GetExtendedTcpTable
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetExtendedUdpTable
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
cmp dword [esi + 4], ebx
jne 0x40f193
push str.ntdll.dll
mov dword [esi + 8], ebx
call fcn.004057ff
cmp eax, ebx
pop ecx
mov dword [esi + 4], eax
je 0x40f193
push str.NtQuerySystemInformation
push eax
call edi
push str.RtlInitUnicodeString
push dword [esi + 4]
mov dword [esi + 0x38], eax
call edi
push str.ZwOpenSection
push dword [esi + 4]
mov dword [esi + 0x3c], eax
call edi
push str.ZwOpenFile
push dword [esi + 4]
mov dword [esi + 0x40], eax
call edi
cmp dword [esi + 0x38], ebx
mov dword [esi + 0x44], eax
je 0x40f193
cmp dword [esi + 0x3c], ebx
je 0x40f193
cmp dword [esi + 0x40], ebx
je 0x40f193
cmp eax, ebx
je 0x40f193
mov dword [esi + 8], 1
pop edi
pop ebx
ret
Function at 0x40fab3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x28]
call fcn.00406f03
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp - 8], eax
lea eax, [ebp - 0x468]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x46c], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x40fc38
lea eax, [ebp - 0x240]
call fcn.0040f594
mov eax, dword [ebp - 0x464]
mov ecx, dword [ebp - 0x454]
mov esi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
push ebx
push 0x410
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x30], ecx
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x40fb68
call fcn.00404e8b
cmp dword [eax + 4], 5
jbe 0x40fc29
push dword [ebp - 0x240]
push ebx
push 0x1000
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40fc29
push 0x208
lea eax, [ebp - 0x676]
push ebx
push eax
mov word [ebp - 0x678], bx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x678]
push eax
push dword [ebp - 4]
mov eax, edi
call fcn.0040fdaf
cmp word [ebp - 0x678], bx
jne 0x40fbf1
cmp dword [0x420700], ebx
mov dword [ebp - 0xc], 0x104
jne 0x40fbd7
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, ebx
je 0x40fbd7
push str.QueryFullProcessImageNameW
push eax
mov dword [0x420700], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x420704], eax
mov eax, dword [0x420704]
cmp eax, ebx
je 0x40fbf1
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x678]
push ecx
push ebx
push dword [ebp - 4]
call eax
lea esi, [ebp - 0x678]
lea edi, [ebp - 0x23c]
call fcn.0040f6ef
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.0040fa3a
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x240]
push eax
lea eax, [edi + 0x28]
call fcn.0040fe2e
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x40fb0a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40fdd7
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40fe2d
push edi
push str.psapi.dll
call fcn.004057ff
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.GetModuleBaseNameW
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GetModuleFileNameExW
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0xc], eax
pop edi
ret