joyce8/EMBER2024-capa huggingface dataset:
Function at 0x164f9fac0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov byte [r11 + 0x20], r9b
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, rcx
mov rbp, rdx
mov rsi, r8
mov eax, 0xffffffff
cmp r8, rax
ja 0x164f9fc18
cmp qword [rcx + 0x18], 7
jbe 0x164f9fb11
mov rcx, qword [rcx]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.164f9ef40
nop
mov rcx, rax
call fcn.164f9f0c0
nop
lea rcx, [rsp + 0x60]
call fcn.164e54bf0
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x164f9fb63
mov rcx, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 5]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x90], rax
cmp rax, 0xffffffffffffffff
je 0x164f9fc51
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x164f9fbec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.165001080
add rsp, 0xc8
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea r8, str.set_file_content
lea rcx, [rsp + 0x60]
call fcn.164e9bd80
lea rdx, [0x165147178]
lea rcx, [rsp + 0x60]
call fcn.165003be0
nop
lea rdx, str.set_file_content_content_is_too_large
lea rcx, [rsp + 0x40]
call fcn.164e53f80
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x90]
call fcn.164e47150
lea rdx, [0x165147178]
lea rcx, [rsp + 0x90]
call fcn.165003be0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.set_file_content_
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x15
mov r9, rdi
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.164ee34d0
lea rdx, [0x165147178]
lea rcx, [rsp + 0x60]
call fcn.165003be0
int3
Function at 0x164fa0090
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
xor ebx, ebx
lea rax, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x40
mov qword [rsp + 0x40], 0xffffffff80000002
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.164ed6240
mov qword [rbp + 0x178], rbx
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x180], rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x188]
call fcn.164ed6460
mov eax, dword [rbp + 0x178]
mov dword [rbp + 0x3b8], eax
mov eax, dword [rbp + 0x17c]
mov dword [rbp + 0x3bc], eax
mov byte [rbp + 0x3c0], 1
mov rax, qword [rbp + 0x3e8]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x180]
mov rbx, qword [rbp + 0x3e0]
mov rcx, rbx
call fcn.164fae350
nop
lea rcx, [rbp + 0x180]
call fcn.164ed5d80
nop
mov r8, qword [rbp + 0x170]
cmp r8, 7
jbe 0x164fa0184
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x150]
call fcn.164ed6580
mov rax, rbx
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4d0
pop rbp
ret
Function at 0x164fa6490
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
xor ecx, ecx
mov rax, qword [rsp + 8]
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], rcx
mov qword [rax + 0x48], rcx
mov qword [rax + 0x50], rcx
mov qword [rax + 0x58], rcx
mov qword [rax + 0x60], rcx
mov qword [rax + 0x68], rcx
mov qword [rax + 0x70], rcx
mov qword [rax + 0x78], rcx
mov qword [rax + 0x80], rcx
mov qword [rax + 0x88], rcx
mov qword [rax + 0x90], rcx
mov qword [rax + 0x98], rcx
mov qword [rax + 0xa0], rcx
mov qword [rax + 0xa8], rcx
mov qword [rax + 0xb0], rcx
mov qword [rax + 0xb8], rcx
mov qword [rax + 0xc0], rcx
mov qword [rax + 0xc8], rcx
mov qword [rax + 0xd0], rcx
mov qword [rax + 0xd8], rcx
mov qword [rax + 0xe0], rcx
mov qword [rax + 0xe8], rcx
mov qword [rax + 0xf0], rcx
mov qword [rax + 0xf8], rcx
mov qword [rax + 0x100], rcx
mov qword [rax + 0x108], rcx
mov qword [rax + 0x110], rcx
mov qword [rax + 0x118], rcx
mov qword [rax + 0x120], rcx
mov qword [rax], rcx
mov dword [rax + 8], 0x6a09e667
mov dword [rax + 0xc], 0xbb67ae85
mov dword [rax + 0x10], 0x3c6ef372
mov dword [rax + 0x14], 0xa54ff53a
mov dword [rax + 0x18], 0x510e527f
mov dword [rax + 0x1c], 0x9b05688c
mov dword [rax + 0x20], 0x1f83d9ab
mov dword [rax + 0x24], 0x5be0cd19
ret
Function at 0x164fa6e00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, qword [rbp + 0x67]
mov rdi, qword [rbp + 0x6f]
cmp dword [rdi + 8], 0
jne 0x164fa6fa9
mov rcx, qword [rsi]
mov rcx, qword [rcx + 0x2b0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rbx, qword [rsi]
mov ecx, 8
call fcn.165001480
mov qword [rax], rbx
mov qword [rbp + 0x27], rax
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x164fa9790]
xor edx, edx
xor ecx, ecx
call fcn.165027518
mov qword [rbp - 0x29], rax
test rax, rax
je 0x164fa6fd1
cmp dword [rdi + 8], 0
jne 0x164fa6fcb
xorps xmm0, xmm0
movaps xmm1, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
movups xmmword [rdi], xmm1
mov rax, qword [rsi]
add rax, 0x228
cmp qword [rax + 0x18], 7
jbe 0x164fa6ebf
mov rax, qword [rax]
lea rcx, str.registry_change_watcher:_
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x11], 0x1b
mov qword [rbp - 0x21], rax
movabs rax, 0xb000000000000000
mov qword [rbp - 0x29], rax
mov qword [rbp + 0x27], 1
lea rax, [rbp - 0x29]
mov qword [rbp + 0x2f], rax
movaps xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp + 0x27], xmm0
movaps xmm1, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm1
lea r8, [rbp + 0x27]
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.164e59d70
nop
lea rbx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rbx, qword [rbp + 7]
mov rsi, qword [rdi]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x164fa6f5e
lea rdx, str.SetThreadDescription
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x164fa6f5e
mov rdx, rbx
mov rcx, rsi
call qword [case.0x164e9d7b8.0]
jmp 0x164fa6f9c
mov r8, 0xffffffffffffffff
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.164e46c20
lea rbx, [rbp - 0x19]
cmp qword [rbp - 1], 0xf
cmova rbx, qword [rbp - 0x19]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov rdx, rbx
mov ecx, eax
call fcn.164fb0dc0
lea rcx, [rbp - 0x19]
call fcn.164e48400
nop
lea rcx, [rbp + 7]
call fcn.164e54bf0
cmp dword [rdi + 8], 0
setne al
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.165001080
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
call fcn.165021a48
nop
mov dword [rbp - 0x21], 0
mov ecx, 6
call fcn.164fffe00
int3
Function at 0x164fadf00
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rdi, rcx
mov qword [rax - 0x40], rcx
mov rbx, qword [rax + 0x10]
xor ebp, ebp
mov dword [rax - 0x68], ebp
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x164fadf33
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea edx, [rax - 1]
mov rcx, rdi
call fcn.164e53670
mov r8, qword [rdi + 0x10]
inc r8
mov eax, r8d
cmp rax, r8
jne 0x164fadfe8
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x164fadf87
mov rdx, qword [rdi]
cmp qword [rbx + 0x18], 7
jbe 0x164fadf91
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x164fae013
cmp eax, esi
jne 0x164fadfb5
mov rax, rdi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.String_environment_expansion_failed_due_to_unexpected_buffer_size
lea rcx, [rsp + 0x50]
call fcn.164e53f80
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.164fae050
lea rdx, [0x1651482b8]
lea rcx, [rsp + 0x28]
call fcn.165003be0
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x28]
call fcn.164e588b0
lea rdx, [0x165146ee8]
lea rcx, [rsp + 0x28]
call fcn.165003be0
int3
lea rdx, str.String_environment_expansion_failed
lea rcx, [rsp + 0x28]
call fcn.164e53f80
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.164fae050
lea rdx, [0x1651482b8]
lea rcx, [rsp + 0x50]
call fcn.165003be0
int3
Function at 0x164fae0a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rcx, qword [rbp + 0x67]
mov rdi, qword [rbp + 0x6f]
mov r8d, 1
lea rdx, [rbp - 0x29]
call fcn.164fada40
nop
xor ebx, ebx
mov dword [rbp + 0x37], ebx
mov dword [rbp + 0x3b], 4
lea rcx, str.Cannot_query_registry_value
mov qword [rbp + 0x17], rcx
mov qword [rbp + 0x1f], rbx
lea rcx, [rbp + 0x3b]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x3f]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x37]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movups xmm0, xmmword [rbp + 0x17]
movaps xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rdi]
movaps xmmword [rbp - 9], xmm1
lea rdx, [rbp - 0x19]
mov ecx, eax
call fcn.164fad870
nop
cmp byte [rbp - 0x21], bl
jne 0x164fae14d
mov qword [rbp - 0x29], rbx
jmp 0x164fae151
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x164fae16b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x164fae16b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rbp + 0x37]
cmp ecx, 4
jne 0x164fae197
mov eax, dword [rbp + 0x3f]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.165001080
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x29], xmm0
call fcn.164fad470
mov r8d, eax
lea r9, [rbp - 0x29]
mov edx, 4
lea rcx, [rbp - 0x19]
call fcn.164fb0cb0
lea rdx, [0x165148440]
lea rcx, [rbp - 0x19]
call fcn.165003be0
int3
Function at 0x164fae220
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rcx, qword [rbp + 0x67]
mov rdi, qword [rbp + 0x6f]
mov r8d, 1
lea rdx, [rbp - 0x29]
call fcn.164fada40
nop
xor ebx, ebx
mov dword [rbp + 0x37], ebx
mov dword [rbp + 0x3b], 8
lea rcx, str.Cannot_query_registry_value
mov qword [rbp + 0x17], rcx
mov qword [rbp + 0x1f], rbx
lea rcx, [rbp + 0x3b]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x3f]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x37]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movups xmm0, xmmword [rbp + 0x17]
movaps xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rdi]
movaps xmmword [rbp - 9], xmm1
lea rdx, [rbp - 0x19]
mov ecx, eax
call fcn.164fad870
nop
cmp byte [rbp - 0x21], bl
jne 0x164fae2cd
mov qword [rbp - 0x29], rbx
jmp 0x164fae2d1
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x164fae2eb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x164fae2eb
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rbp + 0x37]
cmp ecx, 0xb
jne 0x164fae318
mov rax, qword [rbp + 0x3f]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.165001080
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x29], xmm0
call fcn.164fad470
mov r8d, eax
lea r9, [rbp - 0x29]
mov edx, DosDateTimeToVariantTime
lea rcx, [rbp - 0x19]
call fcn.164fb0cb0
lea rdx, [0x165148440]
lea rcx, [rbp - 0x19]
call fcn.165003be0
int3

Function at 0x164fae4f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rcx
mov rdi, rdx
xor ebp, ebp
mov dword [rsp + 0x70], ebp
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
lea r8d, [rbp + 1]
lea rdx, [r11 - 0x30]
call fcn.164fada40
nop
lea rax, str.Cannot_query_registry_value_type
mov qword [rsp + 0x30], rax
mov eax, ebp
cmp byte [rbx + 0x240], 1
cmove rax, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rdi]
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rdi]
movaps xmmword [rsp + 0x60], xmm1
lea rdx, [rsp + 0x50]
mov ecx, eax
call fcn.164fad870
mov ebx, dword [rsp + 0x70]
cmp byte [rsp + 0x80], bpl
cmove rsi, rbp
test rsi, rsi
je 0x164fae5c6
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x164fae5c6
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.165001080
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x164fae5f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, qword [rbp + 0x1f0]
mov qword [rbp - 0x80], rdi
mov r12, qword [rbp + 0x1f8]
xor r13d, r13d
mov dword [rsp + 0x40], r13d
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
lea r8d, [r13 + 8]
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.164fada40
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov dword [rsp + 0x40], 1
mov r14d, r13d
mov dword [rbp - 0x78], 0x100
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x60]
xor edx, edx
mov rsi, qword [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp eax, 0x103
je 0x164fae7a7
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rdx, str.Cannot_enumerate_subkeys
nop word [rax + rax]
mov rax, r13
cmp byte [r12 + 0x240], 1
cmove rax, r12
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
lea rdx, [rsp + 0x60]
call fcn.164fad870
mov r15d, dword [rbp - 0x78]
mov qword [rsp + 0x50], r15
lea rbx, [rbp - 0x60]
lea rbx, [rbx + r15*2]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.164ffe530
cmp rax, rbx
jne 0x164fae761
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x164fae751
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov r8d, r15d
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.164e485e0
add qword [rdi + 8], 0x20
jmp 0x164fae761
lea r9, [rsp + 0x48]
mov rdx, rax
mov rcx, rdi
call fcn.164fb0710
inc r14d
mov dword [rbp - 0x78], 0x100
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x60]
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp eax, 0x103
lea rdx, str.Cannot_enumerate_subkeys
jne 0x164fae6d0
cmp byte [rbp - 0x68], 0
cmove rsi, r13
test rsi, rsi
je 0x164fae7c9
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x164fae7c9
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.165001080
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x164faea40
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, rcx
mov qword [rsp + 0x48], rcx
mov r14, rdx
mov ebx, r8d
mov dword [rsp + 0x40], ebx
mov r15, r9
mov qword [r11 - 0x60], rbx
mov rcx, qword [rdx + 0x10]
sub rcx, qword [rdx]
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbx, rdx
jbe 0x164faeabe
lea rdx, [r11 - 0x60]
mov rcx, r14
call fcn.164fb0460
xor ecx, ecx
mov r13d, ecx
test ebx, ebx
je 0x164faec7e
mov ebx, dword [rsp + 0xe0]
mov r12d, ebx
lea rdi, [r15 + 0x88]
lea rsi, [r15 + 0x90]
mov rax, qword [rdi + 0x18]
cmp r12, rax
ja 0x164faeb05
lea rax, [rdi + 8]
cmp qword [rax + 0x18], 7
jbe 0x164faeafa
mov rax, qword [rax]
mov qword [rdi + 0x18], r12
mov word [rax + r12*2], cx
jmp 0x164faeb15
mov rdx, r12
sub rdx, rax
mov rcx, rdi
call fcn.164fafaa0
xor ecx, ecx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x54], ecx
mov r8, rsi
cmp qword [rsi + 0x18], 7
jbe 0x164faeb2a
mov r8, qword [rsi]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x50]
mov edx, r13d
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x164faec80
mov edx, dword [rsp + 0x50]
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x164faeb84
lea rax, [rdi + 8]
cmp qword [rax + 0x18], 7
jbe 0x164faeb78
mov rax, qword [rax]
mov qword [rdi + 0x18], rdx
xor ecx, ecx
mov word [rax + rdx*2], cx
jmp 0x164faeb8f
sub rdx, rax
mov rcx, rdi
call fcn.164fafaa0
lea rbx, [r15 + 0xa0]
cmp qword [r15 + 0xa8], 7
jbe 0x164faebb3
mov rcx, qword [r15 + 0x90]
mov rax, qword [rbx]
lea rdx, [rcx + rax*2]
mov rcx, qword [rsi]
jmp 0x164faebc1
mov rdx, qword [rbx]
add rdx, 0x48
lea rdx, [r15 + rdx*2]
mov rcx, rsi
xor r8d, r8d
sub rdx, rcx
sar rdx, 1
lea rdx, [rcx + rdx*2]
call fcn.164ffe530
lea rdx, [r15 + 0x90]
mov r8, qword [rdx + 0x18]
cmp r8, 7
jbe 0x164faebe7
mov rdx, qword [rdx]
mov rcx, qword [rbx]
lea rdx, [rdx + rcx*2]
cmp rax, rdx
jne 0x164faec64
mov ebp, dword [rsp + 0x54]
mov dword [rsp + 0x58], ebp
mov rbx, qword [r14 + 8]
cmp rbx, qword [r14 + 0x10]
je 0x164faec4c
mov rdx, rsi
cmp r8, 7
jbe 0x164faec11
mov rdx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], ax
jne 0x164faec30
mov rcx, rbx
call fcn.164e485e0
mov dword [rbx + 0x20], ebp
add qword [r14 + 8], 0x28
jmp 0x164faec5f
lea r9, [rsp + 0x58]
mov r8, r15
mov rdx, rbx
mov rcx, r14
call fcn.164fb0860
mov rbp, qword [rsp + 0x48]
inc r13d
cmp r13d, dword [rsp + 0x40]
mov ebx, dword [rsp + 0xe0]
mov ecx, 0
jb 0x164faeae3
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.165001080
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x164faf220
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov dword [rsp + 0x10], edx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x2f0
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rdi, rcx
xor esi, esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
lea r8d, [rsi + 0xb]
lea rdx, [rsp + 0x60]
call fcn.164fada40
nop
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x98], sil
mov byte [rsp + 0x2d0], sil
lea rcx, [rsp + 0x90]
call fcn.164faf440
nop
lea rcx, [rsp + 0x90]
call fcn.164ed5d80
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x90]
call fcn.165040130
mov dword [rsp + 0x50], 0x200
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x200
lea r8, [rsp + 0x90]
lea edx, [rsi + 3]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtQueryKey]
lea rcx, str.Cannot_query_kernel_mode_registry_key_path
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea rdx, [rsp + 0x30]
mov ecx, eax
call fcn.164fad870
mov r8d, dword [rsp + 0x90]
shr r8, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rsi
lea rdx, [rsp + 0x94]
lea rcx, [rsp + 0x70]
call fcn.164e485e0
nop
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x70]
cmp qword [rsp + 0x88], 7
cmova rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.164faf0e0
nop
movzx ebx, byte [rdi + 0x240]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
lea rcx, str.Cannot_delete_registry_key
mov qword [rsp + 0x30], rcx
cmp bl, 1
cmovne rdi, rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea rdx, [rsp + 0x30]
mov ecx, eax
call fcn.164fad870
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x164faf3d8
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x70]
call fcn.164e54bf0
nop
mov rcx, qword [rsp + 0x60]
cmp byte [rsp + 0x68], 0
cmove rcx, rsi
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x164faf413
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x164faf413
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.165001080
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret