joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51fdb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5602db
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x58829c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x9c], 0x5752f0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x8c], 0
xor ecx, ecx
mov dword [ebp - 4], 0
mov eax, 0xa
mov dword [ebp - 0x88], 0xa
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00551afc
add esp, 4
mov dword [ebp - 0x84], eax
xorps xmm0, xmm0
movdqu xmmword [eax], xmm0
push 4
movdqu xmmword [eax + 0x10], xmm0
push esi
movq qword [eax + 0x20], xmm0
lea eax, [ebp - 0x9c]
push eax
call fcn.0051fb00
lea ecx, [ebp - 0x7c]
call fcn.004995e0
mov esi, dword [ebp - 0x84]
movss xmm7, dword [0x577514]
movss xmm1, dword [esi + 8]
movss xmm2, dword [esi]
movaps xmm4, xmm1
movss xmm5, dword [esi + 0xc]
subss xmm4, xmm2
movss xmm0, dword [esi + 4]
movaps xmm3, xmm5
subss xmm3, xmm0
movss dword [ebp - 0x58], xmm0
movss dword [ebp - 0x4c], xmm0
movss dword [ebp - 0x5c], xmm2
movaps xmm6, xmm4
movss dword [edi + 0x14], xmm4
mulss xmm6, xmm7
movss dword [edi + 0x18], xmm3
movss dword [ebp - 0x74], xmm3
addss xmm6, xmm2
movss dword [ebp - 0x38], xmm2
movss dword [ebp - 0x50], xmm1
movss dword [ebp - 0x44], xmm1
movss dword [ebp - 0x78], xmm4
movss dword [ebp - 0x40], xmm5
movss dword [ebp - 0x80], xmm6
movss dword [ebp - 0x68], xmm6
movaps xmm6, xmm3
movss xmm3, dword [ebp - 0x80]
mulss xmm6, xmm7
movaps xmm2, xmm3
movss dword [edi + 0x24], xmm3
movss dword [ebp - 0x34], xmm5
addss xmm6, xmm0
movss dword [edi + 0x28], xmm6
movaps xmm1, xmm6
movss xmm0, dword [edi + 0x14]
mulss xmm0, xmm7
movss dword [ebp - 0x64], xmm6
subss xmm2, xmm0
movss xmm0, dword [edi + 0x18]
mulss xmm0, xmm7
subss xmm1, xmm0
movss dword [edi + 0x30], xmm2
movss dword [edi + 0x34], xmm1
movaps xmm1, xmm6
movss xmm2, dword [edi + 0x14]
movss xmm0, dword [edi + 0x18]
mulss xmm2, xmm7
mulss xmm0, xmm7
addss xmm2, xmm3
subss xmm1, xmm0
movss dword [edi + 0x3c], xmm2
movss dword [edi + 0x40], xmm1
movss xmm0, dword [edi + 0x18]
movss xmm1, dword [edi + 0x14]
mulss xmm0, xmm7
mov dword [ebp - 0x7c], 0x56c6c0
mulss xmm1, xmm7
addss xmm0, xmm6
addss xmm1, xmm3
movss dword [edi + 0x4c], xmm0
movss dword [edi + 0x48], xmm1
movss xmm0, dword [edi + 0x14]
mulss xmm0, xmm7
subss xmm3, xmm0
movss xmm0, dword [edi + 0x18]
mulss xmm0, xmm7
addss xmm0, xmm6
movss dword [edi + 0x54], xmm3
movss dword [edi + 0x58], xmm0
mov byte [edi + 1], 1
push fcn.00472f30
push 4
push 0xc
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x24], vtable.phVector2d.0
mov dword [ebp - 0x30], vtable.phVector2d.0
call fcn.00551c40
cmp dword [ebp - 0x88], 0
mov dword [ebp - 0x6c], vtable.phVector2d.0
mov dword [ebp - 0x7c], 0x56c6b4
je 0x51ffe5
push esi
call dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00551c1f
mov esp, ebp
pop ebp
ret 4
Function at 0x520270
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56032b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x58829c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x98], 0x5752f0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x88], 0
xor ecx, ecx
mov dword [ebp - 4], 0
mov eax, 0xa
mov dword [ebp - 0x84], 0xa
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00551afc
add esp, 4
mov dword [ebp - 0x80], eax
xorps xmm0, xmm0
movdqu xmmword [eax], xmm0
push 4
movdqu xmmword [eax + 0x10], xmm0
push esi
movq qword [eax + 0x20], xmm0
lea eax, [ebp - 0x98]
push eax
call fcn.0051fb00
lea ecx, [ebp - 0x7c]
call fcn.004995e0
mov esi, dword [ebp - 0x80]
movss xmm6, dword [0x577514]
movss xmm3, dword [esi + 8]
movss xmm4, dword [esi + 0xc]
movaps xmm7, xmm3
movss xmm1, dword [esi]
movaps xmm5, xmm4
movss xmm2, dword [esi + 4]
movaps xmm0, xmm1
addss xmm0, xmm3
mulss xmm7, xmm6
mulss xmm5, xmm6
addss xmm7, xmm1
movss dword [edi + 0x14], xmm3
movss dword [edi + 0x18], xmm4
addss xmm5, xmm2
movss dword [ebp - 0x58], xmm2
movss dword [ebp - 0x4c], xmm2
addss xmm2, xmm4
movss dword [ebp - 0x50], xmm0
movss dword [edi + 0x24], xmm7
movss dword [ebp - 0x44], xmm0
movss dword [edi + 0x28], xmm5
movss xmm0, dword [edi + 0x14]
mulss xmm0, xmm6
movss dword [ebp - 0x40], xmm2
movss dword [ebp - 0x34], xmm2
movaps xmm2, xmm7
subss xmm2, xmm0
movss dword [ebp - 0x5c], xmm1
movss xmm0, dword [edi + 0x18]
movss dword [ebp - 0x38], xmm1
movaps xmm1, xmm5
mulss xmm0, xmm6
movss dword [edi + 0x30], xmm2
movss dword [ebp - 0x78], xmm3
subss xmm1, xmm0
movss dword [ebp - 0x74], xmm4
movss dword [ebp - 0x68], xmm7
movss dword [ebp - 0x64], xmm5
movss dword [edi + 0x34], xmm1
movaps xmm1, xmm5
movss xmm2, dword [edi + 0x14]
movss xmm0, dword [edi + 0x18]
mulss xmm2, xmm6
mulss xmm0, xmm6
addss xmm2, xmm7
subss xmm1, xmm0
movss dword [edi + 0x3c], xmm2
movss dword [edi + 0x40], xmm1
movss xmm1, dword [edi + 0x14]
mulss xmm1, xmm6
movss xmm0, dword [edi + 0x18]
addss xmm1, xmm7
mulss xmm0, xmm6
mov dword [ebp - 0x7c], 0x56c6c0
addss xmm0, xmm5
movss dword [edi + 0x48], xmm1
movss dword [edi + 0x4c], xmm0
movss xmm0, dword [edi + 0x14]
mulss xmm0, xmm6
subss xmm7, xmm0
movss xmm0, dword [edi + 0x18]
mulss xmm0, xmm6
addss xmm0, xmm5
movss dword [edi + 0x54], xmm7
movss dword [edi + 0x58], xmm0
mov byte [edi + 1], 1
push fcn.00472f30
push 4
push 0xc
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x24], vtable.phVector2d.0
mov dword [ebp - 0x30], vtable.phVector2d.0
call fcn.00551c40
cmp dword [ebp - 0x84], 0
mov dword [ebp - 0x6c], vtable.phVector2d.0
mov dword [ebp - 0x7c], 0x56c6b4
je 0x52048f
push esi
call dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00551c1f
mov esp, ebp
pop ebp
ret 4
Function at 0x524590
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560747
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58829c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x57549c
mov dword [edi + 4], 0x5752f0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0x5752f0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x3c], 0x5752f0
mov dword [edi + 0x54], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x6c], 0xf
mov dword [edi + 0x68], 0
mov byte [edi + 0x58], 0
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 3
call fcn.0051f500
push 0x16
push str.resources_language.xml
lea ecx, [edi + 0x58]
mov byte [ebp - 4], 4
call fcn.00401ea0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x528710
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x52873b
jmp 0x528720
movsx edx, cl
lea esi, [esi + 1]
add eax, edx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
mov cl, byte [esi]
test cl, cl
jne 0x528720
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
pop esi
ret

Function at 0x537150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x58829c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
mov dword [ebp - 0x38], 0x5752f0
xor esi, esi
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5371b4
mov esi, ecx
push ecx
mov dword [ebp - 0x24], esi
call fcn.00551afc
mov ebx, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], ebx
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [eax + 0x10], edx
jbe 0x53722a
mov edi, edi
cmp dword [eax + 0x14], 0x10
jb 0x5371ca
mov ecx, dword [eax]
jmp 0x5371cc
mov ecx, eax
mov cl, byte [ecx + edx]
mov byte [ebp - 0xd], cl
cmp edi, esi
jne 0x53721a
lea eax, [esi + 0xa]
push eax
mov dword [ebp - 0x18], eax
call fcn.00551afc
add esp, 4
mov dword [ebp - 0x34], eax
test esi, esi
jle 0x5371fb
mov edx, ebx
mov ecx, eax
sub edx, eax
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
dec esi
jne 0x5371f2
push ebx
call dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete___void__]
mov ebx, dword [ebp - 0x34]
add esp, 4
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov cl, byte [ebp - 0xd]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], esi
mov byte [edi + ebx], cl
inc edx
inc edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], edi
cmp edx, dword [eax + 0x10]
jb 0x5371c0
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push eax
call fcn.00537290
push 0x56a694
push dword [ebp + 0xc]
call dword [sym.imp.msvcr120.dll__wfopen]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x537265
push eax
push 1
push edi
push ebx
call dword [sym.imp.msvcr120.dll_fwrite]
push dword [ebp + 8]
call dword [sym.imp.msvcr120.dll_fclose]
add esp, 0x14
test esi, esi
je 0x537273
push ebx
call dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x537290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
push esi
mov dword [ebp - 4], eax
cmp dword [eax + 0x14], 0
jne 0x5372c3
mov esi, dword [ebp + 8]
xor edx, edx
cmp dword [esi + 0x10], edx
jle 0x537312
lea ebx, [ebx]
mov ecx, dword [esi + 0x18]
not byte [ecx + edx]
inc edx
cmp edx, dword [esi + 0x10]
jl 0x5372b0
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [ebp + 8]
mov eax, 1
push edi
xor edi, edi
cmp dword [ebx + 0x10], edi
jle 0x537310
mov edx, eax
xor esi, esi
test eax, eax
jle 0x537303
lea esp, [esp]
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 0x18]
mov ecx, dword [ecx + 0x1c]
movzx ecx, byte [ecx + esi]
inc esi
xor byte [edx + edi], cl
mov edx, dword [ebx + 0x18]
not byte [edx + edi]
cmp esi, eax
jl 0x5372e0
mov ecx, dword [ebp - 4]
mov edx, 1
inc eax
cmp eax, dword [ecx + 0x14]
cmovg eax, edx
inc edi
cmp edi, dword [ebx + 0x10]
jl 0x5372d6
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x537320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
push esi
mov dword [ebp - 4], eax
cmp dword [eax + 0x14], 0
jne 0x537353
mov esi, dword [ebp + 8]
xor edx, edx
cmp dword [esi + 0x10], edx
jle 0x5373b3
lea esp, [esp]
mov ecx, dword [esi + 0x18]
not byte [ecx + edx]
inc edx
cmp edx, dword [esi + 0x10]
jl 0x537340
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [ebp + 8]
mov eax, 1
push edi
xor edi, edi
mov dword [ebp - 8], eax
cmp dword [ebx + 0x10], edi
jle 0x5373b1
mov edx, eax
lea esp, [esp]
lea esi, [eax - 1]
test esi, esi
js 0x5373a1
mov eax, dword [ebp - 4]
lea ebx, [ebx]
mov edx, dword [ebx + 0x18]
not byte [edx + edi]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebx + 0x18]
movzx ecx, byte [ecx + esi]
xor byte [edx + edi], cl
dec esi
jns 0x537380
mov eax, dword [ebp - 8]
mov edx, 1
mov ecx, dword [ebp - 4]
inc eax
cmp eax, dword [ecx + 0x14]
cmovg eax, edx
inc edi
mov dword [ebp - 8], eax
cmp edi, dword [ebx + 0x10]
jl 0x537370
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x537730
Capabilities:
Check if file exists
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560eaf
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x58829c]
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 edi, ecx
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
test eax, eax
jne 0x5377a7
push esi
push str.File_not_found:__s
lea eax, [ebp - 0x110]
push 0x100
push eax
call dword [sym.imp.msvcr120.dll_sprintf_s]
add esp, 0x10
lea eax, [ebp - 0x110]
push 0
push 0x572bac
push eax
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
push 0
call dword [sym.imp.msvcr120.dll_exit]
mov eax, dword [ebp + 0xc]
push 0
push 0
push 1
sub esp, 0x18
mov dword [edi + 0x14], eax
mov ecx, esp
push esi
call fcn.00405c10
mov ecx, dword [edi + 0x14]
call dword [sym.imp.libtheoraplayer.dll_public:_class_TheoraVideoClip____thiscall_TheoraVideoManager::createVideoClip_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____enum_TheoraOutputMode__int__bool_]
mov ecx, eax
mov dword [edi + 0x18], eax
call dword [sym.imp.libtheoraplayer.dll_public:_void___thiscall_TheoraVideoClip::play_void_]
mov eax, dword [0x58d464]
mov ecx, dword [edi + 0x18]
mov ebx, dword [sym.imp.libtheoraplayer.dll_public:_int___thiscall_TheoraVideoClip::getHeight_void_]
mov eax, dword [eax + 0x154]
mov esi, dword [eax]
call ebx
mov ecx, dword [edi + 0x18]
push eax
call dword [sym.imp.libtheoraplayer.dll_public:_int___thiscall_TheoraVideoClip::getWidth_void_]
push eax
mov eax, dword [0x58d464]
push dword [eax + 0x154]
call dword [esi + 0x220]
push 0xf4
mov dword [edi + 0x1c], eax
call dword [sym.imp.msvcr120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [ebp - 0x114], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x537870
mov ecx, dword [edi + 0x18]
call ebx
push ecx
mov ecx, dword [edi + 0x18]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call dword [sym.imp.libtheoraplayer.dll_public:_int___thiscall_TheoraVideoClip::getWidth_void_]
sub esp, 0xc
mov ecx, esi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 8], xmm0
mov dword [esp + 4], 0
mov dword [esp], 0
push dword [edi + 0x1c]
call fcn.00541d40
jmp 0x537872
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x20], eax
call ebx
mov ecx, dword [edi + 0x18]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x577514]
cvttss2si esi, xmm0
call dword [sym.imp.libtheoraplayer.dll_public:_int___thiscall_TheoraVideoClip::getWidth_void_]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movd xmm1, esi
mulss xmm0, dword [0x577514]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [edi + 0x20]
cvtdq2ps xmm0, xmm0
movss dword [eax + 0xe4], xmm1
movss dword [eax + 0xe0], xmm0
movss dword [eax + 0xe8], xmm0
movss dword [eax + 0xec], xmm1
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.00551c1f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x539780
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56110b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x58829c]
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, dword [0x58d464]
push str.APPDATA
call dword [sym.imp.msvcr120.dll__wgetenv]
mov edx, eax
add esp, 4
cmp word [edx], 0
jne 0x5397ce
xor ecx, ecx
jmp 0x5397e2
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5397d3
sub ecx, esi
sar ecx, 1
push ecx
lea edi, [ebx + 0x128]
push edx
mov ecx, edi
call fcn.00444990
push 0x11
push str.Match_Marbles_9_
mov ecx, edi
call fcn.00443a40
push 1
push 0
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x2f
push eax
mov ecx, edi
call fcn.00525d30
cmp eax, 0xffffffff
je 0x539858
mov dword [ebp - 0x22c], 0x2f
lea ebx, [ebx]
push 1
push 0x576b6c
push 1
push eax
mov ecx, edi
call fcn.004441e0
push 1
push 0
lea eax, [ebp - 0x22c]
mov ecx, edi
push eax
call fcn.00525d30
cmp eax, 0xffffffff
jne 0x539830
cmp dword [edi + 0x14], 8
jb 0x539862
mov esi, dword [edi]
jmp 0x539864
mov esi, edi
mov eax, dword [ebx + 0x154]
push 0xf
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
push 0
push esi
push eax
call dword [sym.imp.shell32.dll_SHCreateDirectoryExW]
mov esi, eax
cmp esi, 0x50
je 0x539986
cmp esi, 0xb7
je 0x539986
test esi, esi
je 0x539986
push 0x576b44
lea ecx, [ebp - 0x228]
call fcn.00450670
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.00443b00
push 0x56c3e4
lea ecx, [ebp - 0x228]
call fcn.004439f0
cmp esi, 0xa1
jne 0x5398e1
push str.ERROR_BAD_PATHNAME
jmp 0x53993b
cmp esi, 0xce
jne 0x5398f0
push 0x576b70
jmp 0x53993b
cmp esi, 3
jne 0x5398fc
push str.ERROR_PATH_NOT_FOUND
jmp 0x53993b
cmp esi, 0x4c7
jne 0x53990b
push str.ERROR_CANCELLED
jmp 0x53993b
lea ecx, [ebp - 0x228]
cmp esi, 0x7b
jne 0x53991d
push str.ERROR_INVALID_NAME
jmp 0x539941
push str.error:
call fcn.004439f0
push 0xa
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.msvcr120.dll__itow]
add esp, 0xc
push eax
lea ecx, [ebp - 0x228]
call fcn.004439f0
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
push 0x10
cmovae eax, dword [ebp - 0x228]
push str.Error
push eax
push 0
call dword [sym.imp.user32.dll_MessageBoxW]
cmp dword [ebp - 0x214], 8
jb 0x539982
push dword [ebp - 0x228]
call dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
jmp 0x539988
mov al, 1
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.00551c1f
mov esp, ebp
pop ebp
ret 8
Function at 0x5399b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561150
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x58829c]
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
push 0x11
xor eax, eax
mov dword [ebp - 0x2c], 7
push str.levels_auto_save_
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00444990
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 1
push eax
push 0x576b6c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00525d30
lea ecx, [ebp - 0x28]
lea esi, [eax + 1]
push esi
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.00443b00
push esi
push 0
lea ecx, [ebp - 0x40]
call fcn.004447e0
mov ebx, dword [sym.imp.shlwapi.dll_PathFileExistsW]
xor edi, edi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x539abc
xor eax, eax
cmp dword [ebp - 0x30], eax
setne al
test eax, eax
je 0x539b12
push 1
push 0
push 0x576b6c
lea ecx, [ebp - 0x40]
call fcn.00525d30
lea ecx, [ebp - 0x28]
lea esi, [eax + 1]
push esi
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.00443b00
push esi
push 0
lea ecx, [ebp - 0x40]
call fcn.004447e0
inc edi
cmp edi, 0x32
jle 0x539a52
xor bl, bl
cmp dword [ebp - 0x14], 8
mov esi, dword [sym.imp.msvcr120.dll_void___cdecl_operator_delete_void__]
jb 0x539ad2
push dword [ebp - 0x28]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x539af4
push dword [ebp - 0x40]
call esi
add esp, 4
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.00551c1f
mov esp, ebp
pop ebp
ret
mov bl, 1
jmp 0x539abe
Function at 0x54fd10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5620e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x58829c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.shaSpline.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
push 0x180
mov byte [ebp - 4], 6
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0x18
mov byte [esi + 0x60], 0
call sub.hge.dll_hgeCreate
push 0xf4
mov dword [0x58d030], eax
call fcn.00551c34
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x54fe58
sub esp, 0x10
mov ecx, eax
mov dword [esp + 0xc], 0x42000000
mov dword [esp + 8], 0x42000000
mov dword [esp + 4], 0
mov dword [esp], 0
push 0
call fcn.00541d40
mov dword [esi + 0x64], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x64], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5f8900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x5f896c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x5f89b3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0064db28
add esp, 8
test eax, eax
jne 0x5f89b1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x5f89b5
jmp 0x5f8963
xor eax, eax
mov esp, ebp
pop ebp
ret