Function at 0x14006a790
Capabilities:
Encode data using xor
Hash data using fnv
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, r8
mov rdi, rdx
xor ebx, ebx
cmp qword [r8 + 0x10], rbx
je 0x14006a948
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
cmp qword [rsi + 0x18], 7
jbe 0x14006a7ff
mov rsi, qword [rsi]
mov r9, rsi
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.14005f870
lea r8, [rsp + 0x70]
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14006a86c
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jle 0x14006a844
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jle 0x14006a934
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x14006ab8a
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14006a879
mov rdx, qword [rdi]
lea r8, [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14006a834
lea rcx, [rbp - 0x50]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], bx
jne 0x14006a8a0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
jne 0x14006a839
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jle 0x14006a920
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jle 0x14006a930
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14006a948
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x14006ab8a
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 0x34
jb 0x14006abb4
cmp qword [rdi + 0x18], 7
jbe 0x14006a96d
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0x34
lea r9, str._registrymachineSYSTEMCurrentControlSetServices_
lea rcx, [rbp - 0x80]
call fcn.14005d9b0
nop
call fcn.1400524e0
mov r14, rax
lea r12, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r12, qword [rbp - 0x80]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov ecx, 0x20
call fcn.1400848ec
mov rsi, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0x14
mov qword [rsp + 0x58], 0x1f
movups xmm0, xmmword [str.RtlInitUnicodeString]
movups xmmword [rax], xmm0
mov ecx, dword [0x14009dc98]
mov dword [rax + 0x10], ecx
mov byte [rax + 0x14], 0
call fcn.14006c8c0
lea r15, [r14 + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movabs rdi, 0xcbf29ce484222325
mov r9, rdi
mov rcx, rbx
movabs r13, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rsi + rcx]
xor r9, rax
imul r9, r13
inc rcx
cmp rcx, 0x14
jb 0x14006aa20
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140052dd0
mov r8, qword [rax + 8]
test r8, r8
je 0x14006aa73
cmp r8, qword [r14 + 8]
je 0x14006aa73
mov r14, qword [r8 + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14, r14
je 0x14006aa7d
mov rdx, r12
lea rcx, [rbp - 0x60]
call r14
jmp 0x14006aa7d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov edx, 0x20
mov rcx, rsi
call fcn.140084b70
call fcn.1400524e0
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0xc
mov qword [rsp + 0x58], 0xf
movsd xmm0, qword [str.NtLoadDriver]
movsd qword [rsp + 0x40], xmm0
mov ecx, dword [0x14009e010]
mov dword [rsp + 0x48], ecx
mov byte [rsp + 0x4c], 0
call fcn.14006c8c0
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
movzx eax, byte [rsp + rbx + 0x40]
xor rdi, rax
imul rdi, r13
inc rbx
cmp rbx, 0xc
jb 0x14006aae0
mov r9, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140052dd0
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14006ab36
cmp rdx, qword [r14 + 8]
je 0x14006ab36
mov rbx, qword [rdx + 0x30]
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x14006ab40
lea rcx, [rbp - 0x60]
call rbx
mov ebx, eax
jmp 0x14006ab45
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x14006ab88
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ab83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006ab83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084b70
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140084e30
mov rbx, qword [rsp + 0x310]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400439d0
int3