Function at 0x140020170
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 [0x140116080]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, [rbp + 0x20]
call fcn.14001a980
nop
movabs rsi, 0x7ffffffffffffffe
mov rax, rsi
mov rcx, qword [rbp + 0x30]
sub rax, rcx
cmp rax, 0x22
jb 0x140020844
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.14001e7a0
nop
mov rcx, qword [rdi + 0x10]
mov rax, rsi
sub rax, rcx
cmp rax, 4
jb 0x14002084a
cmp qword [rdi + 0x18], 7
jbe 0x14002021e
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 4
lea r9, [0x1400fe1f8]
lea rcx, [rbp + 0x40]
call fcn.14001e7a0
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 0x140020293
movdqa xmm0, xmmword [0x140100bc0]
mov dword [rbp - 0x10], 0x65732065
mov dword [rbp - 0xc], 0x63697672
mov dword [rbp - 8], 0x656b2065
mov word [rbp - 4], 0x79
jmp 0x140020308
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 0x14002037b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movdqa xmm0, xmmword [0x140100ba0]
movdqa xmm1, xmmword [0x1401008d0]
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.14001e030
lea rdx, [0x14001e290]
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.140009cf0
nop
lea rcx, [rbp + 0x80]
call fcn.140009cf0
nop
lea rcx, [rbp + 0x20]
call fcn.140009cf0
movzx eax, dil
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400da3c0
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 0x1400203d5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movdqa xmm0, xmmword [0x140100bb0]
movdqa xmm1, xmmword [0x140100b30]
mov dword [rbp], 0x61762079
mov dword [rbp + 4], 0x65756c
jmp 0x140020303
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x1400f0be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, rax
test rax, rax
je 0x14002032d
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 0x14002058d
movdqa xmm0, xmmword [0x140100470]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x140100ca0]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm0, xmmword [0x1401001d0]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1401003e0]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm0, xmmword [0x140100410]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x1401003d0]
movdqa xmmword [rbp - 0x70], xmm1
mov dword [rbp - 0x60], 0x2e33283d
mov word [rbp - 0x5c], WSAStartup
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 0x140020490
mov byte [rbp - 0x5b], 0
lea rdx, [rsp + 0x41]
jmp 0x140020311
mov rcx, qword [rbp + 0x30]
sub rsi, rcx
cmp rsi, 0x34
jb 0x14002083e
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.14001e7a0
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 0x140020831
movdqa xmm0, xmmword [0x140100bf0]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x140100b40]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm0, xmmword [0x1401008b0]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x140100880]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm0, xmmword [0x1401007d0]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x140100890]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmm0, xmmword [0x140100a60]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [0x140100a90]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmm0, xmmword [0x140100a00]
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [str.ui_houdm_eshwds]
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 0x140020690
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.14001e030
lea rdx, [0x14001e290]
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 [0x140100220]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x1401001b0]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm0, xmmword [0x140100280]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x140100450]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm0, xmmword [0x140100460]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [str.61__9]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmm0, xmmword [0x1401003a0]
movdqa xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0xa26392c
mov dword [rbp - 0x4c], 0x20c030b
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 0x140020750
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.14001e030
lea rdx, [0x14001e290]
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.140009cf0
jmp 0x140020330
cmp edi, 0xc000010e
jne 0x14002081c
mov dil, 1
jmp 0x140020823
call fcn.140001d50
nop
call fcn.140001d50
nop
call fcn.140001d50
int3