joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009da44
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r12d, r9d
mov r15, r8
mov r13, rdx
mov rsi, rcx
xor r14d, r14d
xor edi, edi
and qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0xc0]
and qword [rax], rdi
mov rax, qword [rsp + 0xc8]
and dword [rax], edi
mov rdx, r13
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test r15, r15
je 0x14009dac9
lea r9, [rsp + 0x40]
mov r8d, 0x20019
mov rdx, r15
mov rcx, rsi
call fcn.14009d23c
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x14009dace
jmp 0x14009dbcc
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
cmp eax, 0xc0000023
jne 0x14009dbcc
mov r8d, dword [rsp + 0x34]
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x14009db30
mov ebx, 0xc000009a
jmp 0x14009dbc8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, 2
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14009dbcc
cmp dword [rdi + 4], r12d
je 0x14009db72
mov ebx, 0xc0000024
jmp 0x14009dbc8
mov eax, dword [rsp + 0x34]
add eax, 0xfffffff4
mov dword [rsp + 0x34], eax
mov r8d, eax
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx], rax
test rax, rax
je 0x14009db26
mov r8d, dword [rsp + 0x34]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsp + 0x34]
mov rax, qword [rsp + 0xc8]
mov dword [rax], r11d
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x40]
cmp rcx, rsi
je 0x14009dbe1
test rcx, rcx
je 0x14009dbe1
call qword [sym.imp.ntdll.dll_ZwClose]
test rdi, rdi
je 0x14009dbfe
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc000017d
jne 0x14009dc41
int3
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14009dc5c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x58
mov r12d, r9d
mov r14, r8
mov r15, rdx
mov rdi, rcx
xor esi, esi
mov rdx, r15
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x38], 0
test r14, r14
je 0x14009dcc5
lea r9, [rsp + 0x38]
mov r8d, 0x2001f
mov rdx, r14
mov rcx, rdi
call fcn.14009d23c
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x14009dcca
jmp 0x14009dcfe
mov qword [rsp + 0x38], rdi
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
cmp rcx, rdi
je 0x14009dd12
test rcx, rcx
je 0x14009dd12
call fcn.14009cf20
cmp ebx, 0xc000017d
jne 0x14009dd52
int3
mov eax, ebx
add rsp, 0x58
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14009e3f0
Capabilities:
Delete file

Disassembly:
mov r11, rsp
sub rsp, 0x58
mov dword [rsp + 0x20], 0x30
xor eax, eax
mov qword [r11 - 0x30], rax
mov dword [rsp + 0x38], 0x40
mov qword [r11 - 0x28], rcx
lea rcx, [r11 - 0x38]
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
call qword [sym.imp.ntdll.dll_ZwDeleteFile]
add rsp, 0x58
ret

Function at 0x14009e430
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
and qword [rdx], 0
mov rdi, r8
mov rsi, rdx
xor edx, edx
mov ebx, ecx
mov rcx, rdi
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 0x6a]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
jne 0x14009e489
mov eax, 0xc0000017
jmp 0x14009e56a
and qword [rsp + 0x20], 0
lea r8, [0x1401696b0]
mov r9d, ebx
mov edx, UnregisterTraceGuids
mov rcx, rax
call qword [sym.imp.msvcrt.dll_swprintf_s]
mov rdx, rsi
mov rcx, rbp
call fcn.14009e588
mov ebx, eax
test eax, eax
jns 0x14009e4f8
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.14009e8fc
mov ebx, eax
test eax, eax
js 0x14009e52f
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call fcn.14009e588
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x30]
xor edx, edx
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
js 0x14009e52f
mov rax, qword [rsi]
and dword [rdi], 0
cmp dword [rax], 0
jne 0x14009e512
mov eax, dword [rax + 8]
mov dword [rdi + 4], 1
mov dword [rdi + 8], eax
jmp 0x14009e52b
cmp dword [rax], 1
jne 0x14009e526
movups xmm0, xmmword [rax + 8]
and dword [rdi + 4], 0
movdqu xmmword [rdi + 8], xmm0
jmp 0x14009e52b
mov ebx, 0xc000000d
test ebx, ebx
jns 0x14009e550
mov r8, qword [rsi]
test r8, r8
je 0x14009e550
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
and qword [rsi], 0
mov rcx, qword gs:[0x60]
mov r8, rbp
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14009e644
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xe0
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rdx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r9d, 0x18
mov rdi, rcx
mov dword [rsp + 0x20], 1
call qword [sym.imp.ntdll.dll_ZwQueryVolumeInformationFile]
mov r11d, eax
test eax, eax
jns 0x14009e695
cmp eax, 0x80000005
jne 0x14009e6d9
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r9d, DeleteCriticalSection
mov rcx, rdi
mov dword [rsp + 0x20], CoDisconnectObject
call qword [sym.imp.ntdll.dll_ZwQueryInformationFile]
mov r11d, eax
test eax, eax
jns 0x14009e6c4
cmp eax, 0x80000005
jne 0x14009e6d9
mov eax, dword [rsp + 0x48]
xor r11d, r11d
mov dword [rbx], eax
mov rax, qword [rsp + 0xa0]
mov qword [rbx + 8], rax
mov eax, r11d
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
ret
Function at 0x14009f1f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rsi, rdx
mov rdx, rcx
xor r14d, r14d
lea rcx, [rbp - 0x40]
mov qword [rbp + 0x38], r14
mov qword [rbp - 0x48], r14
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x40]
lea r8, [rbp - 0x30]
lea edx, [r14 + 1]
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x18], 0x40
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
call qword [sym.imp.ntdll.dll_ZwOpenSymbolicLinkObject]
test eax, eax
js 0x14009f37e
lea rcx, [rbp - 0x50]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, r14d
mov dword [rbp + 0x30], r14d
jmp 0x14009f2bf
cmp qword [rbp - 0x48], r14
je 0x14009f290
mov rcx, qword gs:[0x60]
mov r8, qword [rbp - 0x48]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [rbp + 0x30]
xor edx, edx
mov word [rbp - 0x4e], ax
mov rcx, qword gs:[0x60]
lea edi, [rax + 2]
mov rcx, qword [rcx + 0x30]
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp - 0x48], rax
test rax, rax
je 0x14009f393
mov rcx, qword [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_ZwQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x14009f271
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ntdll.dll_ZwClose]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
js 0x14009f35e
movzx ecx, word [rbp - 0x50]
lea r8, [rbp - 0x30]
mov edx, 1
shr rcx, 1
mov word [rax + rcx*2], r14w
lea rax, [rbp - 0x50]
lea rcx, [rbp + 0x38]
mov word [rbp - 0x4e], di
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], 0x40
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
call qword [sym.imp.ntdll.dll_ZwOpenSymbolicLinkObject]
test eax, eax
jns 0x14009f2bf
mov rax, qword [rbp - 0x48]
mov ebx, r14d
mov qword [rsi], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14009f35a
call qword [sym.imp.ntdll.dll_ZwClose]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
jns 0x14009f37c
test rax, rax
je 0x14009f37c
mov rcx, qword gs:[0x60]
mov r8, qword [rbp - 0x48]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ebx, 0xc000009a
jmp 0x14009f343
Function at 0x14009fa88
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r8
dec edx
je 0x14009fb14
dec edx
je 0x14009fab6
mov ebx, 0xc000000d
jmp 0x14009fb39
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
lea rdx, [0x1400094e8]
call fcn.14009f778
mov ebx, eax
test eax, eax
js 0x14009fb03
mov rcx, qword [rsp + 0x20]
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov edx, 0x23000003
mov dword [rsp + 0x28], CoRevokeClassObject
call fcn.1400a030c
mov ebx, eax
test eax, eax
js 0x14009fb03
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14009fb39
call fcn.14009cf20
jmp 0x14009fb39
xor r9d, r9d
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 0x20]
lea ecx, [r9 + 0x5a]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
mov ebx, eax
test eax, eax
js 0x14009fb39
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x14009fe2c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebp, edx
xor edx, edx
mov r14, rcx
mov rsi, r8
lea r9, [rsp + 0x58]
lea ecx, [rdx + 0x62]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000023
je 0x14009fe74
test eax, eax
js 0x14009fef5
mov ebx, 0xc0000001
jmp 0x14009fef5
mov rcx, qword gs:[0x60]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x14009fe9d
mov ebx, 0xc000009a
jmp 0x14009fef5
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rax
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
js 0x14009fedd
movzx eax, word [rdi]
add eax, 2
mov dword [rsi], eax
cmp eax, ebp
jbe 0x14009fece
mov ebx, 0xc0000023
jmp 0x14009fedd
mov rdx, qword [rdi + 8]
mov r8d, eax
mov rcx, r14
call sub.msvcrt.dll_memcpy
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
jns 0x14009ff08
mov r8, rsi
mov edx, ebp
mov rcx, r14
call fcn.1400a0030
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14009ff24
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebx, 1
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rbx + 0x1f]
lea ecx, [rbx + 0x59]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x14009ff63
xor ebx, ebx
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140168920
add rsp, 0x50
pop rbx
ret
Function at 0x1400a0198
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
cmp dword [0x14017e4b0], ebx
jne 0x1400a0201
lea rdx, [rsp + 0x20]
lea rcx, [0x1401698c0]
call fcn.14009e23c
test eax, eax
js 0x1400a01f6
lea r8d, [rbx + 0x18]
lea rdx, [rsp + 0x28]
xor r9d, r9d
lea ecx, [r8 + 0x77]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
test eax, eax
js 0x1400a01f6
mov rcx, qword [rsp + 0x20]
xor eax, eax
lock cmpxchg qword [0x14017e4a8], rcx
mov ecx, 1
xchg dword [0x14017e4b0], ecx
cmp qword [0x14017e4a8], rbx
setne al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140168920
add rsp, 0x50
pop rbx
ret

Function at 0x1400a0224
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xf0
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor ebp, ebp
mov r14, rdx
lea rax, [rsp + 0x38]
mov r9d, 0xa0
lea r8, [rsp + 0x40]
lea edx, [rbp + 3]
mov edi, ebp
mov qword [rsp + 0x30], rbp
mov sil, bpl
mov dword [rsp + 0x38], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_ZwQueryKey]
mov ebx, eax
test eax, eax
jns 0x1400a028e
cmp eax, 0xc0000023
jne 0x1400a02c7
mov ebx, ebp
jmp 0x1400a02c7
cmp dword [rsp + 0x40], 0x4c
jb 0x1400a02c7
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x44]
mov r8d, 0x20019
xor ecx, ecx
mov word [rsp + 0x7e], bp
call fcn.14009d23c
mov rdi, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
js 0x1400a02ce
mov rcx, rdi
call fcn.14009aef8
mov sil, al
test ebx, ebx
js 0x1400a02ce
mov byte [r14], sil
test rdi, rdi
je 0x1400a02db
mov rcx, rdi
call fcn.14009cf20
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400a5ccc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movzx eax, byte [rcx + 3]
xor edi, edi
mov r12, rdx
shl eax, 8
mov r15, r8
mov r8b, 0x7f
movsxd r9, eax
movzx eax, byte [rcx + 2]
mov rbx, rcx
or r9, rax
mov esi, edi
add r9, rcx
mov dl, byte [r9]
mov al, dl
and al, r8b
cmp al, r8b
je 0x1400a5e15
cmp dl, 4
jne 0x1400a5d42
cmp byte [r9 + 1], dl
jne 0x1400a5d42
movzx ecx, byte [r9 + 3]
movzx eax, byte [r9 + 2]
shl ecx, 8
or ecx, eax
cmp ecx, 4
jb 0x1400a5d9a
lea eax, [rcx - 4]
add esi, eax
movzx eax, byte [r9 + 3]
shl eax, 8
movsxd rcx, eax
movzx eax, byte [r9 + 2]
or rcx, rax
add r9, rcx
mov dl, byte [r9]
mov al, dl
and al, r8b
cmp al, r8b
jne 0x1400a5d1e
test esi, esi
je 0x1400a5e15
mov rcx, qword gs:[0x60]
add esi, 2
xor edx, edx
mov rcx, qword [rcx + 0x30]
mov r8d, esi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
jne 0x1400a5da1
mov eax, 0xc000009a
jmp 0x1400a5e1a
mov eax, 0xc0000095
jmp 0x1400a5e1a
mov r14, rax
movzx eax, byte [rbx + 3]
shl eax, 8
movsxd rdi, eax
movzx eax, byte [rbx + 2]
or rdi, rax
add rdi, rbx
jmp 0x1400a5dfc
cmp cl, 4
jne 0x1400a5de8
cmp byte [rdi + 1], cl
jne 0x1400a5de8
movzx ecx, byte [rdi + 3]
movzx eax, byte [rdi + 2]
lea rdx, [rdi + 4]
shl ecx, 8
or ecx, eax
sub ecx, 4
mov ebx, ecx
mov r8d, ecx
mov rcx, r14
call sub.msvcrt.dll_memcpy
add r14, rbx
movzx eax, byte [rdi + 3]
shl eax, 8
movsxd rcx, eax
movzx eax, byte [rdi + 2]
or rcx, rax
add rdi, rcx
mov cl, byte [rdi]
mov al, cl
and al, 0x7f
cmp al, 0x7f
jne 0x1400a5dba
xor eax, eax
mov qword [r12], rbp
mov dword [r15], esi
mov word [r14], ax
jmp 0x1400a5e1a
mov eax, 0xc0000225
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400a7684
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
xor edi, edi
mov rbx, rdx
mov rdx, rcx
and qword [rbp + 0x48], rdi
and qword [r8], rdi
and dword [r9], edi
lea rcx, [rbp - 0x10]
mov rsi, r9
mov r14, r8
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test rbx, rbx
je 0x1400a76d8
lea r9, [rbp + 0x48]
mov r8d, 0x20019
mov rdx, rbx
xor ecx, ecx
call fcn.1400a73ac
mov ebx, eax
test eax, eax
jns 0x1400a76dc
jmp 0x1400a77bd
and qword [rbp + 0x48], rdi
mov rcx, qword [rbp + 0x48]
xor r9d, r9d
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
lea rdx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
je 0x1400a7719
test eax, eax
js 0x1400a77bd
mov ebx, 0xc0000001
jmp 0x1400a77bd
mov rcx, qword gs:[0x60]
mov r8d, dword [rbp + 0x38]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x1400a7741
mov ebx, 0xc000009a
jmp 0x1400a77bd
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x40]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x38]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x1400a77bd
cmp dword [rdi + 4], 1
je 0x1400a777b
mov ebx, 0xc0000024
jmp 0x1400a77bd
mov eax, dword [rbp + 0x38]
xor edx, edx
add eax, 0xfffffff4
mov dword [rbp + 0x38], eax
mov rcx, qword gs:[0x60]
mov r8d, eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [r14], rax
test rax, rax
je 0x1400a773a
mov r8d, dword [rbp + 0x38]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rbp + 0x38]
xor ebx, ebx
mov dword [rsi], r11d
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1400a77cc
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x1400a77e9
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400a77fc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rsi, rdx
mov rdx, rcx
xor r14d, r14d
lea rcx, [rbp - 0x40]
mov qword [rbp + 0x38], r14
mov qword [rbp - 0x48], r14
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x40]
lea r8, [rbp - 0x30]
lea edx, [r14 + 1]
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x18], 0x40
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
test eax, eax
js 0x1400a798a
lea rcx, [rbp - 0x50]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, r14d
mov dword [rbp + 0x30], r14d
jmp 0x1400a78cb
cmp qword [rbp - 0x48], r14
je 0x1400a789c
mov rcx, qword gs:[0x60]
mov r8, qword [rbp - 0x48]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [rbp + 0x30]
xor edx, edx
mov word [rbp - 0x4e], ax
mov rcx, qword gs:[0x60]
lea edi, [rax + 2]
mov rcx, qword [rcx + 0x30]
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1400a799f
mov rcx, qword [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x1400a787d
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
js 0x1400a796a
movzx ecx, word [rbp - 0x50]
lea r8, [rbp - 0x30]
mov edx, 1
shr rcx, 1
mov word [rax + rcx*2], r14w
lea rax, [rbp - 0x50]
lea rcx, [rbp + 0x38]
mov word [rbp - 0x4e], di
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], 0x40
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
test eax, eax
jns 0x1400a78cb
mov rax, qword [rbp - 0x48]
mov ebx, r14d
mov qword [rsi], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400a7966
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
jns 0x1400a7988
test rax, rax
je 0x1400a7988
mov rcx, qword gs:[0x60]
mov r8, qword [rbp - 0x48]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ebx, 0xc000009a
jmp 0x1400a794f
Function at 0x1400a8318
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
xor r15d, r15d
mov r14, rcx
lea rdx, [0x140169c10]
lea rcx, [rbp - 0x19]
mov dword [rbp + 0x6f], r15d
mov qword [rbp + 0x77], r15
mov esi, r15d
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x19]
mov dword [rbp + 7], 0x30
mov qword [rbp + 0xf], r15
mov dword [rbp + 0x1f], 0x40
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
call fcn.1400a8490
mov ebx, eax
test eax, eax
js 0x1400a8439
lea rax, [rbp + 0x6f]
lea r8, [rbp + 7]
lea rcx, [rbp + 0x77]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov ebx, eax
test eax, eax
js 0x1400a8439
or rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], r15w
jne 0x1400a83bd
mov rdi, qword [rbp + 0x77]
lea rdx, [0x140169c90]
lea rcx, [rbp - 9]
lea ebx, [rax*2 + 2]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rdx, [rbp - 9]
mov r9d, 1
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x1400a8439
mov ecx, 0x60019
call fcn.1400a6dc4
mov rsi, rax
test rax, rax
jne 0x1400a8421
mov ebx, 0xc0000001
jmp 0x1400a8439
mov rcx, qword [rbp + 0x77]
mov r8, rax
mov edx, 4
call qword [sym.imp.ntdll.dll_NtSetSecurityObject]
mov ebx, eax
test eax, eax
jns 0x1400a8443
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x1400a8452
call qword [sym.imp.ntdll.dll_NtClose]
test rsi, rsi
je 0x1400a846f
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret