joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440a80
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x440a9c
cmp dword [esi + 4], 0
je 0x440ac9
test byte [ebx + 0x55], 1
jne 0x440abb
mov eax, ebx
call fcn.0043eed4
test eax, eax
jne 0x440abb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x440bd9
mov edx, esi
mov eax, ebx
call fcn.00440488
jmp 0x440bd9
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x440bd2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00442ad8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043c37c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00440a80
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00442ad8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440bd9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x447bbc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x467f40]
cmp byte [eax + 0xc], 0
je 0x447d29
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x447d22
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46b548], 0
jne 0x447c10
push 0x447d30
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x447d38
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46b548], eax
cmp dword [0x4676b4], 0
jne 0x447d0b
push 0x447d48
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4676b4], eax
cmp dword [0x4676b4], 0
je 0x447d0b
push 0x447d54
mov eax, dword [0x4676b4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46b54c], eax
push 0x447d64
mov eax, dword [0x4676b4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46b550], eax
push 0x447d78
mov eax, dword [0x4676b4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46b554], eax
push 0x447d90
mov eax, dword [0x4676b4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46b558], eax
push 0x447da8
mov eax, dword [0x4676b4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46b55c], eax
push 0x447dbc
mov eax, dword [0x4676b4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46b560], eax
push 0x447dd4
mov eax, dword [0x4676b4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46b564], eax
push 0x447dec
mov eax, dword [0x4676b4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46b568], eax
push 0x447e08
mov eax, dword [0x4676b4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46b56c], eax
push 0x447e14
mov eax, dword [0x4676b4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46b570], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447d29
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44d370
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44d3c4]
test si, 4
je 0x44d385
or bl, 1
test si, 8
je 0x44d38f
or bl, 4
test si, 1
je 0x44d399
or bl, 8
test si, 2
je 0x44d3a3
or bl, 0x10
test si, 0x10
je 0x44d3ad
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d3bc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44d3c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44d404]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d3e2
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d3f1
or bl, 4
test esi, 0x20000000
je 0x44d3fc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x454ab8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x454aca
add esp, 0xfffffff0
call fcn.004042e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420d74
mov eax, dword [0x467b8c]
mov dword [eax + 4], ebx
mov dword [eax], 0x454e5c
mov eax, dword [0x467b9c]
mov dword [eax + 4], ebx
mov dword [eax], 0x454e68
mov eax, ebx
call fcn.00454e74
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x418b70]
call fcn.00403fa4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x418b70]
call fcn.00403fa4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x418b70]
call fcn.00403fa4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x418b70]
call fcn.00403fa4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x418b70]
call fcn.00403fa4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45090c
push eax
push 0
push 0
mov eax, dword [0x467d20]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4248b8]
call fcn.00425dd8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4248b8]
call fcn.00425dd8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4248b8]
call fcn.00425dd8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004552a4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455174
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455174
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455174
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454c07
call fcn.00404338
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x454f58
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455103
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4550e4
mov dl, 1
mov eax, dword [0x418f94]
call fcn.00403fa4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404e04
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4550d3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00447f18
test al, al
je 0x4550c6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x455114
lea eax, [ebp - 0x254]
call fcn.00409d9c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4550c6
xor eax, eax
push ebp
push 0x4550bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45514c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4550a8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405074
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4550a8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405074
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4550c6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454fc9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041cc74
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45510a
lea eax, [ebp - 0x260]
call fcn.00404e04
ret

Function at 0x455a7c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46b580]
cmp byte [eax + 0xad], 0
jne 0x455aed
cmp dword [0x46b598], 0
jne 0x455aae
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455a38
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46b598], eax
cmp dword [0x46b594], 0
jne 0x455ac9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46b594], eax
cmp dword [0x46b59c], 0
jne 0x455aed
push esp
push 0
push 0
push 0x4559dc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46b59c], eax
pop edx
ret
Function at 0x455cc0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x455cd7
add esp, 0xfffffff0
call fcn.004042e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420d74
mov eax, dword [0x467d08]
cmp word [eax + 2], 0
jne 0x455cff
mov eax, dword [0x467d08]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457770
mov eax, dword [0x467dc0]
cmp word [eax + 2], 0
jne 0x455d19
mov eax, dword [0x467dc0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045797c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418b70]
call fcn.00403fa4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418b70]
call fcn.00403fa4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x418b70]
call fcn.00403fa4
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x425094]
call fcn.0042aedc
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x455ed0
mov eax, dword [0x467c00]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b2b0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45803c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x467c00]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d5d8
test eax, eax
je 0x455e20
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409754
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d60c
test eax, eax
je 0x455e34
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405074
mov byte [ebx + 0xd4], 0
push ebx
push 0x4572d0
call fcn.00421ef0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x467adc]
cmp byte [eax], 0
jne 0x455e85
mov eax, ebx
call fcn.00456014
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00458218
mov eax, ebx
call fcn.00458d78
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455ec5
call fcn.00404338
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456294
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46b580]
cmp dword [eax + 0x30], 0
je 0x45633e
cmp dword [ebx + 0x94], 0
jne 0x456338
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456224
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456338
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4562fe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456338
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041af1c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45630d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457058
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45708d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404ef4
jmp 0x45709a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404e58
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4583fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45846a
mov eax, esi
call fcn.00442dd4
test al, al
je 0x45846a
mov eax, dword [ebx + 0x84]
call fcn.00442ad8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45846a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45845e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442ad8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043b01c
jmp 0x45846a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00458238
pop esi
pop ebx
ret
Function at 0x45f120
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004052b8
mov eax, dword [ebp - 8]
call fcn.004052b8
xor eax, eax
push ebp
push 0x45f1eb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004052c8
push eax
call sub.kernel32.dll_LoadLibraryExA_1
test eax, eax
mov eax, dword [ebp - 4]
call fcn.004052c8
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [0x46b778], eax
cmp dword [0x46b778], 0
je 0x45f1c5
mov eax, dword [ebp - 8]
call fcn.004052c8
push eax
mov eax, dword [0x46b778]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46b77c], eax
mov eax, dword [0x46b784]
push eax
push 0x40
push 0x1556093c
push 0x46b77c
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.nTDLL_ZwProtectVirtualMemory
mov edx, 0x46b77c
mov eax, sub.kernel32.dll_GetCPInfo
mov ecx, 4
call fcn.0045f110
mov eax, dword [0x46b778]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f1f2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e28
ret
Function at 0x403fb0
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 0x40401a
mov ecx, esi
jmp 0x40401f
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x40402c
cmp dword [eax + 8], ebx
je 0x40402e
mov eax, dword [eax]
jmp 0x404012
mov eax, esi
cmp eax, esi
jne 0x404089
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.004071b0
mov edx, eax
mov ecx, 0xffffffe
mov eax, dword [ebx + 8]
sub ecx, eax
cmp ecx, 1
jb 0x4040a8
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.00406ac0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push str.error_command_table_add__08X
push 0x4bc490
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.0046e98b
int3
Function at 0x405590
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 0x405603
cmp eax, edi
jne 0x4055fb
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 0x40560b
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x40560b
cmp eax, edi
jne 0x40560e
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.0046ea7f
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x408610
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 0x408a20
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.004089b0
cmp eax, 0xffffffff
je 0x408a99
imul ebx, eax, 0x2c
add ebx, edi
cmp dword [ebx + 0x262cc], 0
mov dword [ebx + 0x262c8], 0
je 0x408a99
mov dword [ebx + 0x262c8], 1
mov edx, 2
push 2
push dword [edi + 0x55e58]
mov ecx, edi
call fcn.00465ea0
mov eax, dword [edi + 0x55e5c]
lea ecx, [edi + 0x55e50]
add esp, 8
add eax, dword [ebx + 0x262cc]
mov dword [edi + 0x55e58], eax
pop edi
pop esi
pop ebx
jmp fcn.00464ab0
pop edi
pop esi
pop ebx
ret
Function at 0x408aa0
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 + 0x25acc]
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x408ad4
push eax
call dword [sym.imp.PAL.dll_PalSoundPlayIs]
add esp, 4
test eax, eax
jne 0x408b41
inc esi
add edi, 0x44
cmp esi, 8
jl 0x408ac0
mov ecx, ebx
call fcn.004089b0
cmp eax, 0xffffffff
je 0x408b41
imul edi, eax, 0x2c
add edi, ebx
cmp dword [edi + 0x262c8], 0
je 0x408b41
cmp dword [edi + 0x262d0], 0
mov dword [edi + 0x262c8], 0
je 0x408b41
push 2
push dword [ebx + 0x55e58]
mov edx, 2
mov ecx, ebx
call fcn.00465ea0
mov eax, dword [ebx + 0x55e5c]
lea ecx, [ebx + 0x55e50]
add esp, 8
add eax, dword [edi + 0x262d0]
mov dword [ebx + 0x55e58], eax
pop edi
pop esi
pop ebx
jmp fcn.00464ab0
pop edi
pop esi
pop ebx
ret

Function at 0x40c190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4d1008]
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 0x40c26b
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 0x40c211
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 0x40c22e
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 0x40c240
mov dword [esi + 0x210], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ea3e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0046ea3e
mov esp, ebp
pop ebp
ret