joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cb30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4d8008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.PAL.dll_PalGetFilePath]
push eax
lea eax, [ebp - 0x110]
push str._s_setting.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x250]
xor ebx, ebx
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40cb91
mov esi, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and esi, 0x10
setne bl
inc ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [ebp - 0x110]
push eax
push 1
push str.History
push str.DebugWindow
call edi
mov esi, dword [sym.imp.PAL.dll_PalDebugWindowCreate]
test eax, eax
je 0x40cbc4
push 1
push 0x4c26d8
push 0xa
call esi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push str.UserMemory
push str.DebugWindow
call edi
test eax, eax
je 0x40cbeb
push 3
push 0x4c26ec
push 0xb
call esi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push str.SystemMemory
push str.DebugWindow
call edi
test eax, eax
je 0x40cc12
push 3
push 0x4c270c
push 0xc
call esi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push str.TempMemory
push str.DebugWindow
call edi
test eax, eax
je 0x40cc39
push 3
push 0x4c2728
push 0xd
call esi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push 0x4c273c
push str.DebugWindow
call edi
test eax, eax
je 0x40cc60
push 3
push 0x4c2740
push 0xe
call esi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push 0x4c2750
push str.DebugWindow
call edi
test eax, eax
je 0x40cc87
push 3
push 0x4c2754
push 0xf
call esi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push str.Output
push str.DebugWindow
call edi
test eax, eax
je 0x40ccae
push 1
push str.output
push 0x10
call esi
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 1
push 0x4c2778
push str.DebugWindow
call edi
test eax, eax
je 0x40ccd5
push 3
push 0x4c277c
push 0x13
call esi
add esp, 0xc
cmp ebx, 1
je 0x40cd18
mov esi, dword [sym.imp.PAL.dll_int___cdecl_PalDebugWindowToggleControl_unsigned_int_]
push 0xa
call esi
add esp, 4
push 0xb
call esi
add esp, 4
push 0xc
call esi
add esp, 4
push 0xd
call esi
add esp, 4
push 0xe
call esi
add esp, 4
push 0xf
call esi
add esp, 4
push 0x10
call esi
add esp, 4
push 0x13
call esi
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047487d
mov esp, ebp
pop ebp
ret
Function at 0x420a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d8008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push 0x6db194
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
mov dword [ebp - 0x208], edx
cmp edx, 0xffffffff
je 0x420b83
mov ecx, dword [0x63a190]
xor eax, eax
mov dword [ebp - 0x20c], eax
push esi
push edi
test ecx, ecx
jle 0x420b4c
mov edi, 0x63a297
nop
mov esi, dword [edi - 0x103]
test esi, esi
js 0x420b31
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00476930
push edi
lea eax, [edi + 0xff]
push eax
lea eax, [edi - 0xff]
push eax
movsx eax, byte [edi + 0x17f]
push eax
push esi
lea eax, [ebp - 0x204]
push str._06d__1d___s____s____s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [ebp - 0x204]
add esp, 0x28
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x420af7
push 0
lea eax, [ebp - 0x210]
sub esi, ecx
push eax
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [ebp - 0x210]
jne 0x420b65
mov ecx, dword [0x63a190]
mov eax, dword [ebp - 0x20c]
inc eax
add edi, 0x284
mov dword [ebp - 0x20c], eax
cmp eax, ecx
jl 0x420aa0
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047487d
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047487d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0047487d
mov esp, ebp
pop ebp
ret
Function at 0x420ba0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4d8008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x8000080
push 3
push 0
push 0
push 0x80000000
push 0x6db194
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x420dc1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
lea ecx, [eax + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x420dc1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [0x63a190], esi
cmp dword [ebp - 0x10], esi
jbe 0x420d9b
nop
mov cl, byte [esi + edi]
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0xc], xmm0
cmp cl, 0x2c
je 0x420c59
inc esi
mov byte [ebp + eax - 0xc], cl
inc eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
jne 0x420c42
cmp eax, 8
jae 0x420dd3
mov byte [ebp + eax - 0xc], 0
lea eax, [ebp - 0xc]
push eax
call fcn.00482718
imul ecx, dword [0x63a190], 0x284
inc esi
add esp, 4
mov dword [ecx + 0x63a194], eax
xor eax, eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
je 0x420c9c
inc esi
mov byte [ebp + eax - 0xc], cl
inc eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
jne 0x420c85
cmp eax, 8
jae 0x420dd3
mov byte [ebp + eax - 0xc], 0
lea eax, [ebp - 0xc]
push eax
call fcn.00482718
imul ecx, dword [0x63a190], 0x284
add esi, 2
add esp, 4
mov byte [ecx + 0x63a416], al
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x420ceb
nop word [eax + eax]
imul eax, dword [0x63a190], 0x284
inc esi
mov byte [eax + ecx + 0x63a198], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x420cd0
imul eax, dword [0x63a190], 0x284
add esi, 3
mov byte [eax + ecx + 0x63a198], 0
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x420d2b
nop word [eax + eax]
imul eax, dword [0x63a190], 0x284
inc esi
mov byte [eax + ecx + 0x63a396], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x420d10
imul eax, dword [0x63a190], 0x284
add esi, 3
mov byte [eax + ecx + 0x63a396], 0
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x420d6b
nop word [eax + eax]
imul eax, dword [0x63a190], 0x284
inc esi
mov byte [eax + ecx + 0x63a297], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x420d50
imul eax, dword [0x63a190], 0x284
add esi, 3
mov byte [eax + ecx + 0x63a297], 0
mov eax, dword [0x63a190]
inc eax
mov dword [0x63a190], eax
cmp eax, 0x400
jge 0x420d9b
cmp esi, dword [ebp - 0x10]
jb 0x420c30
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x63a190]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047487d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop esi
call fcn.0047487d
mov esp, ebp
pop ebp
ret
call fcn.00474e19
int3
Function at 0x42d830
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, cl
xor eax, 0x811c9dc5
mov dword [ebp - 4], ecx
imul edx, eax, 0x1000193
mov eax, ecx
sar eax, 8
movzx eax, al
push esi
mov esi, dword [ebp - 4]
xor edx, eax
mov eax, ecx
sar eax, 0x10
imul edx, edx, 0x1000193
movzx eax, al
push edi
xor edx, eax
mov eax, esi
imul ecx, edx, 0x1000193
mov edx, dword [0x6e0d0c]
sar eax, 0x18
movzx eax, al
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [0x6e0d18]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov edi, dword [edx + ecx*4]
add edx, 4
lea ecx, [edx + ecx*4]
mov edx, dword [0x6e0d04]
mov dword [ebp - 4], ecx
nop
cmp edi, edx
jne 0x42d8a8
mov ecx, edx
jmp 0x42d8ac
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x42d8c9
cmp dword [eax + 8], esi
je 0x42d8bc
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
jmp 0x42d8a0
cmp eax, edx
je 0x42d8c9
pop edi
add eax, 0xc
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42dad0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8410
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4d8008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 4], 0
call fcn.0042d830
mov esi, eax
cmp dword [esi], 1
je 0x42db17
xor bl, bl
jmp 0x42dc42
movzx eax, bl
xor eax, 0x811c9dc5
mov edi, dword [esi + 0x18]
imul ecx, eax, 0x1000193
mov eax, ebx
sar eax, 8
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
sar eax, 0x10
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
sar eax, 0x18
movzx eax, al
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x24]
and ecx, eax
mov eax, dword [edi + ecx*8]
add ecx, ecx
lea edx, [ecx*4 + 4]
mov ecx, dword [edi + ecx*4]
mov dword [ebp - 0x38], edx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x30], ecx
cmp ecx, edx
jne 0x42db7d
mov ecx, edx
jmp 0x42db85
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + edi]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x42db95
cmp dword [eax + 8], ebx
je 0x42db97
mov eax, dword [eax]
mov ecx, dword [ebp - 0x30]
jmp 0x42db75
mov eax, edx
cmp eax, edx
je 0x42dbab
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 0xc]
call fcn.004332c0
dec dword [esi + 4]
lea eax, [ebp + 8]
mov dword [ebp - 0x2c], ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.004305b0
mov byte [ebp - 4], 1
lea ebx, [esi + 0xc]
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x2c]
push ecx
mov edi, dword [eax]
mov eax, dword [edi + 4]
push eax
push edi
mov dword [ebp - 0x30], eax
call fcn.004374e0
mov edx, eax
mov ecx, 0x71c71c6
mov eax, dword [ebx + 8]
sub ecx, eax
cmp ecx, 1
jb 0x42dc90
inc eax
mov ecx, ebx
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 4], edx
mov dword [eax], edx
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00436480
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x42dc3d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42dc33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dc9a
push edx
push ecx
call fcn.004748be
add esp, 8
inc dword [esi + 4]
mov bl, 1
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x42dc72
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42dc68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dc9f
push edx
push ecx
call fcn.004748be
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047487d
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.004747ca
call fcn.0047f1be
call fcn.0047f1be
int3
Function at 0x4330e0
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 ecx, edx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 0xb]
imul ecx, ecx, 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 0x433153
cmp eax, edi
jne 0x43314b
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 0x43315b
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x43315b
cmp eax, edi
jne 0x43315b
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 0x18]
dec dword [ebx + 8]
call fcn.0042d7c0
push 0x38
push edi
call fcn.004748be
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4332c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
movzx edx, byte [eax + 8]
movzx ecx, byte [eax + 0xa]
xor edx, 0x811c9dc5
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
imul edx, esi, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0xb]
imul edx, edx, 0x1000193
xor edx, ecx
imul ecx, edx, 0x1000193
mov edx, dword [edi + 0x18]
and edx, ecx
lea esi, [edx*8]
mov edx, dword [edi + 0xc]
add edx, esi
mov ecx, dword [edx]
cmp dword [edx + 4], eax
jne 0x433333
cmp ecx, eax
jne 0x43332b
mov ecx, dword [edi + 4]
mov dword [edx], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov dword [esi + edx + 4], ecx
jmp 0x43333b
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x43333b
cmp ecx, eax
jne 0x43333b
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
push eax
mov dword [ecx], esi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [edi + 8]
call fcn.00432590
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebp
ret 8
Function at 0x439c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4d8008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + eax*4]
mov dword [ebp - 0x124], edx
shl edi, 4
add edi, edx
mov eax, dword [edi + 0x5c]
test eax, 0x10000000
je 0x439cd2
push 0x20
lea eax, [edi + 0x80]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0047f430
add esp, 0xc
mov byte [ebp - 0xf5], 0
jmp 0x439ce5
push 1
mov edx, ecx
lea ecx, [ebp - 0x114]
push eax
call fcn.0046da50
add esp, 8
call fcn.0046d3f0
test al, 0x30
jne 0x439dc3
lea eax, [ebp - 0x114]
dec eax
nop dword [eax]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x439d00
mov ecx, dword [str..tga]
mov dword [eax], ecx
mov cl, byte [0x4c5a70]
mov byte [eax + 4], cl
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.PAL.dll_PalFileCreate]
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x439d4c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047487d
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.PAL.dll_GetMemoryPool]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x128]
push 0
push eax
push dword [ebp - 0x118]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push esi
lea ecx, [ebp - 0x138]
call fcn.00472290
push dword [edi + 0x6c]
lea eax, [ebp - 0x138]
push dword [edi + 0x68]
push eax
push dword [edi + 0x74]
mov eax, dword [ebp - 0x124]
push dword [edi + 0x70]
push dword [edi + 0x64]
mov eax, dword [eax]
push dword [edi + 0x60]
push dword [eax]
call dword [sym.imp.PAL.dll_PalSpriteMaskAlpha]
mov eax, dword [ebp - 0x130]
add esp, 0x20
test eax, eax
je 0x439dc3
push eax
call fcn.0047f798
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047487d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov ebx, ecx
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
mov edi, eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44e2b2
push ebx
push str.load_error___s_
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [edi + 0x25a8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x44e2e5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x25b0], ebx
mov eax, 1
mov dword [edi + 0x25ac], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e310
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov edi, ecx
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
push dword [eax + 0x2578]
mov ecx, dword [eax + 0x25a8]
push dword [eax + 0x2574]
lea esi, [eax + 0x338]
add ecx, 0x1024
push ecx
call fcn.0047e9e0
push 0x1000
lea eax, [esi + 0x2288]
push eax
mov eax, dword [esi + 0x2270]
add eax, 8
push eax
call fcn.0047e9e0
add esp, 0x1c
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44e39f
push edi
push str.save_error___s_
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [esi + 0x2274]
push dword [esi + 0x2270]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x2274]
je 0x44e3ed
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x40030
push 0x4db140
push 0x4c6c80
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x462c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4d8008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov esi, edx
mov edi, ecx
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
cmp dword [eax + 0x330], 0
je 0x462cef
sub esi, 0
je 0x462cff
sub esi, 1
jne 0x462cef
push ebx
push edi
lea eax, [ebp - 0x24]
push str._s.mix
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.PAL.dll_PalFileCreate]
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
je 0x462cee
xor edi, edi
nop
push 0
lea eax, [ebp - 0x34]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x34], 0x20
jne 0x462ce7
add esi, 0x20
cmp esi, dword [ebp - 0x28]
jae 0x462ce7
inc edi
cmp edi, 8
jl 0x462cc0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047487d
mov esp, ebp
pop ebp
ret
push edi
push str.voice_file_read_:__s
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.0047487d
mov esp, ebp
pop ebp
ret
Function at 0x469a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
push 0xa
push ecx
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x469b0e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x469b0e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x104
ja 0x469b0e
push 0x104
push 0
push dword [ebp - 4]
call fcn.00476930
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0047e9e0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46cdb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4d8008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x4daf30
xor edx, edx
push esi
mov ecx, eax
push edi
mov edi, dword [ebp + 8]
cmp ecx, fcn.0046cdb0
je 0x46cdeb
cmp dword [eax], 0x2f2a2a2f
je 0x46cde8
dec eax
cmp eax, fcn.0046cdb0
jne 0x46cdd6
jmp 0x46cdeb
lea edx, [eax + 4]
mov ecx, dword [edx]
movq xmm0, qword [edx + 4]
xor ecx, 0xfefefdfc
mov eax, dword [edx + 0xc]
mov esi, ecx
shr esi, 0x10
mov word [ebp - 0x18], si
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], eax
cmp si, cx
je 0x46ce23
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047487d
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x18]
xor edx, edx
mov byte [ebp - 0x11], al
shr esi, 8
push ebx
mov ebx, 0xc
mov eax, esi
div ebx
lea eax, [esi + 1]
movzx ecx, byte [ebp + edx - 0x10]
xor edx, edx
div ebx
shl ecx, 8
movzx eax, byte [ebp + edx - 0x10]
xor edx, edx
or ecx, eax
lea eax, [esi + 2]
div ebx
shl ecx, 8
movzx eax, byte [ebp + edx - 0x10]
xor edx, edx
or ecx, eax
lea eax, [esi + 3]
div ebx
shl ecx, 8
movzx eax, byte [ebp + edx - 0x10]
or ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ebx, 0x19810419
mov cl, byte [ebp - 0x11]
rol eax, cl
mov ecx, 4
xor al, bl
ror eax, 8
ror ebx, 8
loop 0x46ce85
mov bl, al
rol eax, 8
mov bh, al
mov al, bl
ror eax, 8
mov al, bh
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
pop ebx
mov dword [edi], eax
xor ecx, ebp
pop edi
mov eax, 1
pop esi
call fcn.0047487d
mov esp, ebp
pop ebp
ret

Function at 0x46e1f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4d8008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x46e2b9
push dword [esi + 0x34]
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push dword [esi + 0x30]
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.PAL.dll_PalWindowGetPosCenter]
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov dword [esi + 0x2c], eax
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x54]
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0x24
lea eax, [ebp - 0x28]
mov dword [esi + 0x28], ecx
push eax
push edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047487d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0047487d
mov esp, ebp
pop ebp
ret