Function at 0x140020130
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140118080]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, [rbp + 0x20]
call fcn.14001a940
nop
movabs rsi, 0x7ffffffffffffffe
mov rax, rsi
mov rcx, qword [rbp + 0x30]
sub rax, rcx
cmp rax, 0x22
jb 0x140020804
lea rax, [rbp + 0x20]
cmp qword [rbp + 0x38], 7
cmova rax, qword [rbp + 0x20]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], Ordinal_41
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0x80]
call fcn.14001e760
nop
mov rcx, qword [rdi + 0x10]
mov rax, rsi
sub rax, rcx
cmp rax, 4
jb 0x14002080a
cmp qword [rdi + 0x18], 7
jbe 0x1400201de
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 4
lea r9, [0x1401001e8]
lea rcx, [rbp + 0x40]
call fcn.14001e760
nop
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 7
cmova rdx, qword [rbp + 0x80]
lea r8, [rbp + 0x10]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x140020253
movdqa xmm0, xmmword [0x140102b60]
mov dword [rbp - 0x10], 0x65732065
mov dword [rbp - 0xc], 0x63697672
mov dword [rbp - 8], 0x656b2065
mov word [rbp - 4], 0x79
jmp 0x1400202c8
mov eax, dword [rbp + 0x50]
add eax, eax
lea rcx, [rbp + 0x40]
cmp qword [rbp + 0x58], 7
cmova rcx, qword [rbp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x10]
test eax, eax
je 0x14002033b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movdqa xmm0, xmmword [0x140102b70]
movdqa xmm1, xmmword [0x1401028a0]
mov dword [rbp], 0x74736967
mov dword [rbp + 4], 0x76207972
mov dword [rbp + 8], 0x65756c61
mov byte [rbp + 0xc], 0
movdqu xmmword [rbp - 0x10], xmm1
movdqu xmmword [rbp - 0x20], xmm0
lea rdx, [rbp - 0x1f]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14001dff0
lea rdx, [0x14001e250]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor dil, dil
lea rcx, [rbp + 0x40]
call fcn.140009d50
nop
lea rcx, [rbp + 0x80]
call fcn.140009d50
nop
lea rcx, [rbp + 0x20]
call fcn.140009d50
movzx eax, dil
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400db8b0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov dword [rsp + 0x28], 4
lea rax, reloc.WS2_32.dll_accept
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x10]
test eax, eax
je 0x140020395
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movdqa xmm0, xmmword [0x140102b50]
movdqa xmm1, xmmword [0x140102b00]
mov dword [rbp], 0x61762079
mov dword [rbp + 4], 0x65756c
jmp 0x1400202c3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x1400f2bd8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, rax
test rax, rax
je 0x1400202ed
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rdx, str.NtLoadDriver
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
lea r9, [rbp + 0x18]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0xa]
call rdi
test eax, eax
jns 0x14002054d
movdqa xmm0, xmmword [0x1401022a0]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x140102750]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm0, xmmword [0x140102360]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [str.____:313XV_]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm0, xmmword [0x1401022b0]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x1401021b0]
movdqa xmmword [rbp - 0x70], xmm1
mov dword [rbp - 0x60], 0x4190217
mov word [rbp - 0x5c], 0x58
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x41], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x42], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x43], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x44], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x45], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x46], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x47], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x48], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x49], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x4a], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x4b], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x4c], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x4d], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x4e], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x4f], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x50], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x51], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x52], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x53], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x54], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x55], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x56], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x57], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x58], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x59], al
add rbx, 0x19
cmp rbx, 0x64
jb 0x140020450
mov byte [rbp - 0x5b], 0
lea rdx, [rsp + 0x41]
jmp 0x1400202d1
mov rcx, qword [rbp + 0x30]
sub rsi, rcx
cmp rsi, 0x34
jb 0x1400207fe
lea rax, [rbp + 0x20]
cmp qword [rbp + 0x38], 7
cmova rax, qword [rbp + 0x20]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], Ordinal_60
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x60]
call fcn.14001e760
nop
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 7
cmova rdx, qword [rbp + 0x60]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp + 0xa0]
call r14
mov edi, eax
cmp eax, 0xc0000603
jne 0x1400207f1
movdqa xmm0, xmmword [0x1401027a0]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x140102780]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm0, xmmword [0x140102740]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x140102710]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm0, xmmword [0x1401026f0]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x140102720]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmm0, xmmword [0x1401026d0]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [0x140102670]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmm0, xmmword [0x140102630]
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [str._C_vBE_NG_vOYB_NY]
movdqa xmmword [rbp - 0x30], xmm1
mov rdx, rbx
nop dword [rax + rax]
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rdx + 0x41], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rdx + 0x42], al
add rdx, 2
cmp rdx, 0x9e
jb 0x140020650
mov byte [rbp - 0x21], 0
lea rdx, [rsp + 0x41]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14001dff0
lea rdx, [0x14001e250]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
movdqa xmm0, xmmword [0x140102380]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x1401023d0]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm0, xmmword [0x140102370]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [str.0__y50_cy]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm0, xmmword [0x140102170]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x140102390]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmm0, xmmword [str.65_n__]
movdqa xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0x361a0510
mov dword [rbp - 0x4c], 0x3e303f37
mov byte [rbp - 0x48], 0
nop word [rax + rax]
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x41], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x42], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x43], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x44], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x45], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x46], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x47], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x48], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x49], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x4a], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x4b], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x4c], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x4d], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x4e], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x4f], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x50], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rbx + 0x51], al
add rbx, 0x11
cmp rbx, 0x77
jb 0x140020710
mov byte [rbp - 0x48], 0
lea rdx, [rsp + 0x41]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14001dff0
lea rdx, [0x14001e250]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
shr edi, 0x1f
xor dil, 1
lea rcx, [rbp + 0x60]
call fcn.140009d50
jmp 0x1400202f0
cmp edi, 0xc000010e
jne 0x1400207dc
mov dil, 1
jmp 0x1400207e3
call fcn.140001ce0
nop
call fcn.140001ce0
nop
call fcn.140001ce0
int3