joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c3238
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400f4700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400c3282
call fcn.1400a8428
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400a8448
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400a55b0
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009ce50
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400c328d
lea eax, [rbx + 1]
jmp 0x1400c326f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400c326d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400c326f
Function at 0x1400c46d4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400a8468
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400c475e
cmp byte [rbp - 0x21], r15b
je 0x1400c4759
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400c4794
call fcn.1400b7930
test eax, eax
jne 0x1400c4780
cmp byte [rbp - 0x21], r15b
je 0x1400c4778
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400c4794
cmp byte [rbp - 0x21], r15b
je 0x1400c4791
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400b0cb8
test eax, eax
jne 0x1400c4834
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a8468
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400c47d3
cmp byte [rbp - 0x21], r15b
je 0x1400c4808
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400c4808
call fcn.1400b7930
test eax, eax
jne 0x1400c47f4
cmp byte [rbp - 0x21], r15b
je 0x1400c47ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400c4808
cmp byte [rbp - 0x21], r15b
je 0x1400c4805
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400b0cb8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400c4834
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400c4837
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400c4845
mov rcx, rdi
call fcn.1400b7688
cmp byte [rbp + 0x3f], r15b
je 0x1400c4854
mov rcx, qword [rbp + 0x27]
call fcn.1400b7688
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000b178
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b1c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b1c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b1c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b1c2
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b1c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b1c4
xor al, al
add rsp, 0x28
ret
Function at 0x14004b980
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rbp
cmp qword [rcx + 0x18], 8
jb 0x14004b9c6
mov rax, qword [rcx]
jmp 0x14004b9c9
mov rax, rbx
mov word [rax], bp
mov dword [rsp + 0x20], 1
cmp qword [rdx + 0x18], 8
jb 0x14004b9e0
mov rcx, qword [rdx]
jmp 0x14004b9e3
mov rcx, rdi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x14004ba82
mov edx, esi
mov rcx, qword [rbx + 0x10]
cmp rsi, rcx
ja 0x14004ba1c
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x14004ba13
mov rcx, qword [rbx]
jmp 0x14004ba16
mov rcx, rbx
mov word [rcx + rsi*2], bp
jmp 0x14004ba2a
xor r8d, r8d
sub rdx, rcx
mov rcx, rbx
call fcn.14004e2b0
cmp qword [rbx + 0x18], 8
jb 0x14004ba36
mov rdx, qword [rbx]
jmp 0x14004ba39
mov rdx, rbx
cmp qword [rdi + 0x18], 8
jb 0x14004ba43
mov rdi, qword [rdi]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [rax - 1]
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x14004ba74
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x14004ba6b
mov rax, qword [rbx]
jmp 0x14004ba6e
mov rax, rbx
mov word [rax + rdx*2], bp
jmp 0x14004ba82
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.14004e2b0
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14004baa0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x14004bb1b
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x30], rbx
mov eax, 2
mov qword [rsp + 0x38], rdi
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.140125a94
lea r8, [rsi + rsi]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1402767a0
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x14004c240
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0x288
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov qword [r11 + 0x18], rbp
xor edi, edi
mov qword [r11 - 0x28], r15
mov ebx, edi
mov r15, rcx
mov rbp, rdx
call fcn.14004bf90
test rbp, rbp
je 0x14004c3cc
test r15, r15
je 0x14004c3cc
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x280], rsi
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp eax, 2
jb 0x14004c3c4
mov ecx, esi
mov qword [rsp + 0x278], r14
call fcn.140125a94
mov rbx, rax
test rax, rax
je 0x14004c3bc
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.1402767a0
mov edx, dword [rsp + 0x48]
mov r9, rbx
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14004c3bc
lea r9, [rsp + 0x30]
mov rcx, rbx
lea r8, [rsp + 0x40]
lea rdx, [0x14031cb38]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14004c3bc
mov rax, qword [rsp + 0x40]
lea r8, [0x14031cb78]
mov edx, 0x104
mov qword [rsp + 0x20], r15
lea rcx, [rsp + 0x50]
movzx r9d, word [rax]
movzx eax, word [rax + 2]
shl r9d, 0x10
or r9d, eax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
call fcn.14004e9f0
lea r9, [rsp + 0x30]
mov rcx, rbx
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x50]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14004c3bc
mov eax, dword [rsp + 0x30]
cmp eax, 2
jbe 0x14004c3bc
lea rcx, [rax*2 + 2]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140125a94
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
mov rdi, rax
lea r8, [r8*2 + 2]
call fcn.1402767a0
mov r8d, dword [rsp + 0x30]
mov rcx, rdi
mov rdx, qword [rsp + 0x38]
add r8, r8
call fcn.1402743b0
mov r14, qword [rsp + 0x278]
mov rsi, qword [rsp + 0x280]
call fcn.14004c050
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.1402767a0
mov r15, qword [rsp + 0x270]
mov rbp, qword [rsp + 0x2b0]
test rbx, rbx
je 0x14004c400
mov rcx, rbx
call fcn.140125e14
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x288
pop rdi
pop rbx
ret
Function at 0x14004d0d0
Capabilities:
Create process memory minidump

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov rbx, rdx
mov dword [rsp + 0x28], Ordinal_133
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004d187
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x44], rbx
mov dword [rsp + 0x4c], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x14004d2b0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14004d3c7
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14004d3c7
mov qword [rsp + 0x30], rbp
mov rcx, rdi
mov qword [rsp + 0x38], rsi
call fcn.14004c7f0
mov rsi, rax
test rax, rax
jne 0x14004d38b
mov rcx, rdi
call fcn.14004c420
mov rbp, rax
test rax, rax
je 0x14004d31c
mov rcx, rax
call fcn.14004c7f0
mov rcx, rbp
mov rsi, rax
call fcn.140125e14
test rsi, rsi
jne 0x14004d38b
mov rdx, rdi
lea rcx, [0x14031d078]
call fcn.14004c240
mov rsi, rax
mov ebp, 1
test rax, rax
je 0x14004d35c
mov r8d, ebp
lea rdx, [0x14031d048]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
mov rcx, rsi
cmove ebx, ebp
call fcn.140125e14
test ebx, ebx
jne 0x14004d3b0
mov rdx, rdi
lea rcx, [0x14031d108]
call fcn.14004c240
mov rdi, rax
test rax, rax
je 0x14004d3b0
mov r8d, ebp
lea rdx, [0x14031d048]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
mov rcx, rdi
jmp 0x14004d3a6
mov ebp, 1
lea rdx, str.Microsoft_Windows_
mov r8d, ebp
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
mov rcx, rsi
test eax, eax
cmove ebx, ebp
call fcn.140125e14
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004d480
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.1402767a0
mov r9, rbx
lea r8, str._select___s_
mov edx, 0x208
lea rcx, [rsp + 0x30]
call fcn.14004e9f0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x28], 0xa
lea r8, str.explorer
mov qword [rsp + 0x20], 0
lea rdx, [0x14031d170]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x250
pop rbx
ret

Function at 0x14004d520
Capabilities:
Check if file exists

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov rdi, rdx
mov qword [rsp + 0x30], rbx
mov rsi, rcx
mov qword [rsp + 0x38], rbx
test rcx, rcx
je 0x14004d628
test rdx, rdx
je 0x14004d628
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14004d628
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14004d5fe
lea rax, [rsp + 0x30]
mov qword [rsp + 0x80], rbp
mov ebp, 1
mov qword [rsp + 0x20], rax
mov r8d, ebp
lea r9, [0x1402b0010]
xor edx, edx
lea rcx, [0x14034adc0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14004d5f6
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x14034adb0]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x14004d5f6
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
cmovns ebx, ebp
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14004d60e
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004d61e
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x14004d62a
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004d760
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x310
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x300], rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
jne 0x14004d790
xor eax, eax
jmp 0x14004d862
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test rax, rax
je 0x14004d80f
lea rdx, str..ico
mov rcx, rax
call fcn.1402779b8
test eax, eax
jne 0x14004d80f
lea r9, [rsp + 0x30]
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x38]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x20], 1
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
mov rax, qword [rsp + 0x38]
jne 0x14004d7fa
test rax, rax
jne 0x14004d7ff
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14004d85f
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x14004d85f
test rax, rax
je 0x14004d7e3
mov rcx, qword [rsp + 0x30]
mov rbx, rax
call qword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x14004d85f
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x2b8
call fcn.1402767a0
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x103
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x14004d84e
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x14004d85f
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x328]
add rsp, 0x310
pop rdi
ret
Function at 0x14004ec90
Capabilities:
Get disk size
Get storage device properties

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x70
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x48]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 8
mov edx, 0x7405c
mov qword [rsp + 0x20], rax
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004edca
xor eax, eax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x50], rax
lea r9d, [rbx + 0xc]
mov qword [rsp + 0x54], rax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov edx, 0x2d1400
lea rax, [rsp + 0x48]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x30], rax
mov rcx, rsi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004edca
mov eax, dword [rsp + 0x44]
cmp eax, 0x28
jb 0x14004edca
mov ecx, eax
mov qword [rsp + 0x88], rdi
call fcn.14027bdf8
mov rdi, rax
test rax, rax
je 0x14004eda5
mov r8d, dword [rsp + 0x44]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
lea r9d, [rbx + 0xc]
mov qword [rsp + 0x30], rax
mov edx, 0x2d1400
mov dword [rsp + 0x28], r8d
mov rcx, rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004ed9d
mov ebx, dword [rdi + 0x1c]
mov rcx, rdi
call fcn.140125e14
mov rdi, qword [rsp + 0x88]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
mov eax, ebx
jmp 0x14004edaf

Function at 0x14004ee80
Capabilities:
Get storage device properties

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor eax, eax
lea r8, [r11 - 0x48]
mov qword [r11 - 0x48], rax
xor edi, edi
mov qword [r11 - 0x44], rax
mov edx, 0x2d1400
mov qword [r11 - 0x30], rax
mov rbx, rcx
mov qword [r11 - 0x50], rdi
lea rax, [r11 - 0x38]
mov qword [r11 - 0x58], rax
lea r9d, [rdi + 0xc]
lea rax, [r11 - 0x30]
mov dword [rsp + 0x28], ntohs
mov qword [r11 - 0x68], rax
mov dword [rsp + 0x40], 8
mov qword [r11 - 0x2c], 0xc
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rax
lea r9d, [rdi + 0xc]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
mov edx, 0x2d1400
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 7
mov qword [rsp + 0x30], rax
mov rcx, rbx
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], ntohs
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x6c], ntohs
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp byte [rsp + 0x60], 1
jne 0x14004ef5b
lea eax, [rdi + 1]
cmp byte [rsp + 0x70], dil
je 0x14004ef5d
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
Function at 0x14004f050
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x270], rax
movzx r9d, cx
lea r8, [0x14031d3c0]
xor edi, edi
lea rcx, [rsp + 0x60]
mov edx, 0x104
mov dword [rsp + 0x40], edi
or ebx, 0xffffffff
call fcn.14004e9f0
mov qword [rsp + 0x30], rdi
lea r8d, [rbx + 4]
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x20], 3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14004f100
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x28], ntohs
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov edx, 0x2d1080
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f100
cmp dword [rsp + 0x48], 7
cmove ebx, dword [rsp + 0x4c]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x14004f1f0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edi, edi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x90]
mov dword [rsp + Ordinal_46], 0x28
mov edx, 0x700a0
mov qword [rsp + 0x20], rax
mov rbx, rcx
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f25f
mov rax, qword [rsp + 0xa8]
jmp 0x14004f385
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x7405c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f2a2
mov rax, qword [rsp + 0x50]
jmp 0x14004f385
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 0x20
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x74004
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f2e5
mov rax, qword [rsp + 0x78]
jmp 0x14004f385
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x28], __WSAFDIsSet
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70048
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f32b
mov rax, qword [rsp + 0xd0]
jmp 0x14004f385
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], Ordinal_27
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f380
mov ecx, dword [rsp + 0x68]
mov eax, dword [rsp + 0x6c]
imul rax, rcx
mov ecx, dword [rsp + 0x64]
imul rax, rcx
imul rax, qword [rsp + 0x58]
jmp 0x14004f385
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x14004f3b0
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x270], rax
movzx r9d, cx
lea r8, [0x14031d4a0]
xor edi, edi
lea rcx, [rsp + 0x60]
mov edx, 0x104
mov dword [rsp + 0x40], edi
or ebx, 0xffffffff
call fcn.14004e9f0
mov qword [rsp + 0x30], rdi
lea r8d, [rbx + 4]
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x20], 3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14004f460
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x28], ntohs
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov edx, 0x2d1080
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f460
cmp dword [rsp + 0x48], 7
cmove ebx, dword [rsp + 0x4c]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret