Function at 0x14005db40
Capabilities:
Delete registry key
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rdi, rcx
mov dword [rsp + 0x60], 0x2091805
mov dword [rsp + 0x64], 0x1e155e03
mov word [rsp + 0x68], 0x1f
mov byte [rsp + 0x6a], 1
xor r15d, r15d
mov eax, r15d
nop word [rax + rax]
lea ecx, [rax + 0x6b]
xor byte [rsp + rax + 0x60], cl
inc rax
cmp rax, 9
jb 0x14005dba0
mov byte [rsp + 0x6a], r15b
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, rax
test rax, rax
je 0x14005e096
mov dword [rsp + 0x70], 0xc23dc232
mov dword [rsp + 0x74], 0xc216c215
mov dword [rsp + 0x78], 0xc200c21b
mov dword [rsp + 0x7c], 0xc207c200
mov dword [rbp - 0x80], 0xc22bc20f
mov dword [rbp - 0x7c], 0xc218c235
mov dword [rbp - 0x78], 0xc213c219
mov dword [rbp - 0x74], 0xc213c215
mov dword [rbp - 0x70], 0xc223c21b
mov dword [rbp - 0x6c], 0xc2f8c2d3
mov dword [rbp - 0x68], 0xc2f7c2f1
mov dword [rbp - 0x64], 0xc2e8c2e1
mov dword [rbp - 0x60], 0xc2c4c2da
mov dword [rbp - 0x5c], 0xc2fbc2fd
mov dword [rbp - 0x58], 0xc2eec2f8
mov dword [rbp - 0x54], 0xc2f9c2e2
mov dword [rbp - 0x50], 0xc2e0c2cd
mov dword [rbp - 0x4c], 0xc2e5c2fe
mov dword [rbp - 0x48], 0xc2fcc2e0
mov dword [rbp - 0x44], 0xc2c6c2f8
mov dword [rbp - 0x40], 0xc2e3c2f3
mov dword [rbp - 0x3c], 0xc2cac2c4
mov dword [rbp - 0x38], 0xc2e9c2ff
mov dword [rbp - 0x34], 0xc2f4c2ea
mov dword [rbp - 0x30], 0xc2fac2fd
mov dword [rbp - 0x2c], 0xc2fdc2d3
mov word [rbp - 0x28], r15w
mov byte [rbp - 0x26], 1
mov rcx, r15
mov edx, 0x3d92
nop word [rax + rax]
movzx eax, cx
sub ax, dx
xor word [rsp + rcx*2 + 0x70], ax
inc rcx
cmp rcx, 0x34
jb 0x14005dca0
mov byte [rbp - 0x26], r15b
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
mov rcx, rbx
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x14005dcd0
mov rdx, qword [rdi + 0x10]
movabs rsi, 0x7ffffffffffffffe
mov rax, rsi
sub rax, rdx
cmp rax, rcx
jb 0x14005e0c9
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x14005dd04
mov rax, qword [rdi]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
lea rcx, [rbp + 8]
call fcn.140059c90
nop
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
lea rcx, [rbp + 0x28]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x70], 0xc235c238
mov dword [rsp + 0x74], 0xc23ac23e
mov dword [rsp + 0x78], 0xc23dc22a
mov dword [rsp + 0x7c], 0xc231c22d
mov dword [rbp - 0x80], 0xc206c206
mov dword [rbp - 0x7c], 0xc213c207
mov dword [rbp - 0x78], 0xc20cc219
mov dword [rbp - 0x74], 0xc215c23a
mov dword [rbp - 0x70], 0xc208c215
mov dword [rbp - 0x6c], 0xc211c20f
mov dword [rbp - 0x68], 0xc2d3c213
mov dword [rbp - 0x64], 0xc2f6c2e4
mov dword [rbp - 0x60], 0xc2d7c2df
mov dword [rbp - 0x5c], 0xc2f4c2e0
mov dword [rbp - 0x58], 0xc2e1c2f1
mov dword [rbp - 0x54], 0xc2efc2ea
mov dword [rbp - 0x50], 0xc2d0c2f8
mov word [rbp - 0x4c], r15w
mov byte [rbp - 0x4a], 1
mov rcx, r15
mov edx, 0x3d95
nop word [rax + rax]
movzx eax, cx
sub ax, dx
xor word [rsp + rcx*2 + 0x70], ax
inc rcx
cmp rcx, 0x22
jb 0x14005ddd0
mov byte [rbp - 0x4a], 0
lea rax, [rsp + 0x70]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14005ddf0
mov rax, qword [rdi + 0x10]
sub rsi, rax
cmp rsi, rbx
jb 0x14005e0c3
cmp qword [rdi + 0x18], 8
jb 0x14005de14
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
lea rcx, [rbp - 0x18]
call fcn.140059c90
nop
lea rdx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14005de60
cmp eax, 2
sete bl
jmp 0x14005dffc
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x40], 0x1f251b20
mov dword [rsp + 0x44], 0x11151c1e
mov dword [rsp + 0x48], 0xf110532
mov dword [rsp + 0x4c], 0x100091f
mov rcx, r15
nop dword [rax]
lea eax, [rcx + 0x6e]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0xe
jb 0x14005de90
mov byte [rsp + 0x4f], 0
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 0x28]
call rax
mov ebx, eax
movdqa xmm0, xmmword [0x140087980]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0xd2a00d1b
mov dword [rsp + 0x54], 0xf0f0e2f6
mov dword [rsp + 0x58], 0xf1b8a7f5
mov word [rsp + 0x5c], 0x100
mov rdx, r15
nop dword [rax + rax]
lea eax, [rdx + 0x6e]
xor byte [rsp + rdx + 0x40], al
inc rdx
cmp rdx, 0x1c
jb 0x14005def0
mov byte [rsp + 0x5d], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [0x140070250]
call fcn.140059170
lea rdx, [0x14004bb60]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, ebx
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___long_int____ptr64]
lea rdx, [0x140054d10]
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]
test ebx, ebx
je 0x14005dfd7
movdqa xmm0, xmmword [0x140087a30]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0x1f3b5c1f
mov dword [rsp + 0x54], 0xe6e4ec16
mov dword [rsp + 0x58], 0x100a5a2
mov r8, r15
nop dword [rax]
nop word [rax + rax]
lea eax, [r8 + 0x6b]
xor byte [rsp + r8 + 0x40], al
inc r8
cmp r8, 0x1a
jb 0x14005df80
mov byte [rsp + 0x5b], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [0x140070250]
call fcn.140059170
lea rdx, [0x140054d10]
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]
lea rdx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rdx, qword [rbp - 0x18]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor bl, bl
jmp 0x14005dffc
lea rdx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rdx, qword [rbp - 0x18]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14005dffa
xor bl, bl
jmp 0x14005dffc
mov bl, 1
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x14005e03f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e03a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e03a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006ca00
mov qword [rbp - 8], r15
mov qword [rbp], 7
mov word [rbp - 0x18], r15w
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x14005e093
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e08e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e08e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006ca00
movzx eax, bl
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.14006c910
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14004ba80
nop
call fcn.14004ba80
int3