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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x435aa0]
xor eax, esp
mov dword [esp + 0x208], eax
cmp dword [esp + 0x210], 0xffffffff
push ebp
mov ebp, dword [esp + 0x218]
je 0x404d59
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.0041a070
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x404d59
push esi
push edi
push 0x103
lea edx, [esp + 0x115]
push 0
push edx
mov byte [esp + 0x11c], 0
call fcn.0041a070
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call 0x41694c
add esp, 4
call 0x41695e
cdq
mov ecx, 6
idiv ecx
xor esi, esi
mov edi, edx
add edi, 5
test edi, edi
jle 0x404cef
call 0x41695e
cdq
mov ecx, 0x1a
idiv ecx
inc esi
add dl, 0x61
cmp esi, edi
mov byte [esp + esi + 0x10f], dl
jl 0x404cd3
push str..dll
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x67
push ebp
lea eax, [esp + 0x14]
call fcn.004049f0
add esp, 8
pop edi
pop esi
test eax, eax
je 0x404d59
mov eax, dword [esp + 0x214]
lea ecx, [esp + 4]
call fcn.00406a10
test eax, eax
je 0x404d59
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00414fa3
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00414fa3
add esp, 0x20c
ret

Function at 0x404d80
Capabilities:
Get process image filename

Disassembly:
sub esp, 0x108
mov eax, dword [0x435aa0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.0041a070
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrIA]
add esp, 0xc
mov edi, 4
push edi
push 0
push 0x400
call ebx
mov esi, eax
test esi, esi
je 0x404dfd
push 0x104
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
je 0x404df6
push 0x42eefc
lea edx, [esp + 0x14]
push edx
call ebp
test eax, eax
jne 0x404e24
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
cmp edi, 0x10000
jb 0x404dc2
or eax, 0xffffffff
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414fa3
add esp, 0x108
ret
mov eax, edi
jmp 0x404e0b
Function at 0x405170
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4051b2
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4051b8
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x405204
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x1c
ret

Function at 0x405950
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
ja 0x405978
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 4
mov eax, dword [ebp + 4]
test eax, eax
je 0x405988
push eax
call fcn.0040ac1e
add esp, 4
push esi
call fcn.0040ac13
add esp, 4
push eax
push esi
push 0
push edi
mov dword [ebp + 4], eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40596d
push 0x34
lea edi, [ebp + 8]
push 0
push edi
mov dword [esp + 0x1c], edi
call fcn.0041a070
mov eax, dword [ebp + 4]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x42efd0
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40596d
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x20]
mov ecx, 0x4e4
push eax
mov word [ebp + 2], cx
mov ecx, dword [ebp + 4]
push str.VarFileInfoTranslation
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40596d
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
push ebx
lea edi, [ebp + 0x3c]
mov ebx, 0x42eff0
mov esi, ebp
mov dword [ebp], eax
call fcn.00405ab0
lea edi, [ebp + 0x140]
mov ebx, 0x42ef5c
call fcn.00405ab0
lea edi, [ebp + 0x244]
mov ebx, 0x42effc
call fcn.00405ab0
lea edi, [ebp + 0x348]
mov ebx, 0x42f008
call fcn.00405ab0
lea edi, [ebp + 0x44c]
mov ebx, 0x42f018
call fcn.00405ab0
lea edi, [ebp + 0x550]
mov ebx, 0x42f028
call fcn.00405ab0
lea edi, [ebp + 0x654]
mov ebx, 0x42f03c
call fcn.00405ab0
lea edi, [ebp + 0x758]
mov ebx, 0x42f048
call fcn.00405ab0
mov ecx, dword [esp + 0x14]
pop ebx
xor eax, eax
cmp dword [ecx], 0xfeef04bd
pop edi
pop esi
sete al
pop ebp
add esp, 0xc
ret 4
Function at 0x406420
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [esi], vtable.CMD5Checksum.0
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], eax
push edi
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
push 0x40
push eax
mov dword [esi + 0xb8], eax
lea eax, [esi + 0x44]
push eax
call fcn.0041a070
push 0x40
lea edi, [esi + 4]
push 0
push edi
mov dword [esi + 0x88], 0
mov dword [esi + 0x84], 0
call fcn.0041a070
add esp, 0x18
mov byte [edi], 0x80
mov dword [esi + 0x8c], 0x67452301
mov dword [esi + 0x90], 0xefcdab89
mov dword [esi + 0x94], 0x98badcfe
mov dword [esi + 0x98], 0x10325476
mov eax, esi
pop edi
ret

Function at 0x406700
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42985b
mov eax, dword fs:[0]
push eax
sub esp, 0x4dc
mov eax, dword [0x435aa0]
xor eax, esp
mov dword [esp + 0x4d4], eax
push ebx
push esi
push edi
mov eax, dword [0x435aa0]
xor eax, esp
push eax
lea eax, [esp + 0x4ec]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4fc]
lea esi, [esp + 0x1c]
mov edi, ecx
mov dword [esp + 0x18], eax
call fcn.00406420
mov dword [esp + 0x4f4], 0
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x40679a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 8
jae 0x4067ab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x4f4], edi
mov eax, 1
jmp 0x406882
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
xor ecx, ecx
push 0x3ff
push ecx
lea edx, [esp + 0xe6]
push edx
mov word [esp + 0xe8], cx
call fcn.0041a070
add esp, 0xc
push 1
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x18]
push eax
push 0x400
lea ecx, [esp + 0xe8]
push ecx
push esi
call ebx
test eax, eax
je 0x406861
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406861
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0x20]
call fcn.00406650
xor eax, eax
push 0x3ff
push eax
lea ecx, [esp + 0xe6]
push ecx
mov word [esp + 0xe8], ax
call fcn.0041a070
add esp, 0xc
push 1
push 0
push 0
push esi
call edi
push 0
lea edx, [esp + 0x18]
push edx
push 0x400
lea eax, [esp + 0xe8]
push eax
push esi
call ebx
test eax, eax
jne 0x406804
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.004064c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x4f4], 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], vtable.CMD5Checksum.0
mov ecx, dword [esp + 0x4ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4d4]
xor ecx, esp
call fcn.00414fa3
add esp, 0x4e8
ret
Function at 0x406920
Capabilities:
Check os version
Create thread

Disassembly:
sub esp, 0x9c
mov eax, dword [0x435aa0]
xor eax, esp
mov dword [esp + 0x98], eax
push 0x94
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0
call fcn.0041a070
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 8], 6
jb 0x4069e3
push str.NtCreateThreadEx
push 0x42ef74
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4069b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MyCreateRemoteThread___:_GetProcAddress__NtCreateThreadEx__
call fcn.004068c0
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00414fa3
add esp, 0x9c
ret
push 0
push 0
push 0
push 0
push 0
push ebx
push edi
push esi
push 0
push 0x1fffff
lea edx, [esp + 0x28]
push edx
call eax
mov eax, dword [esp]
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00414fa3
add esp, 0x9c
ret
push 0
push 0
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00414fa3
add esp, 0x9c
ret

Function at 0x406a10
Capabilities:
Create thread
Inject thread

Disassembly:
sub esp, 8
push esi
push edi
push eax
push 0
push 0x43a
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x406a31
pop edi
pop esi
add esp, 8
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 4
push 0x1000
push edi
call ebp
inc eax
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x406abf
push 0
push edi
call ebp
inc eax
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x406aa9
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x14]
push ecx
push 0
push ebx
push ebp
push 0
push 0
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x406ac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, ebp
call fcn.00406920
mov edi, eax
test edi, edi
jne 0x406ac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x8000
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 8
ret
push 0xffffffffffffffff
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x406aa9
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x406aa9
push 0x8000
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop ebp
xor eax, eax
cmp dword [esp + 0xc], eax
pop ebx
pop edi
setne al
pop esi
add esp, 8
ret
Function at 0x40d1a1
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40d1d0
call fcn.0040b4df
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x425bb7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call 0x41b1f2
and dword [ebp - 4], 0
cmp dword [0x4398a4], 0
mov ebx, eax
jne 0x425c68
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425d19
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42ec70
push edi
call esi
test eax, eax
je 0x425d19
push eax
call 0x41b180
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4398a4], eax
call esi
push eax
call 0x41b180
mov dword [esp], 0x42ec4c
push edi
mov dword [0x4398a8], eax
call esi
push eax
call 0x41b180
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4398ac], eax
call esi
push eax
call 0x41b180
pop ecx
mov dword [0x4398b4], eax
test eax, eax
je 0x425c68
push str.GetProcessWindowStation
push edi
call esi
push eax
call 0x41b180
pop ecx
mov dword [0x4398b0], eax
mov eax, dword [0x4398b0]
cmp eax, ebx
je 0x425cc0
cmp dword [0x4398b4], ebx
je 0x425cc0
push eax
call fcn.0041b1fb
push dword [0x4398b4]
mov esi, eax
call fcn.0041b1fb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x425cc0
test edi, edi
je 0x425cc0
call esi
test eax, eax
je 0x425cb7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x425cb7
test byte [ebp - 0xc], 1
jne 0x425cc0
or dword [ebp + 0x10], 0x200000
jmp 0x425cf9
mov eax, dword [0x4398a8]
cmp eax, ebx
je 0x425cf9
push eax
call fcn.0041b1fb
pop ecx
test eax, eax
je 0x425cf9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425cf9
mov eax, dword [0x4398ac]
cmp eax, ebx
je 0x425cf9
push eax
call fcn.0041b1fb
pop ecx
test eax, eax
je 0x425cf9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4398a4]
call fcn.0041b1fb
pop ecx
test eax, eax
je 0x425d19
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425d1b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4095c9
Capabilities:
Read file on windows

Disassembly:
push 0x54
mov eax, 0x416a1f
call fcn.00414056
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x50], ecx
jb 0x4095e5
mov eax, dword [ebx]
jmp 0x4095e7
mov eax, ebx
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__stat64i32]
pop ecx
pop ecx
test eax, eax
je 0x409602
xor al, al
call fcn.004140a0
ret 4
cmp dword [ebx + 0x14], 0x10
jb 0x40960c
mov eax, dword [ebx]
jmp 0x40960e
mov eax, ebx
push 0x4198fc
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
xor esi, esi
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
cmp eax, esi
je 0x4095f8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
inc eax
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
call fcn.00409fe3
mov edi, dword [ebp - 0x60]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x48], esi
jbe 0x409674
mov eax, dword [ebp - 0x5c]
sub eax, edi
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
sub eax, esi
push eax
lea eax, [edi + esi]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x409696
add esi, eax
cmp esi, dword [ebp - 0x48]
jb 0x409651
push dword [ebp - 0x44]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
mov byte [edi + esi], 0
mov eax, edi
mov ecx, dword [ebp - 0x50]
push eax
push ebx
call fcn.0040930e
test eax, eax
jne 0x409684
mov bl, 1
jmp 0x4096d4
push dword [ebp - 0x44]
call dword [sym.imp.MSVCR100.dll_ferror]
pop ecx
test eax, eax
je 0x409674
cmp dword [ebx + 0x14], 0x10
jb 0x4096ac
mov ebx, dword [ebx]
call dword [sym.imp.MSVCR100.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR100.dll_strerror]
push eax
push ebx
push str.Failed_to_read_file__s:__s_n
call fcn.004115c7
push dword [ebp - 0x44]
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
xor bl, bl
lea ecx, [ebp - 0x60]
call fcn.00409d10
mov al, bl
jmp 0x4095fa

Function at 0x40a8ce
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x424eb0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, ebx
je 0x40a96e
cmp eax, edi
ja 0x40a96e
push esi
lea eax, [ebp + 0x89]
push ebx
push eax
mov byte [ebp + 0x88], bl
call sub.MSVCR100.dll_memset
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
push 0x4199fc
lea eax, [ebp + 0x88]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x20
cmp eax, ebx
jle 0x40a96e
mov byte [ebp + eax + 0x88], bl
lea eax, [ebp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x40a970
xor eax, eax
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413fde
add ebp, 0x190
leave
ret
Function at 0x40b6e8
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x416c04
call fcn.00413fed
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.00409fe3
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 4], edi
jb 0x40b720
mov eax, dword [ebx]
jmp 0x40b722
mov eax, ebx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp eax, edi
je 0x40b7a0
cmp eax, esi
jae 0x40b7a0
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.00409fe3
mov esi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x30]
mov byte [ebp - 4], 1
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
cmp eax, edi
je 0x40b77f
cmp eax, esi
jae 0x40b77f
push dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
call fcn.00404c84
lea ecx, [ebp - 0x30]
call fcn.00409d10
jmp 0x40b7ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40b79b
push eax
push dword [ebp - 0x20]
push str.Unable_to_get_long_path_name_for___s_:_GetLongPathName_failed__error__d__n
call fcn.0041130e
add esp, 0xc
push dword [ebp - 0x20]
jmp 0x40b76d
cmp dword [ebx + 0x14], 0x10
jb 0x40b7aa
mov esi, dword [ebx]
jmp 0x40b7ac
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x41a818
call fcn.0041130e
mov ecx, dword [ebp + 8]
add esp, 0xc
push ebx
call fcn.004080ea
lea ecx, [ebp - 0x20]
call fcn.00409d10
mov eax, dword [ebp + 8]
call fcn.0041408c
ret
Function at 0x40bafa
Capabilities:
Compare security identifiers

Disassembly:
push 0x34
mov eax, 0x416ca2
call fcn.00414056
lea eax, [ebp - 0x24]
push eax
xor ebx, ebx
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x40bb4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x40bbf7
lea eax, [ebp - 0x24]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40bbf7
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
push 0x400
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.00409fe3
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov byte [ebp - 4], 1
jmp 0x40bb9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x38]
cmp eax, 0x7a
jne 0x40bbe6
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00401fa0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00409fe3
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x20]
push ecx
sub eax, esi
push eax
push esi
push 2
push dword [ebp - 0x24]
mov dword [ebp - 0x20], ebx
call edi
test eax, eax
je 0x40bb77
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40bbff
lea ecx, [ebp - 0x38]
call fcn.00409d10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b269
xor al, al
call fcn.004140a0
ret
xor edi, edi
mov byte [ebp - 0x19], bl
cmp dword [esi], ebx
jbe 0x40bc28
lea ebx, [esi + 4]
push dword [ebp - 0x3c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40bc24
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x40bc0b
jmp 0x40bc28
mov byte [ebp - 0x19], 1
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea ecx, [ebp - 0x38]
call fcn.00409d10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b269
mov al, byte [ebp - 0x19]
jmp 0x40bbf9
Function at 0x40f43b
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
imul edi, edi, 0x3e8
mov al, byte [0x4252d0]
test al, al
je 0x40f464
call fcn.0040ee40
push edi
push dword [0x4252d8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x424e14]
cmp ecx, eax
sbb esi, esi
shr eax, 0x14
push eax
mov eax, dword [ebp - 0x1c]
shr ecx, 0x14
push ecx
shr eax, 0x14
push eax
push str.Memory_status:_total___u_available___u_limit___u_n
push 4
call fcn.00411620
add esp, 0x14
neg esi
je 0x40f4b9
push str.Low_memory_condition___skipping_refresh_operation_n
push 3
call fcn.00411620
pop ecx
pop ecx
jmp 0x40f456
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00413fde
leave
ret

Function at 0x40f5dc
Capabilities:
Get memory capacity

Disassembly:
cmp dword [0x425220], 0
jne 0x40f5f8
cmp dword [0x425218], 0
jne 0x40f5f3
jmp fcn.0040f43b
jmp fcn.0040f371
jmp fcn.0040f4c7

Function at 0x40f91b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ebx
push edi
mov dword [ebp - 0xc], ecx
xor edi, edi
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
call ebx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40f977
cmp eax, edi
je 0x40f977
mov ecx, dword [ebp + 8]
add ecx, 4
cmp dword [ecx + 0x14], 0x10
jb 0x40f963
mov ecx, dword [ecx]
push eax
push ecx
push str.File_seek_error___s_:_error__d_n
call fcn.0041130e
add esp, 0xc
jmp 0x40fa1b
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp ecx, edi
ja 0x40f998
cmp edx, edi
jbe 0x40fa1a
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov al, byte [0x4252d0]
test al, al
je 0x40f9ac
call fcn.0040ee40
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
ja 0x40f9c3
jb 0x40f9be
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
jae 0x40f9c3
lea ecx, [ebp - 0x18]
jmp 0x40f9c6
lea ecx, [ebp - 8]
mov eax, dword [esi]
push edi
lea edx, [ebp + 0x18]
push edx
push dword [ecx]
mov dword [ebp + 0x18], edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f9fb
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x40fa1a
sub dword [ebp - 8], eax
sbb dword [ebp - 4], edi
cmp dword [ebp - 4], edi
ja 0x40f99e
jb 0x40fa1a
cmp dword [ebp - 8], edi
ja 0x40f99e
jmp 0x40fa1a
call ebx
mov ecx, dword [ebp + 8]
add ecx, 4
cmp dword [ecx + 0x14], 0x10
jb 0x40fa0b
mov ecx, dword [ecx]
push eax
push ecx
push str.File_read_error___s_:_error__d_n
call fcn.0041130e
add esp, 0xc
pop esi
pop edi
pop ebx
leave
ret