joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140059ff0
Capabilities:
Create thread

Disassembly:
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x140059ff0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [0x140117280]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [rsp + 0x60]
xor ebp, ebp
mov ecx, 0xb0
call fcn.140081f4c
mov rbx, rax
mov qword [rsp + 0x40], rax
mov word [rax], bp
lea rcx, [rax + 8]
mov dword [rcx], ebp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rbp
lea edx, [rbp + 2]
call fcn.140081174
lea rcx, [rbx + 0x58]
call fcn.140081834
xorps xmm0, xmm0
movups xmmword [rbx + 0xa0], xmm0
mov rdi, qword [rsi - 0x28]
mov qword [rsi - 0x28], rbx
test rdi, rdi
je 0x14005a0a8
cmp dword [rdi + 0xa8], ebp
jne 0x14005a146
lea rcx, [rdi + 0x58]
call fcn.140080720
lea rcx, [rdi + 8]
call fcn.140080720
mov edx, 0xb0
mov rcx, rdi
call fcn.140081f10
lea rbx, [rsi - 0x110]
mov ecx, 8
call fcn.140081f4c
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x14005b0c0]
xor edx, edx
xor ecx, ecx
call fcn.140097af8
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14005a137
mov rax, qword [rsi - 0x28]
cmp dword [rax + 0xa8], 0
jne 0x14005a14c
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rax + 0xa0], xmm1
cmp dword [rsp + 0x38], 0
jne 0x14005a14c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140081ef0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov dword [rsp + 0x38], ebp
mov ecx, 6
call fcn.140081430
nop
call fcn.140097990
int3
call fcn.140097990
int3
Function at 0x14005bd10
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov dword [rax - 0x28], ebx
mov rsi, r8
mov rdi, rdx
sub rsi, rdx
xorps xmm0, xmm0
mov r14, rcx
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bl
mov dword [rax - 0x28], 1
lea rcx, [rsi + 2]
movabs rax, 0x5555555555555556
imul rcx
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov eax, 4
mul rdx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, r14
call fcn.140027770
mov r9, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x14005bda0
mov r9, qword [r14]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp rsi, 3
jl 0x14005be3e
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
shr rdx, 1
imul rax, rdx, 0xfffffffffffffffd
add rsi, rax
nop dword [rax + rax]
movzx r8d, byte [rdi]
movzx eax, byte [rdi + 1]
movzx ecx, byte [rdi + 2]
add rdi, 3
shl r8, 8
or r8, rax
shl r8, 8
or r8, rcx
mov rax, r8
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r9 + rbx], al
mov rax, r8
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [r9 + rbx + 1], al
mov rax, r8
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [r9 + rbx + 2], al
and r8d, 0x3f
movzx eax, byte [r8 + r10]
mov byte [r9 + rbx + 3], al
add rbx, 4
sub rdx, 1
jne 0x14005bdd0
cmp rsi, 2
jne 0x14005bea2
movzx edx, byte [rdi]
shl rdx, 8
movzx eax, byte [rdi + 1]
or rdx, rax
shl rdx, 8
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r9 + rbx], al
mov rcx, rdx
shr rcx, 0xc
and ecx, 0x3f
movzx ecx, byte [rcx + r10]
mov byte [r9 + rbx + 1], cl
shr rdx, 6
and edx, 0x3f
movzx ecx, byte [rdx + r10]
mov byte [r9 + rbx + 2], cl
mov byte [r9 + rbx + 3], 0x3d
mov rax, r14
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
cmp rsi, 1
jne 0x14005bed8
movzx ecx, byte [rdi]
shl rcx, 0x10
mov rax, rcx
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r9 + rbx], al
shr rcx, 0xc
and ecx, 0x3f
movzx eax, byte [rcx + r10]
mov byte [r9 + rbx + 1], al
mov word [r9 + rbx + 2], 0x3d3d
mov rax, r14
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14005ea10
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [0x140117280]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, qword [rdx]
mov rax, rdx
mov rbx, qword [rdx + 8]
mov eax, 0xffffffff
sub rbx, rsi
mov rdi, rcx
cmp rbx, rax
ja 0x14005ead7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], 0
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14005eaac
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140081ef0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.set_file_content
lea rcx, [rsp + 0x30]
call fcn.14006eb60
lea rdx, [0x140114190]
lea rcx, [rsp + 0x30]
call fcn.140084768
int3
lea rdx, str.set_file_content_content_is_too_large
lea rcx, [rsp + 0x30]
call fcn.14006eb20
lea rdx, [0x140114190]
lea rcx, [rsp + 0x30]
call fcn.140084768
int3
Function at 0x1400638e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push r14
sub rsp, 0x68
mov rbx, qword [rsp + 0x80]
xor r14d, r14d
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140063909
mov rcx, qword [rbx]
xor edx, edx
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140063a77
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140063965
cmp qword [rbx + 0x18], 7
jbe 0x140063935
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006394b
test al, 0x10
jne 0x140063a77
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop r14
pop rbx
ret
cmp eax, 3
jne 0x140063956
mov qword [rsp + 0x90], rbp
mov rbp, r14
mov qword [rsp + 0x98], rsi
nop dword [rax]
mov rdi, qword [rbx + 0x18]
mov rcx, rbx
mov rsi, qword [rbx + 0x10]
cmp rdi, 7
jbe 0x140063994
mov rcx, qword [rbx]
lea r8, [rbp + 1]
mov qword [rsp + 0x20], 2
lea r9, [0x1400f8538]
mov rdx, rsi
call fcn.140028210
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140063a14
lea r8, [rax + 1]
mov qword [rsp + 0x48], r14
cmp rsi, r8
mov qword [rsp + 0x50], r14
xorps xmm0, xmm0
mov rdx, rbx
cmovb r8, rsi
movups xmmword [rsp + 0x38], xmm0
cmp rdi, 7
jbe 0x1400639e2
mov rdx, qword [rbx]
lea rcx, [rsp + 0x38]
call fcn.1400075e0
cmp qword [rsp + 0x50], 7
lea rcx, [rsp + 0x38]
cmova rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x38]
call fcn.140008480
jmp 0x140063980
mov rsi, qword [rsp + 0x98]
mov rcx, rbx
mov rbp, qword [rsp + 0x90]
cmp rdi, 7
jbe 0x140063a30
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140063a77
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 7
mov edi, eax
jbe 0x140063a4e
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140063a60
test al, 0x10
jne 0x140063a77
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop r14
pop rbx
ret
mov rdi, qword [rsp + 0x60]
mov al, 1
add rsp, 0x68
pop r14
pop rbx
ret
Function at 0x140064130
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, 0xa8
mov rax, qword [0x140117280]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov rbp, rdx
mov rsi, r8
mov eax, 0xffffffff
cmp r8, rax
ja 0x140064285
cmp qword [rcx + 0x18], 7
jbe 0x140064181
mov rcx, qword [rcx]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140063760
nop
mov rcx, rax
call fcn.1400638e0
nop
lea rcx, [rsp + 0x50]
call fcn.140008480
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400641d3
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 + 0x80], rax
cmp rax, 0xffffffffffffffff
je 0x1400642a8
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140064259
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140081ef0
add rsp, 0xa8
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 + 0x50]
call fcn.14006eb60
lea rdx, [0x140114190]
lea rcx, [rsp + 0x50]
call fcn.140084768
nop
lea rdx, str.set_file_content_content_is_too_large
lea rcx, [rsp + 0x50]
call fcn.14006eb20
lea rdx, [0x140114190]
lea rcx, [rsp + 0x50]
call fcn.140084768
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 + 0x50]
call fcn.14002f170
lea rdx, [0x140114190]
lea rcx, [rsp + 0x50]
call fcn.140084768
int3
Function at 0x140064880
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rax - 0x10], rcx
xor ebx, ebx
mov dword [rax - 0x14], ebx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
mov dword [rax - 0x14], 1
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
bt esi, ebx
jae 0x1400648f1
lea eax, [rbx + 0x41]
mov word [rsp + 0x20], ax
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x1400648e4
mov word [rdx], ax
add qword [rdi + 8], 2
jmp 0x1400648f1
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.14002e4c0
inc ebx
cmp ebx, 0x1a
jl 0x1400648c3
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140064d90
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.1400066c0
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.140006c60
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.14006afe0
nop
lea rcx, [rbp + 0x180]
call fcn.140007880
nop
mov r8, qword [rbp + 0x170]
cmp r8, 7
jbe 0x140064e84
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x150]
call fcn.140007940
mov rax, rbx
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4d0
pop rbp
ret
Function at 0x140065410
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0x70
mov rax, qword [0x140117280]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [rcx]
mov eax, r8d
mov r8d, 0x104
mov dword [rsp + 0x58], eax
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14006546d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140065486
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140081ef0
add rsp, 0x70
pop rbx
ret
cmp eax, 0x104
jbe 0x14006547b
mov eax, 0xea
jmp 0x140065486
cmp word [rbx], 0x25
jne 0x14006545a
mov eax, 3
lea rcx, str.Unable_to_retrieve_a_path_of_the_known_folder____
mov qword [rsp + 0x28], 0x33
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x58]
lea rcx, [rsp + 0x30]
mov edx, eax
lea r8, [rsp + 0x20]
call fcn.140065350
lea rdx, [0x140114190]
lea rcx, [rsp + 0x30]
call fcn.140084768
int3
Function at 0x14006a790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd rax, dword [rcx + 0x3c]
mov esi, edx
xor edx, edx
mov r8d, dword [rax + rcx + 0x88]
mov r9, rcx
add r8, rcx
mov r10d, dword [r8 + 0x20]
mov r11d, dword [r8 + 0x1c]
mov ebx, dword [r8 + 0x24]
mov edi, dword [r8 + 0x18]
add r10, rcx
add r11, rcx
add rbx, rcx
test edi, edi
je 0x14006a801
mov ecx, dword [r10]
add rcx, r9
xor r8d, r8d
jmp 0x14006a7ec
movzx eax, al
inc rcx
or eax, 0x60
add r8d, eax
add r8d, r8d
mov al, byte [rcx]
test al, al
jne 0x14006a7dd
cmp r8d, esi
je 0x14006a813
inc edx
add r10, 4
cmp edx, edi
jb 0x14006a7d2
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
movzx ecx, word [rbx + rdx*2]
mov eax, dword [r11 + rcx*4]
add rax, r9
jmp 0x14006a803

Function at 0x14006a990
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 0x14006ad50
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 rdi
sub rsp, 0x90
mov rax, qword [0x140117280]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rdx
mov r8d, 1
lea rdx, [r11 - 0x68]
call fcn.14006c1f0
nop
xor edi, edi
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x74], 4
lea rcx, [rsp + 0x74]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, str.Cannot_query_registry_value
mov ecx, eax
call fcn.14006aaa0
nop
cmp byte [rsp + 0x38], dil
jne 0x14006addf
mov qword [rsp + 0x30], rdi
jmp 0x14006ade4
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14006adfe
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14006adfe
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rsp + 0x70]
cmp ecx, 4
jne 0x14006ae2c
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140081ef0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
call fcn.14002e680
mov r8d, eax
mov edx, 4
lea rcx, [rsp + 0x40]
call fcn.14006c0a0
lea rdx, [0x140114c88]
lea rcx, [rsp + 0x40]
call fcn.140084768
int3

Function at 0x14006aed0
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 rdi
sub rsp, 0x90
mov rax, qword [0x140117280]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rdx
mov r8d, 1
lea rdx, [r11 - 0x68]
call fcn.14006c1f0
nop
xor edi, edi
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x74], 8
lea rcx, [rsp + 0x74]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, str.Cannot_query_registry_value
mov ecx, eax
call fcn.14006aaa0
nop
cmp byte [rsp + 0x38], dil
jne 0x14006af5f
mov qword [rsp + 0x30], rdi
jmp 0x14006af64
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14006af7e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14006af7e
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rsp + 0x70]
cmp ecx, 0xb
jne 0x14006afad
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140081ef0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
call fcn.14002e680
mov r8d, eax
mov edx, 0xb
lea rcx, [rsp + 0x40]
call fcn.14006c0a0
lea rdx, [0x140114c88]
lea rcx, [rsp + 0x40]
call fcn.140084768
int3
Function at 0x14006b700
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x2e0
mov rax, qword [0x140117280]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rcx, qword [rsp + 0x2f0]
xor ebx, ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
lea r8d, [rbx + 0xb]
lea rdx, [rsp + 0x50]
call fcn.14006c1f0
nop
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
mov byte [rsp + 0x88], bl
mov byte [rsp + 0x2c0], bl
lea rcx, [rsp + 0x80]
call fcn.14006b8c0
nop
lea rcx, [rsp + 0x80]
call fcn.140007880
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x80]
call fcn.1400b1de0
mov dword [rsp + 0x40], 0x200
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x200
lea r8, [rsp + 0x80]
lea edx, [rbx + 3]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtQueryKey]
lea rdx, str.Cannot_query_kernel_mode_registry_key_path
mov ecx, eax
call fcn.14006aaa0
mov r8d, dword [rsp + 0x80]
shr r8, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
lea rdx, [rsp + 0x84]
lea rcx, [rsp + 0x60]
call fcn.1400075e0
nop
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.14006b5d0
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
lea rdx, str.Cannot_delete_registry_key
mov ecx, eax
call fcn.14006aaa0
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14006b865
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x60]
call fcn.140008480
nop
mov rcx, qword [rsp + 0x50]
cmp byte [rsp + 0x58], 0
cmove rcx, rbx
mov qword [rsp + 0x50], rcx
test rcx, rcx
je 0x14006b8a0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14006b8a0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140081ef0
add rsp, 0x2e0
pop rbx
ret

Function at 0x14006b8c0
Capabilities:
Delete registry key

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140117280]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov r8d, 0xb
lea rdx, [rsp + 0x20]
call fcn.14006c1f0
nop
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
lea rdx, str.Cannot_delete_registry_key_tree
mov ecx, eax
call fcn.14006aaa0
nop
mov rcx, qword [rsp + 0x20]
xor eax, eax
cmp byte [rsp + 0x28], al
cmove rcx, rax
mov qword [rsp + 0x20], rcx
test rcx, rcx
je 0x14006b942
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14006b942
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140081ef0
add rsp, 0x48
ret
Function at 0x14006b960
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140117280]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, qword [rbp + 0x1e0]
mov rsi, qword [rbp + 0x1e8]
mov r14, qword [rbp + 0x1f0]
mov r15d, dword [rbp + 0x1f8]
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movsx rax, byte [rbx + 0x240]
add rax, 1
je 0x14006bb12
cmp rax, 1
je 0x14006ba91
mov rax, qword [rbx]
mov qword [rsp + 0x50], rax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x58]
call fcn.140006c60
mov ecx, dword [rbx + 0x238]
mov eax, dword [rbx + 0x23c]
mov dword [rbp + 0x18c], eax
or ecx, 6
mov dword [rbp + 0x188], ecx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14006b280
mov rbx, qword [rax]
mov qword [rsp + 0x38], rbx
mov qword [rax], r12
mov dil, 1
mov byte [rsp + 0x40], dil
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14006ba50
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14006ba50
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x30], r12
mov r8, qword [rbp + 0x180]
cmp r8, 7
jbe 0x14006ba75
mov rdx, qword [rbp + 0x168]
lea rcx, [rbp + 0x160]
call fcn.140007940
mov qword [rbp + 0x178], r12
mov qword [rbp + 0x180], 7
mov word [rbp + 0x168], r12w
jmp 0x14006baa1
mov rbx, qword [rbx]
mov qword [rsp + 0x38], rbx
xor dil, dil
mov byte [rsp + 0x40], dil
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r14
mov r9d, dword [rbp + 0x200]
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rdx, str.Cannot_write_key_value
mov ecx, eax
call fcn.14006aaa0
nop
test dil, dil
cmove rbx, r12
test rbx, rbx
je 0x14006baf1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14006baf1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140081ef0
add rsp, 0x2a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14006c060
int3