joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482a10
Capabilities:
Access peb ldr_data
Get ntdll base address
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9668
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4ea160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi], 0x3c
mov dword [ebp - 0x18], vtable.FCString.0
call fcn.00451b70
mov esi, dword [ebp + 0x20]
lea ecx, [ebp - 0x18]
push esi
push 0x100
call fcn.00450e40
mov dword [ebp - 4], 0
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x18]
cmp dword [eax + 8], 0x20
cmovl ebx, esi
mov esi, dword [ebp + 0xc]
test ecx, ecx
jne 0x482b23
cmp dword [ebp + 0x14], 0xffffffff
mov eax, 0xf
cmove eax, ecx
mov ecx, eax
or ecx, 0x80000000
cmp esi, 0xffffffff
cmove ecx, eax
mov eax, ecx
or eax, 0x8000000
cmp dword [ebp + 0x1c], 0xffffffff
cmove eax, ecx
mov ecx, eax
or ecx, 0x40000000
cmp edx, 0xffffffff
cmove ecx, eax
test ebx, ebx
je 0x482b23
or ecx, 0x20000000
mov eax, dword [ebp + 0x14]
mov dword [edi + 4], ecx
cmp eax, 0xffffffff
je 0x482b31
mov dword [edi + 8], eax
cmp esi, 0xffffffff
je 0x482b3f
lea eax, [esi + esi*4]
shl eax, 2
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x1c]
cmp eax, 0xffffffff
je 0x482b4a
mov byte [edi + 0x18], al
cmp edx, 0xffffffff
je 0x482b6d
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, dl
shl eax, 8
or ecx, eax
shr edx, 0x10
shl ecx, 8
movzx eax, dl
or ecx, eax
mov dword [edi + 0x14], ecx
test ebx, ebx
je 0x482b7c
push ebx
lea eax, [edi + 0x1a]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00450480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x483470
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be517
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4ea160]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xbc], edi
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x14]
mov dword [ebp - 0xc0], edi
mov dword [edi], vtable.FCFileDialog.0
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], vtable.FCString.0
call fcn.00451b70
push 0
push 0x100
lea ecx, [edi + 0x14]
call fcn.00450e40
mov dword [ebp - 4], 0
lea ecx, [edi + 0x20]
mov dword [edi + 0x20], vtable.FCString.0
call fcn.00451b70
push 0
push 0x100
lea ecx, [edi + 0x20]
call fcn.00450e40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call fcn.00475ee0
mov byte [ebp - 4], 2
push 8
push 0x64
call fcn.004898f0
push 8
push 0x1000
mov dword [edi + 4], eax
call fcn.004898f0
push 8
push 0x1000
mov dword [edi + 0xc], eax
call fcn.004898f0
mov ecx, dword [edi + 4]
add esp, 0x18
mov dword [edi + 0x10], eax
test ecx, ecx
je 0x483653
cmp dword [edi + 0xc], 0
je 0x483653
test eax, eax
je 0x483653
mov dword [ecx], 0x4c
mov eax, dword [edi + 4]
mov dword [eax + 4], 0
mov eax, dword [edi + 4]
mov dword [eax + 8], 0
mov eax, dword [edi + 4]
mov dword [eax + 0xc], 0
mov eax, dword [edi + 4]
mov dword [eax + 0x10], 0
mov eax, dword [edi + 4]
mov dword [eax + 0x14], 0
mov eax, dword [edi + 4]
mov dword [eax + 0x18], 1
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov dword [ecx + 0x1c], eax
mov eax, dword [edi + 4]
mov dword [eax + 0x20], 0x800
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x24], eax
xor ecx, ecx
mov eax, dword [edi + 4]
mov dword [eax + 0x28], 0x800
mov eax, dword [edi + 4]
mov dword [eax + 0x2c], 0
mov eax, dword [edi + 4]
mov dword [eax + 0x30], 0
mov eax, dword [edi + 4]
mov dword [eax + 0x34], 8
mov eax, dword [edi + 4]
mov word [eax + 0x38], cx
mov eax, dword [edi + 4]
mov word [eax + 0x3a], cx
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x3c], eax
mov ecx, dword [edi + 4]
mov dword [ecx + 0x40], 0
mov ecx, dword [edi + 4]
mov dword [ecx + 0x44], 0
mov ecx, dword [edi + 4]
mov dword [ecx + 0x48], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call fcn.00475f20
mov dword [ebp - 4], 0xffffffff
mov eax, edi
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.0044f18f
mov esp, ebp
pop ebp
ret 4
push 0x4c3bb4
push str.FCFileDialog___create
lea ecx, [ebp - 0xcc]
call fcn.00433400
push 0x4dd6d8
lea eax, [ebp - 0xcc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x484020
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4ea160]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push 0xffffffffffffffff
push eax
call fcn.0040ca90
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
add esp, 0x1c
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044f18f
mov esp, ebp
pop ebp
ret

