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

Disassembly:
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x14005a240
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 [0x140117240]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [rsp + 0x60]
xor ebp, ebp
mov ecx, 0xb0
call fcn.140082810
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.140081d2c
lea rcx, [rbx + 0x58]
call fcn.140082060
xorps xmm0, xmm0
movups xmmword [rbx + 0xa0], xmm0
mov rdi, qword [rsi - 0x20]
mov qword [rsi - 0x20], rbx
test rdi, rdi
je 0x14005a2f8
cmp dword [rdi + 0xa8], ebp
jne 0x14005a396
lea rcx, [rdi + 0x58]
call fcn.1400815d0
lea rcx, [rdi + 8]
call fcn.1400815d0
mov edx, 0xb0
mov rcx, rdi
call fcn.1400827d0
lea rbx, [rsi - 0x108]
mov ecx, 8
call fcn.140082810
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, [0x14005b310]
xor edx, edx
xor ecx, ecx
call fcn.140099798
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14005a387
mov rax, qword [rsi - 0x20]
cmp dword [rax + 0xa8], 0
jne 0x14005a39c
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rax + 0xa0], xmm1
cmp dword [rsp + 0x38], 0
jne 0x14005a39c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400827b0
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.140082000
nop
call fcn.140099628
int3
call fcn.140099628
int3
Function at 0x14005bec0
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.140027720
mov r9, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x14005bf50
mov r9, qword [r14]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp rsi, 3
jl 0x14005bfee
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 0x14005bf80
cmp rsi, 2
jne 0x14005c052
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 0x14005c088
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 0x14005eb00
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, 0x80
mov rax, qword [0x140117240]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rcx
mov rax, rdx
mov rsi, qword [rdx]
mov rbx, qword [rdx + 8]
sub rbx, rsi
mov eax, 0xffffffff
cmp rbx, rax
ja 0x14005ebcd
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14005eba2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400827b0
lea r11, [rsp + 0x80]
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.140007b20
lea rdx, [0x140114310]
lea rcx, [rsp + 0x30]
call fcn.1400850a4
int3
lea rdx, str.set_file_content_content_is_too_large
lea rcx, [rsp + 0x50]
call fcn.140006fc0
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140028860
lea rdx, [0x140114310]
lea rcx, [rsp + 0x30]
call fcn.1400850a4
int3
Function at 0x140063b20
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 0x140063b49
mov rcx, qword [rbx]
xor edx, edx
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140063cb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140063ba5
cmp qword [rbx + 0x18], 7
jbe 0x140063b75
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140063b8b
test al, 0x10
jne 0x140063cb7
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 0x140063b96
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 0x140063bd4
mov rcx, qword [rbx]
lea r8, [rbp + 1]
mov qword [rsp + 0x20], 2
lea r9, [0x1400f8a00]
mov rdx, rsi
call fcn.14002ad00
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140063c54
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 0x140063c22
mov rdx, qword [rbx]
lea rcx, [rsp + 0x38]
call fcn.140007750
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.140008760
jmp 0x140063bc0
mov rsi, qword [rsp + 0x98]
mov rcx, rbx
mov rbp, qword [rsp + 0x90]
cmp rdi, 7
jbe 0x140063c70
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140063cb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 7
mov edi, eax
jbe 0x140063c8e
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140063ca0
test al, 0x10
jne 0x140063cb7
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 0x140064370
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 [0x140117240]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, rcx
mov rbp, rdx
mov rsi, r8
mov eax, 0xffffffff
cmp r8, rax
ja 0x1400644c8
cmp qword [rcx + 0x18], 7
jbe 0x1400643c1
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.1400639a0
nop
mov rcx, rax
call fcn.140063b20
nop
lea rcx, [rsp + 0x60]
call fcn.140008760
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140064413
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 0x140064501
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 0x14006449c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400827b0
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.140007b20
lea rdx, [0x140114310]
lea rcx, [rsp + 0x60]
call fcn.1400850a4
nop
lea rdx, str.set_file_content_content_is_too_large
lea rcx, [rsp + 0x40]
call fcn.140006fc0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x90]
call fcn.140028860
lea rdx, [0x140114310]
lea rcx, [rsp + 0x90]
call fcn.1400850a4
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.14002efd0
lea rdx, [0x140114310]
lea rcx, [rsp + 0x60]
call fcn.1400850a4
int3
Function at 0x140064ad0
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 0x140064b41
lea eax, [rbx + 0x41]
mov word [rsp + 0x20], ax
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140064b34
mov word [rdx], ax
add qword [rdi + 8], 2
jmp 0x140064b41
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.14002e300
inc ebx
cmp ebx, 0x1a
jl 0x140064b13
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140064fe0
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.140006830
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.140006dd0
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.140069bf0
nop
lea rcx, [rbp + 0x180]
call fcn.140007b60
nop
mov r8, qword [rbp + 0x170]
cmp r8, 7
jbe 0x1400650d4
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x150]
call fcn.140007c20
mov rax, rbx
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4d0
pop rbp
ret
Function at 0x140065650
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, 0x60
mov rax, qword [0x140117240]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0x78]
mov eax, r8d
mov rcx, qword [rcx]
mov rdx, rbx
mov r8d, 0x104
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400656b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400656cb
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400827b0
add rsp, 0x60
pop rbx
ret
cmp eax, 0x104
jbe 0x1400656c0
mov eax, 0xea
jmp 0x1400656cb
cmp word [rbx], 0x25
jne 0x14006569f
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 + 0x50]
lea rcx, [rsp + 0x30]
mov edx, eax
lea r8, [rsp + 0x20]
call fcn.1400655a0
lea rdx, [0x140114310]
lea rcx, [rsp + 0x30]
call fcn.1400850a4
int3
Function at 0x140069090
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 0x1400697a0
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 0x1400697d3
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.140028f20
mov r8, qword [rdi + 0x10]
inc r8
mov eax, r8d
cmp rax, r8
jne 0x140069888
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140069827
mov rdx, qword [rdi]
cmp qword [rbx + 0x18], 7
jbe 0x140069831
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400698b3
cmp eax, esi
jne 0x140069855
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.140006fc0
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.1400698f0
lea rdx, [0x140114e30]
lea rcx, [rsp + 0x28]
call fcn.1400850a4
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x28]
call fcn.140027550
lea rdx, [0x1401147d8]
lea rcx, [rsp + 0x28]
call fcn.1400850a4
int3
lea rdx, str.String_environment_expansion_failed
lea rcx, [rsp + 0x28]
call fcn.140006fc0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400698f0
lea rdx, [0x140114e30]
lea rcx, [rsp + 0x50]
call fcn.1400850a4
int3
Function at 0x140069940
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 [0x140117240]
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.14006b3a0
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.140069590
nop
cmp byte [rbp - 0x21], bl
jne 0x1400699ed
mov qword [rbp - 0x29], rbx
jmp 0x1400699f1
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x140069a0b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140069a0b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rbp + 0x37]
cmp ecx, 4
jne 0x140069a37
mov eax, dword [rbp + 0x3f]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400827b0
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.14006af20
mov r8d, eax
lea r9, [rbp - 0x29]
mov edx, 4
lea rcx, [rbp - 0x19]
call fcn.14006af90
lea rdx, [0x140114d00]
lea rcx, [rbp - 0x19]
call fcn.1400850a4
int3
Function at 0x140069ac0
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 [0x140117240]
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.14006b3a0
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.140069590
nop
cmp byte [rbp - 0x21], bl
jne 0x140069b6d
mov qword [rbp - 0x29], rbx
jmp 0x140069b71
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x140069b8b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140069b8b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rbp + 0x37]
cmp ecx, 0xb
jne 0x140069bb8
mov rax, qword [rbp + 0x3f]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400827b0
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.14006af20
mov r8d, eax
lea r9, [rbp - 0x29]
mov edx, 0xb
lea rcx, [rbp - 0x19]
call fcn.14006af90
lea rdx, [0x140114d00]
lea rcx, [rbp - 0x19]
call fcn.1400850a4
int3
Function at 0x14006a310
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 [0x140117240]
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.14006b3a0
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.14006a530
nop
lea rcx, [rsp + 0x90]
call fcn.140007b60
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x90]
call fcn.1400b2790
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.140069590
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.140007750
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.14006a1d0
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.140069590
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14006a4c8
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x70]
call fcn.140008760
nop
mov rcx, qword [rsp + 0x60]
cmp byte [rsp + 0x68], 0
cmove rcx, rsi
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x14006a503
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14006a503
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1400827b0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14006a530
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rax, qword [0x140117240]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, qword [rsp + 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0xb
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14006b3a0
nop
movzx ebx, byte [rdi + 0x240]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
lea rcx, str.Cannot_delete_registry_key_tree
mov qword [rsp + 0x20], rcx
xor esi, esi
cmp bl, 1
cmovne rdi, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
lea rdx, [rsp + 0x20]
mov ecx, eax
call fcn.140069590
nop
mov rcx, qword [rsp + 0x40]
cmp byte [rsp + 0x48], sil
cmove rcx, rsi
mov qword [rsp + 0x40], rcx
test rcx, rcx
je 0x14006a5e8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14006a5e8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400827b0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret