joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008a8e0
Capabilities:
Get file size
Read file on windows

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 [0x140212c80]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, qword [rbp + 0x67]
mov qword [rbp + 7], rbx
mov rdi, qword [rbp + 0x6f]
xor esi, esi
mov dword [rbp - 0x29], esi
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov dword [rbp - 0x29], 1
mov qword [rbp + 0x17], rsi
lea rdx, [rbp + 0x17]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14008aa0d
cmp dword [rbp + 0x1b], esi
jne 0x14008a9e7
mov edx, dword [rbp + 0x17]
mov rcx, rbx
call fcn.14000bbb0
mov dword [rbp + 0xf], esi
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
movups xmmword [rbp + 0x2f], xmm0
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xf]
mov r8d, dword [rbp + 0x17]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008a9be
mov edx, dword [rbp + 0xf]
mov rcx, rbx
call fcn.14000bbb0
mov rax, rbx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140133600
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.get_file_content:_ReadFile
lea rcx, [rbp - 0x21]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x21]
call fcn.140135f84
int3
lea r8, str.get_file_content
mov edx, 0xdf
lea rcx, [rbp - 0x21]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x21]
call fcn.140135f84
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.get_file_content:_GetFileSizeEx
lea rcx, [rbp - 0x21]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x21]
call fcn.140135f84
int3
Function at 0x14008ba90
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 0x14008bab9
mov rcx, qword [rbx]
xor edx, edx
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14008bc27
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14008bb15
cmp qword [rbx + 0x18], 7
jbe 0x14008bae5
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008bafb
test al, 0x10
jne 0x14008bc27
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 0x14008bb06
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 0x14008bb44
mov rcx, qword [rbx]
lea r8, [rbp + 1]
mov qword [rsp + 0x20], 2
lea r9, [0x1401e702c]
mov rdx, rsi
call fcn.1400280a0
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14008bbc4
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 0x14008bb92
mov rdx, qword [rbx]
lea rcx, [rsp + 0x38]
call fcn.1400258d0
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.140025e80
jmp 0x14008bb30
mov rsi, qword [rsp + 0x98]
mov rcx, rbx
mov rbp, qword [rsp + 0x90]
cmp rdi, 7
jbe 0x14008bbe0
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14008bc27
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 7
mov edi, eax
jbe 0x14008bbfe
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008bc10
test al, 0x10
jne 0x14008bc27
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 0x14008c580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd8
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
mov rbx, qword [rbp + 0x67]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
mov r12d, 1
mov dword [rsp + 0x20], r12d
mov rsi, qword [rbp + 0x7f]
mov r14, qword [rbp + 0x77]
mov r15, qword [rbp + 0x6f]
lea rax, str.:016x.
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x79], 4
lea rax, [rbp - 0x69]
mov qword [rbp - 0x71], rax
movabs r13, 0xb000000000000000
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rbp - 0x79]
mov rdi, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14008c62d
mov rdi, qword [rsi]
call fcn.140093550
mov rdx, rax
mov rcx, r14
cmp qword [r14 + 0x18], 7
jbe 0x14008c642
mov rcx, qword [r14]
mov rax, r15
cmp qword [r15 + 0x18], 7
jbe 0x14008c64f
mov rax, qword [r15]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x41], rcx
movabs rax, 0xb000000000000008
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x39], rdx
movabs rax, 0x4000000000000010
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x31], rdi
movabs rax, 0xb000000000000018
mov qword [rbp - 0x51], rax
movdqa xmmword [rbp - 0x79], xmm7
movdqa xmmword [rsp + 0x30], xmm6
lea r8, [rbp - 0x79]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x29]
call fcn.140022d90
or r12d, 6
mov dword [rsp + 0x20], r12d
lea rdx, [rbp - 0x29]
mov rcx, rbx
call fcn.140029ff0
lea rcx, [rbp - 0x29]
call fcn.140025e80
cmp qword [rbx + 0x10], 0
je 0x14008c70f
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14008c6dc
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008c6ef
test al, 0x10
je 0x14008c620
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14008c6fc
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008c70f
test al, 0x10
jne 0x14008c620
mov rax, rbx
movaps xmm6, xmmword [rsp + 0xc0]
movaps xmm7, xmmword [rsp + 0xb0]
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14008ca20
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rbx, qword [rsp + 0x30]
mov dil, 1
nop dword [rax + rax]
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x14008ca4d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008caad
test al, 0x10
jne 0x14008caad
test dil, dil
je 0x14008caad
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x14008ca6e
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x14008ca83
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14008caa0
add dil, 0xff
je 0x14008ca40
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14008ca40
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x14008d130
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, 0xffffffff
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
cmp r8, rax
ja 0x14008d1b5
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, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14008d1d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140133600
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.set_file_content_content_is_too_large
lea rcx, [rsp + 0x30]
call fcn.1400966e0
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x30]
call fcn.140135f84
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.set_file_content
lea rcx, [rsp + 0x30]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x30]
call fcn.140135f84
int3
Function at 0x14008e630
Capabilities:
Get file size

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rdi
sub rsp, 0x78
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov qword [rcx + 0x18], 0
mov rbx, rcx
lea rdx, [r11 - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14008e6e2
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14008e6c3
xor edx, edx
mov qword [rsp + 0x28], 0
mov r9, rax
mov dword [rsp + 0x20], eax
shr r9, 0x20
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbx + 0x10]
mov rdi, rax
test rcx, rcx
je 0x14008e6ba
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rdi
test rdi, rdi
je 0x14008e70d
mov dword [rbx + 0x20], 2
mov byte [rbx + 8], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140133600
add rsp, 0x78
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_get_file_size_
lea rcx, [rsp + 0x30]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x30]
call fcn.140135f84
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_create_file_mapping_
lea rcx, [rsp + 0x30]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x30]
call fcn.140135f84
int3
Function at 0x14008f4e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov rdi, rdx
test rcx, rcx
je 0x14008f610
test rdx, rdx
je 0x14008f610
cmp word [rdx], 0
je 0x14008f610
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x14008f570
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x14008f5ef
mov r9d, 0x100
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x14008f5be
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call fcn.14008f4e0
test al, al
je 0x14008f5a6
xor ebx, ebx
jmp 0x14008f570
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x14008f570
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x14008f5ef
test ebx, ebx
je 0x14008f5ce
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x14008f5ef
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14008f60b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14008f60b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, bl
jmp 0x14008f61d
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140133600
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret

Function at 0x14008f640
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0x40
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
test rdx, rdx
je 0x14008f702
cmp word [rdx], 0
je 0x14008f702
lea rax, [r11 - 0x18]
mov qword [r11 - 0x18], 0
mov r9d, 2
mov qword [r11 - 0x28], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14008f6b3
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x14008f6d0
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14008f6ec
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14008f6ec
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140133600
add rsp, 0x40
pop rbx
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140133600
add rsp, 0x40
pop rbx
ret
Function at 0x14008f850
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rcx, qword [rbp + 0x1b0]
mov qword [rsp + 0x48], rcx
mov rdx, qword [rbp + 0x1b8]
mov rsi, qword [rbp + 0x1c0]
mov rbx, qword [rbp + 0x1c8]
mov r14, qword [rbp + 0x1d0]
test rcx, rcx
jne 0x14008f8c9
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x14008fa05
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
test rdx, rdx
je 0x14008f92e
cmp word [rdx], 0
je 0x14008f92e
mov r9d, dword [rbp + 0x1d8]
or r9d, 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14008f927
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x14008f9e7
mov rcx, qword [rsp + 0x40]
jmp 0x14008f933
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], 0x200
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, r14
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14008f978
mov r8d, dword [rsp + 0x38]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140090180
jmp 0x14008f9da
cmp eax, 0xea
jne 0x14008f9cd
nop
mov edx, dword [rsp + 0x38]
mov rcx, rbx
call fcn.14000bbb0
mov rax, qword [rbx]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, r14
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp eax, 0xea
je 0x14008f980
test eax, eax
jne 0x14008f9da
mov edx, dword [rsp + 0x38]
mov rcx, rbx
call fcn.14000bbb0
jmp 0x14008f9da
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x14008f9da
mov qword [rbx + 8], rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
cmp byte [rsp + 0x50], 0
jne 0x14008fa02
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.1400900f0
movzx eax, bl
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140133600
add rsp, 0x280
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14008ff10
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push r14
sub rsp, 0xa8
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov esi, dword [rsp + 0xf0]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x68], rcx
mov rbx, rdx
mov r14, r8
mov rbp, r9
test r9, r9
jne 0x14008ff76
test esi, esi
je 0x14008ff76
lea ecx, [r9 + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x1400900a3
lea rax, [rsp + 0x60]
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x98], r15
xor r15d, r15d
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x68], r15b
test rbx, rbx
je 0x140090044
cmp word [rbx], r15w
je 0x140090044
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov rdx, rbx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
je 0x14009003d
cmp eax, 5
jne 0x140090031
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov rdx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14009003d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x140090075
mov rcx, qword [rsp + 0x58]
jmp 0x140090049
mov qword [rsp + 0x58], rcx
mov r9d, dword [rsp + 0xf8]
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov rdx, r14
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete bl
cmp byte [rsp + 0x68], 0
mov r15, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
jne 0x1400900a0
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
call fcn.1400900f0
movzx eax, bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140133600
add rsp, 0xa8
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x140090730
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 [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rdx
mov r8d, 1
lea rdx, [r11 - 0x68]
call fcn.1400915e0
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.140090480
nop
cmp byte [rsp + 0x38], dil
jne 0x1400907bf
mov qword [rsp + 0x30], rdi
jmp 0x1400907c4
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x1400907de
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1400907de
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rsp + 0x70]
cmp ecx, 4
jne 0x14009080c
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140133600
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
call fcn.1400902d0
mov r8d, eax
mov edx, 4
lea rcx, [rsp + 0x40]
call fcn.1400903a0
lea rdx, [0x14020eca8]
lea rcx, [rsp + 0x40]
call fcn.140135f84
int3
Function at 0x140090e30
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 [0x140212c80]
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.1400915e0
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.140090ff0
nop
lea rcx, [rsp + 0x80]
call fcn.140054450
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x80]
call fcn.140176680
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.140090480
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.1400258d0
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.140090d00
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.140090480
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140090f95
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x60]
call fcn.140025e80
nop
mov rcx, qword [rsp + 0x50]
cmp byte [rsp + 0x58], 0
cmove rcx, rbx
mov qword [rsp + 0x50], rcx
test rcx, rcx
je 0x140090fd0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140090fd0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140133600
add rsp, 0x2e0
pop rbx
ret

Function at 0x140090ff0
Capabilities:
Delete registry key

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov r8d, ntohs
lea rdx, [rsp + 0x20]
call fcn.1400915e0
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.140090480
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 0x140091072
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140091072
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140133600
add rsp, 0x48
ret
Function at 0x140091090
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rcx
mov rsi, rdx
mov rbp, r8
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movsx rax, byte [rcx + 0x240]
add rax, 1
je 0x1400911f7
cmp rax, 1
je 0x140091177
mov rax, qword [rcx]
mov qword [rsp + 0x50], rax
lea rdx, [rcx + 8]
lea rcx, [rsp + 0x58]
call fcn.140054750
mov ecx, dword [rbx + 0x238]
mov eax, dword [rbx + 0x23c]
mov dword [rsp + 0x28c], eax
or ecx, 6
mov dword [rsp + 0x288], ecx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140090b50
mov rbx, qword [rax]
mov qword [rsp + 0x38], rbx
mov qword [rax], r14
mov dil, 1
mov byte [rsp + 0x40], dil
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140091163
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140091163
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x260]
call fcn.140054870
jmp 0x140091187
mov rbx, qword [rbx]
mov qword [rsp + 0x38], rbx
xor dil, dil
mov byte [rsp + 0x40], dil
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbp
mov r9d, 4
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.140090480
nop
test dil, dil
cmove rbx, r14
test rbx, rbx
je 0x1400911d9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1400911d9
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140133600
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140091510
int3