Function at 0x14001f5f0
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 [0x140117080]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, [rbp + 0x20]
call fcn.14001a1d0
nop
movabs rsi, 0x7ffffffffffffffe
mov rax, rsi
mov rcx, qword [rbp + 0x30]
sub rax, rcx
cmp rax, 0x22
jb 0x14001fc36
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.14001dc20
nop
mov rcx, qword [rdi + 0x10]
mov rax, rsi
sub rax, rcx
cmp rax, 4
jb 0x14001fc3c
cmp qword [rdi + 0x18], 7
jbe 0x14001f69e
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 4
lea r9, [0x1400ff1d8]
lea rcx, [rbp + 0x40]
call fcn.14001dc20
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 0x14001f717
movdqa xmm0, xmmword [0x140101bc0]
mov dword [rsp + 0x50], 0x65732065
mov dword [rsp + 0x54], 0x63697672
mov dword [rsp + 0x58], 0x656b2065
mov word [rsp + 0x5c], 0x79
jmp 0x14001f791
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 0x14001f806
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movdqa xmm0, xmmword [0x140101bd0]
movdqa xmm1, xmmword [0x140101910]
mov dword [rsp + 0x60], 0x74736967
mov dword [rsp + 0x64], 0x76207972
mov dword [rsp + 0x68], 0x65756c61
mov byte [rsp + 0x6c], 0
movdqu xmmword [rsp + 0x50], xmm1
movdqu xmmword [rsp + 0x40], xmm0
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.14001d4c0
lea rdx, [0x14001d720]
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.140009c70
nop
lea rcx, [rbp + 0x80]
call fcn.140009c70
nop
lea rcx, [rbp + 0x20]
call fcn.140009c70
movzx eax, dil
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400da920
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 0x14001f862
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movdqa xmm0, xmmword [0x140101bb0]
movdqa xmm1, xmmword [0x140101af0]
mov dword [rsp + 0x60], 0x61762079
mov dword [rsp + 0x64], 0x65756c
jmp 0x14001f78b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x1400f1bc8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, rax
test rax, rax
je 0x14001f7b8
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
mov ecx, 0xa
call rdi
test eax, eax
jns 0x14001f992
movdqa xmm0, xmmword [0x140101350]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x140101a10]
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmm0, xmmword [0x140101240]
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x140101400]
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmm0, xmmword [0x1401012f0]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [0x140101460]
movdqa xmmword [rbp - 0x40], xmm1
mov dword [rbp - 0x30], 0x3f22392c
mov word [rbp - 0x2c], 0x63
nop dword [rax + rax]
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x71], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x72], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x73], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x74], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x75], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x76], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x77], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x78], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x79], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x7a], al
add rbx, 0xa
cmp rbx, 0x64
jb 0x14001f920
mov byte [rbp - 0x2b], 0
lea rdx, [rsp + 0x71]
jmp 0x14001f79c
mov rcx, qword [rbp + 0x30]
sub rsi, rcx
cmp rsi, 0x34
jb 0x14001fc30
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.14001dc20
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 0x14001fc23
movdqa xmm0, xmmword [0x140101cb0]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x140101c60]
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmm0, xmmword [0x140101a50]
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x140101a60]
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmm0, xmmword [0x1401019d0]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [0x140101a30]
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmm0, xmmword [0x140101950]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [0x140101940]
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmm0, xmmword [0x140101850]
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmm1, xmmword [str.bcdofnxcox]
movdqa xmmword [rbp], xmm1
mov rdx, rbx
nop dword [rax]
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rdx + 0x71], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rdx + 0x72], al
add rdx, 2
cmp rdx, 0x9e
jb 0x14001fa90
mov byte [rbp + 0xf], 0
lea rdx, [rsp + 0x71]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14001d4c0
lea rdx, [0x14001d720]
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 [0x140101810]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x140101c10]
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmm0, xmmword [0x140101980]
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x140101700]
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmm0, xmmword [0x140101710]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [0x140101820]
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmm0, xmmword [0x1401017b0]
movdqa xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x20], 0x7b57485d
mov dword [rbp - 0x1c], 0x737d727a
mov byte [rbp - 0x18], 0
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x71], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x72], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x73], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x74], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x75], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x76], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x77], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x78], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x79], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x7a], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x7b], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x7c], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x7d], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x7e], al
movzx eax, byte [rsp + 0x70]
xor byte [rsp + rbx + 0x7f], al
movzx eax, byte [rsp + 0x70]
xor byte [rbp + rbx - 0x80], al
movzx eax, byte [rsp + 0x70]
xor byte [rbp + rbx - 0x7f], al
add rbx, 0x11
cmp rbx, 0x77
jb 0x14001fb42
mov byte [rbp - 0x18], 0
lea rdx, [rsp + 0x71]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14001d4c0
lea rdx, [0x14001d720]
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.140009c70
jmp 0x14001f7bb
cmp edi, 0xc000010e
jne 0x14001fc0e
mov dil, 1
jmp 0x14001fc15
call fcn.140001c50
nop
call fcn.140001c50
nop
call fcn.140001c50
int3