joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401320a8
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 rbp, r9
mov r12b, r8b
mov r13, rdx
mov r15, rcx
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140132104
test byte [rcx + 0x1c], 1
je 0x140132104
cmp byte [rcx + 0x19], 4
jb 0x140132104
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164ae8]
mov edx, 0xc
call fcn.140004b70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
xor esi, esi
mov rcx, qword [r15]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140132151
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140132254
mov rax, rbx
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
ja 0x14013224f
mov ecx, eax
mov r14d, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140132188
mov ebx, 0x8007000e
jmp 0x140132254
mov r8, r14
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov rcx, qword [r15]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x1401321ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140132225
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140088ac4
mov ebx, eax
test eax, eax
js 0x140132220
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x50]
mov rdx, rbp
mov rcx, rsi
call fcn.140088360
mov ebx, eax
test eax, eax
js 0x140132239
mov rcx, qword [r13]
lea rdx, [rbp + 8]
xor r8d, r8d
call fcn.14008859c
mov ebx, eax
test eax, eax
js 0x140132239
mov byte [rbp + 0x10], r12b
xor edi, edi
jmp 0x140132225
mov rsi, qword [rsp + 0x50]
test rdi, rdi
je 0x140132239
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test rsi, rsi
je 0x140132254
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x140132254
mov ebx, 0x80070216
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140132288
test byte [rcx + 0x1c], 1
je 0x140132288
cmp byte [rcx + 0x19], 4
jb 0x140132288
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164ae8]
mov edx, 0xd
call fcn.140004b70
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140133f38
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
lea r9, [rax + 0x10]
mov qword [rdx], r12
mov r15, rdx
xor edx, edx
mov dword [rax + 0x18], r12d
xor r8d, r8d
mov r14, rcx
mov ebx, r12d
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140133fa1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
je 0x140133fa1
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14013407e
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x140133fc6
mov ebx, 0x8007000e
jmp 0x140134082
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140134002
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14013406f
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rbp + rsi*2], r12w
jne 0x140134006
test esi, esi
je 0x14013406f
lea eax, [rsi + 1]
lea rcx, [rax + rax]
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140134039
mov ebx, 0x8007000e
jmp 0x14013406f
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.14003bbe8
mov ebx, eax
test eax, eax
js 0x14013405b
lea ecx, [rsi - 1]
mov word [rdi + rcx*2], r12w
mov qword [r15], rdi
mov rdi, r12
test rdi, rdi
je 0x14013406f
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x1401340bd
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1401340bd
test byte [rcx + 0x1c], 1
je 0x1401340bd
cmp byte [rcx + 0x19], 3
jb 0x1401340bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164c78]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005ca0
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 0x1401340e0
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 [0x14017a608]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rdi, rcx
mov rcx, qword [0x14017a048]
lea r14, [0x14017a048]
lea r15, [0x140164c78]
cmp rcx, r14
je 0x140134142
test byte [rcx + 0x1c], 1
je 0x140134142
cmp byte [rcx + 0x19], 4
jb 0x140134142
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r8, r15
call fcn.140004b70
movups xmm0, xmmword [0x140159df8]
mov ebx, 0x104
lea rcx, [rsp + 0x40]
mov edx, ebx
movdqu xmmword [rdi], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x1401341bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x1401341aa
test byte [rcx + 0x1c], 1
je 0x1401341aa
cmp byte [rcx + 0x19], 2
jb 0x1401341aa
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xc]
mov r9d, eax
mov r8, r15
call fcn.140004b9c
mov rcx, qword [0x14017a048]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1401342c0
mov r8d, ebx
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14013421f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x1401341aa
test byte [rcx + 0x1c], 1
je 0x1401341aa
cmp byte [rcx + 0x19], 2
jb 0x1401341aa
mov edx, 0xd
lea r9, [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov r8, r15
mov dword [rsp + 0x20], edi
call fcn.140005ca0
jmp 0x1401341a3
mov r8d, ebx
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x140134283
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x1401341aa
test byte [rcx + 0x1c], 1
je 0x1401341aa
cmp byte [rcx + 0x19], 2
jb 0x1401341aa
mov edx, 0xe
lea r9, [rsp + 0x250]
jmp 0x14013420d
lea rax, [rsp + 0x460]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], si
jne 0x14013428f
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x460]
call fcn.14008b130
mov ebx, eax
test eax, eax
js 0x1401342b9
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x1401342e2
test byte [rcx + 0x1c], 1
je 0x1401342e2
cmp byte [rcx + 0x19], 4
jb 0x1401342e2
mov rcx, qword [rcx + 0x10]
mov edx, 0xf
mov r8, r15
call fcn.140004b70
mov eax, ebx
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.14014b700
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140134548
Capabilities:
Enumerate disk volumes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebx, ebx
or rbp, 0xffffffffffffffff
and qword [rsp + 0x30], rbx
xor sil, sil
mov byte [r8], bl
mov r14, r8
mov r15, rcx
test dl, 1
je 0x140134678
lea rcx, [rsp + 0x30]
call fcn.14008fe94
mov ebx, eax
test eax, eax
jns 0x1401345cb
mov ecx, 0xc0000452
call fcn.14003bb54
cmp ebx, eax
je 0x1401345c7
mov ecx, 0xc0000451
call fcn.14003bb54
cmp ebx, eax
je 0x1401345c7
mov ecx, 0xc000003a
call fcn.14003bb54
cmp ebx, eax
jne 0x1401345e9
xor ebx, ebx
jmp 0x1401345e6
mov rdx, qword [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x1401345e6
mov sil, 1
mov byte [r14], sil
lea rsi, [0x14017a048]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x140134616
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
nop dword [rax + rax]
test ebx, ebx
jns 0x14013464e
mov rcx, qword [0x14017a048]
cmp rcx, rsi
je 0x14013464e
test byte [rcx + 0x1c], 1
je 0x14013464e
cmp byte [rcx + 0x19], 2
jb 0x14013464e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164c78]
mov edx, 0x17
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140005ca0
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14014b700
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov edi, 0x104
lea rcx, [rsp + 0x40]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14013470a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x1401346dc
test byte [rcx + 0x1c], 1
je 0x1401346dc
cmp byte [rcx + 0x19], 2
jb 0x1401346dc
lea edx, [rbp + 0x16]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164c78]
mov r9d, edi
call fcn.140004b9c
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1401345f0
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
nop dword [rax + rax]
test eax, eax
je 0x140134727
mov rdx, r15
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x1401346ef
jmp 0x1401345e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x12
je 0x1401345e6
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x1401346dc
test byte [rcx + 0x1c], 1
je 0x1401346dc
cmp byte [rcx + 0x19], 2
jb 0x1401346dc
mov edx, 0x16
jmp 0x1401346c9
Function at 0x140134774
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov r14, r8
mov byte [rsp + 0x70], bpl
mov esi, edx
mov byte [r8], bpl
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
movzx r9d, bpl
lea r15d, [rbp + 1]
cmp eax, 3
cmove r9d, r15d
mov ebx, ebp
test r9b, r9b
je 0x14013487c
lea r12, [0x14017a048]
test r15b, sil
jne 0x14013481c
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1401349f0
mov ebx, eax
test eax, eax
jns 0x140134815
mov rcx, qword [0x14017a048]
cmp rcx, r12
je 0x14013484b
test byte [rcx + 0x1c], r15b
je 0x14013484b
cmp byte [rcx + 0x19], 2
jb 0x14013484b
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x18]
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, [0x140164c78]
call fcn.140005ca0
jmp 0x140134844
cmp byte [rsp + 0x78], bpl
je 0x140134844
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140134b40
mov ebx, eax
test eax, eax
jns 0x14013483a
cmp eax, 0x80780076
jne 0x140134844
mov ebx, ebp
jmp 0x140134844
cmp byte [rsp + 0x70], bpl
jne 0x140134844
mov byte [r14], r15b
mov rcx, qword [0x14017a048]
test ebx, ebx
jns 0x14013487c
cmp rcx, r12
je 0x14013487c
test byte [rcx + 0x1c], r15b
je 0x14013487c
cmp byte [rcx + 0x19], 2
jb 0x14013487c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164c78]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005ca0
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140134e20
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x40
and qword [rdx], 0
mov rsi, rdx
and qword [rax + 0x18], 0
lea rdx, [rax + 0x18]
mov r14, rcx
call fcn.140088424
lea r13, [0x14017a048]
mov ebx, eax
test eax, eax
js 0x140134fae
and qword [rsp + 0x30], 0
mov r8d, 3
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x80]
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140134ef1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x140134ede
test byte [rcx + 0x1c], 1
je 0x140134ede
cmp byte [rcx + 0x19], 2
jb 0x140134ede
mov r9, qword [rsp + 0x80]
lea edx, [rbp + 0x26]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164c78]
mov dword [rsp + 0x20], eax
call fcn.140005ca0
mov rcx, qword [0x14017a048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140134fb5
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x78]
and qword [rsp + 0x88], 0
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 8
mov edx, 0x7405c
mov qword [rsp + 0x20], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140134f94
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x140134f84
test byte [rcx + 0x1c], 1
je 0x140134f84
cmp byte [rcx + 0x19], 2
jb 0x140134f84
mov r9, qword [rsp + 0x80]
lea r8, [0x140164c78]
mov rcx, qword [rcx + 0x10]
mov edx, 0x26
mov dword [rsp + 0x20], eax
call fcn.140005ca0
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140134f9f
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp qword [rsp + 0x80], 0
je 0x140134fdb
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test ebx, ebx
jns 0x14013500f
cmp rcx, r13
je 0x14013500f
test dword [rcx + 0x1c], 0x200
je 0x14013500f
cmp byte [rcx + 0x19], 2
jb 0x14013500f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164c78]
mov edx, 0x27
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005ca0
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x140135ddc
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov rbp, rcx
xor ebx, ebx
and dword [rsp + 0x78], ebx
mov esi, 0x208
and qword [rdx], rbx
mov ecx, esi
mov r14, rdx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rsp + 0x80], rax
mov rdi, rax
lea r13, [0x14017a048]
test rax, rax
jne 0x140135e36
mov rcx, qword [0x14017a048]
mov ebx, 0x8007000e
jmp 0x140135f8d
mov r8, rsi
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
and dword [rsp + 0x38], ebx
xor r9d, r9d
and qword [rsp + 0x30], rbx
mov r8d, 0x104
and qword [rsp + 0x28], rbx
mov rdx, rdi
and qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
jne 0x140135f45
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r8, [rsp + 0x78]
mov dl, 1
mov rcx, rbp
mov esi, eax
call fcn.14013603c
test eax, eax
jns 0x140135ee8
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x140135ed5
test byte [rcx + 0x1c], 1
je 0x140135ed5
cmp byte [rcx + 0x19], 3
jb 0x140135ed5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164c78]
mov edx, 0x40
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.140005ca0
mov rcx, qword [0x14017a048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140135f6e
mov eax, dword [rsp + 0x78]
shr eax, 0xb
test al, 1
je 0x140135fce
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x140135f27
test byte [rcx + 0x1c], 1
je 0x140135f27
cmp byte [rcx + 0x19], 4
jb 0x140135f27
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164c78]
mov edx, 0x41
mov r9, rbp
call fcn.140005c30
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.140136350
mov rdi, qword [rsp + 0x80]
mov ebx, eax
test eax, eax
js 0x140135f67
test rdi, rdi
jne 0x140135f62
lea r8, str.wszLabel
mov edx, 0x5ba
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.1400876c8
mov qword [r14], rdi
xor edi, edi
mov rcx, qword [0x14017a048]
test rdi, rdi
je 0x140135f89
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test ebx, ebx
jns 0x140135fba
cmp rcx, r13
je 0x140135fba
test byte [rcx + 0x1c], 1
je 0x140135fba
cmp byte [rcx + 0x19], 3
jb 0x140135fba
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164c78]
mov edx, 0x44
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140005ca0
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
cmp esi, 0x3ed
je 0x140135ff3
cmp esi, 1
je 0x140135ff3
cmp esi, 0x57
je 0x140135ff3
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140135f67
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x140135f6e
test byte [rcx + 0x1c], 1
je 0x140135f6e
cmp byte [rcx + 0x19], 5
jb 0x140135f6e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164c78]
mov edx, 0x43
mov r9, rbp
call fcn.140005c30
jmp 0x140135f67
Function at 0x140145274
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r14
push r15
sub rsp, 0x240
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebx, ebx
mov dword [0x14017c400], ebx
mov dword [0x14017c404], ebx
mov rcx, qword [0x14017a048]
lea r14, [0x14017a048]
cmp rcx, r14
je 0x1401452d9
test byte [rcx + 0x1c], 0x20
je 0x1401452d9
cmp byte [rcx + 0x19], 4
jb 0x1401452d9
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x140165a98]
call fcn.140004b70
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x105
call sub.msvcrt.dll_memset
mov r8d, 0x105
lea rdx, [rsp + 0x20]
lea rcx, str._PROCESSOR_ARCHITECTURE_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov r15d, 0xc
cmp eax, 0x105
jbe 0x140145320
mov ebx, 0x8007000e
jmp 0x1401453f3
lea rdx, [0x1401659f8]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14014533e
mov word [0x14017ac60], bx
jmp 0x14014539a
lea rdx, str.amd64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14014535a
mov eax, 9
jmp 0x140145374
lea rdx, str.ia64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14014537d
mov eax, 6
mov word [0x14017ac60], ax
jmp 0x14014539a
lea rdx, str.ARM64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14014539a
mov word [0x14017ac60], r15w
call fcn.14014a468
test eax, eax
jne 0x1401453ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14014541e
test byte [rcx + 0x1c], 0x20
je 0x1401453fa
cmp byte [rcx + 0x19], 2
jb 0x1401453fa
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165a98]
mov edx, 0xb
call fcn.140004b70
jmp 0x1401453f3
or dword [0x14017c400], 1
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14014541e
test byte [rcx + 0x1c], 0x20
je 0x14014541e
cmp byte [rcx + 0x19], 4
jb 0x14014541e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165a98]
mov edx, r15d
call fcn.140004b70
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14014b700
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop r15
ret
Function at 0x1401484c0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14017c420], 0
mov rbx, rcx
movups xmm0, xmmword [0x140159df8]
movdqu xmmword [rcx], xmm0
je 0x1401484fb
mov ecx, dword [0x14017c424]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
je 0x1401484fb
movups xmm0, xmmword [rax]
movdqu xmmword [rbx], xmm0
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14014a1c8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor ebx, ebx
mov dword [rsp + 0x40], 0x208
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rbx
call fcn.14014a044
mov edi, eax
test eax, eax
jne 0x14014a2b9
cmp qword [rsp + 0x30], rbx
jne 0x14014a230
lea edi, [rbx + 0x57]
jmp 0x14014a255
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x160]
mov dword [rsp + 0x20], 0x208
call fcn.14014a124
mov edi, eax
test edi, edi
jne 0x14014a28b
mov edi, 0x104
lea rdx, [rsp + 0x50]
mov r8d, edi
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x14014a2f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp qword [rsp + 0x30], rbx
je 0x14014a2a2
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
cmp qword [rsp + 0x38], rbx
je 0x14014a2b9
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14014b700
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
cmp eax, edi
jbe 0x14014a302
mov edi, 0x7a
jmp 0x14014a28b
lea rax, [rsp + 0x50]
or r14, 0xffffffffffffffff
inc r14
cmp word [rax + r14*2], bx
jne 0x14014a30b
mov r8d, edi
lea rdx, str.setupapi.dev.log
lea rcx, [rsp + 0x50]
call fcn.14014a838
test eax, eax
je 0x14014a27d
lea rcx, [rsp + 0x50]
call fcn.14014ae38
mov edi, eax
test eax, eax
jne 0x14014a28b
mov eax, r14d
add rax, rax
cmp rax, 0x208
jae 0x14014a384
lea edx, [rdi + 1]
mov word [rsp + rax + 0x50], bx
lea rcx, [rsp + 0x50]
call fcn.14014b05c
test eax, eax
je 0x14014a27d
lea rcx, [rsp + 0x50]
call fcn.14014b1cc
test eax, eax
jne 0x14014a28b
jmp 0x14014a27d
call fcn.14014b8d8
int3
Function at 0x14014ab68
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xd0]
xor edi, edi
mov rbp, r9
mov r15, r8
mov r13, rdx
mov r12, rcx
test r9, r9
je 0x14014abd1
mov esi, dword [r14]
xor edx, edx
mov rcx, qword [0x14017c4e0]
add esi, 0xf
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14014abdb
lea edi, [rax + 0xe]
jmp 0x14014ac9a
lea rbx, [rsp + 0x48]
mov esi, 0x10
mov rdx, r13
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rsp + 0x30]
mov ecx, r12d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x38]
mov r9, rbx
mov dword [rsp + 0x20], esi
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov edx, 0x80000000
mov ecx, eax
add eax, edx
test edx, eax
jne 0x14014ac3f
cmp ecx, 0x80000005
je 0x14014ac3f
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14014ac73
test rbp, rbp
je 0x14014ac62
mov eax, dword [rbx + 8]
cmp dword [r14], eax
jb 0x14014ac5d
mov r8d, eax
lea rdx, [rbx + 0xc]
mov rcx, rbp
call sub.msvcrt.dll_memcpy
jmp 0x14014ac62
mov edi, 0x7a
mov eax, dword [rbx + 8]
mov dword [r14], eax
test r15, r15
je 0x14014ac73
mov eax, dword [rbx + 4]
mov dword [r15], eax
test rbx, rbx
je 0x14014ac9a
lea rax, [rsp + 0x48]
cmp rbx, rax
je 0x14014ac9a
mov rcx, qword [0x14017c4e0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014b700
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret