joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140082268
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
test rcx, rcx
jne 0x140082295
lea edx, [rcx + 0x3b]
lea rcx, str.base_stor_blbutil_networkutils.cpp
lea r8, [0x14014b570]
call fcn.140082070
and qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
xor edi, edi
mov rcx, rbx
mov qword [rsp + 0x58], rdi
or rsi, 0xffffffffffffffff
call fcn.140082c18
mov ebx, eax
test eax, eax
js 0x140082373
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400822f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070005
jne 0x140082373
mov ebx, 0x80780047
jmp 0x140082373
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rdx, str.TempFile.tmp
call fcn.140082ef4
mov ebx, eax
test eax, eax
js 0x14008236e
and qword [rsp + 0x30], rdi
xor r9d, r9d
mov rdi, qword [rsp + 0x58]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x4000080
mov rcx, rdi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140082373
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80780047
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x80070005
cmove ecx, ebx
mov ebx, ecx
jmp 0x140082373
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rsi, 0xffffffffffffffff
je 0x140082396
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140085418
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]
test eax, eax
jne 0x140085475
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140085475
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008552e
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x140085494
mov ebx, 0x8007000e
jmp 0x140085532
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1400854c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140085525
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rbp + rsi*2], r12w
jne 0x1400854c8
test esi, esi
je 0x140085525
lea eax, [rsi + 1]
lea rcx, [rax + rax]
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x1400854f5
mov ebx, 0x8007000e
jmp 0x140085525
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.140039dd4
mov ebx, eax
test eax, eax
js 0x140085517
lea ecx, [rsi - 1]
mov word [rdi + rcx*2], r12w
mov qword [r15], rdi
mov rdi, r12
test rdi, rdi
je 0x140085525
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x14008556d
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008556d
test byte [rcx + 0x1c], 1
je 0x14008556d
cmp byte [rcx + 0x19], 3
jb 0x14008556d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bdf0]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005938
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 0x140085588
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.140082ccc
lea r13, [0x14016f048]
mov ebx, eax
test eax, eax
js 0x1400856f8
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 0x14008564d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x14008563a
test byte [rcx + 0x1c], 1
je 0x14008563a
cmp byte [rcx + 0x19], 2
jb 0x14008563a
mov r9, qword [rsp + 0x80]
lea edx, [rbp + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bdf0]
mov dword [rsp + 0x20], eax
call fcn.140005938
mov rcx, qword [0x14016f048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x1400856ff
xor eax, eax
xor r9d, r9d
and qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x88], rax
mov edx, 0x7405c
lea rax, [rsp + 0x78]
mov rcx, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400856e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x1400856d4
test byte [rcx + 0x1c], 1
je 0x1400856d4
cmp byte [rcx + 0x19], 2
jb 0x1400856d4
mov r9, qword [rsp + 0x80]
lea r8, [0x14014bdf0]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], eax
call fcn.140005938
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x1400856ef
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14016f048]
cmp qword [rsp + 0x80], 0
je 0x14008571f
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
test ebx, ebx
jns 0x140085753
cmp rcx, r13
je 0x140085753
test dword [rcx + 0x1c], 0x200
je 0x140085753
cmp byte [rcx + 0x19], 2
jb 0x140085753
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bdf0]
mov edx, 0xd
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005938
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x140086548
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x50
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
lea r12, [0x14014bdf0]
mov ebp, 1
cmp rcx, r14
je 0x1400865ac
test byte [rcx + 0x1c], bpl
je 0x1400865ac
cmp byte [rcx + 0x19], 4
jb 0x1400865ac
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x17]
mov r8, r12
call fcn.1400049d8
xor ebx, ebx
lea rcx, [rsp + 0x20]
xor edx, edx
lea edi, [rbx + 0x20]
mov r8d, edi
call sub.msvcrt.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, edi
lea ecx, [rbx + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140086619
mov ecx, eax
call fcn.140039d4c
mov ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x1400866bc
test byte [rcx + 0x1c], 8
je 0x14008669a
cmp byte [rcx + 0x19], 2
jb 0x14008669a
mov rcx, qword [rcx + 0x10]
lea edx, [rdi - 7]
mov r9d, eax
mov r8, r12
call fcn.1400049f8
jmp 0x140086693
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14008664e
test byte [rcx + 0x1c], bpl
je 0x14008664e
cmp byte [rcx + 0x19], 4
jb 0x14008664e
mov r9d, dword [rsp + 0x30]
mov edx, 0x1a
mov rcx, qword [rcx + 0x10]
mov r8, r12
call fcn.1400049f8
mov rcx, qword [0x14016f048]
cmp dword [rsp + 0x30], 2
movzx edi, bl
cmove edi, ebp
cmp rcx, r14
je 0x140086690
test byte [rcx + 0x1c], bpl
je 0x140086690
cmp byte [rcx + 0x19], 4
jb 0x140086690
mov rcx, qword [rcx + 0x10]
lea rax, [0x140146b80]
test dil, dil
lea r9, [0x140146b88]
mov edx, 0x1b
mov r8, r12
cmovne r9, rax
call fcn.1400058d8
mov byte [rsi], dil
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x1400866bc
test byte [rcx + 0x1c], bpl
je 0x1400866bc
cmp byte [rcx + 0x19], 4
jb 0x1400866bc
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r8, r12
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14013e290
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x1400891c4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14008920b
lea r8, str.wszFilePath___NULL
mov edx, 0x7a0
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.140082070
test rsi, rsi
jne 0x140089228
lea r8, str.pwszVolumePath___NULL
mov edx, 0x7a1
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.140082070
and qword [rsi], 0
lea rcx, [rsp + 0x30]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x20], rdi
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x14008928b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008931c
mov r8d, 0x104
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1400892f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x14008931e
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400892f2
test byte [rcx + 0x1c], 1
je 0x1400892f2
cmp byte [rcx + 0x19], 2
jb 0x1400892f2
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x3e]
lea r8, [0x14014c008]
call fcn.1400049d8
mov ebx, 0x8000ffff
jmp 0x14008931c
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x240]
call fcn.140082e28
mov rdi, qword [rsp + 0x20]
mov ebx, eax
test eax, eax
js 0x140089320
mov qword [rsi], rdi
test ebx, ebx
jns 0x140089329
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14013e290
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400893cc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x1400893f8
lea r8, str.wcsPath
mov edx, 0x817
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.140082070
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14008947b
xor r9d, r9d
xor r8d, r8d
mov dl, dil
mov rcx, rbx
call fcn.140086ba8
test eax, eax
js 0x14008947d
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14008947b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008946c
test byte [rcx + 0x1c], 2
je 0x14008946c
cmp byte [rcx + 0x19], 2
jb 0x14008946c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0x40
mov r9d, ebx
call fcn.1400049f8
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x14008947d
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140089a08
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rcx, qword [0x14016f048]
lea r13, [0x14016f048]
lea r12, [0x14014c448]
cmp rcx, r13
je 0x140089a62
test byte [rcx + 0x1c], 1
je 0x140089a62
cmp byte [rcx + 0x19], 4
jb 0x140089a62
mov rcx, qword [rcx + 0x10]
mov edx, 0xa
mov r8, r12
call fcn.1400049d8
xor ebx, ebx
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
jne 0x140089ad0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x140089b6e
test byte [rcx + 0x1c], 1
je 0x140089b6e
cmp byte [rcx + 0x19], 2
jb 0x140089b6e
lea edx, [rdi + 0xb]
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.140005938
jmp 0x140089b6e
mov rcx, rbp
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x140089aee
mov ebx, 0x8007000e
jmp 0x140089b6e
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140089b37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x140089b6e
test byte [rcx + 0x1c], 1
je 0x140089b6e
cmp byte [rcx + 0x19], 2
jb 0x140089b6e
mov edx, 0xc
jmp 0x140089ab8
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x140089b68
test byte [rcx + 0x1c], 1
je 0x140089b68
cmp byte [rcx + 0x19], 4
jb 0x140089b68
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
mov r9, rsi
mov qword [rsp + 0x20], rdi
mov r8, r12
call fcn.1400059ac
mov qword [r14], rdi
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x140089ba0
test byte [rcx + 0x1c], 1
je 0x140089ba0
cmp byte [rcx + 0x19], 4
jb 0x140089ba0
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
mov r8, r12
call fcn.1400049d8
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x140089bc4
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r8, [rax + 0x10]
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140089c06
lea r8, str._fRet
mov edx, 0x78
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140082070
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x800700ea
jne 0x140089c97
mov ecx, dword [rsp + 0x38]
xor ebx, ebx
inc ecx
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x140089c42
mov ebx, 0x8007000e
jmp 0x140089c97
mov r8d, dword [rsp + 0x38]
xor edx, edx
inc r8d
mov rcx, rdi
add r8, r8
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x38]
mov rdx, rdi
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x140089c84
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140089c89
mov qword [rsi], rdi
xor edi, edi
test rdi, rdi
je 0x140089c97
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140089cac
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov rcx, qword [0x14016f048]
lea rbp, [0x14016f048]
cmp rcx, rbp
je 0x140089d0f
test dword [rcx + 0x1c], 0x200
je 0x140089d0f
cmp byte [rcx + 0x19], 4
jb 0x140089d0f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0xf
call fcn.1400049d8
and dword [rsp + 0x20], 0
test rsi, rsi
jne 0x140089d31
lea r8, str.pwszSystemDevicePath
mov edx, 0xbf
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140082070
and qword [rsi], 0
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor edx, edx
lea r9, [rsp + 0x20]
xor r8d, r8d
lea ecx, [rdx + 0x62]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, 0xc0000023
test eax, eax
jns 0x140089dbf
cmp eax, ebx
je 0x140089dbf
cmp eax, 0x80000005
je 0x140089dbf
cmp eax, 0xc0000004
je 0x140089dbf
mov ecx, eax
call fcn.140039d4c
mov ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, rbp
je 0x140089f03
test byte [rcx + 0x1c], 8
je 0x140089eda
cmp byte [rcx + 0x19], 2
jb 0x140089eda
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x10
mov r9d, eax
call fcn.1400049f8
jmp 0x140089ed3
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x140089ddb
mov ebx, 0x8007000e
jmp 0x140089ed3
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rdi
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140089e4d
mov ecx, eax
call fcn.140039d4c
mov ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, rbp
je 0x140089eca
test byte [rcx + 0x1c], 8
je 0x140089eca
cmp byte [rcx + 0x19], 2
jb 0x140089eca
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x11
mov r9d, eax
call fcn.1400049f8
jmp 0x140089eca
movzx edx, word [rdi]
lea rax, [rdx + 2]
cmp rax, 0x208
jbe 0x140089e65
mov ecx, ebx
call fcn.140039d4c
jmp 0x140089ec8
test dl, 1
je 0x140089e85
lea r8, str.pSysInfo__SystemPartition.Length___sizeof_WCHAR___0
mov edx, 0xf0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140082070
movzx edx, word [rdi]
movzx eax, dx
add eax, 8
cmp eax, dword [rsp + 0x20]
jbe 0x140089e98
mov ebx, 0x8000ffff
jmp 0x140089eca
mov r8, qword [rdi + 8]
lea rcx, [rsp + 0x30]
movzx r9d, dx
mov edx, 0x104
shr r9, 1
call fcn.14008213c
mov ebx, eax
test eax, eax
js 0x140089eca
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.140082e28
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, rbp
je 0x140089f03
test dword [rcx + 0x1c], 0x200
je 0x140089f03
cmp byte [rcx + 0x19], 4
jb 0x140089f03
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x12
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14013e290
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14008a250
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov rsi, rdx
mov r12, rcx
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008a2a6
test byte [rcx + 0x1c], 1
je 0x14008a2a6
cmp byte [rcx + 0x19], 4
jb 0x14008a2a6
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x18
call fcn.1400049d8
mov r15, qword [rsp + 0x90]
xor ebx, ebx
and dword [rsp + 0x30], ebx
and dword [rsp + 0x80], ebx
test r14, r14
je 0x14008a2cf
test rsi, rsi
je 0x14008a2cf
test rbp, rbp
je 0x14008a2cf
test r15, r15
jne 0x14008a2e7
lea r8, str.ppbValue___NULL__wszValueName___NULL__lpType___NULL__lpSize___NULL
mov edx, 0x1c0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140082070
and qword [r14], rbx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], rbx
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14008a36c
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rbp, [0x14016f048]
cmp rcx, rbp
je 0x14008a49d
test byte [rcx + 0x1c], 1
je 0x14008a477
cmp byte [rcx + 0x19], 3
jb 0x14008a477
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005938
jmp 0x14008a470
mov eax, dword [rsp + 0x80]
test eax, eax
jne 0x14008a396
lea r8, str.cbSize___0
mov edx, 0x1ce
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140082070
mov eax, dword [rsp + 0x80]
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008a3b7
mov ebx, 0x8007000e
lea rbp, [0x14016f048]
jmp 0x14008a470
mov r8d, dword [rsp + 0x80]
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14008a43e
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rbp, [0x14016f048]
cmp rcx, rbp
je 0x14008a462
test byte [rcx + 0x1c], 1
je 0x14008a462
cmp byte [rcx + 0x19], 2
jb 0x14008a462
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x1a
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005938
jmp 0x14008a45b
mov eax, dword [rsp + 0x30]
mov dword [rbp], eax
lea rbp, [0x14016f048]
mov eax, dword [rsp + 0x80]
mov qword [r14], rdi
xor edi, edi
mov dword [r15], eax
mov rcx, qword [0x14016f048]
test rdi, rdi
je 0x14008a477
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, rbp
je 0x14008a49d
test byte [rcx + 0x1c], 1
je 0x14008a49d
cmp byte [rcx + 0x19], 4
jb 0x14008a49d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x1b
call fcn.1400049d8
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14008a664
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x14008a6ba
test byte [rcx + 0x1c], 1
je 0x14008a6ba
cmp byte [rcx + 0x19], 4
jb 0x14008a6ba
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x1f
call fcn.1400049d8
xor eax, eax
lea r8, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], eax
mov rcx, rdi
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x34]
mov dword [rsp + 0x34], ebx
lea r9d, [rbx + 0xc]
mov qword [rsp + 0x20], rax
lea edx, [rbx + 5]
call qword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
jns 0x14008a71e
mov ecx, eax
call fcn.140039d4c
mov ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14008a7ab
test byte [rcx + 0x1c], 1
je 0x14008a785
cmp byte [rcx + 0x19], 2
jb 0x14008a785
mov edx, 0x20
jmp 0x14008a76b
mov eax, dword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov r9d, 4
or eax, 0xe
mov rcx, rdi
mov dword [rsp + 0x30], eax
lea edx, [r9 - 2]
call qword [sym.imp.ntdll.dll_NtSetInformationKey]
test eax, eax
jns 0x14008a77e
mov ecx, eax
call fcn.140039d4c
mov ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14008a7ab
test byte [rcx + 0x1c], 1
je 0x14008a785
cmp byte [rcx + 0x19], 2
jb 0x14008a785
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov r9d, eax
call fcn.1400049f8
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14008a7ab
test byte [rcx + 0x1c], 1
je 0x14008a7ab
cmp byte [rcx + 0x19], 4
jb 0x14008a7ab
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x22
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14013e290
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret