joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53dbd0
Capabilities:
Acquire debug privileges
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x1020], edx
mov dword [ebp - 0x101c], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53dd7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dl, 1
mov eax, 0x53dd90
call fcn.004f77ac
lea eax, [ebp - 0x1018]
xor ecx, ecx
mov edx, 0x1000
call fcn.00402f1c
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x1018]
mov edx, 0x400
call fcn.004c79e0
test eax, eax
je 0x53dd3e
xor edx, edx
push ebp
push 0x53dd37
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
shr eax, 2
dec eax
test eax, eax
jl 0x53dd29
inc eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, 0xa
jbe 0x53dd1c
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x53dd1c
xor eax, eax
push ebp
push 0x53dd15
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.00404574
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0053bddc
test al, al
je 0x53dcfe
lea edx, [ebp - 0x101c]
mov eax, dword [ebp - 0x10]
call fcn.0040a354
mov edx, dword [ebp - 0x101c]
lea eax, [ebp - 0x10]
call fcn.0040460c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jge 0x53dcfe
lea edx, [ebp - 0x1020]
mov eax, dword [ebp - 0x10]
call fcn.0040a354
mov edx, dword [ebp - 0x1020]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53dd1c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
add dword [ebp - 0x18], 4
dec dword [ebp - 0x14]
jne 0x53dc6a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53dd48
ret
push 0x53dda4
call sub.kernel32.dll_OutputDebugStringA
xor edx, edx
mov eax, 0x53dd90
call fcn.004f77ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53dd81
lea eax, [ebp - 0x1020]
mov edx, 2
call fcn.00404598
lea eax, [ebp - 0x10]
call fcn.00404574
ret

Function at 0x53ee7c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x53eef0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.004047f4
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x53ef04
call fcn.00404890
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53eef7
lea eax, [ebp - 0x108]
call fcn.00404574
ret
Function at 0x53ef10
Capabilities:
Acquire debug privileges
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x53f015
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x30], 0
jne 0x53eff7
mov eax, dword [0x65589c]
cmp dword [eax], 6
setge al
mov byte [ebx + 0x60], al
lea eax, [ebp - 4]
call fcn.0053ee7c
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x64]
call fcn.004045c8
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00402ba0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0040a320
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x68]
call fcn.004045c8
call sub.kernel32.dll_GetCurrentProcess
mov esi, eax
lea eax, [ebx + 0x70]
push eax
push 0xf00ff
push esi
call sub.advapi32.dll_OpenProcessToken
mov edx, 0x53f024
mov cl, 1
mov eax, dword [ebx + 0x70]
call fcn.0053ed2c
cmp byte [ebx + 0x60], 0
je 0x53efbb
push 0x53f038
push 0x53f054
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebx + 0x6c], eax
jmp 0x53efc0
xor eax, eax
mov dword [ebx + 0x6c], eax
xor edx, edx
mov eax, ebx
call fcn.0053fc08
mov edx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x44]
call fcn.00437f58
mov dl, 1
mov eax, dword [ebx + 0x44]
call fcn.00437f48
mov byte [ebx + 0x30], 1
cmp word [ebx + 0x4a], 0
je 0x53eff1
mov edx, ebx
mov eax, dword [ebx + 0x4c]
call dword [ebx + 0x48]
push esi
call sub.kernel32.dll_CloseHandle
mov bl, byte [ebx + 0x30]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53f01c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404598
ret

Function at 0x53f060
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x30], 0
je 0x53f09e
mov byte [ebx + 0x30], 0
xor edx, edx
mov eax, dword [ebx + 0x44]
call fcn.00437f48
mov edx, 0x53f0a0
xor ecx, ecx
mov eax, dword [ebx + 0x70]
call fcn.0053ed2c
mov eax, dword [ebx + 0x70]
push eax
call sub.kernel32.dll_CloseHandle
cmp word [ebx + 0x52], 0
je 0x53f09e
mov edx, ebx
mov eax, dword [ebx + 0x54]
call dword [ebx + 0x50]
pop ebx
ret
Function at 0x53f824
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x118], edx
mov edi, eax
xor eax, eax
push ebp
push 0x53f911
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x114], eax
xor eax, eax
mov dword [ebp - 0x110], eax
mov dl, 1
mov eax, dword [0x41d08c]
call fcn.00403670
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53f8f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push 0x53f7b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x53f8db
inc esi
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041f9f4
lea edx, [eax + 8]
lea eax, [ebp - 0x118]
mov ecx, 0x105
call fcn.004047f4
mov eax, dword [ebp - 0x118]
push eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041f9f4
mov eax, dword [eax + 4]
push eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041f9f4
mov edx, dword [eax]
mov eax, edi
pop ecx
call fcn.0053f920
inc ebx
dec esi
jne 0x53f891
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53f8f8
mov eax, dword [ebp - 4]
call fcn.004036a0
ret
Function at 0x5405f8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x5406a8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5406bc
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
mov al, byte [eax - 1]
call fcn.005403e8
push dword [ebp - 8]
push 0x5406d4
mov eax, dword [ebp + 8]
push dword [eax - 8]
push 0x5406d4
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
lea eax, [ebp - 4]
mov edx, 6
call fcn.00404904
mov eax, dword [ebp - 4]
call fcn.00404a44
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
cmp word [eax + 0x62], 0
je 0x54068d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
cmp byte [eax + 0x40], 0
je 0x54068d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov dl, byte [eax - 1]
mov eax, dword [ebx + 0x64]
call dword [ebx + 0x60]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5406af
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404598
ret
Function at 0x545394
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5454bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, 0x5454d8
call fcn.0040460c
lea eax, [ebp - 8]
call fcn.00404a9c
mov byte [eax + 4], bl
push 0
push 0xa0000000
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.00404a44
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x54549d
xor eax, eax
push ebp
push 0x545496
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x10]
push eax
push 0x20
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0x74004
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x54547f
cmp dword [ebp - 0x2c], 0
jne 0x54547f
cmp dword [ebp - 0x30], 0
jne 0x54547f
xor ecx, ecx
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.00409ee4
mov edx, dword [ebp + 8]
mov ecx, esi
mov eax, dword [ebp - 0xc]
call fcn.00409eb8
mov dword [ebp - 0x10], eax
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x34]
call fcn.00409a28
mov eax, dword [ebp - 0x34]
call fcn.00404a44
push eax
call sub.kernel32.dll_OutputDebugStringA
cmp esi, dword [ebp - 0x10]
jne 0x54547f
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54549d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5454c2
lea eax, [ebp - 0x34]
call fcn.00404574
lea eax, [ebp - 8]
call fcn.00404574
ret

Function at 0x5456c4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
mov eax, ebx
call fcn.00545678
test al, al
jne 0x5456fd
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
cmp edi, eax
jbe 0x5456fb
push 1
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x655d48]
mov eax, dword [eax]
call fcn.004746e0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x545704
Capabilities:
Get disk information
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x224], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x54580c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00545664
test al, al
je 0x5457a7
mov edx, 0x3e8
mov eax, ebx
call fcn.005456c4
test al, al
je 0x5457a7
mov byte [ebp - 4], bl
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
push 0x104
lea eax, [ebp - 0x21a]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x115]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x54579e
mov eax, esi
lea edx, [ebp - 0x21a]
mov ecx, 0x105
call fcn.004047f4
jmp 0x5457ae
mov eax, esi
call fcn.00404574
jmp 0x5457ae
mov eax, esi
call fcn.00404574
push 0x545824
lea eax, [ebp - 0x224]
mov edx, ebx
call fcn.0040475c
push dword [ebp - 0x224]
push 0x545834
push dword [esi]
lea eax, [ebp - 0x220]
mov edx, 4
call fcn.00404904
mov eax, dword [ebp - 0x220]
call fcn.00404a44
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x545813
lea eax, [ebp - 0x224]
mov edx, 2
call fcn.00404598
ret

Function at 0x545c48
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x108], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x545cdf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x108]
mov edx, ebx
call fcn.0040475c
lea eax, [ebp - 0x108]
mov edx, 0x545cf4
call fcn.0040484c
mov eax, dword [ebp - 0x108]
call fcn.00404a44
push eax
call sub.kernel32.dll_GetVolumeNameForVolumeMountPointA
test eax, eax
je 0x545cbf
mov eax, esi
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.004047f4
jmp 0x545cc6
mov eax, esi
call fcn.00404574
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x545ce6
lea eax, [ebp - 0x108]
call fcn.00404574
ret
Function at 0x545dcc
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x545dd4
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x545f1c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00545c48
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004045c8
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.0040475c
lea eax, [ebp - 0xc]
mov edx, 0x545f34
call fcn.0040484c
mov eax, dword [ebp - 0xc]
call fcn.00404a44
push eax
call sub.kernel32.dll_DeleteVolumeMountPointA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
push 0x545f40
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.0040475c
push dword [ebp - 0x14]
push 0x545f5c
xor eax, eax
mov al, byte [ebp - 1]
mov edx, dword [0x655f5c]
push dword [edx + eax*4]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404904
mov eax, dword [ebp - 0x10]
call fcn.00404a44
push eax
call sub.kernel32.dll_OutputDebugStringA
cmp byte [ebp - 1], 0
jne 0x545f01
push 0
push 0x545f68
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.0040475c
push dword [ebp - 0x1c]
push 0x545f7c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404904
mov eax, dword [ebp - 0x18]
call fcn.00404a44
push eax
call sub.kernel32.dll_WinExec
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00545c48
cmp dword [ebp - 0x20], 0
sete byte [ebp - 1]
push 0x545f40
lea eax, [ebp - 0x28]
mov edx, ebx
call fcn.0040475c
push dword [ebp - 0x28]
push 0x545f5c
xor eax, eax
mov al, byte [ebp - 1]
mov edx, dword [0x655f5c]
push dword [edx + eax*4]
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404904
mov eax, dword [ebp - 0x24]
call fcn.00404a44
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x545f23
lea eax, [ebp - 0x28]
mov edx, 9
call fcn.00404598
ret
Function at 0x5460b8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x5460c0
push ebx
mov ebx, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x546212
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov dl, byte [ebp - 1]
call fcn.0040475c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x54622c
call fcn.00404890
mov eax, dword [ebp - 0x10]
call fcn.00404a44
push eax
call sub.kernel32.dll_OutputDebugStringA
mov byte [ebp - 2], 0
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
push 0
push 0
push 3
push 0
push 3
push 0x10000000
push 0x546250
lea eax, [ebp - 0x1c]
mov dl, byte [ebp - 1]
call fcn.0040475c
push dword [ebp - 0x1c]
push 0x546260
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404904
mov eax, dword [ebp - 0x18]
call fcn.00404a44
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x546194
xor eax, eax
push ebp
push 0x54618d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00545f84
mov byte [ebp - 2], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546194
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
cmp byte [ebp - 2], 0
jne 0x5461f7
push 0x54626c
lea eax, [ebp - 0x24]
mov dl, byte [ebp - 1]
call fcn.0040475c
push dword [ebp - 0x24]
push 0x54628c
xor eax, eax
mov al, byte [ebp - 2]
mov edx, dword [0x655f5c]
push dword [edx + eax*4]
push 0x546298
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.00409a28
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404904
mov eax, dword [ebp - 0x20]
call fcn.00404a44
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546219
lea eax, [ebp - 0x28]
mov edx, 7
call fcn.00404598
ret
Function at 0x546464
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x54646c
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5465fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.0040475c
lea eax, [ebp - 0x14]
mov edx, 0x546618
call fcn.0040484c
mov eax, dword [ebp - 0x14]
call fcn.00404a44
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.0040477c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.00547644
push 0x546624
lea eax, [ebp - 0x1c]
mov dl, byte [0x650360]
call fcn.0040475c
push dword [ebp - 0x1c]
push 0x546644
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.0040475c
push dword [ebp - 0x20]
push 0x546650
mov eax, dword [0x65035c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.00409a28
push dword [ebp - 0x24]
push 0x546660
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.00409a28
push dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov edx, 8
call fcn.00404904
mov eax, dword [ebp - 0x18]
call fcn.00404a44
push eax
call sub.kernel32.dll_OutputDebugStringA
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00547394
test al, al
jne 0x5465c5
cmp bl, byte [0x650360]
jne 0x546561
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x65035c]
add edx, 0x7530
cmp eax, edx
jbe 0x5465c5
mov byte [0x650360], bl
call sub.kernel32.dll_GetTickCount_1
mov dword [0x65035c], eax
mov dl, 1
mov eax, ebx
call fcn.005462a4
mov byte [ebp - 1], al
push 0x54666c
lea eax, [ebp - 0x30]
mov dl, byte [0x650360]
call fcn.0040475c
push dword [ebp - 0x30]
push 0x546694
lea ecx, [ebp - 0x34]
xor edx, edx
mov al, byte [ebp - 1]
call fcn.00409cd8
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404904
mov eax, dword [ebp - 0x2c]
call fcn.00404a44
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x5465e3
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5466a8
call fcn.00404890
mov eax, dword [ebp - 0x38]
call fcn.00404a44
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546605
lea eax, [ebp - 0x38]
mov edx, 0xd
call fcn.00404598
ret
Function at 0x546850
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a34
xor eax, eax
push ebp
push 0x546a8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov dl, 1
mov eax, dword [0x43e49c]
call fcn.0043e59c
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x546a55
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x1c]
call fcn.0043e678
mov edx, 0x546aa8
mov eax, dword [ebp - 0x1c]
call fcn.0043e800
test al, al
je 0x546a3f
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0xd], eax
xor ebx, ebx
mov eax, ebx
cmp eax, 0x1f
ja 0x5468f0
bt dword [ebp - 0xd], eax
jae 0x546a35
lea eax, [ebx + 0x41]
mov byte [ebp - 0xe], al
lea eax, [ebp - 0x14]
push eax
mov al, byte [ebp - 0xe]
mov byte [ebp - 0x424], al
mov byte [ebp - 0x420], 2
lea edx, [ebp - 0x424]
xor ecx, ecx
mov eax, 0x546ac8
call fcn.0040aca8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.0043eea8
test al, al
je 0x546a35
lea eax, [ebp - 0x41c]
xor ecx, ecx
mov edx, 0x104
call fcn.00402f1c
push 0x400
lea ecx, [ebp - 0x41c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.0043ed68
mov esi, eax
cmp esi, 0x400
jg 0x546a35
lea eax, [ebp - 0x18]
call fcn.00404574
mov edi, esi
dec edi
test edi, edi
jl 0x5469a5
inc edi
lea esi, [ebp - 0x41c]
cmp byte [esi], 0
je 0x5469a1
lea eax, [ebp - 0x428]
mov dl, byte [esi]
call fcn.0040475c
mov edx, dword [ebp - 0x428]
lea eax, [ebp - 0x18]
call fcn.0040484c
inc esi
dec edi
jne 0x546981
mov edx, 0x546ae0
mov eax, dword [ebp - 0x18]
call fcn.005467c4
mov esi, eax
cmp esi, 5
jl 0x546a35
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
sub ecx, 5
mov edx, 5
mov eax, dword [ebp - 0x18]
call fcn.00404aa4
lea eax, [ebp - 0x42c]
push eax
mov ecx, 0x546aec
mov edx, 0x546ae0
mov eax, dword [ebp - 0x18]
call fcn.00438ac8
mov edx, dword [ebp - 0x42c]
lea eax, [ebp - 0x18]
call fcn.0040460c
lea edx, [ebp - 0x430]
mov eax, dword [ebp - 0x18]
call fcn.004092fc
mov eax, dword [ebp - 0x430]
push eax
lea edx, [ebp - 0x434]
mov eax, dword [ebp - 4]
call fcn.004092fc
mov edx, dword [ebp - 0x434]
pop eax
call fcn.00404990
jne 0x546a35
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 0xe]
mov byte [eax], dl
mov byte [ebp - 9], 1
jmp 0x546a3f
inc ebx
cmp ebx, 0x1a
jne 0x5468e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546a5c
mov eax, dword [ebp - 0x1c]
call fcn.004036a0
ret
Function at 0x546b50
Capabilities:
Get disk information via ioctl
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a34
xor eax, eax
push ebp
push 0x546cba
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.0040460c
mov eax, dword [ebp - 0x14]
call fcn.00404844
mov ebx, eax
test ebx, ebx
je 0x546c97
mov eax, dword [ebp - 0x14]
cmp byte [eax + ebx - 1], 0x5c
jne 0x546bc0
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404aa4
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 0x14]
call fcn.00404a44
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x546c36
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x546cd4
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040dbd8
push dword [ebp - 0x1c]
push 0x546cf4
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040993c
push dword [ebp - 0x20]
push 0x546d00
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00404904
mov eax, dword [ebp - 0x18]
call fcn.00404a44
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x546c97
xor eax, eax
push ebp
push 0x546c90
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x10]
push eax
push 0xc
push esi
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x546c6e
cmp dword [ebp - 0x10], 0xc
jne 0x546c6e
cmp dword [esi], 7
je 0x546c75
call fcn.00403f9c
jmp 0x546c97
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546c97
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546cc1
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404598
lea eax, [ebp - 4]
call fcn.00404574
ret
Function at 0x546d04
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x546de1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x14], 2
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x546dfc
call fcn.0040aca8
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404a44
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x546dcb
xor eax, eax
push ebp
push 0x546dc4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
push 0xc
push esi
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x546da2
cmp dword [ebp - 0xc], 0xc
jne 0x546da2
cmp dword [esi], 7
je 0x546da9
call fcn.00403f9c
jmp 0x546dcb
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546dcb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546de8
lea eax, [ebp - 0x10]
call fcn.00404574
ret