joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029490
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x140184aa8]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rsi, [0x1401856f8]
xor r15d, r15d
mov r14d, r15d
mov qword [rsp + 0x50], r15
nop dword [rax + rax]
movzx eax, byte [rsi + 0x38]
dec al
test al, 0xfd
jne 0x140029618
mov qword [rsp + 0x60], r15
cmp qword [rsi + 0x18], 8
jb 0x1400294ff
mov rdx, qword [rsi]
jmp 0x140029502
mov rdx, rsi
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsi - 8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov ebp, eax
test eax, eax
jne 0x140029633
mov rbx, qword [rsi + 0x20]
mov rdi, qword [rsi + 0x28]
cmp rbx, rdi
je 0x140029608
nop
cmp byte [rsi + 0x38], 3
jne 0x140029595
mov dword [rsp + 0x70], r15d
mov dword [rsp + 0x68], r15d
mov rbp, qword [rsp + 0x60]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x1400295f6
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov rax, qword [rbx]
mov rdx, qword [rax]
mov rbp, rdx
mov r12, rax
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov r13, rax
mov rcx, r12
call qword [rbp]
mov r15, rax
mov rcx, r12
call qword [rbp + 0x10]
mov ebp, eax
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0x18]
mov rdx, rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r15
mov r9d, ebp
xor r8d, r8d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebp, eax
test eax, eax
jne 0x140029633
xor r15d, r15d
add rbx, 8
cmp rbx, rdi
jne 0x140029550
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140029618
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add r14, 0x48
mov qword [rsp + 0x50], r14
add rsi, 0x48
cmp r14, 0x360
jae 0x140029652
jmp 0x1400294e0
mov edx, 0xc
call fcn.1400293d0
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002964e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebp
jmp 0x140029654
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400b48a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140029690
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140184aa8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx + 0x41], 2
jne 0x140029707
cmp qword [rcx + 0x20], 8
lea rdx, [rcx + 8]
mov qword [rsp + 0x30], 0
jb 0x1400296c2
mov rdx, qword [rdx]
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14002971c
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
mov ebx, eax
test eax, eax
jne 0x14002971c
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140029707
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b48a0
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002972c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b48a0
add rsp, 0x40
pop rbx
ret

