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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, rcx
test rcx, rcx
je 0x140077a4d
cmp qword [rcx + 0x68], 0
je 0x140077a4d
lea r8, str.Starting_communications_threads...
mov edx, 1
mov ecx, 0x10000
call fcn.140079d90
xor r15d, r15d
mov esi, r15d
cmp r15d, dword [r14 + 0x60]
jae 0x14007799e
nop word [rax + rax]
mov rax, qword [r14 + 0x68]
mov ecx, esi
mov rbx, qword [rax + rcx*8]
test rbx, rbx
je 0x14007799a
mov rbp, qword [rbx + 0x38]
test rbp, rbp
je 0x14007799a
lea rcx, [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rbx + 0x88], 1
lea rcx, [rbx + 0x60]
je 0x140077994
mov byte [rbx + 0x88], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r9, qword [rbx + 0x40]
lea rax, [rbp + 0x10]
mov r8, qword [rbx + 0x48]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
test rax, rax
je 0x14007797f
inc esi
cmp esi, dword [r14 + 0x60]
jb 0x140077910
jmp 0x14007799a
lea rcx, [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rbx + 0x60]
mov byte [rbx + 0x88], r15b
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, dword [r14 + 0x60]
jne 0x1400779a7
mov al, 1
jmp 0x140077a4f
test esi, esi
je 0x1400779f3
mov qword [rsp + 0x50], r12
mov r12, r15
mov ebp, esi
nop word [rax + rax]
mov rax, qword [r14 + 0x68]
mov rbx, qword [r12 + rax]
lea rcx, [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rbx + 0x60]
mov byte [rbx + 0x88], r15b
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r12, [r12 + 8]
sub rbp, 1
jne 0x1400779c0
mov r12, qword [rsp + 0x50]
mov rcx, qword [r14]
test rcx, rcx
je 0x140077a03
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
test esi, esi
je 0x140077a4d
mov edi, esi
nop dword [rax]
mov rax, qword [r14 + 0x68]
mov rbx, qword [r15 + rax]
test rbx, rbx
je 0x140077a43
mov rbx, qword [rbx + 0x38]
test rbx, rbx
je 0x140077a43
cmp qword [rbx + 8], 0
je 0x140077a43
nop dword [rax]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140077a30
add r15, 8
sub rdi, 1
jne 0x140077a10
xor al, al
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140079f50
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x14016b010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rcx
mov qword [rbp - 0x19], rcx
xor r12d, r12d
mov qword [rbp + 7], r12
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], r12b
mov r14, qword [rdx + 8]
test r14, r14
jne 0x140079fb7
movups xmm0, xmmword [rbp + 7]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbp + 0x17]
movups xmmword [rcx + 0x10], xmm1
jmp 0x14007a0d6
mov r15, qword [rdx]
mov dword [rbp - 0x19], r12d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40000001
mov edx, r14d
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x14007a107
xorps xmm0, xmm0
mov esi, dword [rbp - 0x19]
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r12
test rsi, rsi
je 0x14007a058
cmp rsi, 0x1000
jb 0x14007a030
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x14007a122
lfence
call fcn.1400d4898
mov rcx, rax
test rax, rax
je 0x14007a101
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14007a03b
lfence
mov rcx, rsi
call fcn.1400d4898
mov qword [rbp - 0x11], rax
lea rbx, [rax + rsi]
mov qword [rbp - 1], rbx
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1400d9a00
mov qword [rbp - 9], rbx
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x11]
mov r8d, 0x40000001
mov edx, r14d
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x14007a128
mov r8d, dword [rbp - 0x19]
mov rdx, qword [rbp - 0x11]
lea rcx, [rbp + 7]
call fcn.14000d4f0
movups xmm0, xmmword [rbp + 7]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x17]
movups xmmword [rdi + 0x10], xmm1
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14007a0d6
mov rdx, qword [rbp - 1]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007a0d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007a101
call fcn.1400d45f0
nop
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400d45d0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400e6180
nop
lea rdx, [0x140136da0]
lea rcx, [rbp - 0x59]
call fcn.14000d650
nop
lea rcx, [rbp - 0x59]
call fcn.140058e60
nop
call fcn.140007740
nop
lea rdx, str.CryptBinaryToStringA_2_
lea rcx, [rbp - 0x39]
call fcn.14000d650
nop
lea rcx, [rbp - 0x39]
call fcn.140058e60
int3
Function at 0x140085cb0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0xd8
mov rax, qword [0x14016b010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rcx
xor eax, eax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x30], rax
mov dword [r11 - 0x38], r9d
shr r9, 0x20
mov dword [r11 - 0x34], r9d
mov dword [r11 - 0x50], eax
lea rax, [r11 - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [r11 - 0x50]
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140085d1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x26
jne 0x140085d3c
xor eax, eax
jmp 0x140085d22
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400d45d0
add rsp, 0xd8
pop rdi
pop rbx
ret
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140085830
nop
mov r8, rax
lea rdx, str.Failed_to_read_from_pseudohandle
lea rcx, [rsp + 0x78]
call fcn.140016540
nop
mov r8, rax
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140085460
lea rdx, [0x140168640]
lea rcx, [rsp + 0x30]
call fcn.1400d9ba0
int3

Function at 0x140085d80
Capabilities:
Get file size

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xa0
mov rax, qword [0x14016b010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [r11 - 0x20], 0
lea rdx, [r11 - 0x20]
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140085ddb
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400d45d0
add rsp, 0xa0
pop rbx
ret
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140085830
nop
mov r8, rax
lea rdx, str.Failed_to_get_size_of_pseudohandle
lea rcx, [rsp + 0x68]
call fcn.140016540
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140085460
lea rdx, [0x140168640]
lea rcx, [rsp + 0x20]
call fcn.1400d9ba0
int3
Function at 0x140086460
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x190
mov rax, qword [0x14016b010]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, r9
mov ebp, r8d
mov r14d, edx
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x80], edx
mov dword [rsp + 0x68], 0
mov edx, r8d
mov rcx, r9
call fcn.140086a00
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
mov r8d, ebp
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebx, ebx
jne 0x1400864e7
cmp eax, 0x26
jne 0x140086511
mov edx, dword [rsp + 0x68]
mov rcx, rdi
call fcn.140086a00
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400d45d0
add rsp, 0x190
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, [rsp + 0x90]
call fcn.14002aea0
lea rcx, [rsp + 0x90]
call fcn.14002dec0
nop
lea rdx, str.ReadFile_Error
lea rcx, [rsp + 0x90]
call fcn.14000e6e0
mov edx, esi
mov rcx, rax
call fcn.14001cf30
mov rcx, rax
lea rdx, str._offset
call fcn.14000e6e0
mov edx, r14d
mov rcx, rax
call fcn.14001cf30
mov rcx, rax
lea rdx, str._size
call fcn.14000e6e0
mov edx, ebp
mov rcx, rax
call fcn.14001cf30
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x90]
call fcn.14002dea0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140007810
lea rdx, [0x140167958]
lea rcx, [rsp + 0x30]
call fcn.1400d9ba0
int3
Function at 0x140087130
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14016b010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
mov qword [rsp + 0x60], rcx
movups xmm0, xmmword [0x14011e230]
movaps xmmword [rsp + 0x50], xmm0
xor esi, esi
mov qword [rsp + 0x60], rsi
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edi, eax
test eax, eax
jne 0x14008720d
mov rdx, qword [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140087194
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], si
lea rcx, [rsp + 0x20]
call fcn.14000d1d0
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400871d3
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000d430
nop
lea rcx, [rsp + 0x20]
call fcn.14000df70
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400d45d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rdx, str.SHGetKnownFolderPath_failed
lea rcx, [rsp + 0x20]
call fcn.14000d650
nop
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.14009a560
int3

Function at 0x140087d30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rbx, r8
mov rax, rdx
cmp qword [r8 + 0x10], 0
je 0x140087dd7
mov rdx, rbx
cmp qword [r8 + 0x18], 8
jb 0x140087d58
mov rdx, qword [r8]
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x140087d8e
cmp eax, 2
jne 0x140087d9e
xor al, al
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
lea rdx, str.RegQueryValueExW_failed
lea rcx, [rsp + 0x50]
call fcn.14000d650
nop
mov r9d, edi
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rsp + 0x30]
call fcn.1400d9ba0
nop
lea rdx, str.Invalid_registry_value_name
lea rcx, [rsp + 0x30]
call fcn.14000d650
nop
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rsp + 0x50]
call fcn.1400d9ba0
int3

Function at 0x140087f90
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x60
mov rbx, r8
mov rax, rdx
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x140087fad
mov rdx, qword [r8]
xor r9d, r9d
mov r8d, dword [rcx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edi, eax
test eax, eax
jne 0x140087fd1
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
lea rdx, str.RemoveKeyFunction_failed
lea rcx, [rsp + 0x20]
call fcn.14000d650
nop
mov r9d, edi
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rsp + 0x40]
call fcn.1400d9ba0
int3
Function at 0x140088030
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x14016b010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, r8
mov r9, r8
mov r8, rdx
lea rdx, [rsp + 0x60]
call fcn.140087910
nop
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov edi, eax
test eax, eax
jne 0x1400880c3
lea rcx, [rsp + 0x70]
call fcn.14000df70
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400880a2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400d45d0
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rdi
ret
lea rdx, str.RegDeleteTreeW_failed
lea rcx, [rsp + 0x20]
call fcn.14000d650
nop
mov r9d, edi
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rsp + 0x40]
call fcn.1400d9ba0
int3

Function at 0x140088100
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rbx, r8
mov rax, rdx
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x14008811d
mov rdx, qword [r8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test eax, eax
jne 0x140088137
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
lea rdx, str.RegDeleteValue_failed
lea rcx, [rsp + 0x20]
call fcn.14000d650
nop
mov r9d, edi
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rsp + 0x40]
call fcn.1400d9ba0
int3

Function at 0x140088170
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14016b010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, r8
mov rax, rdx
xor ecx, ecx
mov dword [rsp + 0x70], ecx
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1400881a5
mov rdx, qword [r8]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400881e8
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400d45d0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
lea rdx, str.RegQueryValueEx_failed
lea rcx, [rsp + 0x30]
call fcn.14000d650
nop
mov r9d, edi
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rsp + 0x50]
call fcn.1400d9ba0
int3
Function at 0x140088230
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14016b010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, r8
mov rax, rdx
xor edx, edx
mov dword [r11 - 0x18], edx
mov dword [r11 - 0x14], 4
cmp qword [r8 + 0x18], 8
jb 0x14008826f
mov r8, qword [r8]
lea rcx, [rsp + 0x84]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
mov r9d, 0x10
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edi, eax
test eax, eax
jne 0x1400882cb
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400d45d0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
lea rdx, str.RegGetValueW_failed
lea rcx, [rsp + 0x40]
call fcn.14000d650
nop
mov r9d, edi
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rsp + 0x60]
call fcn.1400d9ba0
int3

Function at 0x140088350
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rbx, r8
mov rax, rdx
mov dword [rsp + 0x70], r9d
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x140088375
mov rdx, qword [r8]
mov dword [rsp + 0x28], 4
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 4
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x1400883b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
lea rdx, str.RegSetValueExW_failed
lea rcx, [rsp + 0x30]
call fcn.14000d650
nop
mov r9d, edi
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rsp + 0x50]
call fcn.1400d9ba0
int3

Function at 0x1400883f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x14016b010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, r8
mov rax, rdx
xor edx, edx
mov qword [r11 - 0x20], rdx
mov dword [r11 - 0x28], 8
cmp qword [r8 + 0x18], 8
jb 0x14008842f
mov r8, qword [r8]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
mov r9d, 0x40
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edi, eax
test eax, eax
jne 0x14008848c
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400d45d0
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
lea rdx, str.RegGetValueW_failed
lea rcx, [rsp + 0x40]
call fcn.14000d650
nop
mov r9d, edi
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rsp + 0x60]
call fcn.1400d9ba0
int3
Function at 0x1400884d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rbx, r8
mov rax, rdx
mov qword [rsp + 0x70], r9
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1400884f5
mov rdx, qword [r8]
mov dword [rsp + 0x28], 8
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 0xb
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x140088530
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
lea rdx, str.RegSetValueExW_failed
lea rcx, [rsp + 0x30]
call fcn.14000d650
nop
mov r9d, edi
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rsp + 0x50]
call fcn.1400d9ba0
int3

Function at 0x140088780
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rbx, r8
mov r10, rdx
mov rax, qword [r9 + 0x10]
cmp rax, 0x7ffffffe
ja 0x140088827
lea rax, [rax*2 + 2]
cmp qword [r9 + 0x18], 8
jb 0x1400887b2
mov r9, qword [r9]
mov rdx, rbx
cmp qword [r8 + 0x18], 8
jb 0x1400887bf
mov rdx, qword [r8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, 1
xor r8d, r8d
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x1400887ee
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
lea rdx, str.RegSetValueExW_failed
lea rcx, [rsp + 0x50]
call fcn.14000d650
nop
mov r9d, edi
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rsp + 0x30]
call fcn.1400d9ba0
nop
lea rdx, str.Value_too_big_for_registry
lea rcx, [rsp + 0x30]
call fcn.14000d650
nop
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rsp + 0x50]
call fcn.1400d9ba0
int3
Function at 0x140089050
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rbx, r8
mov r10, rdx
mov rcx, qword [r9]
mov rax, qword [r9 + 8]
sub rax, rcx
mov edx, 0xffffffff
cmp rax, rdx
ja 0x1400890e9
mov rdx, rbx
cmp qword [r8 + 0x18], 8
jb 0x140089081
mov rdx, qword [r8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 3
xor r8d, r8d
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x1400890b0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
lea rdx, str.RegSetValueExW_failed
lea rcx, [rsp + 0x30]
call fcn.14000d650
nop
mov r9d, edi
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rsp + 0x50]
call fcn.1400d9ba0
nop
lea rdx, str.Buffer_too_large_for_RegSetValueExW
lea rcx, [rsp + 0x30]
call fcn.140007880
lea rdx, [0x140167958]
lea rcx, [rsp + 0x30]
call fcn.1400d9ba0
int3
Function at 0x140089eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov rax, qword [0x14016b010]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15d, r9d
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0xf], rcx
mov ecx, 2
mov dword [rbp + 0xf], ecx
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
xor r12d, r12d
mov r8d, r12d
mov qword [rbp + 7], r12
nop
mov eax, ecx
and eax, 1
shr rcx, 1
add rax, rcx
mov r9, qword [rbp - 1]
mov rcx, r9
mov rdx, qword [rbp - 9]
sub rcx, rdx
sar rcx, 1
cmp rax, rcx
jae 0x140089f2b
lea rcx, [rdx + rax*2]
mov qword [rbp - 1], rcx
jmp 0x140089f66
jbe 0x140089f66
sub r8, rdx
sar r8, 1
cmp rax, r8
jbe 0x140089f49
lfence
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.14008ac10
jmp 0x140089f62
sub rax, rcx
lea r8, [rax + rax]
lea rbx, [r8 + r9]
xor edx, edx
mov rcx, r9
call fcn.1400d9a00
mov qword [rbp - 1], rbx
mov rdx, qword [rbp - 9]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x140089f73
mov r8, qword [rdi]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r12
mov r9d, r15d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
cmp eax, 0xea
jne 0x140089fa9
mov ecx, dword [rbp + 0xf]
mov r8, qword [rbp + 7]
jmp 0x140089f00
cmp ebx, 2
jne 0x140089ff4
mov byte [rsi + 0x18], 0
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14008a035
mov rdx, qword [rbp + 7]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089fed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a08b
call fcn.1400d45f0
jmp 0x14008a035
test ebx, ebx
jne 0x14008a091
mov ecx, dword [rbp + 0xf]
test cl, 1
jne 0x14008a056
mov edx, ecx
and edx, 1
mov eax, ecx
shr rax, 1
add rdx, rax
lea rcx, [rbp - 9]
call fcn.140089dc0
mov rax, qword [rbp - 9]
mov qword [rsi], rax
mov rax, qword [rbp - 1]
mov qword [rsi + 8], rax
mov rax, qword [rbp + 7]
mov qword [rsi + 0x10], rax
mov byte [rsi + 0x18], 1
mov rax, rsi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400d45d0
add rsp, 0xf0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.Invalid_registry_value_data_length
lea rcx, [rbp - 0x49]
call fcn.14000d650
nop
xor r9d, r9d
mov r8, rdi
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rbp - 0x29]
call fcn.1400d9ba0
nop
call fcn.1400e6180
nop
lea rdx, str.RegGetValueW_failed
lea rcx, [rsp + 0x40]
call fcn.14000d650
nop
mov r9d, ebx
mov r8, rdi
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x69]
call fcn.140087830
lea rdx, [0x140168778]
lea rcx, [rbp - 0x69]
call fcn.1400d9ba0
int3