Function at 0x4852e0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, dword [edx + 8]
mov edi, ecx
mov eax, dword [edx + 4]
inc eax
lea esi, [eax + eax*2]
and esi, 0xfffffffc
imul esi, dword [edx + 8]
add esi, 0x48
push esi
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x485350
add edi, 4
mov ecx, edi
call fcn.00485170
cmp byte [ebp + 0xc], 0
je 0x485328
mov ecx, edi
call fcn.00485140
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 8]
push esi
push eax
call fcn.0046b960
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, edi
call fcn.00485150
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x487bf0
Capabilities:
Read clipboard data

Disassembly:
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x10]
mov ecx, esi
call fcn.00450c50
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x487c48
push ebx
lea ebx, [edi + 4]
mov ecx, ebx
call fcn.00485170
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x487c40
push eax
push 0x100
mov ecx, esi
call fcn.00450e40
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, ebx
call fcn.00485150
pop ebx
pop edi
mov eax, esi
pop esi
ret

Function at 0x487c50
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
mov ebx, ecx
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
add eax, 2
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x487cbd
push esi
lea ecx, [ebx + 4]
call fcn.00485170
cmp dword [ebp + 0xc], 0
je 0x487c8c
lea ecx, [ebx + 4]
call fcn.00485140
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
push dword [ecx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SetClipboardData]
lea ecx, [ebx + 4]
call fcn.00485150
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x488e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x488ef2
lea ecx, [ebp - 4]
push ecx
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x488ef2
push esi
push dword [ebp - 4]
call fcn.0044f5a2
mov esi, eax
add esp, 4
test esi, esi
je 0x488eea
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x489c40
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
lea ebx, [edi + 0x24]
push ebx
cmp eax, 0xffffffff
je 0x489c62
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
test esi, esi
jne 0x489c7b
pop edi
pop esi
pop ebx
ret
mov eax, dword [edi + 0xc]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [edi + 0x20], eax
cmp eax, 0xffffffff
je 0x489ca7
mov esi, 1
cmp byte [edi + 0x50], 0x2e
lea eax, [edi + 0x50]
jne 0x489c8e
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.00489c40
test byte [ebx], 0x10
je 0x489ca1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov word [eax + edi + 0x50], 0x5c
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x48bb50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb778
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ea160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 4]
mov dword [ebp - 0x10], eax
lea ebx, [eax + 0x1c]
lock inc dword [ebx]
lea edi, [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
lea ecx, [esi + 0x30]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esi + 0x3c]
lea ecx, [esi + 0x3c]
call dword [eax + 0xc]
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x24]
call dword [eax + 0xc]
mov dword [ebp - 4], 0xffffffff
lock dec dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48da00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4ea160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 4]
lea ecx, [eax + 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
lock inc dword [ecx]
add eax, 4
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x30]
mov eax, dword [ebx + 0x30]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x3c]
lea ecx, [ebx + 0x3c]
call dword [eax + 0xc]
cmp dword [ebx + 0x28], 0
je 0x48dac8
lea eax, [ebx + 0x24]
mov dword [ebp - 0x24], vtable.FCXListIterator_class_FCOverlaySurface_.0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004459a0
test eax, eax
je 0x48dabd
nop dword [eax]
mov ecx, dword [eax + 8]
cmp ecx, 1
jl 0x48daa0
mov edx, dword [ebx + 0x3c]
lea ecx, [ebx + 0x3c]
jmp 0x48daab
cmp ecx, 0xffffffff
jg 0x48dab1
mov edx, dword [ebx + 0x30]
lea ecx, [ebx + 0x30]
push 0
push eax
call dword [edx + 0x14]
lea ecx, [ebp - 0x24]
call fcn.004459a0
test eax, eax
jne 0x48da90
mov byte [ebp - 4], 0
mov dword [ebp - 0x24], vtable.FCXListIterator_class_FCOverlaySurface_.0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
lock dec dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x490a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf868
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ea160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, 0xffff0000
jne 0x490b36
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x490a47
call fcn.00457770
mov esi, eax
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x490a90
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x490b77
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x490b77
push eax
mov ecx, ebx
call fcn.00490430
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x4d0ac4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x490b77
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x490b77
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x490b77
cmp dword [edi], 0x20474352
jne 0x490b77
mov esi, dword [edi + 4]
lea ecx, [ebp - 0x1c]
call fcn.0048f8e0
mov dword [ebp - 4], 0
lea eax, [edi + 8]
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a23f0
mov esi, eax
mov ecx, ebx
push esi
call fcn.00490430
push 0
push esi
call fcn.00489940
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], vtable.FCMcg.0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], vtable.FCCg.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], vtable.FCString.0
call fcn.00451b70
push edi
push 0x100
lea ecx, [ebp - 0x18]
call fcn.00450e40
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
push dword [ebp + 0x10]
mov ecx, ebx
push eax
call fcn.00490170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00450480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49c4d0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0aa7
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ea160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.FCRectSet.0
mov dword [edi + 4], vtable.FCXList_class_FCRect_.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 0
lea eax, [edi + 0x18]
push eax
mov dword [edi + 0x14], vtable.FCCriticalSection.0
mov dword [edi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 1
lea eax, [edi + 0x3c]
mov esi, dword [sym.imp.USER32.dll_SetRectEmpty]
push eax
mov dword [edi + 0x38], vtable.FCRect.0
call esi
mov byte [ebp - 4], 2
lea eax, [edi + 0x50]
push eax
mov dword [edi + 0x4c], vtable.FCRect.0
call esi
mov byte [ebp - 4], 3
lea eax, [edi + 0x64]
push eax
mov dword [edi + 0x60], vtable.FCRect.0
call esi
mov byte [ebp - 4], 4
mov dword [edi + 0x34], 0
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49d230
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
test eax, eax
jle 0x49d247
sub eax, 1
jne 0x49d247
mov ecx, dword [ecx + 4]
pop ebp
jmp fcn.00477500
xor al, al
pop ebp
ret 0x1c

Function at 0x4a2ac0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
lea eax, [ebp - 0x24]
push eax
mov dword [esi], vtable.FCFileMapping.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a2b60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1908
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ea160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4a2b95
call fcn.004a2cc0
test byte [ebp + 0xc], 0xc
mov edi, 0x80000000
mov dword [esi + 0x14], 1
mov ebx, 1
mov dword [ebp - 0x10], 3
mov dword [esi + 0xc], 4
je 0x4a2bcf
mov edi, 0xc0000000
mov dword [ebp - 0x10], 4
xor ebx, ebx
mov dword [esi + 0xc], 0xf001f
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.FCPathName.0
mov dword [ebp - 0x1c], vtable.FCString.0
call fcn.00451b70
push 0
push 0x200
lea ecx, [ebp - 0x1c]
call fcn.00450e40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call fcn.00453660
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
push 0
push 0x80
push dword [ebp - 0x10]
push 0
push ebx
push edi
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x4a2c6d
lea ecx, [esi + 0x1c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [esi + 0x18], eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x18]
cmp ecx, dword [esi + 0x10]
push 0
cmovae ecx, dword [esi + 0x10]
push ecx
push 0
mov ecx, esi
call fcn.004a2ce0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], vtable.FCPathName.0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00450480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a44c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbef8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ea160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x18]
xor cl, cl
cmp eax, dword [ebp + 8]
jne 0x4a464e
mov eax, dword [esi + 8]
shr eax, 2
test al, 1
je 0x4a45db
mov ecx, esi
call fcn.004a4670
test al, al
je 0x4a45db
lea eax, [esi + 0x44]
lea ecx, [eax + 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
lock inc dword [ecx]
add eax, 4
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x88]
test edi, edi
je 0x4a4597
mov ecx, dword [esi + 0x84]
mov eax, ecx
mov edx, dword [esi + 0x80]
and ecx, 3
shr eax, 2
dec edx
and edx, eax
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + ecx*4]
lea ecx, [esi + 0x84]
mov dword [ebp - 0x10], eax
lea eax, [edi - 1]
mov dword [esi + 0x88], eax
test eax, eax
je 0x4a457f
mov eax, dword [esi + 0x84]
inc eax
mov dword [ecx], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x64]
call fcn.004a4a30
mov edi, dword [esi + 0x88]
test edi, edi
jne 0x4a4542
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
lock dec dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xc]
and dword [esi + 8], 0xbbffffff
mov ecx, esi
push 8
call fcn.004a4390
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc dword [esi + 0x40]
mov ebx, dword [esi + 0x40]
mov eax, dword [esi + 0x34]
mov edi, dword [esi + 0x38]
cmp ebx, dword [esi + 0x3c]
jl 0x4a4616
mov ecx, esi
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
call fcn.004a4670
mov ecx, esi
call fcn.004a4300
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
sub eax, dword [esi + 0x2c]
imul eax, ebx
sub edi, dword [esi + 0x30]
imul edi, ebx
cdq
idiv dword [esi + 0x3c]
add eax, dword [esi + 0x2c]
mov dword [esi + 0x24], eax
mov eax, edi
cdq
idiv dword [esi + 0x3c]
add eax, dword [esi + 0x30]
mov dword [esi + 0x28], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a4ea0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb778
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ea160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x10]
mov dword [ebp - 0x10], eax
lea edi, [eax + 0x1c]
lock inc dword [edi]
lea esi, [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, 0x4c4754
mov eax, dword [ebp + 8]
lea ecx, [ebx + 4]
test eax, eax
cmovne edx, eax
push edx
push 0x100
call fcn.00450e40
mov eax, dword [ebx + 8]
lea ecx, [ebx + 0x40]
mov eax, dword [eax + 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov eax, dword [ecx]
mov dword [ebx + 0x3c], 0
call dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebx + 0x30], eax
call fcn.004a5130
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x4c], 0xffffffff
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebp - 4], 0xffffffff
lock dec dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a6b10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1e48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4ea160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x778]
lea ecx, [eax + 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
lock inc dword [ecx]
add eax, 4
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
xor esi, esi
cmp dword [ebx + 0x5c], esi
je 0x4a6c7b
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.FCString.0
call fcn.00451b70
push str.len:
push 0x100
lea ecx, [ebp - 0x24]
call fcn.00450e40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
mov edi, dword [ebp + 8]
push 0x20
push 0
push 0xa
mov esi, dword [edi + 4]
push esi
call fcn.00450750
push str._code:
lea ecx, [ebp - 0x24]
call fcn.00450850
mov edi, dword [edi]
cmp esi, 0x14
jb 0x4a6bc0
mov esi, 0x14
jmp 0x4a6bc4
test esi, esi
je 0x4a6beb
movsx eax, byte [edi]
lea ecx, [ebp - 0x24]
push 0x30
push 2
push 0x10
push eax
call fcn.00450750
push 0x4ceac8
lea ecx, [ebp - 0x24]
lea edi, [edi + 1]
call fcn.00450850
sub esi, 1
jne 0x4a6bc4
push 0x4d7efc
lea ecx, [ebp - 0x24]
call fcn.00450850
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [eax + 0x14]
call edi
push 0x40
push dword [ebp + 8]
push dword [ebx + 0x5c]
call dword [sym.imp.WINMM.dll_midiOutLongMsg]
mov esi, eax
test esi, esi
je 0x4a6c6f
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], vtable.FCString.0
call fcn.00451b70
push str.long_message_error:_error__0x
push 0x100
lea ecx, [ebp - 0x30]
call fcn.00450e40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
push 0x30
push 4
push 0x10
push esi
call fcn.00450750
push 0x4d7efc
lea ecx, [ebp - 0x30]
call fcn.00450850
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x14]
call edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00450480
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00450480
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
lock dec dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4