joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4437f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x517eac]
push ebp
push esi
push edi
xor ebp, ebp
mov edi, ecx
cmp eax, ebp
mov dword [esp + 0x14], edi
je 0x44384e
mov ecx, dword [eax]
push eax
call dword [ecx + 0x64]
mov eax, dword [0x517eac]
lea esi, [edi + 0x288]
push esi
push 0x100
mov edx, dword [eax]
push eax
call dword [edx + 0x24]
cmp eax, 0x8007001e
jne 0x44384e
mov eax, dword [0x517eac]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jne 0x44384e
mov eax, dword [0x517eac]
push esi
push 0x100
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
cmp dword [edi + 0x394], ebp
je 0x443988
push ebx
mov ebx, edi
add edi, 0xc
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edi
mov ecx, 0x14
xor eax, eax
lea edi, [ebx + 8]
rep stosd dword es:[edi], eax
mov ecx, 0xd
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x34
push eax
push ebp
mov dword [esp + 0x28], 0x83
call dword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x44395a
mov edx, dword [esp + 0x3c]
mov ecx, 1
test ecx, edx
je 0x4438b5
mov byte [ebx + eax + 0x38], 0x80
inc eax
add ecx, ecx
cmp eax, 0x10
jl 0x4438ac
mov ecx, 0x65
xor eax, eax
lea edi, [esp + 0x50]
push 0x194
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x54]
push ecx
push ebp
call dword [sym.imp.WINMM.dll_joyGetDevCapsA]
test eax, eax
jne 0x44395a
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x80]
add eax, edx
add ecx, esi
mov esi, dword [esp + 0x24]
shr eax, 1
mov edx, eax
shr edx, 1
shr ecx, 1
lea edi, [edx + eax]
cmp esi, edi
jbe 0x443916
mov eax, dword [esp + 0x10]
mov dword [eax - 4], 0x10000
jmp 0x443927
sub eax, edx
cmp esi, eax
jae 0x443927
mov eax, dword [esp + 0x10]
mov dword [eax - 4], 0xffff0000
mov eax, dword [esp + 0x28]
lea esi, [edx + ecx]
cmp eax, esi
jbe 0x44393e
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0x10000
jmp 0x44394e
sub ecx, edx
cmp eax, ecx
jae 0x44394e
mov edx, dword [esp + 0x10]
mov dword [edx], 0xffff0000
mov ecx, dword [esp + 0x14]
inc ecx
add ebx, 0x50
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc ebp
add ecx, 0x50
cmp ebp, 2
mov dword [esp + 0x10], ecx
jl 0x443868
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
pop ebx
pop edi
pop esi
mov dword [eax + 0x38c], ecx
pop ebp
add esp, 0x1d4
ret
mov esi, 0x517e00
add edi, 8
mov eax, dword [esi]
test eax, eax
je 0x4439d3
mov edx, dword [eax]
push eax
call dword [edx + 0x64]
mov eax, dword [esi]
push edi
push 0x50
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp eax, 0x8007001e
jne 0x4439c5
mov eax, dword [esi]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
test eax, eax
jne 0x4439c5
mov eax, dword [esi]
push edi
push 0x50
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esi, 4
add edi, 0x50
cmp esi, 0x517e10
jl 0x443990
pop edi
pop esi
pop ebp
add esp, 0x1d4
ret
Function at 0x444c30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495d0a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov eax, 0x49a410
mov dword [ebp - 4], ebx
mov dword [esi + 0x18], eax
mov byte [esi + 0x1c], bl
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], bl
mov dword [esi + 0x28], eax
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], eax
mov byte [esi + 0x34], bl
lea edi, [esi + 0x40]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi], 0x49a1dc
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 5
mov dword [esi], 0x49a2d8
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov byte [esi + 0x3d], bl
mov byte [esi + 0x3c], bl
mov byte [esi + 0x3b], bl
mov byte [esi + 0x3a], bl
mov byte [esi + 0x39], bl
mov byte [esi + 0x38], bl
mov dword [esi + 0x64], ebx
mov dword [esi + 0xa0], ebx
mov byte [esi + 0x3e], bl
call fcn.00447b40
mov dword [esi + 0x80], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0xa4], ebx
mov ecx, dword [0x518000]
mov byte [ebp - 4], 6
call fcn.00447540
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x444d07
push ebx
push ebx
call fcn.0048b19d
mov ecx, dword [0x518004]
mov eax, ecx
mov dword [esi + 0xc], ecx
cmp eax, ebx
jne 0x444d1d
push ebx
push ebx
call fcn.0048b19d
push 0x3b880
mov dword [esi + 0x10], edi
mov byte [ebp - 4], 7
call fcn.0048c04b
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
cmp ecx, ebx
mov byte [ebp - 4], 8
je 0x444d55
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x10]
push edx
mov edx, dword [esi + 8]
push eax
mov eax, dword [ebp + 0x10]
push edx
push eax
call fcn.00411000
jmp 0x444d57
xor eax, eax
mov ecx, esi
mov dword [esi + 0x14], eax
mov dword [ebp - 4], 6
call fcn.00446370
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x14]
push eax
mov edx, dword [ecx]
call dword [edx + 0x50]
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, esi
call fcn.00445060
mov ecx, esi
call fcn.004453c0
mov ecx, esi
call fcn.00445500
call fcn.00447be0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
fild qword [ebp - 0x1c]
mov ecx, esi
fstp qword [esi + 0x88]
mov al, byte [0x528d04]
push eax
call fcn.00445640
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x38]
pop edi
lea edx, [ecx + 1]
mov dword [eax + 0x21318], ecx
mov dword [eax + 0x2131c], edx
lea edx, [ecx + 2]
mov dword [eax + 0x21320], edx
lea edx, [ecx + 3]
mov dword [eax + 0x21324], edx
lea edx, [ecx + 4]
add ecx, 5
mov dword [eax + 0x2132c], edx
mov dword [eax + 0x21330], ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x444e80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x495d5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x49a2d8
mov dword [esp + 0x14], 5
call fcn.00445460
mov ecx, esi
call fcn.00445320
mov edi, dword [esi + 0x14]
test edi, edi
je 0x444ecf
mov ecx, edi
call fcn.00411280
push edi
call fcn.0048c040
add esp, 4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444ee3
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
call dword [edx + 0x48]
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x40]
cmp ecx, edi
je 0x444f02
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [esp + 0xc]
mov eax, 0x49a558
mov dword [edi], 0x49a218
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], eax
mov dword [esi], 0x49a420
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x44a1f0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x518000]
test eax, eax
je 0x44a3e7
mov eax, dword [0x517ffc]
test eax, eax
je 0x44a210
push 1
call fcn.0044a080
add esp, 4
mov ecx, dword [0x518000]
push esi
call fcn.004473d0
test al, al
je 0x44a2e5
call fcn.004499d0
mov ecx, dword [0x518000]
call fcn.004473b0
mov eax, dword [0x518028]
test eax, eax
je 0x44a246
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x517ffc]
test eax, eax
jne 0x44a258
mov eax, dword [0x528bb4]
test eax, eax
jne 0x44a261
mov eax, dword [0x518158]
test eax, eax
je 0x44a268
call fcn.00476940
jmp 0x44a26d
call fcn.0044a420
mov ecx, dword [0x517f04]
mov eax, dword [0x517efc]
mov edx, dword [0x517f00]
sub ecx, eax
push 0x40
push ecx
mov ecx, dword [0x517ef8]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
sub edx, ecx
push edx
push eax
mov eax, dword [0x517ff0]
push ecx
push 0xfffffffffffffffe
push eax
call esi
mov al, byte [0x517f74]
test al, al
je 0x44a2db
mov al, byte [0x523ca8]
test al, al
je 0x44a2db
mov ecx, dword [0x517f2c]
mov eax, dword [0x517f24]
mov edx, dword [0x517f28]
sub ecx, eax
push 0x40
push ecx
mov ecx, dword [0x517f20]
sub edx, ecx
push edx
push eax
mov eax, dword [0x523c88]
push ecx
push 0xfffffffffffffffe
push eax
call esi
call fcn.0045f3d0
jmp 0x44a3a1
mov edx, dword [0x517ff0]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
xor ecx, ecx
push 0x517ef8
mov cl, byte [0x523ca8]
push edx
mov dword [0x517fc4], ecx
call esi
mov al, byte [0x523ca8]
test al, al
je 0x44a326
mov eax, dword [0x523c88]
push 0x517f20
push eax
call esi
mov byte [0x517f74], 1
jmp 0x44a32d
mov byte [0x517f74], 0
mov ecx, dword [0x518000]
call fcn.004473b0
test al, al
je 0x44a372
mov eax, dword [0x518028]
test eax, eax
je 0x44a34e
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x518030]
test eax, eax
mov dword [0x518158], eax
je 0x44a366
call fcn.00476af0
call fcn.0044a420
call fcn.0044a3f0
call fcn.0045f430
jmp 0x44a3a1
mov ecx, dword [0x517f04]
mov eax, dword [0x517efc]
mov edx, dword [0x517f00]
sub ecx, eax
push 0x40
push ecx
mov ecx, dword [0x517ef8]
sub edx, ecx
push edx
push eax
mov eax, dword [0x517ff0]
push ecx
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x517ffc]
test eax, eax
je 0x44a3c0
mov eax, dword [0x518000]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x44a3bb
mov edx, dword [ecx]
call dword [edx + 0x3c]
call fcn.0044a0f0
mov eax, dword [0x517ff0]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x30f
push eax
call esi
mov ecx, dword [0x517ff0]
push 0
push 0
push 0x20
push ecx
call esi
pop esi
ret

Function at 0x44ab20
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [0x528b9c]
test al, al
je 0x44ab40
mov eax, dword [0x523db4]
test eax, eax
je 0x44ab40
mov eax, dword [0x517ffc]
test eax, eax
je 0x44ab40
jmp fcn.0044aa90
jmp fcn.0044aa20
Function at 0x44ac40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x517ffc]
sub esp, 8
test ecx, ecx
je 0x44ad3a
mov al, byte [0x52aaf1]
push ebx
push esi
push edi
test al, al
je 0x44ac7d
mov ebx, dword [esp + 0x18]
mov eax, 0x52a1cc
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x44ac6a
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
jmp 0x44ac92
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, dword [esp + 0x18]
mov edx, ebx
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x44ac88
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44aca7
push ebx
call fcn.00452da0
add esp, 4
mov ecx, dword [0x517ffc]
mov edx, dword [ecx]
call dword [edx + 4]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [0x528b97]
test al, al
je 0x44acf3
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push str..zs_i
push ecx
jmp 0x44ad02
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push edx
push str..ss_i
push eax
call fcn.0048c636
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0xc]
mov eax, 0x5167f8
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x44ad45
add esp, 8
ret
Function at 0x451db0
Capabilities:
Create directory

Disassembly:
sub esp, 0xd4c
mov ecx, 8
xor eax, eax
push ebx
push esi
push edi
mov esi, str.data_recorder_file__.tpr_
lea edi, [esp + 0x158]
push 0x100
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xf7
lea edi, [esp + 0x17e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x5c]
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, 0x5c
cmp byte [esp + ecx + 0x58], al
je 0x451e12
mov dl, byte [esp + ecx + 0x57]
dec ecx
cmp dl, al
jne 0x451e09
mov byte [esp + ecx + 0x59], bl
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, dword [str.tape_]
mov dx, word [0x4a2b90]
dec edi
lea eax, [esp + 0x58]
push ebx
push eax
mov dword [edi], ecx
mov word [edi + 4], dx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [0x517ffc]
mov edx, dword [ecx]
call dword [edx + 4]
push eax
lea eax, [esp + 0x55c]
push str._s.tpr
push eax
call fcn.0048c636
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x18]
mov edx, dword [0x517ff4]
rep stosd dword es:[edi], eax
mov ecx, dword [0x517ff0]
lea eax, [esp + 0x164]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x564]
mov eax, 0x400
add esp, 0xc
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x958]
lea eax, [esp + 0x58]
push ecx
mov dword [esp + 0x10], 0x4c
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], str.data_recorder_file
mov dword [esp + 0x44], 0x800004
mov word [esp + 0x48], bx
mov word [esp + 0x4a], bx
mov dword [esp + 0x4c], 0x4a2b6c
mov dword [esp + 0x50], ebx
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x451f2c
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x451f2c
mov edx, dword [esp + 0xd5c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x451f16
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xd4c
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xd4c
ret
Function at 0x4521e0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
sub esp, 0x214
push str.NNNesterJ
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [esp + 0x218]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4522bf
push esi
push 0
push str.WinClass_nnnester
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x4522b2
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x45223b
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x220]
test eax, eax
je 0x4522b2
lea edx, [esp + 0x10]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x452253
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesA]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x10]
push edx
mov dword [esp + 8], 0
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [esp + 8], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4522b2
lea ecx, [esp + 4]
push ecx
push 0
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
pop esi
add esp, 0x214
ret
xor eax, eax
add esp, 0x214
ret
Function at 0x452a98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
push ebx
push esi
lea eax, [ebp - 0x310]
push edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov edi, eax
inc edi
xor esi, esi
push dword [esi*4 + 0x4a2cd4]
push edi
call fcn.0045c4a0
pop ecx
test eax, eax
pop ecx
jne 0x452adf
inc esi
cmp esi, 0xf
jl 0x452ac4
jmp 0x452b02
mov ebx, dword [ebp + 0x10]
cmp esi, 0xe
jne 0x452b09
push 6
pop esi
mov edi, esi
shl edi, 2
push dword [edi + 0x4a2c74]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x452b62
xor eax, eax
jmp 0x452c42
cmp esi, 8
jne 0x452b12
xor esi, esi
jmp 0x452aea
cmp esi, 9
jne 0x452b1c
xor esi, esi
inc esi
jmp 0x452b29
cmp esi, 0xa
jl 0x452b24
push 4
pop esi
cmp esi, 1
jne 0x452b3d
cmp byte [0x528b95], 0
jne 0x452aea
push ebx
push dword [ebp + 0xc]
call fcn.0047a890
jmp 0x452b54
cmp esi, 2
jne 0x452aea
cmp byte [0x528b95], 0
jne 0x452aea
push ebx
push dword [ebp + 0xc]
call fcn.0047aad0
pop ecx
test eax, eax
pop ecx
je 0x452aea
xor eax, eax
inc eax
jmp 0x452c42
push dword [edi + 0x4a2c94]
lea eax, [ebp - 0x110]
push str._sOpenArchive
push eax
call fcn.0048c636
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x10]
call esi
push dword [edi + 0x4a2c94]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
push str._sFindFirst
push eax
call fcn.0048c636
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x10]
call esi
push dword [edi + 0x4a2c94]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x110]
push str._sCloseArchive
push eax
call fcn.0048c636
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x10]
call esi
or dword [ebp - 4], 0xffffffff
cmp dword [ebx], 0
mov dword [ebp - 8], eax
je 0x452c30
mov esi, ebx
push 0x800000
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 0x10]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x452c26
lea eax, [ebp - 0x540]
push eax
push dword [esi]
push edi
call dword [ebp - 0xc]
push edi
mov dword [ebp - 4], eax
call dword [ebp - 8]
cmp dword [ebp - 4], ebx
je 0x452c34
add esi, 4
cmp dword [esi], ebx
jne 0x452bee
jmp 0x452c2a
push ebx
call dword [ebp - 8]
cmp dword [ebp - 4], 0
je 0x452c34
xor esi, esi
jmp 0x452c37
xor esi, esi
inc esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x452da0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
push esi
push edi
cmp byte [eax], 0
je 0x452e01
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0048bf50
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
jmp 0x452df9
and byte [esi], 0
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call edi
mov esi, eax
test esi, esi
jne 0x452de0
pop edi
pop esi
leave
ret
Function at 0x45bd60
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push 0x24
push esi
push edi
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 0x24]
push 4
push edx
push edi
call ebx
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esi + 0x28]
push 4
push ecx
push edi
call ebx
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esi + 0x2c]
push 4
push eax
push edi
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 0x30]
push 4
push edx
push edi
call ebx
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esi + 0x38]
push 1
push ecx
push edi
call ebx
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esi + 0x39]
push 1
push eax
push edi
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
add esi, 0x3c
push 1
push esi
push edi
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x45be00
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push 0x24
push esi
push edi
call ebx
cmp dword [esp + 0x10], 0x24
je 0x45be2b
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 0x24]
push 4
push edx
push edi
call ebx
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esi + 0x28]
push 4
push ecx
push edi
call ebx
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esi + 0x2c]
push 4
push eax
push edi
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 0x30]
push 4
push edx
push edi
call ebx
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esi + 0x38]
push 1
push ecx
push edi
call ebx
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esi + 0x39]
push 1
push eax
push edi
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
add esi, 0x3c
push 1
push esi
push edi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x45beb0
Capabilities:
Create directory
Write file on windows

Disassembly:
sub esp, 0x260
lea eax, [esp + 0x1c]
push ebx
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov al, byte [0x52aaf6]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
test al, al
lea edx, [esp + 0x28]
je 0x45bef6
push 0x52a8e8
lea eax, [esp + 0x2c]
push edx
push eax
jmp 0x45bf01
lea ecx, [esp + 0x28]
push str.Cheat
push ecx
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x28]
push eax
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x45bf29
test byte [esp + 0x12c], 0x10
jne 0x45bf36
lea edx, [esp + 0x28]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
call esi
mov ecx, dword [0x517ffc]
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call edi
lea eax, [esp + 0x28]
push str..cht
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
mov eax, dword [0x52023c]
test eax, eax
jne 0x45bf94
lea ecx, [esp + 0x12c]
lea edx, [esp + 0x28]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
jne 0x45bf91
push eax
call esi
pop edi
pop esi
pop ebx
add esp, 0x260
ret
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 5
push 0
push 0
lea eax, [esp + 0x3c]
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x45bfde
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x3c]
push 0x40000000
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x45c0a1
xor edx, edx
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x18], edx
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], 2
push edx
push eax
push 4
push ecx
push esi
mov dword [esp + 0x38], edx
call edi
test eax, eax
je 0x45c09a
lea edx, [esp + 0xc]
push 0
push edx
push 4
push 0x52023c
push esi
call edi
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x20]
push 8
push ecx
push esi
call edi
mov eax, dword [0x52023c]
mov dword [esp + 0x10], 0
test eax, eax
jbe 0x45c09a
push ebp
mov edi, 0x5181f8
lea edx, [edi - 0x30]
push esi
push edx
call fcn.0045bd60
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x45c083
xor ebx, ebx
test eax, eax
jbe 0x45c083
xor ebp, ebp
mov eax, dword [edi + 4]
push esi
add eax, ebp
push eax
call fcn.0045bd60
mov eax, dword [edi]
add esp, 8
inc ebx
add ebp, 0x40
cmp ebx, eax
jb 0x45c06a
mov eax, dword [esp + 0x14]
mov ecx, dword [0x52023c]
inc eax
add edi, 0x40
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x45c04f
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x260
ret