Function at 0x180025380
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 - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x180178b40]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rdi, r8
mov rbx, rdx
xor r14d, r14d
cmp qword [r8 + 0x10], r14
je 0x180025525
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x70], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 7
jbe 0x1800253ed
mov rdi, qword [rdi]
mov r9, rdi
lea r8, [0x180115048]
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.180019980
lea r8, [rbp - 0x78]
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x180025457
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jle 0x180025430
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
jle 0x180025511
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x1800258a8
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x180025464
mov rdx, qword [rbx]
lea r8, [rbp - 0x80]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x180025421
lea rcx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], r14w
jne 0x180025481
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x80]
test eax, eax
jne 0x180025425
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jle 0x1800254fe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
jle 0x18002550d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x180025525
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x1800258a8
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 0x34
jb 0x1800258d2
cmp qword [rbx + 0x18], 7
jbe 0x18002554a
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x34
lea r9, str._registrymachineSYSTEMCurrentControlSetServices_
lea rcx, [rbp - 0x68]
call fcn.180017c70
nop
call fcn.18000b090
mov r12, rax
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rax, qword [rbp - 0x68]
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov r8d, 0x14
lea rdx, str.RtlInitUnicodeString
lea rcx, [rsp + 0x40]
call fcn.18000b890
nop
call fcn.1800274b0
lea rcx, [r12 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [rsp + 0x40]
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x58]
cmp r13, 0xf
cmova r8, r15
movabs rdi, 0xcbf29ce484222325
mov rdx, rdi
mov rcx, r14
movabs r9, 0x100000001b3
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x180025615
movzx eax, byte [r8 + rcx]
xor rdx, rax
imul rdx, r9
inc rcx
cmp rcx, rsi
jb 0x180025601
mov rcx, qword [r12 + 0x30]
and rcx, rdx
add rcx, rcx
mov rax, qword [r12 + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r12 + 8]
je 0x180025685
mov r12, qword [rax + rcx*8]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x180025652
mov rdx, qword [rdx]
lea rcx, [rsp + 0x40]
cmp r13, 0xf
cmova rcx, r15
cmp rsi, rax
jne 0x180025670
mov r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18002567b
cmp rbx, r12
je 0x180025681
mov rbx, qword [rbx + 8]
jmp 0x180025640
mov r12, qword [rbp - 0x78]
jmp 0x180025688
mov r12, qword [rbp - 0x78]
mov rbx, r14
test rbx, rbx
je 0x1800256b4
cmp rbx, qword [r12 + 8]
je 0x1800256b4
mov rbx, qword [rbx + 0x30]
lea rcx, [r12 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1800256c0
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x48]
call rbx
jmp 0x1800256c0
lea rcx, [r12 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp r13, 0xf
jbe 0x1800256f7
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x1800256ef
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180025853
mov rcx, r15
call fcn.1800e5744
call fcn.18000b090
mov r12, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov r8d, 0xc
lea rdx, str.NtLoadDriver
lea rcx, [rsp + 0x60]
call fcn.18000b890
nop
call fcn.1800274b0
lea rcx, [r12 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rdx, [rsp + 0x60]
mov r15, qword [rsp + 0x60]
mov r13, qword [rsp + 0x78]
cmp r13, 0xf
cmova rdx, r15
mov rcx, r14
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x180025783
movabs r8, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor rdi, rax
imul rdi, r8
inc rcx
cmp rcx, rsi
jb 0x180025770
mov rcx, qword [r12 + 0x30]
and rcx, rdi
add rcx, rcx
mov rax, qword [r12 + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r12 + 8]
je 0x1800257ee
mov rdi, qword [rax + rcx*8]
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1800257c2
mov rdx, qword [rdx]
lea rcx, [rsp + 0x60]
cmp r13, 0xf
cmova rcx, r15
cmp rsi, rax
jne 0x1800257e0
mov r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800257eb
cmp rbx, rdi
je 0x1800257ee
mov rbx, qword [rbx + 8]
jmp 0x1800257b0
mov r14, rbx
test r14, r14
je 0x180025818
cmp r14, qword [r12 + 8]
je 0x180025818
mov rbx, qword [r14 + 0x30]
lea rcx, [r12 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x180025823
lea rcx, [rbp - 0x48]
call rbx
mov ebx, eax
jmp 0x180025828
lea rcx, [r12 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
cmp r13, 0xf
jbe 0x180025863
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x18002585a
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002585a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1800e5744
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x1800258a6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800258a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800258a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800e5744
mov eax, ebx
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1800e5bd0
mov rbx, qword [rsp + 0x330]
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180001530
int3