joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012aac0
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 [0x140170608]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rdi, rcx
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
lea r15, [0x14015ab98]
cmp rcx, r14
je 0x14012ab22
test byte [rcx + 0x1c], 1
je 0x14012ab22
cmp byte [rcx + 0x19], 4
jb 0x14012ab22
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r8, r15
call fcn.140004c54
movups xmm0, xmmword [0x14014fd28]
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 0x14012ab91
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14012ab7e
test byte [rcx + 0x1c], 1
je 0x14012ab7e
cmp byte [rcx + 0x19], 2
jb 0x14012ab7e
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xc]
mov r9d, eax
mov r8, r15
call fcn.140004c78
mov rcx, qword [0x140170048]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14012ac7c
mov r8d, ebx
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x14012abe7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14012ab7e
test byte [rcx + 0x1c], 1
je 0x14012ab7e
cmp byte [rcx + 0x19], 2
jb 0x14012ab7e
mov edx, 0xd
lea r9, [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov r8, r15
mov dword [rsp + 0x20], edi
call fcn.140005c44
jmp 0x14012ab77
mov r8d, ebx
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14012ac3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14012ab7e
test byte [rcx + 0x1c], 1
je 0x14012ab7e
cmp byte [rcx + 0x19], 2
jb 0x14012ab7e
mov edx, 0xe
lea r9, [rsp + 0x250]
jmp 0x14012abd5
lea rax, [rsp + 0x460]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], si
jne 0x14012ac4b
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x460]
call fcn.140087070
mov ebx, eax
test eax, eax
js 0x14012ac75
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14012ac9e
test byte [rcx + 0x1c], 1
je 0x14012ac9e
cmp byte [rcx + 0x19], 4
jb 0x14012ac9e
mov rcx, qword [rcx + 0x10]
mov edx, 0xf
mov r8, r15
call fcn.140004c54
mov eax, ebx
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140141340
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 0x14012aef8
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 [0x140170608]
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 0x14012b019
lea rcx, [rsp + 0x30]
call fcn.14008b924
mov ebx, eax
test eax, eax
jns 0x14012af7f
mov ecx, 0xc0000452
call fcn.14003a444
cmp ebx, eax
je 0x14012af77
mov ecx, 0xc0000451
call fcn.14003a444
cmp ebx, eax
je 0x14012af77
mov ecx, 0xc000003a
call fcn.14003a444
cmp ebx, eax
jne 0x14012af97
mov byte [r14], 0
xor ebx, ebx
jmp 0x14012af97
mov rdx, qword [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14012af94
mov sil, 1
mov byte [r14], sil
lea rsi, [0x140170048]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rbp, 0xffffffffffffffff
je 0x14012afb8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
test ebx, ebx
jns 0x14012aff0
mov rcx, qword [0x140170048]
cmp rcx, rsi
je 0x14012aff0
test byte [rcx + 0x1c], 1
je 0x14012aff0
cmp byte [rcx + 0x19], 2
jb 0x14012aff0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ab98]
mov edx, 0x17
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140005c44
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140141340
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]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14012b099
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x140170048]
lea rsi, [0x140170048]
cmp rcx, rsi
je 0x14012b071
test byte [rcx + 0x1c], 1
je 0x14012b071
cmp byte [rcx + 0x19], 2
jb 0x14012b071
lea edx, [rbp + 0x16]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ab98]
mov r9d, edi
call fcn.140004c78
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14012af9e
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x14012b0b0
mov rdx, r15
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14012b084
jmp 0x14012af91
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x14012af94
mov rcx, qword [0x140170048]
lea rsi, [0x140170048]
cmp rcx, rsi
je 0x14012b071
test byte [rcx + 0x1c], 1
je 0x14012b071
cmp byte [rcx + 0x19], 2
jb 0x14012b071
mov edx, 0x16
jmp 0x14012b05e
Function at 0x14012b0f0
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]
movzx r9d, bpl
lea r15d, [rbp + 1]
cmp eax, 3
cmove r9d, r15d
mov ebx, ebp
test r9b, r9b
je 0x14012b1f2
lea r12, [0x140170048]
test r15b, sil
jne 0x14012b192
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.14012b364
mov ebx, eax
test eax, eax
jns 0x14012b18b
mov rcx, qword [0x140170048]
cmp rcx, r12
je 0x14012b1c1
test byte [rcx + 0x1c], r15b
je 0x14012b1c1
cmp byte [rcx + 0x19], 2
jb 0x14012b1c1
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x18]
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, [0x14015ab98]
call fcn.140005c44
jmp 0x14012b1ba
cmp byte [rsp + 0x78], bpl
je 0x14012b1ba
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14012b490
mov ebx, eax
test eax, eax
jns 0x14012b1b0
cmp eax, 0x80780076
jne 0x14012b1ba
mov ebx, ebp
jmp 0x14012b1ba
cmp byte [rsp + 0x70], bpl
jne 0x14012b1ba
mov byte [r14], r15b
mov rcx, qword [0x140170048]
test ebx, ebx
jns 0x14012b1f2
cmp rcx, r12
je 0x14012b1f2
test byte [rcx + 0x1c], r15b
je 0x14012b1f2
cmp byte [rcx + 0x19], 2
jb 0x14012b1f2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ab98]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005c44
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 0x14012b750
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.140084524
lea r13, [0x140170048]
mov ebx, eax
test eax, eax
js 0x14012b8c0
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]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14012b815
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140170048]
cmp rcx, r13
je 0x14012b802
test byte [rcx + 0x1c], 1
je 0x14012b802
cmp byte [rcx + 0x19], 2
jb 0x14012b802
mov r9, qword [rsp + 0x80]
lea edx, [rbp + 0x26]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ab98]
mov dword [rsp + 0x20], eax
call fcn.140005c44
mov rcx, qword [0x140170048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14012b8c7
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]
test eax, eax
jne 0x14012b8ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140170048]
cmp rcx, r13
je 0x14012b89c
test byte [rcx + 0x1c], 1
je 0x14012b89c
cmp byte [rcx + 0x19], 2
jb 0x14012b89c
mov r9, qword [rsp + 0x80]
lea r8, [0x14015ab98]
mov rcx, qword [rcx + 0x10]
mov edx, 0x26
mov dword [rsp + 0x20], eax
call fcn.140005c44
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14012b8b7
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140170048]
cmp qword [rsp + 0x80], 0
je 0x14012b8e7
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
test ebx, ebx
jns 0x14012b91b
cmp rcx, r13
je 0x14012b91b
test dword [rcx + 0x1c], 0x200
je 0x14012b91b
cmp byte [rcx + 0x19], 2
jb 0x14012b91b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ab98]
mov edx, 0x27
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005c44
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x14012c648
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]
mov qword [rsp + 0x80], rax
mov rdi, rax
lea r13, [0x140170048]
test rax, rax
jne 0x14012c69c
mov rcx, qword [0x140170048]
mov ebx, 0x8007000e
jmp 0x14012c7e1
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]
test eax, eax
jne 0x14012c79f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x78]
mov dl, 1
mov rcx, rbp
mov esi, eax
call fcn.14012c890
test eax, eax
jns 0x14012c742
mov rcx, qword [0x140170048]
cmp rcx, r13
je 0x14012c72f
test byte [rcx + 0x1c], 1
je 0x14012c72f
cmp byte [rcx + 0x19], 3
jb 0x14012c72f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ab98]
mov edx, 0x40
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.140005c44
mov rcx, qword [0x140170048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14012c7c8
mov eax, dword [rsp + 0x78]
shr eax, 0xb
test al, 1
je 0x14012c821
mov rcx, qword [0x140170048]
cmp rcx, r13
je 0x14012c781
test byte [rcx + 0x1c], 1
je 0x14012c781
cmp byte [rcx + 0x19], 4
jb 0x14012c781
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ab98]
mov edx, 0x41
mov r9, rbp
call fcn.140005bdc
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.14012cb90
mov rdi, qword [rsp + 0x80]
mov ebx, eax
test eax, eax
js 0x14012c7c1
test rdi, rdi
jne 0x14012c7bc
lea r8, str.wszLabel
mov edx, 0x5ba
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.14008388c
mov qword [r14], rdi
xor edi, edi
mov rcx, qword [0x140170048]
test rdi, rdi
je 0x14012c7dd
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
test ebx, ebx
jns 0x14012c80e
cmp rcx, r13
je 0x14012c80e
test byte [rcx + 0x1c], 1
je 0x14012c80e
cmp byte [rcx + 0x19], 3
jb 0x14012c80e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ab98]
mov edx, 0x44
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140005c44
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 0x14012c846
cmp esi, 1
je 0x14012c846
cmp esi, 0x57
je 0x14012c846
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14012c7c1
mov rcx, qword [0x140170048]
cmp rcx, r13
je 0x14012c7c8
test byte [rcx + 0x1c], 1
je 0x14012c7c8
cmp byte [rcx + 0x19], 5
jb 0x14012c7c8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ab98]
mov edx, 0x43
mov r9, rbp
call fcn.140005bdc
jmp 0x14012c7c1
Function at 0x14012d4ec
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x20a
xor ebx, ebx
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x226
call sub.msvcrt.dll_memset
mov eax, dword [0x14015aafc]
or r14, 0xffffffffffffffff
mov dword [rsp + 0x50], eax
movzx eax, word [0x14015ab00]
mov word [rsp + 0x54], ax
test rsi, rsi
jne 0x14012d57f
lea r8, str.pwszDrive
mov edx, 0x817
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.14008388c
test rdi, rdi
jne 0x14012d59c
lea r8, str.pVolumeInfo___NULL
mov edx, 0x818
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.14008388c
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
movzx ecx, word [rsi]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x14012d5cd
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x14012d5cd
lea r8, str._Volume_s
jmp 0x14012d615
mov word [rsp + 0x50], cx
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x50]
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x14012d607
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14012d744
lea r8, str._GLOBALROOT_s
lea rsi, [rbp + 0x190]
mov r9, rsi
lea rcx, [rsp + 0x60]
mov edx, VarUI4FromDisp
call fcn.14000fcbc
mov r8d, 3
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14012d6b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14012d744
test byte [rcx + 0x1c], 4
je 0x14012d744
cmp byte [rcx + 0x19], 2
jb 0x14012d744
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x69]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], ebx
lea r8, [0x14015ab98]
call fcn.140005c44
jmp 0x14012d744
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x40]
mov r9d, 0x10
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r9d
mov edx, 0x9023c
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x44], 0x60
mov dword [rsp + 0x48], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14012d744
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov r9d, eax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14012d744
test byte [rcx + 0x1c], 4
je 0x14012d744
cmp byte [rcx + 0x19], 2
jb 0x14012d744
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015ab98]
mov edx, 0x69
call fcn.140004c78
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140141340
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14013b1fc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r14
push r15
sub rsp, 0x240
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebx, ebx
mov dword [0x1401724b0], ebx
mov dword [0x1401724a0], ebx
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x14013b261
test byte [rcx + 0x1c], 0x20
je 0x14013b261
cmp byte [rcx + 0x19], 4
jb 0x14013b261
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x14015b9d0]
call fcn.140004c54
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]
mov r15d, 0xc
cmp eax, 0x105
jbe 0x14013b2a2
mov ebx, 0x8007000e
jmp 0x14013b36f
lea rdx, [0x14015b8e8]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14013b2c0
mov word [0x140170c60], bx
jmp 0x14013b31c
lea rdx, str.amd64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14013b2dc
mov eax, 9
jmp 0x14013b2f6
lea rdx, str.ia64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14013b2ff
mov eax, 6
mov word [0x140170c60], ax
jmp 0x14013b31c
lea rdx, str.ARM64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14013b31c
mov word [0x140170c60], r15w
call fcn.1401401b4
test eax, eax
jne 0x14013b368
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14013b39a
test byte [rcx + 0x1c], 0x20
je 0x14013b376
cmp byte [rcx + 0x19], 2
jb 0x14013b376
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015b9d0]
mov edx, 0xb
call fcn.140004c54
jmp 0x14013b36f
or dword [0x1401724b0], 1
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14013b39a
test byte [rcx + 0x1c], 0x20
je 0x14013b39a
cmp byte [rcx + 0x19], 4
jb 0x14013b39a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015b9d0]
mov edx, r15d
call fcn.140004c54
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140141340
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop r15
ret
Function at 0x14013e290
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1401724d0], 0
mov rbx, rcx
movups xmm0, xmmword [0x14014fd28]
movdqu xmmword [rcx], xmm0
je 0x14013e2c5
mov ecx, dword [0x1401724cc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14013e2c5
movups xmm0, xmmword [rax]
movdqu xmmword [rbx], xmm0
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14013ff44
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 [0x140170608]
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.14013fdc0
mov edi, eax
test eax, eax
jne 0x140140019
cmp qword [rsp + 0x30], rbx
jne 0x14013ffa8
lea edi, [rbx + 0x57]
jmp 0x14013ffcd
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.14013fea0
mov edi, eax
test edi, edi
jne 0x14013fff7
mov edi, 0x104
lea rdx, [rsp + 0x50]
mov r8d, edi
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140140050
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp qword [rsp + 0x30], rbx
je 0x140140008
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rsp + 0x38], rbx
je 0x140140019
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140141340
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 0x14014005b
mov edi, 0x7a
jmp 0x14013fff7
lea rax, [rsp + 0x50]
or r14, 0xffffffffffffffff
inc r14
cmp word [rax + r14*2], bx
jne 0x140140064
mov r8d, edi
lea rdx, str.setupapi.dev.log
lea rcx, [rsp + 0x50]
call fcn.140140538
test eax, eax
je 0x14013ffef
lea rcx, [rsp + 0x50]
call fcn.140140ad4
mov edi, eax
test eax, eax
jne 0x14013fff7
mov eax, r14d
add rax, rax
cmp rax, 0x208
jae 0x1401400dd
lea edx, [rdi + 1]
mov word [rsp + rax + 0x50], bx
lea rcx, [rsp + 0x50]
call fcn.140140cd0
test eax, eax
je 0x14013ffef
lea rcx, [rsp + 0x50]
call fcn.140140e24
test eax, eax
jne 0x14013fff7
jmp 0x14013ffef
call fcn.140141518
int3
Function at 0x140140838
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 [0x140170608]
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 0x14014089b
mov esi, dword [r14]
xor edx, edx
mov rcx, qword [0x140172588]
add esi, 0xf
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1401408a5
lea edi, [rax + 0xe]
jmp 0x14014094c
lea rbx, [rsp + 0x48]
mov esi, 0x10
mov rdx, r13
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
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]
mov edx, 0x80000000
mov ecx, eax
add eax, edx
test edx, eax
jne 0x1401408f7
cmp ecx, 0x80000005
je 0x1401408f7
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
jmp 0x14014092b
test rbp, rbp
je 0x14014091a
mov eax, dword [rbx + 8]
cmp dword [r14], eax
jb 0x140140915
mov r8d, eax
lea rdx, [rbx + 0xc]
mov rcx, rbp
call sub.msvcrt.dll_memcpy
jmp 0x14014091a
mov edi, 0x7a
mov eax, dword [rbx + 8]
mov dword [r14], eax
test r15, r15
je 0x14014092b
mov eax, dword [rbx + 4]
mov dword [r15], eax
test rbx, rbx
je 0x14014094c
lea rax, [rsp + 0x48]
cmp rbx, rax
je 0x14014094c
mov rcx, qword [0x140172588]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140141340
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140140ad4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov ebx, 0x104
lea r9, [rsp + 0x20]
xor r15d, r15d
lea r8, [rsp + 0x30]
mov edx, ebx
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jae 0x140140c57
test eax, eax
jne 0x140140b3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140140c5c
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x140140c57
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x140140c57
mov word [rax], r15w
mov r12d, 0x5c
movzx ecx, word [rsp + 0x30]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x140140b77
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x140140b90
cmp word [rsp + 0x32], 0x3a
jne 0x140140b90
cmp word [rsp + 0x34], r12w
jne 0x140140c57
lea rsi, [rsp + 0x34]
cmp cx, r12w
jne 0x140140bcc
cmp word [rsp + 0x32], r12w
jne 0x140140bcc
mov edx, r12d
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x140140c57
mov edx, r12d
lea rcx, [rax + 2]
call sub.msvcrt.dll_wcschr
mov rsi, rax
test rax, rax
je 0x140140c57
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140140be8
test al, 0x10
je 0x140140c8b
xor eax, eax
jmp 0x140140c5c
mov rdi, qword [rsp + 0x20]
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140140bfe
lea rdi, [rsp + 0x30]
jmp 0x140140c02
add rdi, 0xfffffffffffffffe
cmp rdi, rsi
je 0x140140c57
cmp word [rdi], r12w
jne 0x140140c57
cmp rdi, rsi
jbe 0x140140c57
mov edx, r12d
mov word [rdi], r15w
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov r14, rax
test rax, rax
je 0x140140c57
movzx ebx, word [rax + 2]
lea rcx, [rsp + 0x30]
mov word [rax + 2], r15w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [r14 + 2], bx
cmp eax, 0xffffffff
jne 0x140140c87
mov rdi, r14
cmp r14, rsi
ja 0x140140c12
cmp rdi, rsi
ja 0x140140cb3
mov eax, 0x7b
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140141340
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
test al, 0x10
jne 0x140140c52
mov eax, 0x10b
jmp 0x140140c5c
cmp word [rdi + 2], r15w
je 0x140140be4
mov word [rdi], r12w
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x140140ca5
lea rdi, [rdi + rax*2]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140140c92
jmp 0x140140b2f