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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov r15, rcx
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 0x41
xor edi, edi
mov word [rbp - 0x20], di
lea r13, [0x1400ac888]
mov qword [rbp - 0x38], r13
lea rax, [0x1400ac7e8]
mov qword [rbp - 0x40], rax
mov dword [rbp + 0x68], edi
mov qword [rbp + 0x70], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 0xf003f
mov r8, qword [r8]
lea rcx, [rbp - 0x40]
call fcn.140010e54
test eax, eax
js 0x1400353fc
mov esi, edi
mov dword [rsp + 0x30], 0x100
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x140]
mov edx, esi
lea rcx, [rbp - 0x40]
call fcn.140010f90
mov r14d, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x103
je 0x1400111f7
test r14d, r14d
je 0x14003545c
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 0x41
mov word [rbp + 0xa0], di
mov qword [rbp + 0x88], r13
lea rax, [0x1400ac7e8]
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x128], edi
mov qword [rbp + 0x130], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 0xf003f
lea r8, [rbp + 0x140]
mov rdx, qword [rbp + 0x70]
lea rcx, [rbp + 0x80]
call fcn.140010e54
test eax, eax
js 0x14003542f
lea rax, [0x1400ac9e0]
mov qword [rsp + 0x40], rax
lea rdx, [0x1400df9f8]
lea rcx, [rsp + 0x48]
call fcn.140019adc
nop
lea rdx, [0x1400df9f8]
lea rcx, [rsp + 0x50]
call fcn.140019adc
nop
mov byte [rsp + 0x78], dil
lea rcx, [rbp - 0x80]
call fcn.1400199b8
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400115e0
test eax, eax
js 0x1400111cf
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x80]
mov rcx, r15
call fcn.140018f78
inc esi
lea rcx, [rbp - 0x80]
call fcn.1400159b0
nop
lea rcx, [rsp + 0x40]
call fcn.1400176a0
nop
lea rcx, [rbp + 0x80]
call fcn.140012244
jmp 0x1400110b6
mov ebx, edi
lea rcx, [rbp - 0x40]
call fcn.140012244
mov eax, ebx
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.140024c10
add rsp, 0x450
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
nop
cmp eax, 2
je 0x14003541f
test eax, eax
jg 0x140035416
mov edi, eax
jmp 0x14003541f
movzx edi, ax
or edi, 0x80070000
lea rcx, [rbp - 0x40]
call fcn.140012244
mov eax, edi
jmp 0x140011204
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14003544a
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [rbp + 0x80]
call fcn.140012244
nop
jmp 0x1400111f9
test eax, eax
jle 0x1400111f9
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400111f9
Function at 0x1400115e0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov r15, r8
mov rdi, rdx
mov r12, rcx
and qword [rsp + 0x60], 0
lea r8, [rsp + 0x60]
mov rcx, qword [rdx + 0xb0]
call fcn.140010d64
mov ebx, eax
test eax, eax
js 0x140011784
lea r8, [rsp + 0x58]
lea rdx, str.Include
mov rcx, rdi
call fcn.1400117c0
test eax, eax
je 0x140035708
lea r8, [rsp + 0x54]
lea rdx, str.Suppress
mov rcx, rdi
call fcn.1400117c0
test eax, eax
je 0x140035708
lea r8, [rsp + 0x50]
lea rdx, str.Default
mov rcx, rdi
call fcn.1400117c0
test eax, eax
je 0x140035708
lea r8, [rsp + 0xa8]
lea rdx, str.Policy
mov rcx, rdi
call fcn.1400117c0
test eax, eax
je 0x14003572c
mov esi, dword [rsp + 0xa8]
and dword [rsp + 0xb8], 0
lea r8, [rsp + 0xb8]
lea rdx, str.NoContent
mov rcx, rdi
call fcn.1400117c0
test eax, eax
je 0x14003574f
and dword [rsp + 0xa8], 0
lea r8, [rsp + 0xa8]
lea rdx, [0x1400b45c0]
mov rcx, rdi
call fcn.1400117c0
test eax, eax
je 0x140035767
cmp dword [rsp + 0xa8], 0
setne r14b
mov rdi, qword [rsp + 0x60]
mov rdx, rdi
lea rcx, [rsp + 0xa8]
call fcn.140013000
nop
mov byte [rsp + 0x48], r14b
mov ecx, dword [rsp + 0xb8]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], esi
mov edx, 1
mov dword [rsp + 0x30], edx
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9d, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x58]
mov rdx, rax
mov rcx, r12
call fcn.14001122c
nop
mov rcx, qword [rsp + 0xa8]
add rcx, 0xffffffffffffffe8
call fcn.140016150
mov rdx, rdi
lea rcx, [rsp + 0xa8]
call fcn.140013000
nop
mov rdx, rax
mov rcx, r15
call fcn.140013a20
nop
mov rcx, qword [rsp + 0xa8]
add rcx, 0xffffffffffffffe8
call fcn.140016150
nop
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x140011796
mov rcx, rdi
call fcn.14002532c
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140011784
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140011784
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x140035744
xor esi, esi
jmp 0x140011695
test eax, eax
jg 0x14003571e
mov ebx, eax
jmp 0x140011784
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, 0xfffffffd
jne 0x140035744
jmp 0x1400116bc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, 0xfffffffd
jne 0x140035744
jmp 0x1400116e3
Function at 0x1400117c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rdi, r8
xor ecx, ecx
mov rsi, rdx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rbx + 0xb0]
mov dword [rsp + 0x50], 4
test rcx, rcx
je 0x14001185e
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001184c
cmp dword [rsp + 0x68], 4
jne 0x14001184c
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14001183b
mov ecx, 6
jmp 0x14001184e
Function at 0x14001b8b0
Capabilities:
Encode data using xor

Disassembly:
movzx eax, byte [r8 + 0x10]
movzx r11d, cl
imul r9d, eax, 0x401
add r11b, 2
movzx eax, byte [r8 + 0x11]
mov r10d, r9d
shr r10d, 6
xor r10d, r9d
add r10d, eax
imul eax, r10d, 0x401
mov r9d, eax
shr r9d, 6
xor r9d, eax
movzx eax, byte [r8 + 0x12]
add r9d, eax
imul eax, r9d, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [r8 + 0x13]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [r8 + 0x14]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [r8 + 0x15]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [r8 + 0x16]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [r8 + 0x17]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
cmp r11b, dl
jae 0x14001b9b6
movzx r10d, r11b
shl r10, 4
add r10, r8
sub dl, r11b
movzx r11d, dl
nop dword [rax + rax]
mov r8d, dword [r10 + 8]
xor edx, edx
mov r9, qword [r10]
test r8, r8
je 0x14001b9ac
nop
movzx ecx, byte [rdx + r9]
inc rdx
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
cmp rdx, r8
jb 0x14001b990
add r10, 0x10
sub r11, 1
jne 0x14001b980
lea ecx, [rax + rax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret

Function at 0x14001bb48
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp qword [r8 + 0x18], 8
mov rdi, rcx
mov rcx, qword [r8 + 0x10]
mov rbx, rdx
mov r10, r8
jae 0x14001bbbd
xor edx, edx
movabs r9, 0xcbf29ce484222325
add rcx, rcx
je 0x14001bb95
movzx eax, byte [rdx + r10]
movabs r11, 0x100000001b3
xor r9, rax
inc rdx
imul r9, r11
cmp rdx, rcx
jb 0x14001bb77
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14001bbd0
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001bbc2
mov qword [rbx], rcx
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov r10, qword [r8]
jmp 0x14001bb66
mov rcx, qword [rdi + 8]
jmp 0x14001bbab
Function at 0x14001d42c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, r8
mov rsi, rdx
mov r14, rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [r14 + 0xb0]
test rcx, rcx
je 0x14003b824
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
mov ecx, 0xea
test eax, eax
jne 0x14003b840
mov edx, dword [rsp + 0x34]
lea eax, [rdx - 1]
cmp eax, 1
ja 0x14003b849
cmp edx, 2
je 0x14003b854
cmp ebx, ecx
mov rcx, rdi
je 0x14003b8d6
mov edx, dword [rsp + 0x30]
mov esi, edx
shr edx, 1
call fcn.14001d2a4
lea r8, [rsp + 0x40]
mov edx, esi
mov rcx, rax
call fcn.14001d560
mov rcx, qword [rsp + 0x278]
test eax, eax
js 0x14003b915
test ebx, ebx
jne 0x14003b929
mov ecx, dword [rsp + 0x30]
shr ecx, 1
mov dword [rsp + 0x30], ecx
lea eax, [rcx - 1]
neg ecx
sbb edx, edx
and edx, eax
mov rcx, rdi
call fcn.14001d5c8
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140024c10
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
mov ecx, 6
jmp 0x14003b82d
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14001d52f
cmp ebx, ecx
jne 0x14003b82b
jmp 0x14001d4b7
cmp edx, 7
je 0x14001d4c7
jmp 0x14003b82b
cmp ebx, ecx
jne 0x14003b877
mov rcx, qword [rsp + 0x278]
mov r9d, 0xce
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutildcregistry.cxx
mov edx, 0x2e3
call fcn.140053a08
mov esi, 0x104
mov edx, esi
mov rcx, rdi
call fcn.14001d2a4
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003b8b7
add eax, eax
mov dword [rsp + 0x30], eax
jmp 0x14001d507
mov rcx, qword [rsp + 0x278]
mov r9d, 0xce
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutildcregistry.cxx
mov edx, 0x2e9
call fcn.140053a08
mov edx, dword [rsp + 0x30]
shr edx, 1
call fcn.14001d2a4
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r14 + 0xb0]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14001d507
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutildcregistry.cxx
mov edx, 0x2f8
call fcn.1400665f4
mov rcx, qword [rsp + 0x278]
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutildcregistry.cxx
mov edx, 0x2fd
call fcn.140053a08
int3
Function at 0x14001f0c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, qword [rsp + 0x2b8]
mov rbp, r8
mov rbx, qword [rsp + 0x2c0]
mov r8, rdx
mov r14d, r9d
mov rsi, rdx
mov rdx, 0xffffffff80000002
lea r9, [rsp + 0x40]
call fcn.14001f168
test al, al
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
cmove rdx, rsi
mov r9d, r14d
and qword [rsp + 0x20], 0
mov r8, rbp
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140024c10
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140021528
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [0x1400b7b28]
mov rbx, rcx
mov dword [rsp + 0x5c], eax
xor edi, edi
movzx eax, word [0x1400b7b2c]
xor r9d, r9d
mov word [rsp + 0x5c], dx
xor r8d, r8d
mov rdx, qword [rcx + 8]
mov qword [r11 - 0x38], rdx
lea rdx, [r11 - 0x1c]
mov word [rsp + 0x60], ax
mov rax, qword [rcx]
lea rcx, [r11 - 0x28]
mov qword [r11 - 0x40], rcx
mov qword [r11 - 0x48], rdi
mov qword [r11 - 0x28], rdi
mov rcx, qword [rax]
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002163d
mov rcx, qword [rsp + 0x50]
lea r9d, [rdi + 4]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DriveType
mov dword [rsp + 0x58], 3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400b4230]
mov rcx, qword [rcx]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x14002163d
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140021603
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.VolumeLabel
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140021653
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140024c10
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140021678
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x480
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r8d, 0x105
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], r8d
lea rdx, [rsp + 0x260]
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
je 0x14003460c
cmp byte [rbx + 0x35], 0
lea rdi, [rsp + 0x260]
je 0x140021769
mov rcx, qword [rbx + 0x18]
call fcn.1400218b4
test al, al
je 0x140021781
lea rdx, [0x1400b4230]
lea rcx, [rsp + 0x50]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140021781
mov al, 1
mov rdi, qword [rbx + 0x18]
mov byte [rbx + 0x34], al
call qword [sym.imp.ntdll.dll_RtlIsStateSeparationEnabled]
nop dword [rax + rax]
test al, al
jne 0x140034622
mov r9b, byte [rbx + 0x35]
lea rdx, [rsp + 0x50]
mov ecx, dword [rbx + 0x30]
mov r8, rdi
call fcn.14002178c
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140024c10
mov rbx, qword [rsp + 0x498]
add rsp, 0x480
pop rdi
ret
lea rdx, [0x1400b4230]
lea rcx, [rsp + 0x50]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
setne al
jmp 0x14002171c
xor al, al
jmp 0x140021718
call fcn.14001be24
test eax, eax
jns 0x1400216e2
mov byte [rbx + 0x34], 0
jmp 0x140021747
test dword [rsp + 0x40], 0x80000
je 0x140021733
mov byte [rbx + 0x34], 0
jmp 0x140021733
Function at 0x14002178c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov dil, r9b
mov ebx, ecx
xor esi, esi
mov qword [rbp + 0x17], rsi
lea rax, [rbp + 7]
mov qword [r11 - 0x60], rax
lea rax, [rbp + 0x17]
mov qword [r11 - 0x68], rax
mov dword [rsp + 0x30], 0x2001f
mov dword [rsp + 0x28], esi
lea r8, str.SOFTWAREMicrosoftWindows_SearchVolumeInfoCache
mov rdx, 0xffffffff80000002
call fcn.14001ed04
test eax, eax
jne 0x140021877
test dil, dil
je 0x140021846
mov qword [rbp + 0xf], rsi
lea rax, [rbp + 7]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x77]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14003463a
mov rcx, qword [rbp + 0xf]
test rcx, rcx
jne 0x1400346ed
lea rax, [rbp + 0x17]
mov qword [rbp + 0x1f], rax
lea rax, [rbp + 7]
mov qword [rbp + 0x27], rax
lea rax, [rbp + 0x6f]
mov qword [rbp + 0x2f], rax
lea rax, [rbp + 0x77]
mov qword [rbp + 0x37], rax
mov edi, esi
test ebx, ebx
je 0x140021877
test bl, 1
jne 0x1400218a0
inc edi
shr ebx, 1
jne 0x14002186c
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14002188c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
lea edx, [rdi + 0x41]
lea rcx, [rbp + 0x1f]
call fcn.140021528
jmp 0x140021871
mov dword [rbp + 0xb], 3
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0xb]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.DriveType
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
lea rdx, [0x1400b4230]
mov rcx, qword [rbp + 0x6f]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140021839
mov rcx, qword [rbp + 0x77]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x14003468f
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.VolumeLabel
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x1400346de
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
lea rcx, [rbp + 0x17]
call fcn.140042a7c
nop
jmp 0x14002188c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x140021846
Function at 0x1400218e4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x48
cmp byte [0x1400df5cd], 0
jne 0x1400219e0
cmp byte [0x1400df5cc], 0
jne 0x1400219e0
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov bl, 1
mov dword [rsp + 0x20], 0x20019
mov rdx, 0xffffffff80000002
mov byte [0x1400df5cd], bl
call fcn.14001ec70
test eax, eax
jne 0x1400219e0
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x18], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ETWLogging
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14003c08a
xor bl, bl
cmp dword [0x1400dfc58], 0
mov byte [0x1400df5cc], bl
mov dword [rbp + 0x18], 4
ja 0x1400219d0
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.ETWBufferSize
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14003c0a3
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0x48
pop rbx
pop rbp
ret
cmp dword [rbp + 0x20], 4
jne 0x140021980
cmp dword [rbp + 0x28], 0
ja 0x140021982
jmp 0x140021980
cmp dword [rbp + 0x20], 4
jne 0x1400219d0
mov edx, dword [rbp + 0x30]
test edx, edx
je 0x1400219d0
call fcn.140067fbc
nop
jmp 0x1400219d0
Function at 0x1400259b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x140025a02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140025a02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140025a02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140025a02
cmp dword [rcx + 0x84], 0xe
jbe 0x140025a02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140025a04
xor al, al
add rsp, 0x28
ret
Function at 0x14002ec8e
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3708
call fcn.140028480
sub rsp, rax
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x36f0], rax
mov rax, r9
mov r9, qword [rsp + 0x3730]
mov r9, qword [r9]
mov r8, rax
mov edx, 0xdac
lea rcx, [rsp + 0x1b90]
call fcn.14002e0ba
test eax, eax
js 0x14002ed8c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov r9d, eax
lea rax, [rsp + 0x1b90]
mov qword [rsp + 0x20], rax
lea r8, [0x1400be740]
mov edx, 0xdac
lea rcx, [rsp + 0x30]
call fcn.14003f9ec
test eax, eax
js 0x14002ed28
cmp byte [0x1400df5cc], 0
je 0x14002ed28
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop dword [rax + rax]
lea rdx, [rsp + 0x30]
call fcn.14002edcc
cmp byte [0x1400df5cd], 0
jne 0x14002ed40
call fcn.1400218e4
cmp byte [0x1400df5cc], 0
jne 0x14002ed67
lea rdx, [0x1400b4c20]
mov rcx, qword [0x1400dd9b0]
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventEnabled]
nop dword [rax + rax]
test al, al
je 0x14002ed8c
test byte [0x1400dfdc2], 0x20
je 0x14002ed8c
lea r8, [rsp + 0x1b90]
lea rdx, [0x1400b4c20]
lea rcx, [0x1400dd9b0]
call fcn.14002e842
nop
jmp 0x14002ed8e
mov rcx, qword [rsp + 0x36f0]
xor rcx, rsp
call fcn.140024c10
add rsp, 0x3708
ret

Function at 0x14002ee46
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r9d, dword [rcx + 0x14]
lea r8, str._08x
mov rdi, rdx
lea rcx, [rsp + 0x38]
xor ebx, ebx
lea edx, [rbx + 0x10]
call fcn.14003f9ec
test eax, eax
js 0x14002eed9
lea rax, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x20], 2
call fcn.14001ec70
test eax, eax
jne 0x14002eed9
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edx, 1
test eax, eax
movzx ebx, bl
cmove ebx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140024c10
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140044134
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
and qword [rdx], 0
mov rsi, rdx
mov rbp, rcx
lea rdx, [0x1400b45f2]
mov ecx, 0x208
call fcn.1400252fc
lea r9, [rsp + 0x48]
mov r8d, 0x104
mov rdx, rax
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
mov r14d, 2
test eax, eax
je 0x14004418f
xor edi, edi
jmp 0x140044209
call fcn.14001be24
mov edi, eax
cmp eax, 0x800700ea
jne 0x140044205
mov ecx, dword [rsp + 0x48]
mov rax, r14
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1400b45f2]
cmovo rax, rcx
mov rcx, rax
call fcn.1400252fc
mov rdx, r14
mov rcx, rbx
mov rdi, rax
call fcn.1400252b8
mov rbx, rdi
test rdi, rdi
jne 0x1400441de
mov edi, 0x8007000e
jmp 0x140044211
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14004418b
call fcn.14001be24
mov edi, eax
test edi, edi
js 0x140044211
mov rax, rbx
xor ebx, ebx
mov qword [rsi], rax
mov rdx, r14
mov rcx, rbx
call fcn.1400252b8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret