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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
test eax, eax
jne 0x453b81
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 pe_nt_image_headers32
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x453bd5
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.0046b530
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 0x453c0f
cmp esi, 0xffffffff
jne 0x453c96
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x453d33
cmp esi, 0xffffffff
je 0x453d33
mov eax, dword [0x6cdd3c]
imul eax, dword [0x6cdd38]
lea eax, [eax*4 + 0x10]
push eax
push pe_nt_image_headers32
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x453c96
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 0x453d11
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 0x453d22
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 0x453ce0
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 0x458500
Capabilities:
Encode data using xor

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

Disassembly:
sub esp, 0x108
mov eax, dword [0x4ba850]
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 0x45ba31
push 0x104
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test edi, edi
je 0x45ba15
lea eax, [esp + 8]
push edi
push eax
call fcn.00419360
add esp, 8
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0048164f
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0048164f
add esp, 0x108
ret

Function at 0x4617d0
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x59ff2c], 0
je 0x461820
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 0x461816
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 0x461f90
Capabilities:
Create thread

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

Disassembly:
mov eax, dword [0x6c4f80]
test eax, eax
je 0x4650b9
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 0x46505a
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 0x4650af
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 0x467490
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x6c4f80]
test eax, eax
je 0x46749e
call fcn.00465010
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push 0x49bf48
push 0
push 0
push 0
call esi
push 0x49bf3c
push 0
push 0
push 0
mov dword [0x6c4f78], eax
call esi
push 0x49bf30
push 0
push 0
push 0
mov dword [0x6c4f7c], eax
call esi
push 0x49bf24
push 0
push 0
push 0
mov dword [0x6c4f64], eax
call esi
push 0x104
mov dword [0x6c4f74], eax
call fcn.004810fa
mov ecx, dword [0x4b45ec]
push ecx
push 0x58cfc0
mov edi, eax
push 0x49a440
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x4b4604]
push edx
push edi
call fcn.00431070
push edi
mov esi, eax
call fcn.0048117d
add esp, 0x20
test esi, esi
je 0x467565
push esi
call fcn.00430b60
add esp, 4
add eax, 8
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x6c4f84], eax
je 0x46755c
push eax
push esi
call fcn.00430ae0
push esi
call fcn.00430b70
add esp, 0xc
push esi
call fcn.00430bb0
add esp, 4
mov eax, dword [esp + 0x10]
push eax
mov dword [0x6c4f68], 9
call fcn.004679f0
mov ecx, dword [esp + 0x10]
add esp, 4
push 0x6c4f70
push 0
push ecx
push 0x465bf0
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 0x4675ae
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 0x469de0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4997cb
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4ba850]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba850]
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 0x469f8e
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.004687b0
push 2
push esi
mov dword [esi + 0x50], eax
call fcn.004687b0
push 0
push esi
mov dword [esi + 0x58], eax
call fcn.004687b0
push 3
push esi
mov dword [esi + 0x60], eax
call fcn.004687b0
add esp, 0x20
mov dword [esi + 0x68], eax
call fcn.004688b0
mov dword [esi + 0x70], eax
mov eax, dword [edi]
mov edx, dword [eax]
lea ebp, [esi + 0x48]
push ebp
push 0x4a3f08
push eax
mov eax, dword [edx]
call eax
test eax, eax
jne 0x469f8e
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 0x469f8e
push 0x81730
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 0xac], eax
je 0x469f8e
cmp dword [esi + 0x3c], 0
jne 0x469f99
push 0x8f8
call fcn.0048121e
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x58], 0
je 0x469f7d
mov ecx, eax
call fcn.0046aac0
jmp 0x469f7f
xor eax, eax
test eax, eax
mov dword [esp + 0x58], 0xffffffff
mov dword [esi + 0x3c], eax
jne 0x469f99
mov ecx, esi
call fcn.00469730
xor eax, eax
jmp 0x469f9e
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.0048164f
add esp, 0x48
ret 4
Function at 0x46b7b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x4ba850]
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 0x4b4af8
push 0x4bcb08
mov byte [0x4b4afc], al
mov byte [0x4b4afd], al
mov byte [0x4b4afe], al
lea eax, [esp + 0x1e8]
push 0x49b12c
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 0x46b87d
cmp esi, 0xffffffff
je 0x46b87d
test byte [esp + 0x20], 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
jne 0x46b8d4
lea eax, [esp + 0x4c]
push eax
push 0x4bcb08
lea ecx, [esp + 0x1e8]
push 0x49b12c
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 0x46b895
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.0048164f
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 0x46b8b7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0xc]
push edx
jmp 0x46b877
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 0x46b9a5
jmp 0x46b8f0
test byte [esp + 0x20], 0x10
jne 0x46b991
lea eax, [esp + 0x4c]
push eax
push 0x4bcb08
lea ecx, [esp + 0x1e8]
push 0x49b12c
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 0x46b98d
lea eax, [esp + 0x18]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x46b98d
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 0x46b98d
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 0x46b8f0
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.0048164f
mov esp, ebp
pop ebp
ret
Function at 0x46bed0
Capabilities:
Copy file

Disassembly:
push ebx
push esi
push edi
push 0x104
call fcn.004810fa
mov esi, eax
add esp, 4
test esi, esi
je 0x46bf80
push 0x104
call fcn.004810fa
mov edi, eax
add esp, 4
test edi, edi
je 0x46bf77
mov eax, dword [esp + 0x10]
push eax
call fcn.0046b4d0
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push 0x4bcb08
push 0x49b12c
push esi
call ebx
push 0
push esi
call fcn.00431070
add esp, 0x1c
test eax, eax
je 0x46bf6e
push eax
call fcn.00430bb0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046b4d0
push eax
push 0x4bcb08
push 0x49b12c
push edi
call ebx
add esp, 0x18
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x46bf6e
push edi
call fcn.0048117d
push esi
call fcn.0048117d
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
ret
push edi
call fcn.0048117d
add esp, 4
push esi
call fcn.0048117d
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x46bf90
Capabilities:
Delete file

Disassembly:
push esi
push 0x104
call fcn.004810fa
mov esi, eax
add esp, 4
test esi, esi
je 0x46bff9
mov eax, dword [esp + 8]
push eax
call fcn.0046b4d0
push eax
push 0x4bcb08
push 0x49b12c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.00431070
add esp, 0x1c
test eax, eax
je 0x46bff0
push eax
call fcn.00430bb0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x46bff0
push esi
call fcn.0048117d
add esp, 4
mov al, 1
pop esi
ret
push esi
call fcn.0048117d
add esp, 4
xor al, al
pop esi
ret
Function at 0x472910
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 0x472ad8
add esi, 4
test eax, eax
jbe 0x472ad8
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.00482530
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.004727a0
push eax
call fcn.0046e500
add esp, 0xc
cmp byte [esi + 0x9c], 0
mov edi, eax
mov dword [esp + 0x74], edi
je 0x472a26
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x94]
push eax
push ecx
push edi
call fcn.0046e800
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 0x472abd
xor edi, edi
test eax, eax
jle 0x472aa9
lea ebp, [esi + 4]
cmp dword [esi], 0
je 0x472a90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
push eax
push edi
push ecx
call fcn.0046e740
movzx edx, word [ebx]
push edx
call fcn.0046e1d0
add esp, 0x10
test eax, eax
push ebp
je 0x472a7e
push edx
mov edx, dword [esp + 0x7c]
push edx
jmp 0x472a88
movzx ax, byte [ebx]
mov ecx, dword [esp + 0x78]
push eax
push ecx
call fcn.00470270
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 0x472a50
mov ebp, edx
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, dword [ebp + 0x50]
mov dword [esp + 0x10], ecx
jl 0x472a47
mov edi, dword [esp + 0x74]
mov eax, dword [ebp]
push eax
push edi
call fcn.0046e630
add esp, 8
sub dword [esp + 0x18], 1
jne 0x472934
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x60
ret
Function at 0x47e47c
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 0x47e49d
mov eax, 0x8876086c
jmp 0x47e590
cmp dword [ebp + 0x7c], esi
je 0x47e51f
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x47e4ff
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.00482970
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 0x47e51f
push esi
push 0x10000000
push 3
push esi
push 1
push DirectSoundCreate
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x47e538
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 0x47e57e
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 0x47e57e
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x47e57e
cmp eax, esi
je 0x47e58b
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 0x47e58e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x47e590
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 0x48164f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ba850]
jne 0x481659
repz ret
jmp fcn.004880cc
Function at 0x48be0b
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 0x48be26
inc edi
cmp edi, 0x17
jb 0x48be17
cmp edi, 0x17
jae 0x48bfa6
push ebp
push 3
call fcn.00495989
cmp eax, 1
pop ecx
je 0x48bf72
push 3
call fcn.00495989
test eax, eax
pop ecx
jne 0x48be5a
cmp dword [0x4ba8f4], 1
je 0x48bf72
cmp ebx, 0xfc
je 0x48bfa5
push 0x4ad3b8
mov ebx, 0x314
push ebx
mov ebp, 0x7139f0
push ebp
call fcn.00488434
add esp, 0xc
test eax, eax
je 0x48be90
push esi
push esi
push esi
push esi
push esi
call fcn.00481ec8
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 0x48bed4
push 0x4ad3a0
push 0x2fb
push esi
call fcn.00488434
add esp, 0xc
test eax, eax
je 0x48bed4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00481ec8
add esp, 0x14
push esi
call fcn.00486010
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48bf19
push esi
call fcn.00486010
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x713d04
push 0x4ad39c
sub ecx, eax
push ecx
push eax
call fcn.00489a8f
add esp, 0x14
test eax, eax
je 0x48bf19
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00481ec8
add esp, 0x14
jmp 0x48bf1b
xor esi, esi
push 0x4ad398
push ebx
push ebp
call fcn.0048de0f
add esp, 0xc
test eax, eax
je 0x48bf3b
push esi
push esi
push esi
push esi
push esi
call fcn.00481ec8
add esp, 0x14
push dword [edi*8 + 0x4bb204]
push ebx
push ebp
call fcn.0048de0f
add esp, 0xc
test eax, eax
je 0x48bf5d
push esi
push esi
push esi
push esi
push esi
call fcn.00481ec8
add esp, 0x14
push 0x12010
push 0x4ad370
push ebp
call fcn.004957cc
add esp, 0xc
jmp 0x48bfa5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48bfa5
cmp ebp, 0xffffffff
je 0x48bfa5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4bb204]
push dword [esi]
call fcn.00486010
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