joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f050
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d55f8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
mov edi, dword [0x5680f8]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], vtable.CFile.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov ecx, edi
mov eax, dword [edi]
mov dword [ebp - 0x28], edi
call dword [eax + 0x34]
lea edx, [esi + 1]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004afe10
push 0
push 0
push 3
push 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
push 1
cmovae eax, dword [ebp - 0x40]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
mov eax, dword [edi]
mov ecx, edi
jne 0x45f12c
push 0
push 0x120
push 0x200
push 0
push 0
mov dword [ebp - 0x20], 0
call dword [eax + 0xd8]
xor esi, esi
jmp 0x45f183
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x90000
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
push 0xff
push 0x120
push 0x200
push 0
push 0
call dword [eax + 0xd8]
mov esi, 1
lea ecx, [ebp - 0x40]
call fcn.00428650
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x38]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CFile.0
call fcn.00475690
mov eax, esi
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.004bcfcc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10

Function at 0x45f950
Capabilities:
Check os version

Disassembly:
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
mov esi, ecx
push 0
push dword [0x568104]
mov eax, dword [esi]
push str.Save_BG.akb
call dword [eax + 0xd0]
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push dword [0x5680f4]
push str.saveload_p.akb
call dword [eax + 0xd0]
mov ecx, esi
mov dword [0x5680f4], eax
pop esi
jmp method.ISaveLoad.virtual_24
Function at 0x460790
Capabilities:
Check os version

Disassembly:
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
mov esi, ecx
push 0
push dword [0x568104]
mov eax, dword [esi]
push str.Load_BG.akb
call dword [eax + 0xd0]
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push dword [0x5680f4]
push str.saveload_p.akb
call dword [eax + 0xd0]
mov ecx, esi
mov dword [0x5680f4], eax
pop esi
jmp method.ISaveLoad.virtual_24
Function at 0x467b70
Capabilities:
Create thread

Disassembly:
push edi
push 0
mov edi, ecx
push 0
push 1
push 0
mov dword [edi + 4], 1
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [edi + 0x98], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0xa0], eax
mov ecx, edi
mov eax, dword [edi]
push 0
mov dword [edi + 0xcc], 5
mov dword [edi + 0xe0], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xbc], 0x3f800000
call dword [eax + 0xe0]
mov dword [edi + 0xb0], eax
mov ecx, edi
mov eax, dword [edi]
push 2
call dword [eax + 0xe0]
mov dword [edi + 0xb4], eax
lea eax, [edi + 0xa4]
push eax
push 0
push edi
push 0x468450
push 0
push 0
mov dword [edi + 0xb8], 0
mov dword [edi + 0xac], 0
mov dword [eax], 0
call fcn.004c2b9a
add esp, 0x18
mov dword [edi + 0xa8], eax
cmp dword [0x565e28], 1
jne 0x467c78
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [edi + 0xa0]
mov dword [edi + 0x8c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
ret
call dword [sym.imp.WINMM.dll_timeGetTime]
push dword [edi + 0xa0]
mov dword [edi + 0x8c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
ret
Function at 0x46aa30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5e68
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x78], 0
jne 0x46aad6
push ecx
push 2
push ecx
call fcn.0046abe0
mov ecx, esi
call fcn.00485dc0
push ecx
push 0
push ecx
mov ecx, esi
call fcn.0046abe0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0x67
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004a9d60
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0x5099e7
push 0x5099e7
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00428650
jmp 0x46aadd
mov dword [esi + 4], 0
mov eax, dword [esi + 0x3c]
xor edi, edi
sub eax, dword [esi + 0x38]
sar eax, 2
test eax, eax
je 0x46ab0e
nop dword [eax]
mov eax, dword [esi + 0x38]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + edi*4]
call dword [edx + 0xc4]
mov eax, dword [esi + 0x3c]
inc edi
sub eax, dword [esi + 0x38]
sar eax, 2
cmp edi, eax
jb 0x46aaf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret
Function at 0x475760
Capabilities:
Get file size

Disassembly:
lea eax, [ecx + 0xc]
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
ret
Function at 0x482010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push 0
push eax
push 4
mov edi, ecx
mov dword [ebp - 0x14], ebx
push edi
push ebx
call esi
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [edi + 4]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4820e0
mov edx, dword [edi + 0x18]
add edi, 8
cmp ecx, edx
ja 0x48207f
mov dword [edi + 0x10], ecx
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x482079
mov eax, dword [edi]
mov byte [eax + ecx], 0
jmp 0x4820cb
mov eax, dword [edi + 0x14]
mov ebx, ecx
mov dword [ebp - 0x10], eax
sub ebx, edx
sub eax, edx
cmp ebx, eax
ja 0x4820b7
cmp dword [ebp - 0x10], 0x10
mov eax, edi
mov dword [edi + 0x10], ecx
jb 0x48209c
mov eax, dword [edi]
push ebx
lea esi, [eax + edx]
push 0
push esi
call fcn.004bf140
mov byte [esi + ebx], 0
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4820c8
push ecx
push ebx
mov byte [ebp - 0x10], 0
mov ecx, edi
push dword [ebp - 0x10]
push ebx
call fcn.004827b0
mov ebx, dword [ebp - 0x14]
cmp dword [edi + 0x14], 0x10
jb 0x4820d3
mov edi, dword [edi]
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4

Function at 0x4821c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0
mov ebx, ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
push ecx
push 4
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [ebp - 8]
mov ecx, ebx
call fcn.00482600
xor edi, edi
cmp dword [ebp - 8], edi
jbe 0x482218
push esi
xor esi, esi
mov ecx, dword [ebx]
push dword [ebp - 0x10]
add ecx, esi
call fcn.00482010
inc edi
add esi, 0x20
cmp edi, dword [ebp - 8]
jb 0x482202
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
Function at 0x482230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
push 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ecx
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 5
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp dword [ebp - 0xc], esi
jbe 0x4822eb
push ebx
xor ebx, ebx
mov edi, dword [edi]
add edi, ebx
push 0
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 4
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [edi + 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4822de
cmp dword [edi + 0x1c], 0x10
lea eax, [edi + 8]
jb 0x4822cd
mov eax, dword [eax]
push 0
lea edx, [ebp - 8]
push edx
push ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp - 0x1c]
inc esi
add ebx, 0x20
cmp esi, dword [ebp - 0xc]
jb 0x482275
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
Function at 0x483df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x30], ebx
push 4
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x2c], edi
push ecx
mov eax, dword [edi + 4]
mov ecx, ebx
sub eax, dword [edi]
sar eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
call dword [eax + 0x18]
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
jbe 0x483f1c
xor ecx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x24], ecx
mov edi, dword [edi]
mov ebx, dword [ebx + 4]
add edi, ecx
push 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], edi
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
sar eax, 5
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push 4
push edi
push ebx
call esi
push 0
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
xor esi, esi
cmp dword [ebp - 0xc], esi
jbe 0x483ef6
xor ebx, ebx
nop
mov edi, dword [edi + 4]
add edi, ebx
push 0
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push 4
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [edi + 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x483eea
cmp dword [edi + 0x1c], 0x10
lea eax, [edi + 8]
jb 0x483ed9
mov eax, dword [eax]
push 0
lea edx, [ebp - 8]
push edx
push ecx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp - 0x28]
inc esi
add ebx, 0x20
cmp esi, dword [ebp - 0xc]
jb 0x483e80
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
inc eax
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add ecx, 0x10
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
cmp eax, dword [ebp - 0x10]
jb 0x483e42
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
Function at 0x483f30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push 4
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x20], ebx
push ecx
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x24], esi
call dword [eax + 0x14]
push ebx
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.00484230
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
jbe 0x48400b
xor edx, edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebx]
mov esi, dword [esi + 4]
add ecx, edx
mov eax, dword [ecx + 8]
lea ebx, [ecx + 4]
sub eax, dword [ebx]
sar eax, 5
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push ecx
push esi
mov dword [ebp - 0x1c], esi
call edi
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call edi
push ebx
push dword [ebp - 8]
mov ecx, ebx
call fcn.00482600
xor edi, edi
cmp dword [ebp - 8], edi
jbe 0x483fe5
xor esi, esi
nop dword [eax]
mov ecx, dword [ebx]
push dword [ebp - 0x1c]
add ecx, esi
call fcn.00482010
inc edi
add esi, 0x20
cmp edi, dword [ebp - 8]
jb 0x483fd0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
inc eax
mov ebx, dword [ebp - 0x20]
add edx, 0x10
mov esi, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
cmp eax, dword [ebp - 0xc]
jb 0x483f82
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
Function at 0x485680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7d5c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x52600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebx], vtable.ISelect.0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0xf
mov byte [ebx + 0x10], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov byte [ebp - 4], 3
call fcn.00499b50
mov dword [ebx + 0x50], eax
call fcn.0049d520
mov dword [ebx + 0x54], eax
call fcn.004757c0
mov dword [ebx + 0x58], eax
call fcn.00497660
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x5c], eax
mov dword [ebp - 0x10], 0x1c
mov eax, dword [ecx + 0x54]
mov dword [ebx + 0x60], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 0x64], eax
mov eax, dword [ecx + 0x28]
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x28], 0x12c
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov eax, dword [ebx + 0x3c]
cmp dword [ebx + 0x40], eax
je 0x485797
mov dword [eax], 0x1c
add dword [ebx + 0x3c], 4
jmp 0x4857a4
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebx + 0x38]
call fcn.00427d80
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x10], 0x9c
cmp dword [ebx + 0x40], eax
je 0x4857bf
mov dword [eax], 0x9c
add dword [ebx + 0x3c], 4
jmp 0x4857cc
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebx + 0x38]
call fcn.00427d80
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x10], 0x200
cmp dword [ebx + 0x40], eax
je 0x4857e7
mov dword [eax], 0x200
add dword [ebx + 0x3c], 4
jmp 0x4857f4
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebx + 0x38]
call fcn.00427d80
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x10], 1
cmp dword [ebx + 0x4c], eax
je 0x48580f
mov dword [eax], 1
add dword [ebx + 0x48], 4
jmp 0x48581c
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebx + 0x44]
call fcn.00427d80
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x10], 0xd3
cmp dword [ebx + 0x4c], eax
je 0x485837
mov dword [eax], 0xd3
add dword [ebx + 0x48], 4
jmp 0x485844
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebx + 0x44]
call fcn.00427d80
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x10], 0x201
cmp dword [ebx + 0x4c], eax
je 0x48585f
mov dword [eax], 0x201
add dword [ebx + 0x48], 4
jmp 0x48586c
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebx + 0x44]
call fcn.00427d80
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x10], 0x52
cmp dword [ebx + 0x4c], eax
je 0x485899
mov dword [eax], 0x52
mov eax, ebx
add dword [ebx + 0x48], 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
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebx + 0x44]
call fcn.00427d80
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
Function at 0x4877e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
push 4
mov edx, dword [esi]
lea eax, [edi + 0xc]
push eax
call dword [edx + 0x18]
cmp dword [edi + 0x78], 0
jne 0x48790e
movzx eax, byte [edi + 0x20]
lea ecx, [ebp - 5]
mov byte [ebp - 5], al
mov eax, dword [esi]
push 1
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov al, byte [ebp - 5]
test al, al
je 0x487840
cmp dword [edi + 0x24], 0x10
lea ecx, [edi + 0x10]
jb 0x487834
mov ecx, dword [ecx]
mov edx, dword [esi]
movzx eax, al
push eax
push ecx
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [edi + 0x2c]
lea ecx, [ebp - 0xc]
sub eax, dword [edi + 0x28]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push 4
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov ecx, dword [edi + 0x28]
mov eax, dword [edi + 0x2c]
mov edx, dword [esi]
sub eax, ecx
push eax
push ecx
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [edi + 0x38]
lea ecx, [ebp - 0xc]
sub eax, dword [edi + 0x34]
sar eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push 4
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x38]
mov edx, dword [esi]
sub eax, ecx
and eax, 0xfffffffe
push eax
push ecx
mov ecx, esi
call dword [edx + 0x18]
push dword [esi + 4]
lea ecx, [edi + 0x40]
call fcn.00482230
push dword [esi + 4]
lea ecx, [edi + 0x4c]
call fcn.00482230
mov eax, dword [edi + 0x70]
lea ecx, [edi + 0x58]
mov ebx, dword [esi + 4]
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 4
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [edi + 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x48790d
cmp dword [edi + 0x74], 0x10
lea eax, [edi + 0x60]
jb 0x4878fe
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x10]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
push esi
mov ecx, edi
call fcn.00483df0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
Function at 0x488310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x52600c]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x20]
push 0x105
mov esi, ecx
push 0
push eax
mov dword [esp + 0x1c], esi
call fcn.004bf140
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x28]
add esp, 0xc
push 0
push eax
push 0x104
lea eax, [esp + 0x2c]
push eax
push edi
call ebx
lea eax, [esp + 0x20]
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x488370
sub eax, edx
mov ecx, esi
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00428740
push edi
lea ecx, [esi + 0x3c]
call fcn.004821c0
push 0
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push edi
call ebx
lea eax, [esp + 0xf]
mov byte [esp + 0xf], 0
push eax
add esi, 0x18
push esi
push dword [esp + 0x20]
mov ecx, esi
call fcn.00483b00
push 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
push dword [esi]
push edi
call ebx
push 0
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push edi
call ebx
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
add esi, 0x24
mov dword [esp + 0x18], 0
push esi
push dword [esp + 0x20]
mov ecx, esi
call fcn.00487c10
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
add eax, eax
push eax
push dword [esi]
push edi
call ebx
mov esi, dword [esp + 0x10]
push edi
lea ecx, [esi + 0x48]
call fcn.004821c0
push 0
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push edi
call ebx
lea eax, [esp + 0xf]
mov byte [esp + 0xf], 0
add esi, 0x30
push eax
push esi
push dword [esp + 0x20]
mov ecx, esi
call fcn.00483b00
push 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
push dword [esi]
push edi
call ebx
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
Function at 0x48e260
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d83f8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x74
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x54]
call fcn.004afc50
mov dword [ebp - 4], 0
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
cmp eax, dword [edx + 4]
jne 0x48e2f5
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x3c]
push 0x511400
push eax
call fcn.0049ae20
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
mov ecx, 0x565cc0
push 0
cmovae eax, dword [ebp - 0x3c]
push eax
mov eax, dword [0x565cc0]
call dword [eax + 4]
lea ecx, [ebp - 0x3c]
call fcn.00428650
jmp 0x48e42b
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], vtable.CFile.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
push 3
push 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 0x10
push 1
cmovae eax, dword [ebp - 0x54]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
mov dword [ebp - 0x20], edx
cmp edx, 0xffffffff
jne 0x48e3e0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 0x10
cmovae eax, dword [ebp - 0x54]
push eax
push 0x50a184
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004a9b80
add esp, 0x10
lea ecx, [ebp - 0x84]
call fcn.00428650
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
mov ecx, dword [esi + 4]
cmovae eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0049ae20
mov byte [ebp - 4], 4
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 0x10
mov ecx, 0x565cc0
push 0
cmovae eax, dword [ebp - 0x6c]
push eax
mov eax, dword [0x565cc0]
call dword [eax + 4]
lea ecx, [ebp - 0x6c]
call fcn.00428650
lea ecx, [ebp - 0x3c]
call fcn.00428650
jmp 0x48e414
mov eax, dword [esi + 0x14]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
sub eax, ecx
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call dword [eax + 0xc]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CFile.0
call fcn.00475690
lea ecx, [ebp - 0x54]
call fcn.00428650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret