joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4234c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf43f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x517074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push 0x4ed69c
push 0x3e9
push dword [esi + 0x44]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4235ec
push eax
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4235ec
push dword [ebp - 0x18]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4235ec
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4235ec
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4235e5
push edi
push dword [ebp - 0x18]
push eax
call fcn.004a53c0
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4235de
push 0x24
call fcn.0048bcb4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov ecx, eax
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
push dword [ebp - 0x14]
call fcn.00422c20
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x4db310]
call esi
test edi, edi
je 0x4235ec
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov al, 1
jmp 0x4235ee
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
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.0048bc9e
mov esp, ebp
pop ebp
ret 8

Function at 0x423b20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x517074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 8], 0
cmp dword [esi + 0x40], 0
je 0x423b51
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048bc9e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x423920
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x40], eax
test eax, eax
je 0x423b40
mov eax, dword [esi + 4]
test eax, eax
je 0x423b81
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0048bc9e
mov esp, ebp
pop ebp
ret
Function at 0x423ba0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x423bf4
mov eax, dword [esi + 0x48]
test eax, eax
je 0x423bc4
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esi + 0x48], 0
push 0x2710
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x423be4
push 1
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], 0
pop esi
ret

Function at 0x424ae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x424ae8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x424afb
test al, 0x10
jne 0x424afb
mov al, 1
ret
xor al, al
ret
Function at 0x42c470
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d185d
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x517074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x84], edi
push ecx
lea ecx, [ebp - 0x79]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x80], 0
call fcn.0042c190
mov dword [ebp - 4], 3
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x10]
mov byte [ebp - 4], 6
cmp dword [esi + 0x14], 0x10
jb 0x42c4d7
mov esi, dword [esi]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
push eax
mov edx, esi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x78], 0x67452301
mov dword [ebp - 0x74], 0xefcdab89
mov dword [ebp - 0x70], 0x98badcfe
mov dword [ebp - 0x6c], 0x10325476
call fcn.004680f0
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x78]
call fcn.004681b0
add esp, 4
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x20]
mov ecx, edi
call fcn.0042dfc0
add esp, 4
mov dword [ebp - 0x80], 1
mov dword [ebp - 4], 0xb
mov eax, dword [0x51cb38]
test eax, eax
je 0x42c551
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [0x51cb30], 1
jne 0x42c576
xor cl, cl
call fcn.0044fc00
test byte [0x51cb34], 1
je 0x42c576
call fcn.00462dd0
and dword [0x51cb34], 0xfffffffe
mov eax, dword [0x51cb38]
test eax, eax
je 0x42c586
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 8
xor ecx, ecx
call fcn.00450ad0
mov byte [ebp - 4], 0
add esp, 8
mov eax, edi
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.0048bc9e
mov esp, ebp
pop ebp
ret
Function at 0x42c910
Capabilities:
Get system information 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 0x4d18f8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x150
mov eax, dword [0x517074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x38]
push eax
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x11c
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.004a5940
add esp, 0xc
mov dword [ebp - 0x160], 0x11c
lea eax, [ebp - 0x160]
push eax
call fcn.0046b4e0
mov esi, eax
mov ecx, eax
call dword [0x4db310]
call esi
cmp byte [ebp - 0x46], 1
mov ecx, 0x4ec100
mov eax, 0x4eeeac
cmove eax, ecx
sub esp, 0x18
cmp word [ebp - 0x38], 9
mov edx, esp
mov dword [ebp - 0x3c], esp
mov ecx, 0x4eeec0
push eax
mov eax, str.AMD64
cmovne eax, ecx
movzx ecx, word [ebp - 0x4a]
push eax
movzx eax, word [ebp - 0x4c]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp - 0x154]
push dword [ebp - 0x150]
push dword [ebp - 0x158]
push dword [ebp - 0x15c]
push str.win__d__d__d__d__d__s_s
push edx
call fcn.0042a120
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x42ca29
mov eax, dword [ecx]
jmp 0x42ca2b
mov eax, ecx
push 2
xor edx, edx
push 0x4eeef8
mov word [eax], dx
call fcn.00413f90
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0042c390
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.0048bc9e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x42db20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2049
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x517074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x42db5f
mov eax, dword [esi]
jmp 0x42db61
mov eax, esi
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x4ec100
push str.stats10
push str.server0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x42dbb4
cmp dword [esi + 0x14], 8
jb 0x42db95
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Unable_to_retrieve_stats_URL_from_file__s_with_error_0x_08lx_
push 0x51dc94
call fcn.004146b0
add esp, 0x10
jmp 0x42dcdb
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movq qword [ebp - 0x224], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x23c]
call fcn.0042df30
add esp, 4
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.00416410
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x42dc2f
inc eax
lea ecx, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
call fcn.00414120
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00414090
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.0042ca70
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x42dc78
inc eax
lea ecx, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
call fcn.00414120
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x42dcdb
push dword [ebp - 0x240]
mov edx, dword [ebp - 0x220]
push ecx
call fcn.00416370
mov ecx, dword [ebp - 0x21c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x224]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00415dc0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x42dcf0
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00414120
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bc9e
mov esp, ebp
pop ebp
ret 0x18
Function at 0x42ea00
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d215f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x517074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x48
mov dword [ebp - 0x18], 0
call fcn.0048bcb4
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00413c40
lea ecx, [edi + 0x18]
lea eax, [esi + 0x18]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004183e0
lea ecx, [edi + 0x30]
xor eax, eax
lea edx, [esi + 0x30]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edx
mov word [ecx], ax
call fcn.00413a50
mov dword [ebx], edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433bf0
Capabilities:
Create process on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x517074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
lea eax, [ebp - 0x50]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.004a5940
add esp, 0xc
mov dword [ebp - 0x50], 0x44
lea eax, [ebp - 0x60]
xorps xmm0, xmm0
movups xmmword [ebp - 0x60], xmm0
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x24
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
test bl, bl
je 0x433c9b
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test edi, edi
je 0x433c76
push 0xffffffffffffffff
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048bc9e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048bc9e
mov esp, ebp
pop ebp
ret
Function at 0x43bc20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d26c6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x517074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0048bcb4
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00488426
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x445290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d44f6
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x517074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x10], 0
push 1
push 0
mov dword [ebp - 0x18], ebx
mov dword [ebx], 0x4f1d9c
mov dword [ebx + 0x98], 0x4f1918
mov dword [ebx + 0xa8], 0x4f1d90
call fcn.00449090
mov dword [ebx + 0x94], vtable.asw::mi::IExportable.0
mov eax, dword [ebx + 0xa8]
mov dword [ebx + 0xa4], vtable.asw::log::ILogger.0
mov dword [ebp - 0x10], 7
mov eax, dword [eax + 8]
mov dword [eax + ebx + 0xa8], 0x4f1a78
mov eax, dword [ebx]
mov eax, dword [eax + 8]
mov dword [ebx + eax], vtable.asw::mi::Exportable_class_asw::log::ILogger_.1.0
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
mov dword [ebx + eax], vtable.asw::mi::Exportable_class_asw::log::ILogger_.0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 4], 2
mov eax, dword [ebx]
push 0x100c4
mov eax, dword [eax + 8]
mov dword [ebx + eax], vtable.asw::log::Logger.1.0
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
mov dword [ebx + eax], vtable.asw::log::Logger.0
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
lea eax, [ecx - 0x94]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc]
lea eax, [ecx - 0xa4]
mov dword [ecx + ebx - 4], eax
call fcn.0048bcb4
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
call fcn.00447560
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea esi, [ebx + 0x28]
mov byte [ebp - 4], 4
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00447f20
mov dword [esi], eax
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebx + 0x58], 0xffffffff
xor eax, eax
mov dword [ebx + 0x70], 7
mov edi, 6
mov dword [ebx + 0x6c], 0
mov ecx, edi
mov word [ebx + 0x5c], ax
mov dword [ebx + 0x88], eax
lea eax, [ebx + 0x30]
xchg dword [eax], ecx
mov ecx, 4
lea eax, [ebx + 0x34]
xchg dword [eax], ecx
xor ecx, ecx
lea eax, [ebx + 0x38]
xchg dword [eax], ecx
mov esi, 1
mov ecx, esi
lea eax, [ebx + 0x3c]
xchg dword [eax], ecx
push 0
push 0x400000
lea ecx, [ebx + 0x78]
call fcn.00448ec0
lea ecx, [ebx + 0x80]
xchg dword [ecx], esi
lea ecx, [ebx + 0x84]
xchg dword [ecx], edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x449460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d49c0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x517074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x80]
mov edx, dword [edi]
cmp edx, eax
jl 0x449601
call fcn.00449920
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.0044d150
push ecx
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042e230
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x4494dd
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.004187a0
push 2
push 0x4f1ddc
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
call fcn.004181c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
push 1
push 0x4f1eb4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.004181c0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0044b420
mov eax, dword [ebp - 0x30]
add esp, 4
cmp eax, 0x10
jb 0x449560
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004187a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x44958b
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.004187a0
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4495d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x84]
call fcn.00477040
push 0x513ed8
lea eax, [ebp - 0x84]
push eax
call fcn.004a4f7b
mov ecx, dword [edi]
mov eax, dword [esi + 0x84]
cmp ecx, eax
jl 0x4495ec
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x449601
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004187a0
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.0048bc9e
mov esp, ebp
pop ebp
ret 4
Function at 0x44a200
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4b80
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x517074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebx]
test cl, 3
je 0x44a2fb
mov eax, dword [edi + 0x34]
cmp esi, eax
jge 0x44a25b
mov eax, dword [edi + 0x38]
test eax, eax
je 0x44a2fb
mov eax, dword [edi + 0x3c]
cmp esi, eax
jl 0x44a2fb
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.0044d150
push ecx
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042e230
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x44a297
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.004187a0
mov eax, dword [edi + 0x34]
cmp esi, eax
jl 0x44a2b0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [edi + 0x38]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x44a2e3
mov eax, dword [edi + 0x3c]
cmp esi, eax
jl 0x44a2e3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.004b8663
push dword [ebp - 0x2c]
call fcn.004b8849
add esp, 0x14
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44a2f8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004187a0
mov ecx, dword [ebp + 0xc]
test cl, 4
je 0x44a340
cmp dword [edi + 0x58], 0xffffffff
je 0x44a340
mov eax, dword [edi + 0x30]
cmp esi, eax
jl 0x44a338
lea esi, [edi + 0x10]
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [edi + 0x28]
mov dword [ebp - 4], 1
call fcn.0044b0c0
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, edi
call fcn.00449460
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bc9e
mov esp, ebp
pop ebp
ret 8
Function at 0x44d850
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x517074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, edx
mov dword [ebp - 0x214], eax
test esi, esi
je 0x44d9e2
test eax, eax
je 0x44d9e2
push ebx
push 4
push 0x4f1f80
push esi
call fcn.004b88dc
add esp, 0xc
test eax, eax
je 0x44d8e0
push 4
push 0x4f1fb0
push esi
call fcn.004b88dc
add esp, 0xc
test eax, eax
je 0x44d8e0
mov eax, 0x3a
cmp ax, word [esi + 2]
jne 0x44d90f
mov eax, 0x5c
cmp ax, word [esi + 4]
jne 0x44d90f
push 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004b1123
add esp, 0xc
lea ebx, [ebp - 0x20c]
xor eax, eax
mov word [ebp - 0xa], ax
jmp 0x44d92e
push 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004b1123
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.004a4cfd
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x44d929
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048bc9e
mov esp, ebp
pop ebp
ret
mov eax, 4
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
push edi
push dword [ebp - 0x214]
mov word [ebx], cx
lea ecx, [ebp - 0x210]
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x44d9a3
cmp eax, edi
jae 0x44d9a3
mov ecx, dword [ebp - 0x214]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44d960
sub ecx, edx
sar ecx, 1
je 0x44d9a3
lea eax, [ebp - 0x210]
sub ebx, eax
sar ebx, 1
lea esi, [esi + ebx*2]
mov edx, esi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x44d983
sub edx, ebx
lea eax, [ecx + 1]
sar edx, 1
add eax, edx
cmp eax, edi
jbe 0x44d9b6
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048bc9e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x214]
sub edi, ecx
push edi
push esi
lea eax, [eax + ecx*2]
push eax
call fcn.004b1123
add esp, 0xc
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048bc9e
mov esp, ebp
pop ebp
ret
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0048bc9e
mov esp, ebp
pop ebp
ret