joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f5870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55b526
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x35]
push ebx
push eax
mov byte [esp + 0x3c], bl
call fcn.0052d8f0
mov edx, dword [esi + 0x14]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x30]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4f58f0
sub eax, edx
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x10]
call fcn.0049cf80
mov dword [esp + 0x140], ebx
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x28]
call sym.RtHDVCpl.exe_public:_void___thiscall_wvFM::WCStPath::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
mov byte [esp + 0x140], 1
push eax
lea ecx, [esi + 8]
call sym.RtHDVCpl.exe_public:_class_wvFM::WCStPath____thiscall_wvFM::WCStPath::operator_class_wvFM::WCStPath_const__
mov byte [esp + 0x140], bl
lea ecx, [esp + 0x24]
call sym.RtHDVCpl.exe_public_virtual:_void___thiscall_wvFM::WCStPath::destructor_void_
mov dword [esp + 0x140], 0xffffffff
cmp dword [esp + 0x20], 0x10
jb 0x4f595f
mov edx, dword [esp + 0xc]
push edx
call fcn.0050364e
add esp, 4
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
xor eax, eax
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0052944d
add esp, 0x13c
ret

Function at 0x4f59a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x552168
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
xor bl, bl
call sym.RtHDVCpl.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_wvFM::WCStPath::GetNativePathString_void_
mov dword [esp + 0x30], 0
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x4f59f2
lea eax, [esp + 0xc]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
je 0x4f5a0a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov bl, 1
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 0x10
jb 0x4f5a26
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0050364e
add esp, 4
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0052944d
add esp, 0x2c
ret
Function at 0x4f68e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54e723
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [edi], vtable.WCImage.0
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [edi], vtable.OGLImage.0
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov byte [esp + 0x30], 1
mov eax, dword [edi + 4]
push 0x200
push eax
call fcn.0052ceac
add esp, 8
cmp edx, ebx
mov dword [edi + 0x10], eax
je 0x4f6960
add eax, 1
mov dword [edi + 0x10], eax
mov ecx, dword [edi + 8]
push 0x200
push ecx
call fcn.0052ceac
add esp, 8
cmp edx, ebx
mov dword [edi + 0x14], eax
je 0x4f697e
add eax, 1
mov dword [edi + 0x14], eax
xor eax, eax
cmp dword [edi + 0x14], ebx
mov word [esp + 0x18], bx
mov word [esp + 0x1a], bx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esp + 0x38], eax
jbe 0x4f6a70
xor ebp, ebp
cmp dword [edi + 0x10], ebx
jbe 0x4f6a60
mov edx, eax
shl edx, 9
movzx ecx, dx
mov dword [esp + 0x3c], ecx
mov word [esp + 0x18], cx
lea ecx, [ecx]
mov ecx, dword [edi + 0x14]
sub ecx, 1
cmp eax, ecx
mov esi, 0x200
jne 0x4f69e7
mov edx, dword [edi + 8]
push esi
push edx
call fcn.0052ceac
add esp, 8
cmp edx, ebx
mov dword [esp + 0x20], eax
je 0x4f69e7
movzx esi, dx
mov eax, dword [edi + 0x10]
sub eax, 1
cmp ebp, eax
mov ebx, 0x200
jne 0x4f6a0e
mov ecx, dword [edi + 4]
push ebx
push ecx
call fcn.0052ceac
add esp, 8
test edx, edx
mov dword [esp + 0x20], eax
je 0x4f6a0e
movzx ebx, dx
mov ecx, dword [esp + 0x3c]
mov edx, ebp
shl edx, 9
movzx eax, dx
mov word [esp + 0x1a], ax
add eax, ebx
add ecx, esi
lea edx, [esp + 0x18]
mov word [esp + 0x1e], ax
mov eax, dword [esp + 0x44]
push edx
mov word [esp + 0x20], cx
push eax
mov ecx, edi
call sym.RtHDVCpl.exe_protected:_unsigned_char____thiscall_OGLImage::CreateSubImage_unsigned_char____class_WURect_short_int___
lea ebx, [esp + 0x40]
lea esi, [edi + 0x18]
mov dword [esp + 0x40], eax
call fcn.004bf480
mov eax, dword [esp + 0x38]
add ebp, 1
xor ebx, ebx
cmp ebp, dword [edi + 0x10]
jb 0x4f69c0
add eax, 1
cmp eax, dword [edi + 0x14]
mov dword [esp + 0x38], eax
jb 0x4f69a1
mov dword [esp + 0x30], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10
Function at 0x5007a9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x5007b4
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x500866
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x56c358]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x56c358]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x56c358]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x56c358]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x56c358]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x56c358]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x56c358]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x56c358]
inc ecx
sub eax, 8
dec edi
jne 0x5007cb
pop edi
test eax, eax
je 0x50087f
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x56c358]
inc ecx
dec eax
jne 0x50086a
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x5071b2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x5071eb
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00507175
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00410010
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x508e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x508e93
call fcn.0050b8e1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x508e93
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x508eae
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00508a0a
test ebx, ebx
mov esi, eax
je 0x508eac
test edi, edi
je 0x508eac
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
Function at 0x50964a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x549af1
call fcn.0053005a
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0050b8e1
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x509695
call fcn.0050b8e1
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x5096a6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x5096b3
or eax, 0xffffffff
jmp 0x50980f
mov ecx, esi
call fcn.0050919c
mov dword [ebp - 0x14], eax
call fcn.0050603a
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x509731
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x509731
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x509731
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0041a150
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x509731
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x509731
mov ecx, ebx
call fcn.0050a111
test eax, eax
je 0x509731
push 0
mov ecx, ebx
call fcn.0050a12c
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00507bb4
push dword [ebp - 0x14]
call fcn.00505f92
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00509452
xor edi, edi
cmp eax, edi
je 0x50978e
test byte [esi + 0x3c], 0x10
je 0x509778
push 4
pop edi
mov ecx, esi
call fcn.00509fce
test ax, 0x100
je 0x50976e
push 5
pop edi
push edi
mov ecx, esi
call fcn.00505b5a
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x50978e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0050a2ff
or dword [ebp - 4], 0xffffffff
jmp 0x5097b9
cmp dword [ebp - 0x28], edi
je 0x5097c7
push 1
mov ecx, ebx
call fcn.0050a12c
cmp dword [ebp - 0x2c], edi
je 0x5097d7
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x5097f0
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x5097f0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.005091d6
cmp dword [esi + 0x58], edi
je 0x50980c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.005300ff
ret
Function at 0x50a60e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x549c59
call fcn.00530027
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x50a633
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x50a67f
call fcn.0050d22b
push eax
lea ecx, [ebp - 0x10]
call fcn.00450b20
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00509930
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401630
mov eax, esi
call fcn.005300ff
ret 8

Function at 0x50e64a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x50e660
mov edi, dword [esi + 0xc]
jmp 0x50e6a0
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x50e679
call fcn.0050bea4
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x50e68e
call fcn.0050bea4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x50e6a0
call fcn.0050bea4
call fcn.0050b8e1
cmp dword [eax + 0x3c], 0
je 0x50e6b5
push edi
mov ecx, ebx
call fcn.0050d630
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0050e564
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x50e6d3
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x50e6df
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x512995
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0050b8e1
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x5129c0
xor eax, eax
jmp 0x512a64
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x5129b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x5129b9
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00503623
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x512a15
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x512a04
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0051179b
push edi
mov ebx, eax
call fcn.0050364e
test ebx, ebx
pop ecx
je 0x512a57
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00511e7e
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00511f30
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x51405a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5bc9cc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x514097
push 0x562d50
push 4
push eax
call fcn.0052a056
push eax
call fcn.0040bf00
add esp, 0x10
jmp 0x5140a9
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x514114
push edi
call fcn.005303dd
mov edi, dword [eax]
call fcn.005303dd
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0052af9f
add esp, 0x18
mov ebx, eax
call fcn.005303dd
cmp dword [eax], 0
je 0x5140f4
call fcn.005303dd
push dword [eax]
call fcn.00498fa0
pop ecx
jmp 0x5140fb
call fcn.005303dd
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x514114
cmp ebx, esi
jae 0x514114
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x514116
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0052944d
leave
ret
Function at 0x516f9a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x516fe0
call fcn.0050b8e1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x516fe0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x517023
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x51700c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x51700c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x517020
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x52efea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x52f027
cmp dword [ebp + 0x14], edi
je 0x52f027
cmp ecx, edi
jne 0x52f02e
call fcn.005303dd
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0052a92d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x52f042
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x52f063
cmp ebx, 0xffffffff
je 0x52f052
push ebx
push edi
push ecx
call fcn.0052d8f0
add esp, 0xc
cmp esi, edi
je 0x52f00f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x52f00f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x52f07f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x52f086
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x52f177
test word [esi + 0xc], 0x10c
je 0x52f0da
mov eax, dword [esi + 4]
test eax, eax
je 0x52f0da
jl 0x52f1d8
cmp ebx, eax
mov edi, ebx
jb 0x52f0ab
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x52f17f
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.005297ad
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x52f16f
cmp ebx, dword [ebp - 0xc]
jb 0x52f147
cmp dword [ebp - 0xc], 0
je 0x52f104
mov ecx, DirectSoundCreate
xor edx, edx
cmp ebx, ecx
jbe 0x52f0f9
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x52f100
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x52f10f
mov eax, DirectSoundCreate
cmp ebx, eax
ja 0x52f10f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x52f1ab
push eax
push dword [ebp - 8]
push esi
call fcn.0053a8f5
pop ecx
push eax
call fcn.0053a7f8
add esp, 0xc
test eax, eax
je 0x52f1ea
cmp eax, 0xffffffff
je 0x52f1d8
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x52f16f
push esi
call fcn.0053a117
cmp eax, 0xffffffff
pop ecx
je 0x52f1dc
cmp dword [ebp - 4], 0
je 0x52f1ab
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x52f08e
mov eax, dword [ebp + 0x14]
jmp 0x52f029
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x52f196
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0052d8f0
add esp, 0xc
call fcn.005303dd
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x52f01f
cmp dword [ebp + 0xc], 0xffffffff
je 0x52f1c1
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0052d8f0
add esp, 0xc
call fcn.005303dd
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x52f01f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x52f029
or dword [esi + 0xc], 0x10
jmp 0x52f1dc
Function at 0x531557
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 + 0x5bcb60]
je 0x531572
inc edi
cmp edi, 0x17
jb 0x531563
cmp edi, 0x17
jae 0x5316f2
push ebp
push 3
call fcn.0053f743
cmp eax, 1
pop ecx
je 0x5316be
push 3
call fcn.0053f743
test eax, eax
pop ecx
jne 0x5315a6
cmp dword [0x5bc684], 1
je 0x5316be
cmp ebx, 0xfc
je 0x5316f1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5c8b00
push ebp
call fcn.00537b40
add esp, 0xc
test eax, eax
je 0x5315dc
push esi
push esi
push esi
push esi
push esi
call fcn.0052a80f
add esp, 0x14
push 0x104
mov esi, 0x5c8b19
push esi
push 0
mov byte [0x5c8c1d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x531620
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00537b40
add esp, 0xc
test eax, eax
je 0x531620
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0052a80f
add esp, 0x14
push esi
call fcn.0052f780
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x531665
push esi
call fcn.0052f780
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5c8e14
push 0x565084
sub ecx, eax
push ecx
push eax
call fcn.0053f690
add esp, 0x14
test eax, eax
je 0x531665
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0052a80f
add esp, 0x14
jmp 0x531667
xor esi, esi
push 0x565080
push ebx
push ebp
call fcn.0053f61f
add esp, 0xc
test eax, eax
je 0x531687
push esi
push esi
push esi
push esi
push esi
call fcn.0052a80f
add esp, 0x14
push dword [edi*8 + 0x5bcb64]
push ebx
push ebp
call fcn.0053f61f
add esp, 0xc
test eax, eax
je 0x5316a9
push esi
push esi
push esi
push esi
push esi
call fcn.0052a80f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0053f462
add esp, 0xc
jmp 0x5316f1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x5316f1
cmp ebp, 0xffffffff
je 0x5316f1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5bcb64]
push dword [esi]
call fcn.0052f780
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