joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a510
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x404]
push esi
push edi
push 0x400
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x40c], ebx
call fcn.004bf140
add esp, 0xc
push ebx
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov ecx, dword [edi + 0x1820]
mov dword [ebp - 0x408], eax
push dword [ecx + 0x34]
lea ecx, [ebp - 0x404]
push ecx
push 8
push eax
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
test eax, eax
jne 0x42a591
mov eax, dword [edi + 0x1820]
mov ecx, dword [eax + 0x34]
cmp ecx, 0x400
jae 0x42a6de
mov byte [ebp + ecx - 0x404], 0
mov eax, dword [eax + 0x34]
cmp eax, 0x400
jae 0x42a6de
mov byte [ebp + eax - 0x404], 0
xor ecx, ecx
mov eax, dword [edi + 0x1820]
xor esi, esi
mov edx, dword [eax + 0x34]
cmp byte [ebp - 0x404], cl
je 0x42a5f2
nop dword [eax]
cmp ecx, edx
jge 0x42a5f2
mov al, byte [ebp + esi - 0x404]
cmp al, 0x81
jb 0x42a5d3
cmp al, 0x9f
jbe 0x42a5d9
add al, 0x20
cmp al, 0xf
ja 0x42a5e0
mov eax, 2
jmp 0x42a5e5
mov eax, 1
add esi, eax
inc ecx
cmp byte [ebp + esi - 0x404], 0
jne 0x42a5c0
mov eax, 0x400
sub eax, esi
push eax
lea eax, [ebp - 0x404]
add eax, esi
push 0
push eax
call fcn.004bf140
lea eax, [ebp - 0x404]
push eax
lea ebx, [edi + 0x1c]
push 0x400
push ebx
call fcn.004c26c7
mov ecx, ebx
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42a627
mov eax, dword [edi + 0x1820]
sub ecx, edx
mov edx, dword [eax + 0x34]
cmp ecx, edx
jle 0x42a651
mov ecx, ebx
call fcn.0042a2e0
mov esi, eax
mov byte [edi + esi + 0x1c], 0
mov eax, dword [edi + 0x1820]
push dword [eax + 0x34]
push ebx
mov ebx, dword [ebp - 0x408]
push 0x80
push ebx
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
cmp esi, eax
mov ecx, esi
cmovge ecx, eax
mov eax, dword [edi + 0x1820]
mov dword [edi + 0x181c], ecx
push dword [eax + 0x34]
lea eax, [ebp - 0x404]
push eax
push 0x100
push ebx
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
cmp eax, esi
mov word [edi + esi + 0x1c], 0
cmovg eax, esi
cmp dword [edi + 0x181c], esi
jne 0x42a6ae
cmp dword [edi + 0x14], 0
je 0x42a6b7
cmp eax, esi
jne 0x42a6b7
mov dword [edi + 0x14], 1
jmp 0x42a6be
mov dword [edi + 0x14], 0
push ebx
push dword [ebp - 0x40c]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
call fcn.004bd1bd
int3
Function at 0x42fe90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0xc]
lea eax, [ecx + esi]
cmp eax, edx
jbe 0x42febc
mov esi, edx
sub esi, ecx
xor eax, eax
mov dword [edi + 0x14], 0
test esi, esi
je 0x42ff02
nop dword [eax]
cmp esi, dword [edi + 0x10]
lea eax, [ebp - 8]
push 0
push eax
mov eax, esi
cmovae eax, dword [edi + 0x10]
push eax
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42ff1c
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 8]
add eax, ecx
add ebx, ecx
mov dword [edi + 0x14], eax
sub esi, ecx
jne 0x42fed0
mov ecx, dword [edi + 0x18]
add eax, ecx
mov dword [edi + 0x18], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 8
Function at 0x4318b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x30], 0
jne 0x4318e8
mov dword [edi + 0x4c], 2
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0xc]
push esi
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x58]
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0xc]
call dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x43193c
pop esi
mov dword [edi + 0x4c], 0x11
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0xa4]
lea ecx, [edi + 0xa4]
push dword [ebp - 0xc]
call dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push 1
push eax
push 0
push ebx
mov dword [ebp - 8], 0
call esi
push 0
lea ecx, [ebp - 8]
mov dword [edi + 0xb4], eax
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], 0
call esi
mov eax, dword [edi + 0xec]
mov dword [edi + 0x58], 0xffffffff
mov dword [edi + 0x80], 0xffffffff
mov esi, dword [eax]
lea eax, [edi + 0x50]
push eax
push dword [edi + 0xb4]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [edi + 0xec]
push eax
push dword [ebp - 0xc]
mov eax, dword [esi + 8]
call eax
test al, al
jne 0x4319db
pop esi
mov dword [edi + 0x4c], 0x28
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0xec]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edx, dword [edi + 0x58]
mov dword [edi + 0xe4], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0xbc], 0
cmp edx, 0xffffffff
je 0x431a1f
movzx ecx, word [edi + 0x40]
mov eax, ecx
imul eax, edx
mov dword [edi + 0x80], eax
mov eax, dword [edi + 0x5c]
imul eax, ecx
mov dword [edi + 0x84], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
mov dword [edi + 0xd0], 0
xor ecx, ebp
mov dword [edi + 0xcc], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x4c], 0
pop edi
pop ebx
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4

Function at 0x432130
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
call fcn.00431530
test eax, eax
je 0x43218c
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x12c], eax
lea eax, [esi + 0x134]
push eax
push 0
push esi
push 0x432c20
push 0
push 0
call fcn.004c2b9a
add esp, 0x18
mov dword [esi + 0x130], eax
test eax, eax
jne 0x432193
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov dword [esi + 0x4c], 0x12
xor eax, eax
pop esi
pop ebp
ret 8
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop esi
pop ebp
ret 8
Function at 0x4322e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x30], 0
jne 0x43231a
mov dword [edi + 0x4c], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0xc]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x58]
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0xc]
call dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x43236d
mov dword [edi + 0x4c], 0x11
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0xa4]
lea ecx, [edi + 0xa4]
push dword [ebp - 0xc]
call dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push 1
push eax
push 0
push ebx
mov dword [ebp - 8], 0
call esi
push 0
lea ecx, [ebp - 8]
mov dword [edi + 0xb4], eax
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], 0
call esi
mov eax, dword [edi + 0xec]
mov dword [edi + 0x58], 0xffffffff
mov dword [edi + 0x80], 0xffffffff
mov esi, dword [eax]
lea eax, [edi + 0x50]
push eax
push dword [edi + 0xb4]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [edi + 0xec]
push eax
push dword [ebp - 0xc]
mov eax, dword [esi + 8]
call eax
test al, al
jne 0x43240c
mov dword [edi + 0x4c], 0x28
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0xec]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0xe4], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0xbc], 0
cmp ecx, 0xffffffff
je 0x432450
movzx edx, word [edi + 0x40]
mov eax, edx
imul eax, ecx
mov dword [edi + 0x80], eax
mov eax, dword [edi + 0x5c]
imul eax, edx
mov dword [edi + 0x84], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [edi + 0xd0], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x4c], 0
call dword [eax + 0x74]
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 0x432dc0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d309c
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x565e48]
push 1
push str.DirectSound_Notify
call fcn.004aba30
cmp eax, 1
mov ecx, 0x564edc
mov eax, dword [vtable.CCriticalSection.0]
jne 0x432f5b
call dword [eax + 4]
cmp dword [0x56811c], 0
jne 0x432e36
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0
push dword [ebp - 0x30]
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x56811c], eax
mov dword [ebp - 4], 0
mov ecx, 0x564edc
mov eax, dword [vtable.CCriticalSection.0]
call dword [eax + 8]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [0x56811c], esi
je 0x432e9a
mov eax, dword [vtable.CCriticalSection.0]
mov ecx, 0x564edc
call dword [eax + 4]
push 0x128
push esi
push dword [0x56811c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x432e86
inc dword [0x568118]
mov dword [ebp - 4], 1
mov ecx, 0x564edc
mov eax, dword [vtable.CCriticalSection.0]
call dword [eax + 8]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x432f52
push 0x128
push 0
push esi
call fcn.004bf140
add esp, 0xc
mov ecx, esi
call fcn.004339a0
mov dword [esi], vtable.CWaveSoundNotify.0
mov dword [esi + 0xe0], vtable.CEvent.0
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe8], vtable.CEvent.0
mov dword [esi + 0xec], 0
push 0x42f960
push 0x42f950
push 4
push 8
lea eax, [esi + 0xf0]
mov byte [ebp - 4], 5
push eax
call fcn.004bd297
mov dword [esi + method.CEvent.virtual_0], vtable.CEvent.0
mov eax, esi
mov dword [esi + 0x114], 0
mov dword [esi + 0x118], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x124], 0xffffffff
mov dword [esi + 0xdc], 0
jmp 0x433006
xor esi, esi
mov eax, esi
jmp 0x433006
call dword [eax + 4]
cmp dword [0x56811c], 0
jne 0x432f83
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0
push dword [ebp - 0x54]
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x56811c], eax
mov dword [ebp - 4], 6
mov ecx, 0x564edc
mov eax, dword [vtable.CCriticalSection.0]
call dword [eax + 8]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [0x56811c], esi
je 0x432fe7
mov eax, dword [vtable.CCriticalSection.0]
mov ecx, 0x564edc
call dword [eax + 4]
push 0xdc
push esi
push dword [0x56811c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x432fd3
inc dword [0x568118]
mov dword [ebp - 4], 7
mov ecx, 0x564edc
mov eax, dword [vtable.CCriticalSection.0]
call dword [eax + 8]
test esi, esi
je 0x433004
push 0xdc
push 0
push esi
call fcn.004bf140
add esp, 0xc
mov ecx, esi
call fcn.004339a0
jmp 0x433006
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret
Function at 0x433c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [0x567f8c]
xor eax, eax
cmp edi, ecx
ja 0x433c67
mov eax, dword [0x567f90]
push 4
push 0x1000
sub eax, ecx
push edi
add eax, 0xc15888
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x433c67
lea ecx, [edi + 0x10000]
and ecx, 0xffff0000
sub dword [0x567f8c], ecx
mov dword [esi + 0xd4], eax
test eax, eax
jne 0x433c80
mov dword [esi + 0x4c], 0x18
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [esi]
mov ecx, esi
push 0x80c8
push dword [ebp + 8]
mov dword [esi + 0xd8], edi
call dword [eax + 0x4c]
test eax, eax
je 0x433c78
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x2c], eax
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x42fd30
push 0
push 0
call fcn.004c2b9a
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x433cdf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
pop edi
mov dword [esi + 0x4c], 0x12
xor eax, eax
pop esi
pop ebp
ret 8
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
mov dword [esi + 0x4c], 0
mov eax, 1
pop esi
pop ebp
ret 8
Function at 0x433da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x433dd6
mov dword [edi + 0x4c], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x30], 0
jne 0x433df7
mov dword [edi + 0x4c], 2
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
push ebx
call dword [eax + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push 1
push eax
push 0
push esi
mov dword [edi + 0x58], 0xffffffff
mov dword [ebp - 8], 0
call ebx
push 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x20], 0x46464952
je 0x433e4a
mov ecx, dword [ebp - 0x4c]
mov dword [edi + 0x4c], 0x14
jmp 0x433f5d
cmp dword [ebp - 0x18], 0x45564157
je 0x433e62
mov ecx, dword [ebp - 0x4c]
mov dword [edi + 0x4c], 0x15
jmp 0x433f5d
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
add ecx, 0xfffffffc
add eax, ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], ecx
nop word [eax + eax]
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
push 8
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea eax, [ebp - 8]
push eax
push 0
push esi
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
cmp ecx, 0x20746d66
je 0x433f19
cmp ecx, 0x61746164
je 0x433ef1
cmp ecx, 0x6c706d73
jne 0x433f19
push 0
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x28], 0
je 0x433f19
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
lea eax, [edi + 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x433f19
lea eax, [edi + 0xb4]
test eax, eax
je 0x433f13
push 1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push esi
call ebx
mov dword [edi + 0xb4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x10]
inc eax
push 0
and eax, 0xfffffffe
add eax, dword [ebp - 0x50]
push 0
push eax
push esi
call ebx
push 1
push 0
push 0
push esi
call ebx
cmp dword [ebp - 0x54], eax
ja 0x433e80
cmp dword [edi + 0xb4], 0
mov ecx, dword [ebp - 0x48]
je 0x433f56
test ecx, ecx
je 0x433f56
mov dword [edi + 0x4c], 0
jmp 0x433f5d
mov dword [edi + 0x4c], 0x13
push dword [edi + 0x5c]
mov eax, dword [edi]
push dword [edi + 0x58]
push ecx
push dword [edi + 0xb4]
mov ecx, edi
push esi
call dword [eax + 0x14]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4
Function at 0x434f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [0x567f8c]
xor eax, eax
cmp edi, ecx
ja 0x434f57
mov eax, dword [0x567f90]
push 4
push 0x1000
sub eax, ecx
push edi
add eax, 0xc15888
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x434f57
lea ecx, [edi + 0x10000]
and ecx, 0xffff0000
sub dword [0x567f8c], ecx
mov dword [esi + 0xd4], eax
test eax, eax
jne 0x434f70
mov dword [esi + 0x4c], 0x18
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [esi]
mov ecx, esi
push 0x80c8
push dword [ebp + 8]
mov dword [esi + 0xd8], edi
call dword [eax + 0x4c]
test eax, eax
je 0x434f68
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x2c], eax
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x42fd30
push 0
push 0
call fcn.004c2b9a
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x434fcf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
pop edi
mov dword [esi + 0x4c], 0x12
xor eax, eax
pop esi
pop ebp
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 1
push eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x114], eax
lea eax, [esi + 0x11c]
push eax
push 0
push esi
push 0x4357e0
push 0
push 0
call fcn.004c2b9a
add esp, 0x18
mov dword [esi + 0x118], eax
test eax, eax
je 0x434fb9
push 1
push eax
call edi
pop edi
mov dword [esi + 0x4c], 0
mov eax, 1
pop esi
pop ebp
ret 8
Function at 0x45c070
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5458
mov eax, dword fs:[0]
push eax
sub esp, 0x34
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 edi, ecx
mov eax, dword [edi + 0x58]
mov dword [edi + 4], 1
mov dword [edi + 0x8c], 0xffffffff
mov dword [edi + 0x80], 0
mov dword [edi + 0xa4], 0
mov ecx, dword [eax]
push 0
mov eax, dword [ecx]
call dword [eax + 0x40]
push 0x30
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004bf140
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00483230
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], vtable.IFuncFlag.0
push eax
mov dword [ebp - 0x2c], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 0x40], vtable.CFuncFlag.0
push ecx
push 0x1ba4
push 0
push 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0048a870
push ecx
push 1
push 0x35
push 0
lea ecx, [ebp - 0x40]
call fcn.0048a9b0
push ecx
push 1
push 0x38
push 0
lea ecx, [ebp - 0x40]
call fcn.0048a9b0
mov ecx, dword [edi + 0x64]
push str.save_load_00.area
mov eax, dword [ecx + 0x30]
mov dword [edi + 0x90], eax
mov eax, 0xcccccccd
mov esi, dword [ecx + 0x30]
add esi, 0x1ba2
mov dword [edi + 0x94], esi
movzx ecx, word [esi]
mul ecx
lea ecx, [edi + 0x2c]
shr edx, 3
mov dword [edi + 0x98], edx
movzx eax, word [esi]
mov dword [edi + 0x9c], eax
call fcn.00472df0
mov eax, dword [edi + 0x7c]
cmp eax, 3
jne 0x45c205
mov esi, dword [edi + 0x90]
mov edx, 0x5680b8
mov dword [edx], 0
xor ecx, ecx
mov eax, esi
nop dword [eax]
cmp byte [eax], 1
je 0x45c1b0
inc ecx
add eax, 0x36
cmp ecx, 0xa
jl 0x45c1a0
jmp 0x45c1b6
mov dword [edx], 1
add edx, 4
add esi, 0x21c
cmp edx, 0x5680ec
jl 0x45c192
mov eax, dword [edi + 0x98]
cmp dword [eax*4 + 0x5680b8], 0
jne 0x45c261
cmp dword [0x5680e8], 1
jne 0x45c1f0
mov dword [edi + 0x98], 0xc
jmp 0x45c261
cmp dword [0x5680e0], 1
jne 0x45c261
mov dword [edi + 0x98], 0xa
jmp 0x45c261
cmp eax, 2
jne 0x45c261
cmp dword [edi + 0x98], 0xa
jl 0x45c21d
mov dword [edi + 0x98], 0
movaps xmm0, xmmword [0x513d30]
movups xmmword [0x5680d8], xmm0
mov dword [0x5680e8], 1
movups xmmword [0x5680b8], xmm0
mov dword [0x5680e8], 0
movups xmmword [0x5680c8], xmm0
mov dword [0x5680e0], 0
mov dword [0x5680e4], 0
mov ecx, dword [0x56810c]
push 0
add ecx, 0x108
push 0x2d0
push 0x500
push 0
mov eax, dword [ecx]
push 0
call dword [eax + 0xd8]
push ecx
push dword [edi + 0x98]
mov ecx, edi
call fcn.0045d3d0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], vtable.IFuncFlag.0
push eax
mov dword [ebp - 0x2c], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
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 0x45eec0
Capabilities:
Write 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 0x4d55b8
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 eax, dword [0x5680f8]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x28], eax
call fcn.00499b50
push 4
mov esi, dword [eax + 0x34]
mov eax, dword [esi + 0x108]
lea ecx, [esi + 0x108]
mov eax, dword [eax + 0x20]
call eax
push eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov eax, dword [esi + 0x108]
lea ecx, [esi + 0x108]
push 0xcc0020
push 0x2d0
push 0x500
mov eax, dword [eax + 0x20]
push 0
push 0
call eax
mov esi, dword [ebp - 0x28]
mov ecx, esi
push eax
push 0x120
push 0x200
mov eax, dword [esi]
push 0
push 0
mov eax, dword [eax + 0x20]
call eax
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
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
mov dword [ebp - 4], 0
mov ecx, esi
mov eax, dword [esi]
mov dword [ebp - 0x28], esi
call dword [eax + 0x34]
lea edx, [edi + 1]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004afe10
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x24]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00475600
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x1c]
call eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x90000
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call dword [eax + 0xc]
lea ecx, [ebp - 0x40]
call fcn.00428650
mov byte [ebp - 4], 3
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x38]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CFile.0
call fcn.00475690
mov eax, 1
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