joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453cb0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
test eax, eax
jne 0x453cc1
xor al, al
add esp, 0x14
ret
mov edx, dword [eax + 0x918]
mov ecx, dword [eax + 0x914]
push ebp
mov ebp, dword [eax + 0xc]
mov dword [esp + 0xc], edx
mov edx, dword [eax + 0x924]
imul edx, ebp
add edx, dword [eax + 0x920]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edi
mov dword [esp + 8], ecx
push 0x104
lea ecx, [eax + edx*4]
push 0x40
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x453d15
pop edi
xor al, al
pop ebp
add esp, 0x14
ret
mov edx, dword [esp + 0x24]
push ebx
push esi
push edi
push edx
call fcn.0046b700
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 8
push 0
push 0x8000080
push 3
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x453d4f
cmp esi, 0xffffffff
jne 0x453dd6
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x453e73
cmp esi, 0xffffffff
je 0x453e73
mov eax, dword [0x6cdd3c]
imul eax, dword [0x6cdd38]
lea eax, [eax*4 + 0x10]
push eax
push 0x40
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x453dd6
mov dword [ebx], 0x4d554854
mov eax, dword [0x6cdd38]
push 0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [0x6cdd3c]
lea edx, [esp + 0x24]
push edx
push eax
push ebx
push esi
mov dword [ebx + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x6cdd38]
imul ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x1c]
push 0
push 0
lea edx, [ecx*4 + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [0x6cdd38]
sub edi, ebp
add edi, edi
xor ebx, ebx
add edi, edi
cmp dword [esp + 0x10], ebx
jle 0x453e51
add ebp, ebp
add ebp, ebp
mov edi, edi
mov ecx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x453e62
add dword [esp + 0x28], ebp
push 1
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add ebx, 1
cmp ebx, dword [esp + 0x10]
jl 0x453e20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
mov al, 1
pop ebp
add esp, 0x14
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
xor al, al
pop ebp
add esp, 0x14
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
pop edi
xor al, al
pop ebp
add esp, 0x14
ret
Function at 0x458640
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jbe 0x45865d
mov cl, byte [esp + 0xc]
mov eax, dword [esp + 4]
xor byte [eax], cl
add eax, 1
add cl, 0x5c
sub edx, 1
jne 0x458650
ret
Function at 0x45bb30
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x108
mov eax, dword [0x4ba858]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
mov edi, dword [esp + 0x118]
push 0
push 0
push 0x147
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
je 0x45bbb1
push 0x104
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test edi, edi
je 0x45bb95
lea eax, [esp + 8]
push edi
push eax
call fcn.004193d0
add esp, 8
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0048181f
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0048181f
add esp, 0x108
ret

Function at 0x4619a0
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x59ff2c], 0
je 0x4619f0
mov eax, dword [0x59ff28]
push 0
push 0
push 0x500
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [0x59ff2c]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4619e6
mov edx, dword [0x59ff2c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x59ff2c], 0
push 0x59ff10
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov al, 1
ret

Function at 0x462160
Capabilities:
Create thread

Disassembly:
push 0x59ff10
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x59ff28
push 0
push 0
push 0x461e80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x59ff2c], eax
jne 0x46219a
push 0x59ff10
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 0x4651e0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x6c4f80]
test eax, eax
je 0x465289
mov ecx, dword [0x6c4f70]
push 0
push 0
push 0x500
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edx, dword [0x6c4f6c]
push 0xbb8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46522a
mov eax, dword [0x6c4f6c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x6c4f6c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x6c4f78]
push edx
call esi
mov eax, dword [0x6c4f7c]
push eax
call esi
mov ecx, dword [0x6c4f64]
push ecx
call esi
mov edx, dword [0x6c4f74]
push edx
call esi
mov eax, dword [0x6c4f84]
test eax, eax
pop esi
je 0x46527f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x6c4f84], 0
mov dword [0x6c4f80], 0
ret
Function at 0x467660
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x6c4f80]
test eax, eax
je 0x46766e
call fcn.004651e0
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 [0x6c4f78], eax
call esi
push str.DSESENew
push 0
push 0
push 0
mov dword [0x6c4f7c], eax
call esi
push str.DSEGETInfo
push 0
push 0
push 0
mov dword [0x6c4f64], eax
call esi
push 0x104
mov dword [0x6c4f74], eax
call fcn.004812ca
mov ecx, dword [str.BGM.ini]
push ecx
push 0x58cfc0
mov edi, eax
push 0x49a440
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [str.BGM.dat]
push edx
push edi
call fcn.00431110
push edi
mov esi, eax
call fcn.0048134d
add esp, 0x20
test esi, esi
je 0x467735
push esi
call fcn.00430c00
add esp, 4
add eax, 8
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x6c4f84], eax
je 0x46772c
push eax
push esi
call fcn.00430b80
push esi
call fcn.00430c10
add esp, 0xc
push esi
call fcn.00430c50
add esp, 4
mov eax, dword [esp + 0x10]
push eax
mov dword [0x6c4f68], 9
call fcn.00467bc0
mov ecx, dword [esp + 0x10]
add esp, 4
push 0x6c4f70
push 0
push ecx
push 0x465dc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6c4f6c], eax
mov edx, dword [0x6c4f6c]
test edx, edx
pop edi
pop esi
jne 0x46777e
mov eax, reloc.DSOUND.dll_DirectSoundCreate
ret
mov eax, dword [0x6c4f6c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
mov dword [0x6c4f80], eax
ret
Function at 0x469fb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49999b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4ba858]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba858]
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 0x46a15e
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.00468980
push 2
push esi
mov dword [esi + 0x50], eax
call fcn.00468980
push 0
push esi
mov dword [esi + 0x58], eax
call fcn.00468980
push 3
push esi
mov dword [esi + 0x60], eax
call fcn.00468980
add esp, 0x20
mov dword [esi + 0x68], eax
call fcn.00468a80
mov dword [esi + 0x70], eax
mov eax, dword [edi]
mov edx, dword [eax]
lea ebp, [esi + 0x48]
push ebp
push 0x4a3f18
push eax
mov eax, dword [edx]
call eax
test eax, eax
jne 0x46a15e
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 0x46a15e
push 0x81730
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 0xac], eax
je 0x46a15e
cmp dword [esi + 0x3c], 0
jne 0x46a169
push 0x8f8
call fcn.004813ee
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x58], 0
je 0x46a14d
mov ecx, eax
call fcn.0046ac90
jmp 0x46a14f
xor eax, eax
test eax, eax
mov dword [esp + 0x58], 0xffffffff
mov dword [esi + 0x3c], eax
jne 0x46a169
mov ecx, esi
call fcn.00469900
xor eax, eax
jmp 0x46a16e
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.0048181f
add esp, 0x48
ret 4
Function at 0x46b980
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x4ba858]
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 0x4bcb08
mov byte [0x4b4b04], al
mov byte [0x4b4b05], al
mov byte [0x4b4b06], al
lea eax, [esp + 0x1e8]
push 0x49b13c
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 0x46ba4d
cmp esi, 0xffffffff
je 0x46ba4d
test byte [esp + 0x20], 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
jne 0x46baa4
lea eax, [esp + 0x4c]
push eax
push 0x4bcb08
lea ecx, [esp + 0x1e8]
push 0x49b13c
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 0x46ba65
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.0048181f
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 0x46ba87
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0xc]
push edx
jmp 0x46ba47
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 0x46bb75
jmp 0x46bac0
test byte [esp + 0x20], 0x10
jne 0x46bb61
lea eax, [esp + 0x4c]
push eax
push 0x4bcb08
lea ecx, [esp + 0x1e8]
push 0x49b13c
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 0x46bb5d
lea eax, [esp + 0x18]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x46bb5d
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 0x46bb5d
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 0x46bac0
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.0048181f
mov esp, ebp
pop ebp
ret
Function at 0x46c0a0
Capabilities:
Copy file

Disassembly:
push ebx
push esi
push edi
push 0x104
call fcn.004812ca
mov esi, eax
add esp, 4
test esi, esi
je 0x46c150
push 0x104
call fcn.004812ca
mov edi, eax
add esp, 4
test edi, edi
je 0x46c147
mov eax, dword [esp + 0x10]
push eax
call fcn.0046b6a0
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push 0x4bcb08
push 0x49b13c
push esi
call ebx
push 0
push esi
call fcn.00431110
add esp, 0x1c
test eax, eax
je 0x46c13e
push eax
call fcn.00430c50
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046b6a0
push eax
push 0x4bcb08
push 0x49b13c
push edi
call ebx
add esp, 0x18
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x46c13e
push edi
call fcn.0048134d
push esi
call fcn.0048134d
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
ret
push edi
call fcn.0048134d
add esp, 4
push esi
call fcn.0048134d
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x46c160
Capabilities:
Delete file

Disassembly:
push esi
push 0x104
call fcn.004812ca
mov esi, eax
add esp, 4
test esi, esi
je 0x46c1c9
mov eax, dword [esp + 8]
push eax
call fcn.0046b6a0
push eax
push 0x4bcb08
push 0x49b13c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.00431110
add esp, 0x1c
test eax, eax
je 0x46c1c0
push eax
call fcn.00430c50
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x46c1c0
push esi
call fcn.0048134d
add esp, 4
mov al, 1
pop esi
ret
push esi
call fcn.0048134d
add esp, 4
xor al, al
pop esi
ret
Function at 0x472ae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push esi
mov esi, dword [esp + 0x68]
mov eax, dword [esi]
test eax, eax
je 0x472ca8
add esi, 4
test eax, eax
jbe 0x472ca8
push ebx
push ebp
mov dword [esp + 0x14], eax
push edi
mov eax, dword [0x4bcc6c]
fld dword [esi + 0x7c]
mov ecx, dword [esi + 0x48]
fadd st(0), st(0)
mov edx, dword [esi + 0x84]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x88]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x58]
mov ebp, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.00482700
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x8c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x68]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x60]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x64]
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x94]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x78]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x98]
mov dword [esp + 0x20], ecx
mov cl, byte [esi + 0x9c]
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x70], eax
mov byte [esp + 0x74], cl
call fcn.00472970
push eax
call fcn.0046e6d0
add esp, 0xc
cmp byte [esi + 0x9c], 0
mov edi, eax
mov dword [esp + 0x74], edi
je 0x472bf6
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x94]
push eax
push ecx
push edi
call fcn.0046e9d0
add esp, 0xc
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x50]
mov edx, eax
imul edx, ecx
add esi, 0xa0
mov ebx, esi
add esi, edx
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x472c8d
xor edi, edi
test eax, eax
jle 0x472c79
lea ebp, [esi + 4]
cmp dword [esi], 0
je 0x472c60
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
push eax
push edi
push ecx
call fcn.0046e910
movzx edx, word [ebx]
push edx
call fcn.0046e3a0
add esp, 0x10
test eax, eax
push ebp
je 0x472c4e
push edx
mov edx, dword [esp + 0x7c]
push edx
jmp 0x472c58
movzx ax, byte [ebx]
mov ecx, dword [esp + 0x78]
push eax
push ecx
call fcn.00470440
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x4c]
add edi, 1
add esi, 0x14
add ebp, 0x14
add ebx, 1
cmp edi, eax
jl 0x472c20
mov ebp, edx
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, dword [ebp + 0x50]
mov dword [esp + 0x10], ecx
jl 0x472c17
mov edi, dword [esp + 0x74]
mov eax, dword [ebp]
push eax
push edi
call fcn.0046e800
add esp, 8
sub dword [esp + 0x18], 1
jne 0x472b04
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x60
ret
Function at 0x47e64c
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 0x47e66d
mov eax, 0x8876086c
jmp 0x47e760
cmp dword [ebp + 0x7c], esi
je 0x47e6ef
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x47e6cf
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.00482b40
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 0x47e6ef
push esi
push 0x10000000
push 3
push esi
push 1
push DirectSoundCreate
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x47e708
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 0x47e74e
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 0x47e74e
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x47e74e
cmp eax, esi
je 0x47e75b
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 0x47e75e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x47e760
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 0x48181f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ba858]
jne 0x481829
repz ret
jmp fcn.0048829c
Function at 0x48bfdb
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 + 0x4bb200]
je 0x48bff6
inc edi
cmp edi, 0x17
jb 0x48bfe7
cmp edi, 0x17
jae 0x48c176
push ebp
push 3
call fcn.00495b59
cmp eax, 1
pop ecx
je 0x48c142
push 3
call fcn.00495b59
test eax, eax
pop ecx
jne 0x48c02a
cmp dword [0x4ba8f4], 1
je 0x48c142
cmp ebx, 0xfc
je 0x48c175
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x7139f0
push ebp
call fcn.00488604
add esp, 0xc
test eax, eax
je 0x48c060
push esi
push esi
push esi
push esi
push esi
call fcn.00482098
add esp, 0x14
push 0x104
mov esi, 0x713a09
push esi
push 0
mov byte [0x713b0d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48c0a4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00488604
add esp, 0xc
test eax, eax
je 0x48c0a4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00482098
add esp, 0x14
push esi
call fcn.004861e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48c0e9
push esi
call fcn.004861e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x713d04
push 0x4ad3ac
sub ecx, eax
push ecx
push eax
call fcn.00489c5f
add esp, 0x14
test eax, eax
je 0x48c0e9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00482098
add esp, 0x14
jmp 0x48c0eb
xor esi, esi
push 0x4ad3a8
push ebx
push ebp
call fcn.0048dfdf
add esp, 0xc
test eax, eax
je 0x48c10b
push esi
push esi
push esi
push esi
push esi
call fcn.00482098
add esp, 0x14
push dword [edi*8 + 0x4bb204]
push ebx
push ebp
call fcn.0048dfdf
add esp, 0xc
test eax, eax
je 0x48c12d
push esi
push esi
push esi
push esi
push esi
call fcn.00482098
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049599c
add esp, 0xc
jmp 0x48c175
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48c175
cmp ebp, 0xffffffff
je 0x48c175
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4bb204]
push dword [esi]
call fcn.004861e0
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