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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14019d0c0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, r8
mov rsi, rdx
xor ebx, ebx
cmp qword [r8 + 0x10], rbx
je 0x140101208
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x68], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.14014c1f0
cmp qword [rdi + 0x18], 7
jbe 0x1401010c1
mov rdi, qword [rdi]
mov r9, rdi
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.1400f6910
lea r8, [rsp + 0x58]
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14010112e
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jle 0x140101106
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jle 0x1401011f4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x1401013ee
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14010113b
mov rdx, qword [rsi]
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1401010f6
lea rcx, [rbp - 0x60]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], bx
jne 0x140101160
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x1401010fb
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 edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jle 0x1401011e0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jle 0x1401011f0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x140101208
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x1401013ee
mov r8, rsi
lea rdx, str._registrymachineSYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x70]
call fcn.140101690
nop
call fcn.1400ea610
mov rsi, rax
lea r15, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova r15, qword [rsp + 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, str.RtlInitUnicodeString
lea rcx, [rsp + 0x30]
call fcn.1400016c0
nop
call fcn.140102f60
lea r14, [rsi + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
movabs rdi, 0xcbf29ce484222325
mov r9, rdi
mov rcx, rbx
movabs r12, 0x100000001b3
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x1401012c3
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r12
inc rcx
cmp rcx, r8
jb 0x1401012b0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.140018ef0
mov r8, qword [rax + 8]
test r8, r8
je 0x140101302
cmp r8, qword [rsi + 8]
je 0x140101302
mov rsi, qword [r8 + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
test rsi, rsi
je 0x14010130c
mov rdx, r15
lea rcx, [rbp - 0x70]
call rsi
jmp 0x14010130c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x30]
call fcn.140001e20
call fcn.1400ea610
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov r8d, ntohl
lea rdx, str.NtLoadDriver
lea rcx, [rsp + 0x30]
call fcn.1400016c0
nop
call fcn.140102f60
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140101385
movzx eax, byte [rbx + rcx]
xor rdi, rax
imul rdi, r12
inc rbx
cmp rbx, rdx
jb 0x140101372
mov r9, rdi
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.140018ef0
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1401013c7
cmp rdx, qword [r14 + 8]
je 0x1401013c7
mov rbx, qword [rdx + 0x30]
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
test rbx, rbx
je 0x1401013d2
lea rcx, [rbp - 0x70]
call rbx
mov ebx, eax
jmp 0x1401013d7
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov ebx, 0xc0000138
lea rcx, [rsp + 0x30]
call fcn.140001e20
nop
lea rcx, [rsp + 0x70]
call fcn.1400152a0
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14011c6a0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret