joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f050
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x59c6f4], 0
je 0x45f0a0
mov eax, dword [0x59c6f0]
push 0
push 0
push 0x500
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [0x59c6f4]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x45f096
mov edx, dword [0x59c6f4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x59c6f4], 0
push 0x59c6d8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov al, 1
ret

Function at 0x45f810
Capabilities:
Create thread

Disassembly:
push 0x59c6d8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x59c6f0
push 0
push 0
push 0x45f530
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x59c6f4], eax
jne 0x45f84a
push 0x59c6d8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor al, al
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, 1
ret

Function at 0x462880
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x6c1748]
test eax, eax
je 0x462929
mov ecx, dword [0x6c1738]
push 0
push 0
push 0x500
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edx, dword [0x6c1734]
push 0xbb8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4628ca
mov eax, dword [0x6c1734]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x6c1734]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x6c1740]
push edx
call esi
mov eax, dword [0x6c1744]
push eax
call esi
mov ecx, dword [0x6c172c]
push ecx
call esi
mov edx, dword [0x6c173c]
push edx
call esi
mov eax, dword [0x6c174c]
test eax, eax
pop esi
je 0x46291f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x6c174c], 0
mov dword [0x6c1748], 0
ret
Function at 0x464c30
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x6c1748]
test eax, eax
je 0x464c3e
call fcn.00462880
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push str.DSEBGMNew
push 0
push 0
push 0
call esi
push str.DSELVNew
push 0
push 0
push 0
mov dword [0x6c1740], eax
call esi
push str.DSESENew
push 0
push 0
push 0
mov dword [0x6c1744], eax
call esi
push str.DSEGETInfo
push 0
push 0
push 0
mov dword [0x6c172c], eax
call esi
push 0x104
mov dword [0x6c173c], eax
call fcn.0047dcaa
mov ecx, dword [str.BGM.ini]
push ecx
push 0x589910
mov edi, eax
push 0x4973f8
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [str.BGM.dat]
push edx
push edi
call fcn.00431f60
push edi
mov esi, eax
call fcn.0047dd2d
add esp, 0x20
test esi, esi
je 0x464d05
push esi
call fcn.00431a50
add esp, 4
add eax, 8
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x6c174c], eax
je 0x464cfc
push eax
push esi
call fcn.004319d0
push esi
call fcn.00431a60
add esp, 0xc
push esi
call fcn.00431aa0
add esp, 4
mov eax, dword [esp + 0xc]
push 0x6c1738
push 0
push eax
push 0x4633e0
push 0
push 0
mov dword [0x6c1730], 9
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6c1734], eax
mov ecx, dword [0x6c1734]
test ecx, ecx
pop edi
pop esi
jne 0x464d41
mov eax, reloc.DSOUND.dll_DirectSoundCreate
ret
mov edx, dword [0x6c1734]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
mov dword [0x6c1748], eax
ret
Function at 0x4674e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49638b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4b78cc]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b78cc]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov esi, ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x3c], eax
lea edi, [esi + 0x44]
push edi
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, dword [edx + 0xc]
mov word [esp + 0x24], 1
mov word [esp + 0x26], 2
mov dword [esp + 0x28], 0xac44
mov word [esp + 0x30], 4
mov dword [esp + 0x2c], 0x2b110
mov word [esp + 0x32], 0x10
mov dword [esp + 0x38], 0x24
mov dword [esp + 0x3c], 0xc1c8
mov dword [esp + 0x40], 0x183990
call ecx
test eax, eax
jne 0x46768e
push 1
lea ebx, [esi + 0x4c]
push esi
mov dword [ebx], 0x2b110
mov dword [esi + 0x54], 0xac440
mov dword [esi + 0x5c], 0x12d770
mov dword [esi + 0x64], 0x18398c
mov dword [esi + 0x6c], 0xffffffff
call fcn.00465eb0
push 2
push esi
mov dword [esi + 0x50], eax
call fcn.00465eb0
push 0
push esi
mov dword [esi + 0x58], eax
call fcn.00465eb0
push 3
push esi
mov dword [esi + 0x60], eax
call fcn.00465eb0
add esp, 0x20
mov dword [esi + 0x68], eax
call fcn.00465fb0
mov dword [esi + 0x70], eax
mov eax, dword [edi]
mov edx, dword [eax]
lea ebp, [esi + 0x48]
push ebp
push 0x4a11e0
push eax
mov eax, dword [edx]
call eax
test eax, eax
jne 0x46768e
mov ebp, dword [ebp]
mov ecx, dword [ebp]
mov edx, dword [ecx + 0xc]
push ebx
push 5
push ebp
call edx
test eax, eax
jne 0x46768e
push 0x81730
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 0xac], eax
je 0x46768e
cmp dword [esi + 0x3c], 0
jne 0x467699
push 0x8f8
call fcn.0047dddd
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x58], 0
je 0x46767d
mov ecx, eax
call fcn.004681c0
jmp 0x46767f
xor eax, eax
test eax, eax
mov dword [esp + 0x58], 0xffffffff
mov dword [esi + 0x3c], eax
jne 0x467699
mov ecx, esi
call fcn.00466e30
xor eax, eax
jmp 0x46769e
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0047dd32
add esp, 0x48
ret 4
Function at 0x468e10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x4b78cc]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov al, 0x3f
push str.save000.sav
push 0x4b93a0
mov byte [0x4b1b80], al
mov byte [0x4b1b81], al
mov byte [0x4b1b82], al
lea eax, [esp + 0x1e8]
push 0x498124
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1e4]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x468edd
cmp esi, 0xffffffff
je 0x468edd
test byte [esp + 0x20], 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
jne 0x468f34
lea eax, [esp + 0x4c]
push eax
push 0x4b93a0
lea ecx, [esp + 0x1e8]
push 0x498124
push ecx
call edi
add esp, 0x10
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
lea edx, [esp + 0x1f8]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x468ef5
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.0047dd32
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
push esi
jne 0x468f17
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0xc]
push edx
jmp 0x468ed7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x469005
jmp 0x468f50
test byte [esp + 0x20], 0x10
jne 0x468ff1
lea eax, [esp + 0x4c]
push eax
push 0x4b93a0
lea ecx, [esp + 0x1e8]
push 0x498124
push ecx
call edi
add esp, 0x10
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
lea edx, [esp + 0x1f8]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x468fed
lea eax, [esp + 0x18]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x468fed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x468fed
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
mov dword [esp + 0x10], eax
push edx
lea eax, [esp + 0x164]
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x468f50
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
movsx eax, byte [esp + 0x164]
lea edx, [eax + eax*4]
movsx eax, byte [esp + 0x165]
lea eax, [eax + edx*2]
movsx edx, byte [esp + 0x166]
pop edi
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2 - 0x14d0]
mov ecx, dword [esp + 0x2e8]
pop esi
pop ebx
xor ecx, esp
call fcn.0047dd32
mov esp, ebp
pop ebp
ret
Function at 0x469550
Capabilities:
Copy file

Disassembly:
push ebx
push esi
push edi
push 0x104
call fcn.0047dcaa
mov esi, eax
add esp, 4
test esi, esi
je 0x469600
push 0x104
call fcn.0047dcaa
mov edi, eax
add esp, 4
test edi, edi
je 0x4695f7
mov eax, dword [esp + 0x10]
push eax
call fcn.00468b70
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push 0x4b93a0
push 0x498124
push esi
call ebx
push 0
push esi
call fcn.00431f60
add esp, 0x1c
test eax, eax
je 0x4695ee
push eax
call fcn.00431aa0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00468b70
push eax
push 0x4b93a0
push 0x498124
push edi
call ebx
add esp, 0x18
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4695ee
push edi
call fcn.0047dd2d
push esi
call fcn.0047dd2d
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
ret
push edi
call fcn.0047dd2d
add esp, 4
push esi
call fcn.0047dd2d
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x469610
Capabilities:
Delete file

Disassembly:
push esi
push 0x104
call fcn.0047dcaa
mov esi, eax
add esp, 4
test esi, esi
je 0x469679
mov eax, dword [esp + 8]
push eax
call fcn.00468b70
push eax
push 0x4b93a0
push 0x498124
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.00431f60
add esp, 0x1c
test eax, eax
je 0x469670
push eax
call fcn.00431aa0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x469670
push esi
call fcn.0047dd2d
add esp, 4
mov al, 1
pop esi
ret
push esi
call fcn.0047dd2d
add esp, 4
xor al, al
pop esi
ret

Function at 0x469680
Capabilities:
Delete file

Disassembly:
push esi
push 0x104
call fcn.0047dcaa
mov esi, eax
add esp, 4
test esi, esi
je 0x4696d8
mov eax, dword [esp + 8]
push esi
push eax
call fcn.00468bd0
push 0
push esi
call fcn.00431f60
add esp, 0x10
test eax, eax
je 0x4696cf
push eax
call fcn.00431aa0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4696cf
push esi
call fcn.0047dd2d
add esp, 4
mov al, 1
pop esi
ret
push esi
call fcn.0047dd2d
add esp, 4
xor al, al
pop esi
ret
Function at 0x46c940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
xor ecx, ecx
cmp ebx, ecx
push esi
push edi
jne 0x46c991
mov edi, dword [0x6ca7c8]
xor edx, edx
xor esi, esi
cmp edi, ecx
jbe 0x46c983
mov edi, edi
mov eax, dword [ecx*4 + 0x6ca7d0]
cmp dword [eax + 0x68], 0
jne 0x46c97c
mov ebx, dword [eax + 0x1c]
imul ebx, dword [eax + 0x18]
imul ebx, ebx, 0x15
add edx, 1
add esi, ebx
add ecx, 1
cmp ecx, edi
jb 0x46c960
imul edx, edx, 0x64
pop edi
lea eax, [edx + esi + 4]
pop esi
pop ebx
add esp, 0x64
ret
mov eax, dword [0x6ca7c8]
mov dword [ebx], eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x74], ecx
jbe 0x46cb04
push ebp
mov ebp, 0x6ca7d0
lea ecx, [ecx]
mov eax, dword [ebp]
cmp dword [eax + 0x68], 0
jne 0x46cae8
mov ecx, dword [eax + 8]
fld dword [eax + 0x4c]
mov dword [esp + 0x18], ecx
fstp dword [esp + 0x50]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x60]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x50]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x24], edx
imul edx, dword [esp + 0x20]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 0x80]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0x84]
mov al, byte [eax + 0x88]
mov dword [esp + 0x6c], ecx
mov edi, ebx
mov byte [esp + 0x70], al
mov ecx, 0x19
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp]
mov edi, edx
mov edx, dword [ecx + 0x44]
push edi
push edx
add ebx, 0x64
push ebx
call fcn.0047eec0
add esp, 0xc
add ebx, edi
xor esi, esi
test edi, edi
jbe 0x46cae8
mov eax, dword [ebp]
mov ecx, dword [eax + 0x78]
cmp dword [ecx + esi*4], 0
je 0x46cace
mov dword [ebx], 1
mov eax, dword [ebp]
mov ecx, dword [eax + 0x78]
lea edx, [ebx + 4]
push edx
mov edx, dword [ecx + esi*4]
push edx
call fcn.0046b7c0
add esp, 8
jmp 0x46cade
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
add esi, 1
add ebx, 0x14
cmp esi, edi
jb 0x46caa4
mov ecx, dword [esp + 0x78]
mov eax, dword [0x6ca7c8]
add ecx, 1
add ebp, 4
cmp ecx, eax
mov dword [esp + 0x78], ecx
jb 0x46c9b0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret
Function at 0x46f850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push esi
mov esi, dword [esp + 0x6c]
mov eax, dword [esi]
test eax, eax
je 0x46fa21
add esi, 4
test eax, eax
jbe 0x46fa21
push ebx
push ebp
mov dword [esp + 0x14], eax
push edi
mov eax, dword [esi + 8]
fld dword [esi + 0x40]
mov ecx, dword [esi + 0xc]
fadd st(0), st(0)
mov edx, dword [esi + 0x48]
lea edi, [esi + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x1c]
mov ebp, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call fcn.0047edf0
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x24], ecx
mov cl, byte [esi + 0x60]
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esp + 0x74], eax
mov byte [esp + 0x78], cl
call fcn.0046f6e0
push eax
call fcn.0046bc30
add esp, 0xc
cmp byte [esi + 0x60], 0
mov dword [esp + 0x78], eax
je 0x46f94b
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
push edx
push eax
call fcn.0046bea0
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, eax
imul edx, ecx
add esi, 0x64
mov ebx, esi
add esi, edx
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x46f9f0
lea ecx, [ecx]
xor edi, edi
test eax, eax
jle 0x46f9dc
lea ebp, [esi + 4]
lea esp, [esp]
cmp dword [esi], 0
je 0x46f9c3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
push eax
push edi
push ecx
call fcn.0046bde0
movzx edx, word [ebx]
push edx
call fcn.0046b850
add esp, 0x10
test eax, eax
push ebp
je 0x46f9b1
push edx
mov edx, dword [esp + 0x80]
push edx
jmp 0x46f9bb
movzx ax, byte [ebx]
mov ecx, dword [esp + 0x7c]
push eax
push ecx
call fcn.0046d3f0
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
add edi, 1
add esi, 0x14
add ebp, 0x14
add ebx, 1
cmp edi, eax
jl 0x46f980
mov ebp, edx
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
jl 0x46f970
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
je 0x46fa02
mov eax, dword [esp + 0x78]
push eax
call fcn.0046bf00
add esp, 4
mov ecx, dword [ebp]
mov edx, dword [esp + 0x78]
push ecx
push edx
call fcn.0046bce0
add esp, 8
sub dword [esp + 0x18], 1
jne 0x46f874
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x64
ret
Function at 0x47b02c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x47b04d
mov eax, 0x8876086c
jmp 0x47b140
cmp dword [ebp + 0x7c], esi
je 0x47b0cf
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x47b0af
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.0047f230
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x47b0cf
push esi
push 0x10000000
push 3
push esi
push 1
push DirectSoundCreate
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x47b0e8
push esi
push 0x10000000
push 3
push esi
push 1
push DirectSoundCreate
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x47b12e
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x47b12e
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x47b12e
cmp eax, esi
je 0x47b13b
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x47b13e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x47b140
mov dword [edi + 8], esi
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8

Function at 0x47dd32
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b78cc]
jne 0x47dd3c
repz ret
jmp fcn.00482d44
Function at 0x488b1b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4b8270]
je 0x488b36
inc edi
cmp edi, 0x17
jb 0x488b27
cmp edi, 0x17
jae 0x488cb6
push ebp
push 3
call fcn.00492699
cmp eax, 1
pop ecx
je 0x488c82
push 3
call fcn.00492699
test eax, eax
pop ecx
jne 0x488b6a
cmp dword [0x4b7974], 1
je 0x488c82
cmp ebx, 0xfc
je 0x488cb5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x6d0270
push ebp
call fcn.00484fde
add esp, 0xc
test eax, eax
je 0x488ba0
push esi
push esi
push esi
push esi
push esi
call fcn.0047e788
add esp, 0x14
push 0x104
mov esi, 0x6d0289
push esi
push 0
mov byte [0x6d038d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x488be4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00484fde
add esp, 0xc
test eax, eax
je 0x488be4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0047e788
add esp, 0x14
push esi
call fcn.00482c50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x488c29
push esi
call fcn.00482c50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x6d0584
push 0x4aa67c
sub ecx, eax
push ecx
push eax
call fcn.004867a9
add esp, 0x14
test eax, eax
je 0x488c29
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0047e788
add esp, 0x14
jmp 0x488c2b
xor esi, esi
push 0x4aa678
push ebx
push ebp
call fcn.0048ab1c
add esp, 0xc
test eax, eax
je 0x488c4b
push esi
push esi
push esi
push esi
push esi
call fcn.0047e788
add esp, 0x14
push dword [edi*8 + 0x4b8274]
push ebx
push ebp
call fcn.0048ab1c
add esp, 0xc
test eax, eax
je 0x488c6d
push esi
push esi
push esi
push esi
push esi
call fcn.0047e788
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004924dc
add esp, 0xc
jmp 0x488cb5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x488cb5
cmp ebp, 0xffffffff
je 0x488cb5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4b8274]
push dword [esi]
call fcn.00482c50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4924dc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00484845
xor ebx, ebx
cmp dword [0x6d0864], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4925b2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x492692
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4addb8
push edi
call esi
cmp eax, ebx
je 0x492692
push eax
call fcn.004847d7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x6d0864], eax
call esi
push eax
call fcn.004847d7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6d0868], eax
call esi
push eax
call fcn.004847d7
mov dword [0x6d086c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00487476
test eax, eax
pop ecx
pop ecx
je 0x492580
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047e788
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4925b2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004847d7
cmp eax, ebx
pop ecx
mov dword [0x6d0874], eax
je 0x4925b2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004847d7
pop ecx
mov dword [0x6d0870], eax
mov eax, dword [0x6d0870]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x492637
cmp dword [0x6d0874], ecx
je 0x492637
push eax
call fcn.0048484e
push dword [0x6d0874]
mov esi, eax
call fcn.0048484e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x492637
cmp edi, ebx
je 0x492637
call esi
cmp eax, ebx
je 0x492604
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x492604
test byte [ebp - 0x18], 1
jne 0x492637
lea eax, [ebp - 0x10]
push eax
call fcn.004874ad
test eax, eax
pop ecx
je 0x49261f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047e788
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x49262e
or dword [ebp + 0x10], 0x200000
jmp 0x492672
or dword [ebp + 0x10], 0x40000
jmp 0x492672
mov eax, dword [0x6d0868]
cmp eax, dword [ebp - 8]
je 0x492672
push eax
call fcn.0048484e
cmp eax, ebx
pop ecx
je 0x492672
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x492672
mov eax, dword [0x6d086c]
cmp eax, dword [ebp - 8]
je 0x492672
push eax
call fcn.0048484e
cmp eax, ebx
pop ecx
je 0x492672
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6d0864]
call fcn.0048484e
cmp eax, ebx
pop ecx
je 0x492692
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x492694
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret