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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
lea r12, [0x140013858]
cmp rcx, r15
je 0x14012fbd9
test byte [rcx + 0x1c], 1
je 0x14012fbd9
cmp byte [rcx + 0x19], 4
jb 0x14012fbd9
mov rcx, qword [rcx + 0x10]
mov edx, 0x48
mov r8, r12
call fcn.14001dd24
test rdi, rdi
jne 0x14012fbf6
lea r8, [0x140013690]
lea rcx, [0x140013528]
mov edx, 0x911
call fcn.1400a8be8
and qword [rdi], 0
mov esi, 0x208
lea rcx, [rbp - 0x50]
mov r8d, esi
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x1c0]
mov r8d, esi
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x3d0]
mov r8d, esi
xor edx, edx
call sub.msvcrt.dll_memset
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400a9700
mov esi, 0x104
lea r8, [0x1400136f0]
lea rcx, [rbp - 0x50]
mov edx, esi
mov r9, rax
call fcn.1400284c0
mov ebx, eax
test eax, eax
jns 0x14012fc9f
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14012fdfb
test byte [rcx + 0x1c], 1
je 0x14012fdd9
cmp byte [rcx + 0x19], 2
jb 0x14012fdd9
mov edx, 0x49
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r12
call fcn.14001de24
jmp 0x14012fdd2
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x50]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x14012fd0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14012fdfb
test byte [rcx + 0x1c], 1
je 0x14012fdd9
cmp byte [rcx + 0x19], 2
jb 0x14012fdd9
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 0x50]
mov edx, 0x4a
mov r8, r12
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
jmp 0x14012fdd2
lea r9, [rbp + 0x1c0]
lea r8, [0x1400136c8]
lea rcx, [rbp + 0x3d0]
mov rdx, rsi
call fcn.1400284c0
mov ebx, eax
test eax, eax
jns 0x14012fd5e
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14012fdfb
test byte [rcx + 0x1c], 1
je 0x14012fdd9
cmp byte [rcx + 0x19], 2
jb 0x14012fdd9
mov edx, 0x4b
jmp 0x14012fc8b
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x3d0]
xor r8d, r8d
call fcn.1400a99e4
mov ebx, eax
test eax, eax
jns 0x14012fdb2
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14012fdab
test byte [rcx + 0x1c], 1
je 0x14012fdab
cmp byte [rcx + 0x19], 2
jb 0x14012fdab
mov rcx, qword [rcx + 0x10]
mov edx, 0x4c
mov r9d, eax
mov r8, r12
call fcn.14001de24
mov r11, qword [rsp + 0x30]
jmp 0x14012fdbd
mov r11, qword [rsp + 0x30]
jmp 0x14012fdc4
mov rax, qword [rsp + 0x30]
xor r11d, r11d
mov qword [rdi], rax
mov rcx, qword [0x14017d3a8]
test r11, r11
je 0x14012fdd9
mov rcx, r11
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14012fdfb
test byte [rcx + 0x1c], 1
je 0x14012fdfb
cmp byte [rcx + 0x19], 4
jb 0x14012fdfb
mov rcx, qword [rcx + 0x10]
mov edx, 0x4d
mov r8, r12
call fcn.14001dd24
mov eax, ebx
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0x730]
add rsp, 0x6f0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140131b2c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x30], 0
and qword [rbp - 0x28], 0
and dword [rbp - 0x20], 0
mov rdi, rdx
lea r8, [rbp - 0x30]
lea rdx, [0x140004148]
mov r15, rcx
or r14, 0xffffffffffffffff
call fcn.1400a9ab8
mov ebx, eax
test eax, eax
js 0x140131ca2
and qword [rsp + 0x30], 0
mov rcx, qword [rbp - 0x30]
and dword [rsp + 0x28], 0
lea r8d, [r14 + 2]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140131c05
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140131c71
test byte [rcx + 0x1c], 1
je 0x140131c71
cmp byte [rcx + 0x19], 2
jb 0x140131c71
mov r9, qword [rbp - 0x30]
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0xc]
lea r8, [0x140013878]
mov dword [rsp + 0x20], edi
call fcn.14001ecbc
jmp 0x140131c6a
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x20]
lea rdx, [rbp - 0x18]
mov r8d, CoRevokeClassObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140131c81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140131c71
test byte [rcx + 0x1c], 1
je 0x140131c71
cmp byte [rcx + 0x19], 2
jb 0x140131c71
mov r9, qword [rbp - 0x30]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013878]
mov edx, reloc.ADVAPI32.dll_GetTraceLoggerHandle
mov dword [rsp + 0x20], edi
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140131ca9
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x18]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x140131c9a
mov ebx, 0x8007000e
jmp 0x140131ca2
movups xmm0, xmmword [rbp - 0x18]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x14017d3a8]
cmp qword [rbp - 0x30], 0
je 0x140131cc1
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
cmp qword [rbp - 0x28], 0
je 0x140131cde
lea rcx, [rbp - 0x28]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
and qword [rbp - 0x28], 0
mov rcx, qword [0x14017d3a8]
cmp r14, 0xffffffffffffffff
je 0x140131cf4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x140131d2c
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140131d2c
test byte [rcx + 0x1c], 1
je 0x140131d2c
cmp byte [rcx + 0x19], 2
jb 0x140131d2c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013878]
mov edx, reloc.ADVAPI32.dll_GetTraceEnableLevel
mov r9, r15
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140134a9c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
mov byte [rdx], bl
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x140134ad4
cmp eax, 5
je 0x140134ad4
cmp eax, 2
jne 0x140134b99
cmp eax, 2
jne 0x140134b96
lea rdx, [rsp + 0x48]
mov rcx, rdi
mov byte [rsp + 0x48], bl
call fcn.14012d8d8
lea r14, [0x14017d3a8]
mov ebx, eax
test eax, eax
jns 0x140134b35
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140134b2f
test byte [rcx + 0x1c], 1
je 0x140134b2f
cmp byte [rcx + 0x19], 3
jb 0x140134b2f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013878]
mov edx, reloc.ADVAPI32.dll_EventWrite
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
xor al, al
xor ebx, ebx
jmp 0x140134b39
mov al, byte [rsp + 0x48]
test al, al
jne 0x140134b99
lea rdx, [rsp + 0x48]
mov rcx, rdi
mov byte [rsp + 0x48], al
call fcn.1401448a4
mov ebx, eax
test eax, eax
jns 0x140134b8e
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140134b88
test byte [rcx + 0x1c], 1
je 0x140134b88
cmp byte [rcx + 0x19], 3
jb 0x140134b88
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013878]
mov edx, 0x53
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov al, 1
xor ebx, ebx
jmp 0x140134b92
mov al, byte [rsp + 0x48]
test al, al
je 0x140134b99
mov byte [rsi], 1
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop r14
ret
Function at 0x140134bb8
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov ebx, r15d
mov byte [rbp + 0x50], r15b
mov byte [rbp + 0x48], r15b
mov byte [rbp + 0x58], r15b
mov byte [rbp - 0x10], r15b
mov byte [rbp - 0xf], r15b
mov byte [rdx], r15b
test r8, r8
je 0x140134bf8
mov byte [r8], r15b
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea r13, [0x14017d3a8]
sub eax, 2
je 0x140134cb7
dec eax
je 0x140134c48
cmp eax, 2
jne 0x140134dc0
test rdi, rdi
je 0x140134c23
mov byte [rdi], 1
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x48]
mov rcx, rsi
call fcn.140146688
mov ebx, eax
test eax, eax
js 0x140134cab
cmp byte [rbp + 0x48], r15b
je 0x140134d88
jmp 0x140134d84
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.140152768
mov ebx, eax
test eax, eax
js 0x140134cab
cmp byte [rbp + 0x50], r15b
je 0x140134d88
test rdi, rdi
je 0x140134c6c
mov byte [rdi], 1
lea rdx, [rbp + 0x58]
mov rcx, rsi
call fcn.140152890
mov ebx, eax
test eax, eax
jns 0x140134c9c
cmp eax, 0x80780076
jne 0x140134d88
mov byte [r14], r15b
test rdi, rdi
je 0x140134c94
mov byte [rdi], r15b
mov ebx, r15d
jmp 0x140134d88
cmp byte [rbp + 0x58], r15b
je 0x140134d84
jmp 0x140134d88
mov rcx, qword [0x14017d3a8]
jmp 0x140134d93
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.14012d8d8
mov ebx, eax
test eax, eax
jns 0x140134d0c
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x140134d04
test byte [rcx + 0x1c], 1
je 0x140134d04
cmp byte [rcx + 0x19], 3
jb 0x140134d04
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013878]
mov edx, 0x54
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
mov al, r15b
mov ebx, r15d
jmp 0x140134d16
mov al, byte [rbp - 0x10]
mov rcx, qword [0x14017d3a8]
test al, al
jne 0x140134d8f
lea rdx, [rbp - 0xf]
mov rcx, rsi
call fcn.1401448a4
mov ebx, eax
test eax, eax
jns 0x140134d6e
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x140134d67
test byte [rcx + 0x1c], 1
je 0x140134d67
cmp byte [rcx + 0x19], 3
jb 0x140134d67
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013878]
mov edx, 0x55
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
mov al, 1
mov ebx, r15d
jmp 0x140134d78
mov al, byte [rbp - 0xf]
mov rcx, qword [0x14017d3a8]
test al, al
je 0x140134d8f
test rdi, rdi
je 0x140134d84
mov byte [rdi], 1
mov byte [r14], 1
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x140134dc0
cmp rcx, r13
je 0x140134dc0
test byte [rcx + 0x1c], 1
je 0x140134dc0
cmp byte [rcx + 0x19], 2
jb 0x140134dc0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013878]
mov edx, 0x56
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140136970
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
lea rdi, [0x1400138f0]
test rcx, rcx
jne 0x1401369ac
lea r8, [0x140009000]
mov edx, 0x108a
mov rcx, rdi
call fcn.1400a8be8
test rbx, rbx
jne 0x1401369c5
lea r8, [0x140013cd8]
mov edx, 0x108b
mov rcx, rdi
call fcn.1400a8be8
test r14, r14
jne 0x1401369de
lea r8, [0x140013d28]
mov edx, 0x108c
mov rcx, rdi
call fcn.1400a8be8
and qword [r14], 0
and qword [rsp + 0x50], 0
mov edx, ebp
mov rcx, rbx
xor edi, edi
call fcn.14013721c
mov ebx, eax
test eax, eax
jns 0x140136a42
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140136ac6
test byte [rcx + 0x1c], 1
je 0x140136ac6
cmp byte [rcx + 0x19], 2
jb 0x140136ac6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013878]
mov edx, 0x95
mov r9d, ebx
call fcn.14001de24
jmp 0x140136ac6
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400a97c0
mov rsi, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x140136ab8
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x68]
mov rcx, rsi
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x140136a84
mov rcx, rsi
call fcn.140154be4
mov ebx, eax
jmp 0x140136a8b
mov rbp, qword [rsp + 0x50]
xor ebx, ebx
test ebx, ebx
js 0x140136ab8
call fcn.140136920
mov r15, rax
cmp rax, rbp
cmova r15, rbp
call fcn.140135354
lea rcx, [rax + r15]
cmp rcx, rbp
jbe 0x140136ab5
mov rdi, rax
sub rdi, rbp
add rdi, r15
mov qword [r14], rdi
test rsi, rsi
je 0x140136ac6
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140143aa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rsi, rdx
mov r14, rcx
test rdx, rdx
jne 0x140143ad0
lea r8, [0x140009038]
lea rcx, [0x140014920]
mov edx, 0xac
call fcn.1400a8be8
and dword [rsp + 0x68], 0
mov eax, 0xfeff
xor r9d, r9d
mov word [rsp + 0x60], ax
xor eax, eax
mov edx, 0x40000000
and qword [rsp + 0x30], rax
lea r8d, [rax + 3]
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
jne 0x140143b79
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x140143ccc
test byte [rcx + 0x1c], 1
je 0x140143ccc
cmp byte [rcx + 0x19], 2
jb 0x140143ccc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014ae8]
mov edx, reloc.ADVAPI32.dll_TraceMessage
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
jmp 0x140143ccc
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140143a20
mov ebx, eax
test eax, eax
jns 0x140143bc1
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x140143ccc
test byte [rcx + 0x1c], 1
je 0x140143ccc
cmp byte [rcx + 0x19], 2
jb 0x140143ccc
mov edx, reloc.ADVAPI32.dll_GetTraceLoggerHandle
mov r9d, eax
jmp 0x140143c3e
cmp qword [rsp + 0x70], 0
lea rdi, [0x14017d3a8]
jne 0x140143c9c
mov rcx, qword [r14]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
lea rdx, [rsp + 0x60]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140143c50
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x140143ccc
test byte [rcx + 0x1c], 1
je 0x140143ccc
cmp byte [rcx + 0x19], 2
jb 0x140143ccc
mov edx, reloc.ADVAPI32.dll_GetTraceEnableLevel
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014ae8]
call fcn.14001de24
jmp 0x140143ccc
cmp dword [rsp + 0x68], 2
je 0x140143c6f
lea r8, [0x140014978]
lea rcx, [0x140014920]
mov edx, 0xe4
call fcn.1400a8be8
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x140143ccc
test byte [rcx + 0x1c], 1
je 0x140143ca3
cmp byte [rcx + 0x19], 4
jb 0x140143ca3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014ae8]
mov edx, reloc.ADVAPI32.dll_GetTraceEnableFlags
call fcn.14001dd24
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x140143ccc
test byte [rcx + 0x1c], 1
je 0x140143ccc
cmp byte [rcx + 0x19], 4
jb 0x140143ccc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014ae8]
mov edx, reloc.ADVAPI32.dll_RegisterTraceGuidsW
mov r9, rsi
call fcn.14001ec40
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140150158
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov r12b, r8b
mov r13, rdx
mov r15, rcx
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1401501b4
test byte [rcx + 0x1c], 1
je 0x1401501b4
cmp byte [rcx + 0x19], 4
jb 0x1401501b4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015c80]
mov edx, reloc.ADVAPI32.dll_GetTraceLoggerHandle
call fcn.14001dd24
xor eax, eax
xor esi, esi
xor r8d, r8d
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov rcx, qword [r15]
xor edx, edx
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
jne 0x1401501f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401502d2
mov rax, rbx
mov ecx, reloc.ADVAPI32.dll_TraceEvent
add rax, rax
cmp rax, rcx
jbe 0x14015020f
mov ebx, 0x80070216
jmp 0x1401502d2
mov ecx, eax
mov ebp, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14015022b
mov ebx, 0x8007000e
jmp 0x1401502d2
mov r8, rbp
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rcx, qword [r15]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140150261
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401502b6
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400a9ee0
mov ebx, eax
test eax, eax
js 0x1401502b1
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rsi, qword [rsp + 0x50]
mov rdx, r14
mov rcx, rsi
xor edi, edi
call fcn.1400a97c0
mov ebx, eax
test eax, eax
js 0x1401502c4
mov rcx, qword [r13]
lea rdx, [r14 + 8]
xor r8d, r8d
call fcn.1400a99e4
mov ebx, eax
test eax, eax
js 0x1401502c4
mov byte [r14 + 0x10], r12b
jmp 0x1401502b6
mov rsi, qword [rsp + 0x50]
test rdi, rdi
je 0x1401502c4
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x1401502d2
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140150306
test byte [rcx + 0x1c], 1
je 0x140150306
cmp byte [rcx + 0x19], 4
jb 0x140150306
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015c80]
mov edx, reloc.ADVAPI32.dll_GetTraceEnableLevel
call fcn.14001dd24
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140151d50
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor r12d, r12d
mov r15, rdx
lea r9, [rax + 0x10]
mov qword [rdx], r12
xor r8d, r8d
xor edx, edx
mov r14, rcx
mov ebx, r12d
mov dword [rax + 0x18], r12d
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x140151dad
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140151dad
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140151e66
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x140151dcc
mov ebx, 0x8007000e
jmp 0x140151e6a
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x140151dfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140151e5d
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rbp + rsi*2], r12w
jne 0x140151e00
test esi, esi
je 0x140151e5d
lea eax, [rsi + 1]
mov ebx, eax
lea rcx, [rax + rax]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x140151e2d
mov ebx, 0x8007000e
jmp 0x140151e5d
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.140052508
mov ebx, eax
test eax, eax
js 0x140151e4f
lea ecx, [rsi - 1]
mov word [rdi + rcx*2], r12w
mov qword [r15], rdi
mov rdi, r12
test rdi, rdi
je 0x140151e5d
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x140151ea5
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140151ea5
test byte [rcx + 0x1c], 1
je 0x140151ea5
cmp byte [rcx + 0x19], 3
jb 0x140151ea5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015d68]
mov edx, 0xa
mov r9, r14
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140151ec4
Capabilities:
Get common file path
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x680
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rdi, rcx
mov rcx, qword [0x14017d3a8]
lea r14, [0x14017d3a8]
lea r15, [0x140015d68]
cmp rcx, r14
je 0x140151f26
test byte [rcx + 0x1c], 1
je 0x140151f26
cmp byte [rcx + 0x19], 4
jb 0x140151f26
mov rcx, qword [rcx + 0x10]
mov edx, reloc.ADVAPI32.dll_TraceMessage
mov r8, r15
call fcn.14001dd24
movups xmm0, xmmword [0x14000ab48]
mov ebx, 0x104
lea rcx, [rsp + 0x40]
mov edx, ebx
movdqu xmmword [rdi], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
test eax, eax
jne 0x140151f8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140152033
test byte [rcx + 0x1c], 1
je 0x140152033
cmp byte [rcx + 0x19], 2
jb 0x140152033
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xc]
mov r9d, eax
mov r8, r15
call fcn.14001de24
jmp 0x14015202c
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x140151fd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140152033
test byte [rcx + 0x1c], 1
je 0x140152033
cmp byte [rcx + 0x19], 2
jb 0x140152033
mov edx, reloc.ADVAPI32.dll_GetTraceEnableLevel
lea r9, [rsp + 0x40]
jmp 0x14015201c
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x250]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x140152043
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140152033
test byte [rcx + 0x1c], 1
je 0x140152033
cmp byte [rcx + 0x19], 2
jb 0x140152033
mov edx, reloc.ADVAPI32.dll_GetTraceEnableFlags
lea r9, [rsp + 0x250]
mov rcx, qword [rcx + 0x10]
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140152080
lea rax, [rsp + 0x460]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], si
jne 0x14015204f
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x460]
call fcn.1400ac484
mov ebx, eax
test eax, eax
js 0x140152079
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x1401520a2
test byte [rcx + 0x1c], 1
je 0x1401520a2
cmp byte [rcx + 0x19], 4
jb 0x1401520a2
mov rcx, qword [rcx + 0x10]
mov edx, reloc.ADVAPI32.dll_RegisterTraceGuidsW
mov r8, r15
call fcn.14001dd24
mov eax, ebx
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret