joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c4f0
Capabilities:
Get common file path
Get disk information
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x76c
mov eax, dword [0x50b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x218]
push dword [edi + 0x214]
mov dword [edi + 0x20c], 0xffffffff
push str._s_save
push eax
mov dword [edi + 0x210], 0
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x218]
add esp, 0xc
lea ebx, [edi + 4]
mov eax, ecx
mov edx, ebx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40c546
mov eax, dword [edi + 0x214]
cmp byte [eax + 0x514], 0
jne 0x40c689
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0048cf70
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x208
push 0
push eax
call fcn.0048cf70
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x420]
add esp, 0xc
push 0
push 0x1a
push eax
push 0
call esi
test eax, eax
jns 0x40c5c2
push 0
push 0x23
lea eax, [ebp - 0x420]
push eax
push 0
call esi
test eax, eax
js 0x40c689
mov ecx, dword [edi + 0x214]
lea eax, [ecx + 0x30c]
push eax
lea eax, [ecx + 0x104]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x110]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x110]
push str..ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0x768]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40c689
mov esi, dword [ebp - 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and esi, 0x10
jne 0x40c689
lea eax, [ebp - 0x110]
push eax
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0x4f4fc0
push str.SaveFold
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x628]
mov eax, ecx
sub ebx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x40c661
mov dword [edi + 0x210], 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3ac
mov esp, ebp
pop ebp
ret
push 2
push 0x4f511c
push ebx
call fcn.00497190
add esp, 0xc
test eax, eax
jne 0x40c6a4
mov eax, 4
jmp 0x40c6cd
push 3
lea eax, [ebp - 0x76c]
mov dword [ebp - 0x76c], 0
push ebx
push eax
call fcn.00497060
add esp, 0xc
lea eax, [ebp - 0x76c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [edi + 0x20c], eax
test eax, eax
je 0x40c70e
cmp eax, 1
je 0x40c70e
cmp eax, 5
je 0x40c707
push dword [edi + 0x214]
call fcn.0040c330
test eax, eax
jne 0x40c707
mov dword [edi + 0x210], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3ac
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0040c240
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048a3ac
mov esp, ebp
pop ebp
ret
Function at 0x421110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x50b070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push 0x6ea904
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
mov dword [ebp - 0x208], edx
cmp edx, 0xffffffff
je 0x421253
mov ecx, dword [0x661900]
xor eax, eax
mov dword [ebp - 0x20c], eax
push esi
push edi
test ecx, ecx
jle 0x42121c
mov edi, 0x661a07
nop
mov esi, dword [edi - 0x103]
test esi, esi
js 0x421201
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0048cf70
push edi
lea eax, [edi + 0xff]
push eax
lea eax, [edi - 0xff]
push eax
movsx eax, byte [edi + 0x11f]
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 0x4211c7
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 0x421235
mov ecx, dword [0x661900]
mov eax, dword [ebp - 0x20c]
inc eax
add edi, 0x224
mov dword [ebp - 0x20c], eax
cmp eax, ecx
jl 0x421170
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.0048a3ac
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.0048a3ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0048a3ac
mov esp, ebp
pop ebp
ret
Function at 0x421270
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x8000080
push 3
push 0
push 0
push connect
push 0x6ea904
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x421491
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 0x421491
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 [0x661900], esi
cmp dword [ebp - 0x10], esi
jbe 0x42146b
nop
mov cl, byte [esi + edi]
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0xc], xmm0
cmp cl, 0x2c
je 0x421329
inc esi
mov byte [ebp + eax - 0xc], cl
inc eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
jne 0x421312
cmp eax, 8
jae 0x4214a3
mov byte [ebp + eax - 0xc], 0
lea eax, [ebp - 0xc]
push eax
call fcn.0049a3c2
imul ecx, dword [0x661900], 0x224
inc esi
add esp, 4
mov dword [ecx + 0x661904], eax
xor eax, eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
je 0x42136c
inc esi
mov byte [ebp + eax - 0xc], cl
inc eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
jne 0x421355
cmp eax, 8
jae 0x4214a3
mov byte [ebp + eax - 0xc], 0
lea eax, [ebp - 0xc]
push eax
call fcn.0049a3c2
imul ecx, dword [0x661900], 0x224
add esi, 2
add esp, 4
mov byte [ecx + 0x661b26], al
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x4213bb
nop word [eax + eax]
imul eax, dword [0x661900], 0x224
inc esi
mov byte [eax + ecx + 0x661908], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x4213a0
imul eax, dword [0x661900], 0x224
add esi, 3
mov byte [eax + ecx + 0x661908], 0
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x4213fb
nop word [eax + eax]
imul eax, dword [0x661900], 0x224
inc esi
mov byte [eax + ecx + 0x661b06], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x4213e0
imul eax, dword [0x661900], 0x224
add esi, 3
mov byte [eax + ecx + 0x661b06], 0
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x42143b
nop word [eax + eax]
imul eax, dword [0x661900], 0x224
inc esi
mov byte [eax + ecx + 0x661a07], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x421420
imul eax, dword [0x661900], 0x224
add esi, 3
mov byte [eax + ecx + 0x661a07], 0
mov eax, dword [0x661900]
inc eax
mov dword [0x661900], eax
cmp eax, 0x400
jge 0x42146b
cmp esi, dword [ebp - 0x10]
jb 0x421300
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 [0x661900]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop esi
call fcn.0048a3ac
mov esp, ebp
pop ebp
ret
call fcn.0048a94d
int3
Function at 0x42dc70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0a1a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x50b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0
mov dword [ebx], 0x4f6d54
mov dword [ebx + 0x10], 0x4f6ce4
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push 0
push 0
mov dword [ebp - 0x18], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
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
call fcn.00420800
push 8
call fcn.0048a3bd
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 3
call fcn.0046ec48
mov dword [esi + 4], eax
add esp, 4
lea eax, [ebx + 0x18]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 4
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x20], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 5
push eax
call fcn.00430ae0
add esp, 4
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
cmp ecx, vtable.std::ctype_char_.0
jne 0x42de61
mov byte [ebp - 0x11], 0x20
mov dword [ebp - 4], 6
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 8]
test eax, eax
je 0x42ddca
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp - 0x11]
mov byte [ebp - 4], 2
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x42ddea
mov eax, dword [edi + 0xc]
mov ecx, edi
or eax, 4
push 0
push eax
call fcn.00420800
lea edx, [ebx + 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov dword [ebp - 4], 9
mov eax, dword [ebx]
push ecx
push dword [ebp + 8]
lea ecx, [ebx + 0x18]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x68]
mov dword [edx + ebx - 4], eax
call fcn.0042fa80
mov eax, ebx
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 0x20
mov ecx, eax
call edx
mov byte [ebp - 0x11], al
jmp 0x42ddb0
Function at 0x42fa80
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0bc8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x50b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0048a3bd
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0046ec48
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp dword [eax + 0x14], 0x10
mov ebx, dword [eax + 0x10]
jb 0x42fb46
mov eax, dword [eax]
mov dword [ebp + 8], eax
xor eax, eax
cmp ebx, 0x7fffffff
ja 0x42fbe7
test ebx, ebx
je 0x42fbcb
cmp ebx, 0x1000
jb 0x42fb83
lea eax, [ebx + 0x23]
or ecx, 0xffffffff
cmp eax, ebx
cmovbe eax, ecx
push eax
call fcn.0048a3bd
add esp, 4
test eax, eax
je 0x42fbec
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x42fb8e
push ebx
call fcn.0048a3bd
add esp, 4
mov esi, eax
push ebx
push dword [ebp + 8]
push esi
call fcn.0048c470
mov eax, dword [edi + 0xc]
lea ecx, [esi + ebx]
mov dword [edi + 0x38], ecx
add esp, 0xc
mov dword [eax], esi
mov eax, dword [edi + 0x1c]
mov dword [eax], esi
mov eax, dword [edi + 0x2c]
mov dword [eax], ebx
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x38]
sub ecx, esi
mov dword [eax], esi
mov eax, dword [edi + 0x20]
mov dword [eax], esi
mov eax, dword [edi + 0x30]
mov dword [eax], ecx
mov eax, 1
jmp 0x42fbce
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov eax, edi
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
call fcn.0046e03d
call fcn.00496de8
int3
Function at 0x4356b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x50b070]
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 0x435702
push 0x20
lea eax, [edi + 0x80]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00497060
add esp, 0xc
mov byte [ebp - 0xf5], 0
jmp 0x435715
push 1
mov edx, ecx
lea ecx, [ebp - 0x114]
push eax
call fcn.00467330
add esp, 8
call fcn.00466cc0
test al, 0x30
jne 0x4357f3
lea eax, [ebp - 0x114]
dec eax
nop dword [eax]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x435730
mov ecx, dword [str..tga]
mov dword [eax], ecx
mov cl, byte [0x4f835c]
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 0x43577c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048a3ac
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.0046bcf0
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 0x4357f3
push eax
call fcn.00498964
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048a3ac
mov esp, ebp
pop ebp
ret

Function at 0x448860
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 connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4488b2
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 0x4488e5
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 0x448910
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.0048c470
push 0x1000
lea eax, [esi + 0x2288]
push eax
mov eax, dword [esi + 0x2270]
add eax, 8
push eax
call fcn.0048c470
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 0x44899f
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 0x4489ed
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x40030
push 0x50f330
push 0x4f9400
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 0x45caa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x50b070]
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 0x45cb2f
sub esi, 0
je 0x45cb3f
sub esi, 1
jne 0x45cb2f
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 0x45cb2e
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 0x45cb27
add esi, 0x20
cmp esi, dword [ebp - 0x28]
jae 0x45cb27
inc edi
cmp edi, 8
jl 0x45cb00
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.0048a3ac
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.0048a3ac
mov esp, ebp
pop ebp
ret
Function at 0x4634c0
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 0x46353e
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 0x46353e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x104
ja 0x46353e
push 0x104
push 0
push dword [ebp - 4]
call fcn.0048cf70
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.0048c470
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 0x466680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x50b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x50f120
xor edx, edx
push esi
mov ecx, eax
push edi
mov edi, dword [ebp + 8]
cmp ecx, fcn.00466680
je 0x4666bb
cmp dword [eax], 0x2f2a2a2f
je 0x4666b8
dec eax
cmp eax, fcn.00466680
jne 0x4666a6
jmp 0x4666bb
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 0x4666f3
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3ac
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 0x466755
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.0048a3ac
mov esp, ebp
pop ebp
ret

Function at 0x467ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x50b070]
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 0x467b89
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.0048a3ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0048a3ac
mov esp, ebp
pop ebp
ret