Function at 0x140029ac0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140029ad9
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x140029b77
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
cmp eax, 2
jne 0x140029b3b
xor edi, edi
mov rcx, qword [0x1401856e0]
lea rax, [0x1401856e0]
cmp rcx, rax
je 0x140029b77
test dword [rcx + 0x44], 0x100
je 0x140029b77
cmp byte [rcx + 0x41], 4
jb 0x140029b77
cmp qword [rbx + 0x18], 8
jb 0x140029b22
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
mov r9, rbx
call fcn.14001a2e0
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [0x1401856e0]
lea rax, [0x1401856e0]
cmp rcx, rax
je 0x140029b77
test dword [rcx + 0x44], 0x100
je 0x140029b77
cmp byte [rcx + 0x41], 2
jb 0x140029b77
cmp qword [rbx + 0x18], 8
jb 0x140029b67
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
mov r9, rbx
mov dword [rsp + 0x20], edi
call fcn.140029840
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14002be50
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140184aa8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, r9
mov r10, r8
mov rsi, rdx
mov r9, rcx
mov qword [rsp + 0x20], rcx
movzx ecx, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs rdx, 0x100000001b3
imul rcx, rdx
movzx eax, byte [r8 + 1]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 2]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 3]
xor rcx, rax
imul rcx, rdx
mov r8, qword [r9 + 0x30]
and r8, rcx
shl r8, 4
mov rbx, qword [r9 + 0x18]
mov rax, qword [rbx + r8]
cmp rax, qword [r9 + 8]
jne 0x14002bee7
mov rbx, qword [r9 + 8]
jmp 0x14002beef
mov rbx, qword [rbx + r8 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x14002bf37
mov ecx, dword [r10]
mov rbx, qword [rbx + 8]
cmp ecx, dword [rbx + 0x10]
je 0x14002bf07
cmp rbx, rax
jne 0x14002bef7
jmp 0x14002bf37
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
mov qword [rdx], rcx
mov rdx, qword [rdi]
mov rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
dec qword [r9 + 0x10]
mov rcx, rdi
call fcn.1400b48f8
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x14002bfc7
mov rax, qword [rdi]
cmp rbx, rax
je 0x14002bf6c
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rcx, qword [r9 + 0x18]
add rcx, r8
mov rax, qword [rcx]
cmp rax, qword [r9 + 8]
jne 0x14002bf8a
mov qword [rcx], rdi
mov rax, qword [r9 + 0x18]
mov qword [rax + r8 + 8], rdi
jmp 0x14002bfb4
cmp rax, rbx
jne 0x14002bf94
mov qword [rcx], rdi
jmp 0x14002bfb4
mov rax, qword [rcx + 8]
mov rdx, qword [rax]
mov qword [rcx + 8], rdx
cmp rdx, rdi
je 0x14002bfb4
add r8, qword [r9 + 0x18]
mov rax, qword [r8 + 8]
mov rdx, qword [rax + 8]
mov qword [r8 + 8], rdx
mov rcx, r9
call fcn.14002d850
nop
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rax, rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b48a0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002c230
Capabilities:
Delete registry value
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140184aa8]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, r9
mov rdi, r8
mov r10d, edx
mov dword [rsp + 0xa0], r10d
cmp qword [r8 + 0x18], 8
jb 0x14002c271
mov rdi, qword [r8]
movzx edx, r10b
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rsp + 0xa1]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0xa2]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0xa3]
xor rdx, rax
imul rdx, rcx
and rdx, qword [0x14018d2d0]
mov rcx, rdx
add rcx, rcx
mov r8, qword [0x14018d2b8]
mov rcx, qword [r8 + rcx*8]
lea rax, [rdx + rdx]
lea r11, [rax*8 + 8]
mov r9, qword [r8 + rax*8]
mov rdx, qword [0x14018d2a8]
nop dword [rax]
cmp r9, rdx
jne 0x14002c2fa
mov rax, rdx
jmp 0x14002c301
mov rax, qword [r11 + r8]
mov rax, qword [rax]
cmp rcx, rax
je 0x14002c31e
cmp r10d, dword [rcx + 0x10]
je 0x14002c311
mov rcx, qword [rcx]
jmp 0x14002c2f0
cmovne rcx, rdx
cmp rcx, rdx
jne 0x14002c3bf
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov rsi, qword [rdx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x140112533]
mov r8, qword [rsi + 8]
mov rdx, rsi
lea rcx, [0x14018d2a8]
call fcn.14002bd60
mov r8, rax
movabs rcx, 0x7fffffffffffffe
mov rdx, qword [0x14018d2b0]
sub rcx, rdx
cmp rcx, 1
jae 0x14002c386
lea rcx, str.list_T__too_long
call fcn.140094bf4
int3
inc rdx
mov qword [0x14018d2b0], rdx
mov qword [rsi + 8], r8
mov rax, qword [rax + 8]
mov qword [rax], r8
mov r9, qword [0x14018d2a8]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
lea rdx, [rsp + 0x38]
lea rcx, [0x14018d2a0]
call fcn.14002be50
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x14002c4ac
test eax, eax
je 0x14002c433
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.14001ab80
nop
mov r8, rax
lea rdx, str.Error_opening_registry_key._Code:
lea rcx, [rsp + 0x78]
call fcn.1400077d0
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140029c90
lea rdx, [0x14017b9f8]
lea rcx, [rsp + 0x38]
call fcn.1400d5a30
nop
cmp qword [rbx + 0x18], 8
jb 0x14002c43d
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov ebx, eax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, 0xfffffffc
jne 0x14002c46b
cmp ebx, 1
jne 0x14002c4ac
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.14001ab80
nop
mov r8, rax
lea rdx, str.Failed_to_delete_registry_value._Error_code:
lea rcx, [rsp + 0x58]
call fcn.1400077d0
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140029c90
lea rdx, [0x14017b9f8]
lea rcx, [rsp + 0x38]
call fcn.1400d5a30
nop
mov al, 1
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400b48a0
add rsp, 0xb0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002dbb0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140184aa8]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rdi, rdx
mov r9, rcx
movzx edx, byte [r8 + 0x10]
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movzx eax, byte [r8 + 0x11]
mov r10, qword [r9 + 0x30]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x12]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x13]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [r9 + 0x18]
and r10, rdx
shl r10, 4
add rcx, r10
cmp qword [rcx + 8], r8
jne 0x14002dc50
cmp qword [rcx], r8
jne 0x14002dc46
mov rax, qword [r9 + 8]
mov qword [rcx], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
mov qword [r10 + rcx + 8], rax
jmp 0x14002dc5b
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
jmp 0x14002dc5b
cmp qword [rcx], r8
jne 0x14002dc5b
mov rax, qword [r8]
mov qword [rcx], rax
mov rcx, qword [r8 + 8]
mov rbx, qword [r8]
mov qword [rcx], rbx
mov rcx, qword [r8 + 8]
mov rdx, qword [r8]
mov qword [rdx + 8], rcx
mov rcx, r8
dec qword [r9 + 0x10]
call fcn.1400b48f8
mov rax, rdi
mov qword [rdi], rbx
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1400b48a0
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002f760
Capabilities:
Shutdown system

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x140184aa8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [r11 - 0x38], 0xffffffffffffffff
lea r8, [r11 - 0x20]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupPrivilegeValueW]
xor edi, edi
test eax, eax
je 0x14002f836
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x90]
lea edx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x14002f836
mov dword [rsp + 0x98], 1
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x9c], rax
mov dword [rsp + 0xa4], 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 0x10]
lea r8, [rsp + 0x98]
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14002f836
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor edx, edx
lea r8d, [rdi + 0x28]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
mov ebx, edi
test eax, eax
jne 0x14002f844
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0xa4], edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rsp + 0x98]
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x90]
cmp rcx, 0xffffffffffffffff
je 0x14002f884
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test ebx, ebx
je 0x14002f8c9
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001ab80
nop
mov r8, rax
lea rdx, str.Failed_to_restart_system._Error_code:
lea rcx, [rsp + 0x70]
call fcn.1400077d0
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140029c90
lea rdx, [0x14017b9f8]
lea rcx, [rsp + 0x38]
call fcn.1400d5a30
nop
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400b48a0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x14003a880
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [0x1401923e8]
movzx ebx, cl
mov rax, qword gs:[0x58]
mov ecx, 0x13c
mov rax, qword [rax + rdx*8]
mov eax, dword [rax + rcx]
cmp dword [0x14018d4b0], eax
jg 0x14003aa1d
cmp byte [0x14018d488], 0
jne 0x14003aa10
test bl, bl
jne 0x14003a8d6
lea rcx, str.IoctlLog.dll
call fcn.14003a780
mov qword [0x14018d4a0], rax
jmp 0x14003a8dd
mov rax, qword [0x14018d4a0]
test rax, rax
jne 0x14003a916
lea rcx, str.IoctlNet.dll
call fcn.14003a780
mov qword [0x14018d4a0], rax
test rax, rax
jne 0x14003a916
lea rcx, str.IoctlSim.dll
call fcn.14003a780
mov qword [0x14018d4a0], rax
test rax, rax
je 0x14003aa10
mov rdx, qword [str.ismInit]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rdx, qword [str.ismExit]
mov rcx, qword [0x14018d4a0]
mov qword [0x14018d4c8], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rdx, qword [str.deviceIoControlSimEx]
mov rcx, qword [0x14018d4a0]
mov qword [0x14018d4d0], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rdx, qword [str.CreateFileASimEx]
mov rcx, qword [0x14018d4a0]
mov qword [0x14018d4a8], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rdx, qword [str.CloseHandleSimEx]
mov rcx, qword [0x14018d4a0]
mov qword [0x14018d4b8], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rcx, qword [0x14018d4c8]
mov qword [0x14018d4c0], rax
test rcx, rcx
je 0x14003aa10
cmp qword [0x14018d4d0], 0
je 0x14003aa10
cmp qword [0x14018d4a8], 0
je 0x14003aa10
cmp qword [0x14018d4b8], 0
je 0x14003aa10
test rax, rax
je 0x14003aa10
call rcx
mov rax, qword [0x14018d4c8]
mov qword [0x14018d490], rax
mov rax, qword [0x14018d4d0]
mov qword [0x14018d498], rax
mov rax, qword [0x14018d4b8]
mov qword [0x14018d478], rax
mov rax, qword [0x14018d4c0]
mov qword [0x14018d480], rax
mov rax, qword [0x14018d4a8]
mov qword [0x14018d470], rax
mov byte [0x14018d488], 1
add rsp, 0x20
pop rbx
ret
lea rcx, [0x14018d4b0]
call fcn.1400b5174
cmp dword [0x14018d4b0], 0xffffffff
jne 0x14003a8b0
mov rax, qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
lea rcx, [0x14018d4b0]
mov qword [0x14018d4a8], rax
mov rax, qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
mov qword [0x14018d4b8], rax
mov rax, qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x14018d4c0], rax
call fcn.1400b5114
jmp 0x14003a8b0
Function at 0x14004c6c0
Capabilities:
Get disk size

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x140184aa8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r12, r9
mov r14, r8
mov r15, rdx
mov qword [rsp + 0x80], rdx
mov r13, qword [rsp + 0x220]
mov dword [rsp + 0x70], 0
xor eax, eax
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov qword [rdx + 0x20], rax
mov rcx, rdx
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::constructor_void____ptr64
mov dword [rsp + 0x70], 1
movzx eax, byte [r14 + 0xf]
movzx ecx, byte [r14 + 0xe]
movzx edx, byte [r14 + 0xd]
movzx r10d, byte [r14 + 0xc]
movzx r11d, byte [r14 + 0xb]
movzx ebx, byte [r14 + 0xa]
movzx edi, byte [r14 + 9]
movzx esi, byte [r14 + 8]
movzx ebp, word [r14 + 6]
movzx r9d, word [r14 + 4]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebp
mov r8d, dword [r14]
lea rdx, str..Volume_08lX__04hX__04hX__02hhX_02hhX__02hhX_02hhX_02hhX_02hhX_02hhX_02hhX_
lea rcx, [rsp + 0xa0]
call fcn.14004b690
xor eax, eax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x14004c810
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8d, eax
xor r9d, r9d
lea edx, [r9 + 1]
mov rcx, r15
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::SetError_enum_CConsolidatedError::ISDI2_ERROR_TYPE__unsigned_long_int__char_const____ptr64____ptr64
lea rdx, str.GetDiskFreeSpaceEx___failed_in_Disk::getVolumeFreeSpace
mov rcx, r15
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::AddDebugInformation_char_const____ptr64____ptr64
jmp 0x14004c828
mov rax, qword [rsp + 0x98]
mov qword [r13], rax
mov rax, qword [rsp + 0x88]
mov qword [r12], rax
mov rax, r15
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400b48a0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006e650
Capabilities:
Delete registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140184aa8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
call fcn.14006e6f0
lea rcx, [rsp + 0x30]
or eax, 0xf003f
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov rcx, rbx
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
je 0x14006e6bd
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x14006e6da
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b48a0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x14006e790
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x140184aa8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, qword [rsp + 0xb0]
mov r15, r9
mov rsi, qword [rsp + 0xb8]
mov r14, r8
mov rdi, rdx
mov dword [rsp + 0x30], 0
mov rbx, rcx
call fcn.14006e6f0
lea rcx, [rsp + 0x38]
or eax, 0x20019
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov rcx, rbx
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
je 0x14006e821
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x14006e911
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov rdx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
mov edi, dword [rsp + 0x30]
mov ebx, eax
test rbp, rbp
je 0x14006e861
cmp dword [rsi], edi
jae 0x14006e861
mov ebx, 0xea
jmp 0x14006e904
test eax, eax
jne 0x14006e904
test rbp, rbp
je 0x14006e902
mov r8d, dword [rsi]
xor edx, edx
mov rcx, rbp
call fcn.1400d5b20
inc edi
mov ecx, edi
mov dword [rsp + 0x30], edi
call fcn.1400d6550
mov rdi, rax
test rax, rax
je 0x14006e8fb
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.1400d5b20
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x14006e8f1
mov r8d, dword [rsi]
xor edx, edx
mov rcx, rbp
call fcn.1400d5b20
mov r9d, dword [rsp + 0x30]
mov r8, rdi
mov edx, dword [rsi]
mov rcx, rbp
call fcn.14003e8d0
mov eax, dword [rsp + 0x30]
mov dword [rsi], eax
mov rcx, rdi
call fcn.1400ddefc
jmp 0x14006e904
mov ebx, 0x7a
jmp 0x14006e904
mov dword [rsi], edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b48a0
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006e980
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140184aa8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, qword [rsp + 0xc0]
mov r12d, r9d
mov r15, r8
mov r14, rdx
mov rbp, rcx
call fcn.14006e6f0
mov edi, dword [rsp + 0xd0]
lea rcx, [rsp + 0x50]
or eax, edi
mov qword [rsp + 0x20], rcx
mov rcx, rbp
mov r9d, eax
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
je 0x14006ea00
lea rax, [rsp + 0x50]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
je 0x14006ea3d
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
or edi, 2
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov rdx, r14
mov dword [rsp + 0x20], ecx
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExA]
mov ebx, eax
test eax, eax
jne 0x14006ea75
test rsi, rsi
je 0x14006ea68
mov eax, dword [rsp + 0xc8]
mov r9d, r12d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, r15
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b48a0
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret