joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3890
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
push ebx
mov ebx, ecx
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp dword [ebx + 0xc8], 0
jne 0x4c38b1
mov dword [ebx + 0xc8], eax
sub eax, dword [ebx + 0xc8]
cmp eax, 0x1388
jbe 0x4c39e0
mov ecx, dword [ebx + 0xa4]
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0xb8], eax
test ecx, ecx
jle 0x4c38f5
jmp 0x4c38e0
mov eax, dword [ebx + 0xb8]
test eax, eax
je 0x4c38f2
mov eax, dword [eax]
mov dword [ebx + 0xb8], eax
dec ecx
jne 0x4c38e0
lea eax, [ebp - 0x350]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x350]
dec ecx
mov edi, edi
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4c3910
mov eax, dword [str.Resource.bin]
mov dword [ecx], eax
mov eax, dword [0x59e6d8]
mov dword [ecx + 4], eax
mov eax, dword [0x59e6dc]
mov dword [ecx + 8], eax
mov eax, dword [0x59e6e0]
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004c3820
test eax, eax
je 0x4c39be
mov ax, word [0x59e6ec]
movq xmm0, qword [str.Resource_]
mov word [ebp - 0x104], ax
mov al, byte [0x59e6ee]
mov byte [ebp - 0x102], al
lea eax, [ebp - 0x220]
movq qword [ebp - 0x10c], xmm0
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c3998
lea edi, [ebp - 0x10c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4c39a8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4c3952
call dword [sym.imp.WINMM.dll_timeGetTime]
pop edi
mov dword [ebx + 0xc8], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e5830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e587d
push 0
lea eax, [ebp + 8]
push eax
push 0x6c0
lea eax, [edi + 0x6c4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e5885
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
push 0
lea eax, [ebp + 8]
push eax
push 0x1c0
lea eax, [edi + 0xf44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x4e5877
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x4e7290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.._ini_GameOption.opt
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e72e3
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e72eb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0x71208
jne 0x4e72dc
push 0
lea eax, [ebp - 4]
push eax
push 0xb0
lea eax, [ebx + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e72dc
cmp dword [ebp - 4], 0xb0
push esi
ja 0x4e72dd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e73b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str.._ini_GameOption.opt
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e7415
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x71208
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 0xb0
lea eax, [ebx + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x502480
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588a56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
push 0x3d
push eax
mov word [esi + 0xfc], ax
mov dword [esi + 0x104], eax
mov byte [esi + 0x108], al
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea eax, [esi + 0x38]
push eax
mov dword [esi], vtable.COBalloonName.0
mov dword [esi + 0x78], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 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 + 0x100], 0
mov dword [esi + 0x7c], 0xffffff
mov dword [esi + 0x84], 0xffffff
call sub.MSVCR120.dll_memset
xorps xmm0, xmm0
movdqu xmmword [esi + 0x88], xmm0
mov byte [esi + 0x98], 0
movdqu xmmword [esi + 0x99], xmm0
push 0x810
movdqu xmmword [esi + 0xa9], xmm0
mov byte [esi + 0xb9], 0
movdqu xmmword [esi + 0xba], xmm0
movdqu xmmword [esi + 0xca], xmm0
mov byte [esi + 0xda], 0
movdqu xmmword [esi + 0xdb], xmm0
movdqu xmmword [esi + 0xeb], xmm0
mov byte [esi + 0xfb], 0
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x5025ac
mov ecx, eax
call fcn.0044f2c0
jmp 0x5025ae
xor eax, eax
mov dword [esi + 0x110], eax
xorps xmm0, xmm0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x124], 0
mov dword [esi + 0x118], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x120], 0
movdqu xmmword [esi + 0x15c], xmm0
push 0x20
movdqu xmmword [esi + 0x16c], xmm0
mov byte [esi + 0x17c], 0
movdqu xmmword [esi + 0x130], xmm0
mov dword [ebp - 4], 0xffffffff
movdqu xmmword [esi + 0x140], xmm0
mov byte [esi + 0x150], 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
mov dword [esi + 0x154], 0
mov dword [esi + 0x158], 0
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x502667
mov ecx, eax
call fcn.0044b5a0
jmp 0x502669
xor eax, eax
mov dword [esi + 0x180], eax
xorps xmm0, xmm0
mov dword [esi + 0x1a4], 0
mov eax, esi
mov dword [esi + 0x1a8], 0
movdqu xmmword [esi + 0x1b4], xmm0
mov ecx, dword [ebp - 0xc]
movdqu xmmword [esi + 0x1c4], xmm0
mov byte [esi + 0x1d4], 0
mov dword [esi + 0x1ac], 0
mov dword [esi + 0x1b0], 0
mov dword [esi + 0x1d8], 0
mov dword [esi + 0x1dc], 0
mov dword [esi + 0x184], 0
mov dword [esi + 0x188], 0
mov dword [esi + 0x18c], 0
mov dword [esi + 0x190], 0
mov dword [esi + 0x194], 0
mov dword [esi + 0x198], 0
mov dword [esi + 0x19c], 0
mov dword [esi + 0x1a0], 0
mov dword [esi + 4], 0
movdqu xmmword [esi + 0x1e8], xmm0
mov byte [esi + 0x1f8], 0
mov dword [esi + 0x1e0], 0
mov dword [esi + 0x1e4], 0
movdqu xmmword [esi + 0x204], xmm0
mov byte [esi + 0x214], 0
mov dword [esi + 0x1fc], 0
mov dword [esi + 0x200], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x508340
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5868ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNewbieGuide.0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
push 0x60
mov dword [ebp - 4], 0
call fcn.004c4460
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x50ad20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588e06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CPKManager.0
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
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x40]
mov dword [ebp - 4], 0
call fcn.00401000
push 3
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 1
mov dword [edi + 0xc], 0xea60
call fcn.004c4460
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x50e4a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x50e57b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 8]
push 0
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push esi
call edi
test eax, eax
je 0x50e515
cmp dword [ebp - 0xc], 0x6111101
jne 0x50e515
push 0
lea eax, [ebp + 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push esi
call edi
test eax, eax
je 0x50e515
movzx eax, byte [0x703bb8]
cmp dword [ebp - 4], eax
je 0x50e524
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp + 8]
push eax
push 0x120
lea eax, [ebp - 0x12c]
push eax
push esi
call edi
push esi
test eax, eax
je 0x50e516
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x829
mov ecx, 0x6d0af0
call fcn.004637b0
mov edi, dword [ebp - 0x48]
mov esi, eax
push edi
push dword [ebp - 0x4c]
lea ecx, [esi + 0x93c]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0050dde0
test eax, eax
je 0x50e57a
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x4c]
call dword [eax + 0x24]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x50e660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x50e71c
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x50e6b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp + 8], 0x6060801
jne 0x50e6a7
push 0
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x50e6a8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x1c], 0
je 0x50e71c
mov ecx, dword [0x6d6f6c]
test ecx, ecx
je 0x50e71c
push dword [ebp - 0xc]
call fcn.004b2c40
push dword [ebp - 0x10]
mov ecx, dword [0x6d6f6c]
call fcn.004b2c20
movss xmm0, dword [ebp - 8]
push 0
push ecx
movss dword [esp], xmm0
mov ecx, 0x7062c8
push 0
call fcn.00551420
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x50ec10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov ecx, 0x6d0af0
push 0x829
call fcn.004637b0
test eax, eax
je 0x50ec42
cvttss2si ecx, dword [eax + 0x898]
mov dword [ebp - 0x4c], ecx
cvttss2si eax, dword [eax + 0x89c]
mov dword [ebp - 0x48], eax
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x50ecb8
movzx ecx, byte [0x703bb8]
lea eax, [ebp - 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x6111101
push eax
push edi
mov dword [ebp - 0xc], ecx
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 0x120
lea eax, [ebp - 0x12c]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x50ecc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x50eded
push esi
push 0
mov ecx, 0x706b10
call fcn.0055cc30
push eax
lea eax, [ebp - 0x104]
push str._sData
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x104]
add esp, 0xc
push 0
push eax
call esi
push dword [edi + 0x18]
mov ecx, 0x706b10
push 0
call fcn.0055cc30
push eax
lea eax, [ebp - 0x104]
push str._sData_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push eax
call esi
test bl, 1
je 0x50ed7a
mov eax, dword [edi + 0x18]
mov ecx, 0x706b10
push eax
push eax
push 0
call fcn.0055cc30
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x104]
push str._sData_d_d.UII
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x104]
mov ecx, edi
push eax
call fcn.0050e730
jmp 0x50ed80
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
test bl, 2
je 0x50edb6
mov eax, dword [edi + 0x18]
mov ecx, 0x706b10
push eax
push eax
push 0
call fcn.0055cc30
push eax
lea eax, [ebp - 0x104]
push str._sData_d_d.UIS
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x104]
mov ecx, edi
push eax
call fcn.0050ee00
test bl, 4
je 0x50edec
mov eax, dword [edi + 0x18]
mov ecx, 0x706b10
push eax
push eax
push 0
call fcn.0055cc30
push eax
lea eax, [ebp - 0x104]
push str._sData_d_d.UIR
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x104]
mov ecx, edi
push eax
call fcn.0050ec10
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x50ee00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x6d6f6c]
sub esp, 0x14
test ecx, ecx
je 0x50ee8d
push edi
call fcn.004b0d20
movss xmm0, dword [0x706308]
push 0
push 0x80
push 2
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [0x6d6f6c]
push 0
push 0x40000000
push dword [ebp + 8]
mov ax, word [eax + 0x698]
mov word [ebp - 0x14], ax
movss dword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x50ee8c
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x6060801
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x5159b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5868ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CGuildFieldWar.0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
push 0x14
mov dword [ebp - 4], 0
call fcn.004c4460
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x51a060
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5890e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebx], vtable.CEventMap.0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
lea edi, [ebx + 0x34]
mov dword [ebp - 4], 0
lea ecx, [ebx + 0xbc]
mov byte [edi + 1], 0
call fcn.0044b5a0
lea ecx, [ebx + 0xdc]
mov byte [ebp - 4], 1
call fcn.0044b5a0
lea ecx, [ebx + 0xfc]
mov byte [ebp - 4], 2
call fcn.0044b5a0
lea ecx, [ebx + 0x11c]
mov byte [ebp - 4], 3
call fcn.0044b5a0
push 0x3e8
lea ecx, [ebx + 4]
mov byte [ebp - 4], 4
call fcn.004c4460
push 0x79
push 0
push edi
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x13c], 0
call sub.MSVCR120.dll_memset
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0xb8], 0
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51d2b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589183
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
push 0xa
mov byte [ebp - 4], 1
call fcn.004c4460
push 0x14
lea ecx, [edi + 0x24]
call fcn.004c4460
mov ecx, edi
call fcn.0051df10
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x524360
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584d46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [edi + 4]
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.FameManager.0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
push 0x64
mov byte [ebp - 4], 1
call fcn.004c4460
push 0x64
lea ecx, [edi + 0x28]
call fcn.004c4460
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x524bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
test eax, eax
jne 0x524c06
push 0x5a13a4
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x524c3b
mov edx, dword [ebp + 0xc]
mov ecx, edx
push edi
lea edi, [ecx + 1]
jmp 0x524be0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x524be0
push esi
sub ecx, edi
push 1
push ecx
push edx
call dword [sym.imp.MSVCR120.dll_fwrite]
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
cmp eax, 1
jne 0x524c3b
push 0x5a13a8
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x524c3b
push dword [ebp + 0xc]
push 0x5a13ac
push esi
call dword [sym.imp.MSVCR120.dll_fprintf]
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x10
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x526270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
jne 0x52628e
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x58d03c
push ebx
call dword [sym.imp.MSVCR120.dll_fopen]
lea edx, [edi + 0x30]
mov dword [edi + 4], eax
add esp, 8
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x5262a7
mov eax, dword [edi + 4]
test eax, eax
je 0x526284
push esi
mov esi, dword [sym.imp.MSVCR120.dll_fseek]
push 2
push 0
push eax
call esi
push dword [edi + 4]
call dword [sym.imp.MSVCR120.dll_ftell]
push 0
push 0
push dword [edi + 4]
mov dword [ebp + 8], eax
call esi
add esp, 0x1c
mov ecx, edi
call fcn.005259c0
push dword [edi + 4]
lea esi, [edi + 0x18]
push 1
push 0xc
push esi
call dword [sym.imp.MSVCR120.dll_fread]
mov eax, dword [esi]
lea ecx, [edi + 0x134]
sub eax, dword [edi + 0x1c]
add esp, 0x10
sub eax, dword [edi + 0x20]
push eax
call fcn.00406e40
test eax, eax
jne 0x526348
push ebx
lea eax, [ebp - 0x100]
push str.Bin_File_Version_Error_____s
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x100]
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [edi + 0x134]
call fcn.00406e20
test eax, eax
je 0x5263f2
mov esi, dword [ebp + 8]
add esi, 0xfffffff2
push esi
call fcn.0058374e
add esp, 4
mov dword [edi + 0x28], eax
test eax, eax
je 0x52633d
push esi
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [edi + 0x134]
push dword [edi + 0x1c]
push esi
push dword [edi + 0x28]
push dword [edi + 4]
call fcn.00406ca0
test eax, eax
jne 0x5263ca
push ebx
lea eax, [ebp - 0x200]
push str.File_Open_Error_:__s
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x200]
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [edi + 4]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 0x2c], 1
mov eax, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [edi + 4]
mov esi, dword [sym.imp.MSVCR120.dll_fread]
lea eax, [edi + 0x24]
push 1
push 1
push eax
call esi
mov eax, dword [edi + 0x20]
add esp, 0x10
test eax, eax
je 0x526426
push eax
call fcn.0058374e
push dword [edi + 4]
mov dword [edi + 0x28], eax
push dword [edi + 0x20]
push 1
push eax
call esi
add esp, 0x14
push dword [edi + 4]
lea eax, [edi + 0x25]
push 1
push 1
push eax
call esi
push dword [edi + 4]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
mov dword [edi + 4], 0
mov ecx, edi
call fcn.00525960
test eax, eax
je 0x52633d
mov ecx, edi
call fcn.005258e0
test eax, eax
je 0x52633d
pop esi
mov dword [edi + 0x2c], 1
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4