joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcc7d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xcc7d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xcc7d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xcc7d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xcc7d94
push eax
push esi
call fcn.00cca20b
add esp, 8
pop esi
ret 0x10

Function at 0xcc7da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xcc7e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xcc7e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xce0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00cc9dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xcc7dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xcc7e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xcc7ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xcc7eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xce0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00cc9dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xcc7eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xcc7e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xcc8000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xcc8131
push esi
call fcn.00ccb145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00cba080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xcc8131
push 0
push ebp
call fcn.00cba3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00cba260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xcc808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00cba2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xcc8121
push 0xce0918
push edi
call fcn.00cc93f0
push eax
push ebx
push esi
call fcn.00cc7f60
push 0xce08f8
push edi
call fcn.00cc93f0
push eax
push ebx
push esi
call fcn.00cc7f60
push 0xce08d8
push edi
call fcn.00cc93f0
push eax
push ebx
push esi
call fcn.00cc7f60
push 0xce08c0
push edi
call fcn.00cc93f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00cc7f60
push 0xce08a0
push edi
call fcn.00cc93f0
push eax
push ebx
push esi
call fcn.00cc7f60
push 0xce0888
push edi
call fcn.00cc93f0
push eax
push ebx
push esi
call fcn.00cc7f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xcc91b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00cc9140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00cc9140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00cc9140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00cc9140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xcc9bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xcc9c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcdb87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xcc9c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xcc9c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4012a0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ac
mov eax, dword [0x473004]
xor eax, ebp
mov dword [ebp - 4], eax
imul eax, dword [ebp + 0xc], 0x368
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
xor edi, edi
mov dword [ebp - 0x4a4], ebx
push edi
push ebx
call fcn.00416e00
add esp, 0xc
xor esi, esi
nop word [eax + eax]
push esi
lea eax, [ebp - 0x28c]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x28c]
push ebx
push eax
call fcn.00401680
add esp, 0x14
cmp eax, 1
jne 0x40130f
inc edi
add ebx, 0x368
cmp edi, dword [ebp + 0xc]
je 0x40131a
inc esi
cmp esi, 0x14
jb 0x4012e0
mov ebx, 0x43
nop
push ebx
lea eax, [ebp - 0x494]
push str.._c:
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x494]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4a8], eax
cmp eax, 0xffffffff
je 0x40141a
push 0
lea ecx, [ebp - 0x4ac]
push ecx
push 0xc
lea ecx, [ebp - 0x4a0]
push ecx
push 0
push 0
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40140e
mov eax, dword [ebp - 0x4a4]
test eax, eax
je 0x40140e
xor ecx, ecx
test edi, edi
jle 0x40140e
mov edx, dword [ebp - 0x49c]
add eax, 0x2a0
mov esi, dword [ebp - 0x4a0]
nop
cmp esi, 7
jne 0x4013b9
cmp dword [eax], edx
je 0x4013c5
inc ecx
add eax, 0x368
cmp ecx, edi
jl 0x4013b0
jmp 0x40140e
imul esi, ecx, 0x368
lea eax, [ebp - 0x84]
push ebx
push 0x46396c
push eax
add esi, dword [ebp - 0x4a4]
mov byte [esi + 0x2a4], 0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp ebx, 0x43
jne 0x40140e
mov byte [esi + 0x2a5], 1
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 0x5a
jle 0x401320
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret
Function at 0x401a70
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x473004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x230], ebx
call fcn.00407b80
mov ecx, dword [ebx + 0x8c]
mov edx, dword [ebx + 0x360]
mov esi, dword [ebx + 0x80]
push ecx
mov dword [ebp - 0x228], eax
mov eax, dword [ebx + 0x88]
push eax
push edx
push esi
push str.GetDiskInfoByPortID_IN__iCmdType___d__iBusType_d__iPort_I64d
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x224], edx
call fcn.004074c0
xor ebx, ebx
add esp, 0x14
cmp dword [ebp + 0xc], ebx
jle 0x401b48
lea edi, [ebx + 0x64]
nop word [eax + eax]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push esi
call fcn.00406630
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x401b5b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
cdq
idiv dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x228]
push 0
push 0x8030
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [ebp - 0x22c]
inc ebx
add edi, 0x64
cmp ebx, dword [ebp + 0xc]
jl 0x401af0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x234]
push eax
push 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp - 0x230]
lea eax, [ebp - 0x20c]
push eax
call fcn.00401680
add esp, 0x14
cmp eax, 1
jne 0x401b48
push str.GetDiskInfoByPortID_Success_OUT
call fcn.004074c0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret
Function at 0x401c70
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x473004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ebx
mov dword [esi + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401e53
push 0
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x188], 0
push eax
push 8
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x190], 0
push eax
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x18c], 0
push eax
push 0x41018
movlpd qword [ebp - 0x1c0], xmm0
push edi
movups xmmword [ebp - 0x1b8], xmm0
mov dword [ebp - 0x1c0], 8
movups xmmword [ebp - 0x1a8], xmm0
movq qword [ebp - 0x198], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x401d6f
movzx eax, byte [ebp - 0x1bb]
mov dword [esi + 0xc], eax
movzx eax, byte [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x84]
push 0x463430
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x84]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
push 0
lea eax, [ebp - 0x1c4]
push eax
push 0x28
lea eax, [ebp - 0x1b8]
push eax
push 0xc
lea eax, [ebp - 0x190]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x401e30
mov eax, dword [ebp - 0x19c]
mov dword [esi + 4], eax
cmp eax, 0x11
jne 0x401de2
lea eax, [ebp - 0x184]
push eax
push ebx
call fcn.00401fa0
lea eax, [ebp - 0x184]
push str.iaStor
push eax
call fcn.004090f0
neg eax
push edi
sbb eax, eax
neg eax
add eax, 2
push esi
mov dword [esi], eax
call fcn.004024c0
add esp, 0x18
jmp 0x401e36
cmp eax, 7
jne 0x401df4
push edi
call fcn.00404ce0
add esp, 4
mov dword [esi], eax
jmp 0x401e36
cmp eax, 8
jne 0x401e30
lea eax, [ebp - 0x184]
push eax
push ebx
call fcn.00401fa0
lea eax, [ebp - 0x184]
push str.iaStor
push eax
call fcn.004090f0
add esp, 0x10
test eax, eax
je 0x401e30
push edi
push esi
mov dword [esi], 3
call fcn.004024c0
add esp, 8
jmp 0x401e36
mov dword [esi], 0xff
push edi
push esi
call fcn.00402680
push dword [esi]
mov dword [esi + 0x10], eax
push eax
push ebx
push str._s_iVSCType___d__CmdType___d
call fcn.004074c0
add esp, 0x18
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret
Function at 0x402bd0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ac
mov eax, dword [0x473004]
xor eax, ebp
mov dword [ebp - 4], eax
imul eax, dword [ebp + 0xc], 0x368
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
xor edi, edi
mov dword [ebp - 0x4a4], ebx
push edi
push ebx
call fcn.00416e00
add esp, 0xc
xor esi, esi
nop word [eax + eax]
push esi
lea eax, [ebp - 0x28c]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x28c]
push ebx
push eax
call fcn.00402d70
add esp, 0x14
cmp eax, 1
jne 0x402c3f
inc edi
add ebx, 0x368
cmp edi, dword [ebp + 0xc]
je 0x402c4a
inc esi
cmp esi, 0x14
jb 0x402c10
mov ebx, 0x43
nop
push ebx
lea eax, [ebp - 0x494]
push str.._c:
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x494]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4a8], eax
cmp eax, 0xffffffff
je 0x402d4a
push 0
lea ecx, [ebp - 0x4ac]
push ecx
push 0xc
lea ecx, [ebp - 0x4a0]
push ecx
push 0
push 0
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402d3e
mov eax, dword [ebp - 0x4a4]
test eax, eax
je 0x402d3e
xor ecx, ecx
test edi, edi
jle 0x402d3e
mov edx, dword [ebp - 0x49c]
add eax, 0x2a0
mov esi, dword [ebp - 0x4a0]
nop
cmp esi, 7
jne 0x402ce9
cmp dword [eax], edx
je 0x402cf5
inc ecx
add eax, 0x368
cmp ecx, edi
jl 0x402ce0
jmp 0x402d3e
imul esi, ecx, 0x368
lea eax, [ebp - 0x84]
push ebx
push 0x46396c
push eax
add esi, dword [ebp - 0x4a4]
mov byte [esi + 0x2a4], 0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp ebx, 0x43
jne 0x402d3e
mov byte [esi + 0x2a5], 1
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 0x5a
jle 0x402c50
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret
Function at 0x403190
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x473004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x230], ebx
call fcn.00407b80
mov ecx, dword [ebx + 0x8c]
mov esi, dword [ebx + 0x80]
mov edx, dword [ebx + 0x360]
push ecx
mov dword [ebp - 0x228], eax
mov eax, dword [ebx + 0x88]
push eax
push esi
push str.GetDiskInfoByPortID_IN__iCmdType___d__iPort_I64d
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x224], edx
call fcn.004074c0
xor ebx, ebx
add esp, 0x10
cmp dword [ebp + 0xc], ebx
jle 0x40325c
lea edi, [ebx + 0x64]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push esi
call fcn.00406630
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x40326f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
cdq
idiv dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x228]
push 0
push 0x8030
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [ebp - 0x22c]
inc ebx
add edi, 0x64
cmp ebx, dword [ebp + 0xc]
jl 0x403204
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x234]
push eax
push 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp - 0x230]
lea eax, [ebp - 0x20c]
push eax
call fcn.00402d70
add esp, 0x14
cmp eax, 1
jne 0x40325c
push str.GetDiskInfoByPortID_Success_OUT
call fcn.004074c0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret
Function at 0x4032f0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x473004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
mov dword [edi + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4033ea
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 8], 0
push eax
push 0x28
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 0
push eax
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
xorps xmm0, xmm0
push 0x2d1400
push esi
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x4033e2
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
cmp eax, 0xb
jne 0x40339e
mov dword [edi], 0x10
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret
cmp eax, 7
jne 0x4033bb
mov dword [edi], 0x11
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x4033ca
cmp eax, 9
je 0x4033ca
cmp eax, 0xa
jne 0x4033e2
mov dword [edi], 0x12
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret
mov dword [edi], 0xff
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret

Function at 0x403d20
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.00407b80
mov ebx, dword [ebp + 0x14]
push 4
push 0x3000
mov dword [ebp - 8], eax
lea esi, [ebx + 0x30]
mov dword [ebp - 4], 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0xc]
mov edi, eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push esi
mov esi, dword [ebp + 8]
push edi
push 0x2d1400
push esi
mov dword [edi], 0x32
mov dword [edi + 4], 0
mov dword [edi + 8], 3
mov dword [edi + 0xc], 2
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x28
mov dword [edi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x403dd0
push ebx
lea eax, [edi + 0x30]
push eax
push dword [ebp + 0x10]
call fcn.00416880
add esp, 0xc
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 1
push esi
call fcn.004040e0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
push 0x8000
push 0
push edi
mov dword [ecx + 0x7754], eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xfffffffffffffffc
push esi
call fcn.004040e0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403e00
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.00407b80
mov ebx, dword [ebp + 0x18]
push 4
push 0x3000
mov dword [ebp - 8], eax
lea esi, [ebx + 0x30]
mov dword [ebp - 4], 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0xc]
mov edi, eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push esi
mov esi, dword [ebp + 8]
push edi
push 0x2d1400
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp + 0x10]
push esi
mov dword [edi], 0x31
mov dword [edi + 4], 0
mov dword [edi + 8], 3
mov dword [edi + 0xc], 1
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], 0x28
mov dword [edi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x403eaf
push ebx
lea eax, [edi + 0x30]
push eax
push dword [ebp + 0x14]
call fcn.00416880
add esp, 0xc
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 1
push esi
call fcn.004040e0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
push 0x8000
push 0
push edi
mov dword [ecx + 0x7754], eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xfffffffffffffffc
push esi
call fcn.004040e0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405e30
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x473004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push esi
xor esi, esi
xorps xmm0, xmm0
push esi
push eax
push 0x28
lea eax, [ebp - 0x38]
mov dword [ebp - 8], esi
push eax
push 0xc
lea eax, [ebp - 0x10]
movq qword [ebp - 0x18], xmm0
push eax
push 0x2d1400
push ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x10], esi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [ebp - 4]
cmp eax, 1
cmove esi, dword [ebp - 0x1c]
xor ecx, ebp
mov eax, esi
pop esi
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret
Function at 0x406080
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x473004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x1a
push 0
push 0
push 0x466094
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
mov dword [ebp - 0xa0], 0x1c
lea eax, [ebp - 0xa0]
xor esi, esi
push eax
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x4061d2
push ebx
nop
push esi
xor eax, eax
push edi
push 0x466094
mov word [ebp - 0x84], ax
call fcn.004061f0
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0xbc]
push 0
push eax
push 0xc
lea eax, [ebp - 0xac]
push eax
push 0
push 0
push 0x2d1080
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40613b
push dword [ebp - 0xa8]
lea eax, [ebp - 0x84]
push str..PHYSICALDRIVE_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xb4]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406173
lea eax, [ebp - 0xa0]
inc esi
push eax
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x4060e0
jmp 0x4061d1
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x406188
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xb0], eax
jmp 0x4061d1
cmp eax, 1
jne 0x4061a4
push 0
push dword [ebp - 0x8c]
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
jmp 0x4061d1
cmp eax, 2
jne 0x4061d1
mov esi, dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
lea eax, [ebp - 0xb8]
push 0
push dword [ebp - 0x8c]
push eax
call esi
push 0
push dword [ebp - 0xb8]
lea eax, [ebp - 0xb0]
push eax
call esi
pop ebx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xb0]
xor ecx, ebp
pop edi
pop esi
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret