joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ba70
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a2398
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x46baa9
inc eax
mov dword [esi + 0x10], eax
jmp 0x46bbbc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x46babd
mov eax, 0xffffffc7
jmp 0x46bbbe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x46bace
cmp dword [esi + 8], eax
jne 0x46babd
cmp dword [esi + 8], eax
jne 0x46bae7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x46bae7
mov eax, 0xffffffc7
jmp 0x46bbbe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x46bafb
push eax
mov ecx, ebx
call fcn.0046b2a0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0043c890
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x46bb2c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0043c8b0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0046aa10
test eax, eax
mov dword [esp + 0x38], eax
je 0x46bb5f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4a8ae8
call fcn.0043ca90
mov eax, dword [esp + 0x38]
jmp 0x46bbbe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0046b8d0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x46bba3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0046b8f0
mov esi, eax
test esi, esi
jne 0x46bbd3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0046b8d0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x46bb75
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4a8ae8
call fcn.0043ca90
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4a8ae8
call fcn.0043ca90
mov eax, esi
jmp 0x46bbbe

Function at 0x46ecf0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x46ed50
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x46ed50
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x46ed50
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x46ed50
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x46ed90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x474ef0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a29c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0049b7fd
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00474890
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0049b72b
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00497ff4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00497ff4
push 1
push 0
push 0
mov ecx, esi
call fcn.00497f9c
push 1
push 0
push 1
mov ecx, esi
call fcn.00497f9c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049b86f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x475070
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a29e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0049b7fd
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00474890
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0049b72b
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x475134
cmp dword [esp + 0x40], 1
jne 0x475132
cmp ecx, eax
jge 0x475134
mov eax, ecx
cmp eax, 0xc8
jge 0x475140
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00474ef0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049b86f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4758b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a2a53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0049640d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0049baa5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0049cfc1
test eax, eax
je 0x4759cc
mov ecx, dword [esp + 0x3c]
call fcn.0049bad2
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x475990
push edi
mov ecx, esi
call fcn.0049913b
mov ecx, esi
call fcn.00475b30
cmp dword [esp + 0x38], 1
jne 0x4759c5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00499276
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4783f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x478423
push esi
call fcn.0047b4e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47841c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4784a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x478492
mov eax, dword [esi + 8]
test eax, eax
je 0x478447
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47848e
cmp eax, 2
je 0x478492
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47843a
cmp eax, 3
je 0x47846d
cmp eax, 1
jne 0x47843a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47843a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47843a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004784d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4784b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004784d0
add esp, 4
pop esi
ret

Function at 0x497202
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49723a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049528f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00495267
jmp 0x497246
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4988f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49893a
call fcn.0049e3a7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49893a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x498931
xor eax, eax
jmp 0x498942
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00498948
pop edi
pop esi
pop ebx
ret 4

Function at 0x49e8d7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49e905
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49e923
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049e83d
jmp 0x49e923
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49e923
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049e83d
test edi, edi
mov eax, edi
jne 0x49e90d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403d40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x403d6b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x403d54
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x403ff0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
movzx eax, bl
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
mov eax, ebx
shr eax, 8
movzx eax, al
push esi
push edi
xor edx, eax
mov edi, ecx
imul ecx, edx, 0x1000193
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 4]
xor ecx, eax
mov dword [ebp - 4], edi
imul ecx, ecx, 0x1000193
mov eax, ebx
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edi + 0x18]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov edi, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp edi, esi
jne 0x40405a
mov ecx, esi
jmp 0x40405f
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x40406c
cmp dword [eax + 8], ebx
je 0x40406e
mov eax, dword [eax]
jmp 0x404052
mov eax, esi
cmp eax, esi
jne 0x4040c9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax]
lea eax, [ebp - 0xc]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.00407210
mov edx, eax
mov ecx, 0xffffffe
mov eax, dword [ebx + 8]
sub ecx, eax
cmp ecx, 1
jb 0x4040e8
inc eax
mov ecx, ebx
mov dword [ebx + 8], eax
mov dword [esi + 4], edx
mov dword [edi], edx
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00406b20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push str.error_command_table_add__08X
push 0x4f4fc0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.list_T__too_long
call fcn.0046e097
int3
Function at 0x4055d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 0xb]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp dword [ecx + 4], edi
jne 0x405643
cmp eax, edi
jne 0x40563b
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x40564b
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x40564b
cmp eax, edi
jne 0x40564e
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push 0x10
push edi
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.0048a3ed
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x408680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov edi, ecx
mov esi, edx
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 8], esi
push ecx
push 4
lea eax, [esi + 0xc94]
mov dword [ebp - 0xc], edi
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xc98]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xca0]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xc9c]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea eax, [esi + 0xca4]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xcb0]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 4]
add esi, 0xcb4
push eax
push 4
push esi
push edi
call ebx
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 4
add eax, 0xcbc
push eax
push edi
call ebx
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
push 0
push eax
push 4
add edi, 0xcb8
push edi
push dword [ebp - 0xc]
call ebx
mov ebx, dword [ebp - 8]
lea eax, [ebp - 4]
push 0
push eax
push 0xc
add ebx, 0xcc0
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 0xc
add eax, 0xe2c
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 0xb34
add eax, 0xe38
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 8
add eax, 0x196c
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xcb0]
imul eax, dword [ecx + 0xc94]
push eax
call dword [sym.imp.PAL.dll_PalSoundSetPrimaryVolume]
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
mov esi, dword [sym.imp.PAL.dll_PalSoundSetVolume]
push 3
imul eax, dword [ecx + 0xc98]
push eax
call esi
mov eax, dword [ebp - 8]
push 1
mov eax, dword [eax + 0xc9c]
imul eax, dword [edi]
push eax
call esi
mov edi, dword [ebp - 8]
push 4
mov eax, dword [edi + 0xcc4]
imul eax, dword [edi + 0xca8]
push eax
call esi
mov eax, dword [edi + 0xcc8]
imul eax, dword [edi + 0xcac]
push 6
push eax
call esi
mov eax, dword [ebx]
imul eax, dword [edi + 0xca4]
push 5
push eax
call esi
add esp, 0x2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408a90
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
push 0
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
lea edi, [eax + 0x338]
mov ecx, edi
call fcn.00408a20
cmp eax, 0xffffffff
je 0x408b09
imul ebx, eax, 0x2c
add ebx, edi
cmp dword [ebx + 0x261cc], 0
mov dword [ebx + 0x261c8], 0
je 0x408b09
mov dword [ebx + 0x261c8], 1
mov edx, 2
push 2
push dword [edi + 0x55d58]
mov ecx, edi
call fcn.004675d0
mov eax, dword [edi + 0x55d5c]
lea ecx, [edi + 0x55d50]
add esp, 8
add eax, dword [ebx + 0x261cc]
mov dword [edi + 0x55d58], eax
pop edi
pop esi
pop ebx
jmp fcn.004661f0
pop edi
pop esi
pop ebx
ret
Function at 0x408b10
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
push 0
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
xor esi, esi
lea ebx, [eax + 0x338]
lea edi, [ebx + 0x259cc]
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x408b44
push eax
call dword [sym.imp.PAL.dll_PalSoundPlayIs]
add esp, 4
test eax, eax
jne 0x408bb1
inc esi
add edi, 0x44
cmp esi, 8
jl 0x408b30
mov ecx, ebx
call fcn.00408a20
cmp eax, 0xffffffff
je 0x408bb1
imul edi, eax, 0x2c
add edi, ebx
cmp dword [edi + 0x261c8], 0
je 0x408bb1
cmp dword [edi + 0x261d0], 0
mov dword [edi + 0x261c8], 0
je 0x408bb1
push 2
push dword [ebx + 0x55d58]
mov edx, 2
mov ecx, ebx
call fcn.004675d0
mov eax, dword [ebx + 0x55d5c]
lea ecx, [ebx + 0x55d50]
add esp, 8
add eax, dword [edi + 0x261d0]
mov dword [ebx + 0x55d58], eax
pop edi
pop esi
pop ebx
jmp fcn.004661f0
pop edi
pop esi
pop ebx
ret

Function at 0x40c240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x50b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 5
lea eax, [ebp - 0x310]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
js 0x40c31b
mov eax, dword [esi + 0x214]
push edi
add eax, 0x208
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esi + 0x214]
lea ecx, [edi + 0x410]
lea edx, [edi + 0x104]
push ecx
test eax, eax
je 0x40c2c1
lea eax, [edi + 0x208]
push eax
push edx
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push str._s_s_s_s_save
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x40c2de
push edx
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push str._s_s_s_save
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
mov ecx, esi
mov edx, eax
sub ecx, edx
pop edi
lea edx, [ecx + 4]
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x40c2f0
mov dword [esi + 0x210], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0048a3ac
mov esp, ebp
pop ebp
ret
Function at 0x40c330
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x50b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x24
push eax
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
js 0x40c38a
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00497208
add esp, 0xc
test eax, eax
je 0x40c4d5
push 0
push 0x23
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
test eax, eax
js 0x40c3bf
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00497208
add esp, 0xc
test eax, eax
je 0x40c4d5
push 0x4fb630
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c4a4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40c4a4
cmp dword [ebp - 0x210], 0
je 0x40c4a4
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048cf70
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x20c]
add esp, 0xc
push 0x208
push eax
push str.ProgramFiles_x86_
call ebx
test eax, eax
je 0x40c45d
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00497208
add esp, 0xc
test eax, eax
je 0x40c4d5
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048cf70
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x208
push eax
push str.ProgramW6432
call ebx
test eax, eax
jne 0x40c4b7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3ac
mov esp, ebp
pop ebp
ret 4
push 0
push 0x26
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
test eax, eax
js 0x40c48f
lea eax, [ebp - 0x20c]
push eax
call esi
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00497208
add esp, 0xc
test eax, eax
jne 0x40c48f
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048a3ac
mov esp, ebp
pop ebp
ret 4