Function at 0x140162328
Capabilities:
Encode data using base64
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, r9
mov rbx, r8
mov edi, edx
mov sil, cl
lea rax, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rax
je 0x1401623a7
test byte [rcx + 0x1c], 0x20
je 0x1401623a7
cmp byte [rcx + 0x19], 4
jb 0x1401623a7
mov edx, reloc.ADVAPI32.dll_EventUnregister
lea r8, [0x1400168e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
mov rcx, qword [0x14017d3a8]
lea r14, [0x140016650]
xor r13d, r13d
test rbx, rbx
jne 0x1401623d1
lea r8, [0x140016850]
mov edx, 0x3eb
mov rcx, r14
call fcn.1400a8be8
mov rcx, qword [0x14017d3a8]
test edi, edi
jne 0x1401623f0
lea r8, [0x140016860]
mov edx, 0x3ec
mov rcx, r14
call fcn.1400a8be8
mov rcx, qword [0x14017d3a8]
test r12, r12
jne 0x140162410
lea r8, [0x1400168bc]
mov edx, 0x3ed
mov rcx, r14
call fcn.1400a8be8
mov rcx, qword [0x14017d3a8]
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x11], r13
mov qword [rbp - 9], r13
mov qword [rbp - 1], r13
mov qword [rbp + 7], r13
mov dword [rbp + 0xf], 0xa
mov r14, r13
mov qword [rbp - 0x39], r13
mov dword [rbp - 0x25], r13d
movups xmm0, xmmword [0x14000ab48]
movdqu xmmword [rbp + 0x1f], xmm0
mov dword [rbp - 0x29], r13d
mov qword [rbp - 0x21], r13
mov r15, r13
mov qword [rbp - 0x31], r13
test edi, edi
je 0x140162471
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140118398
add rbx, 0x10
dec rdi
jne 0x140162455
mov rcx, qword [0x14017d3a8]
test sil, sil
je 0x1401627a6
lea r8, [rbp - 0x25]
lea rdx, [rbp - 0x39]
mov rcx, r12
call fcn.1400b1998
mov ebx, eax
test eax, eax
jns 0x140162533
cmp eax, 0x80070002
jne 0x1401624e8
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1401624df
test byte [rcx + 0x1c], 0x20
je 0x1401624df
cmp byte [rcx + 0x19], 4
jb 0x1401624df
mov edx, 0x3c
lea r8, [0x1400168e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
mov r14, qword [rbp - 0x39]
mov rcx, qword [0x14017d3a8]
jmp 0x1401627a6
mov r14, qword [rbp - 0x39]
jmp 0x1401627a6
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x140162580
test byte [rcx + 0x1c], 0x20
je 0x140162580
cmp byte [rcx + 0x19], 2
jb 0x140162580
mov edx, 0x3d
mov r9d, eax
lea r8, [0x1400168e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
mov r14, qword [rbp - 0x39]
mov rcx, qword [0x14017d3a8]
jmp 0x1401629a2
mov r8d, dword [rbp - 0x25]
cmp r8d, 4
jae 0x140162589
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x14016257b
test byte [rcx + 0x1c], 0x20
je 0x14016257b
cmp byte [rcx + 0x19], 2
jb 0x14016257b
mov edx, 0x3e
mov r9d, r8d
lea r8, [0x1400168e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
mov ebx, 0x8000ffff
mov r14, qword [rbp - 0x39]
jmp 0x1401629a2
shr r8d, 1
lea eax, [r8 - 1]
mov r14, qword [rbp - 0x39]
cmp word [r14 + rax*2], r13w
jne 0x140162761
lea eax, [r8 - 2]
cmp word [r14 + rax*2], r13w
jne 0x140162761
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1401625ec
test byte [rcx + 0x1c], 0x20
je 0x1401625ec
cmp byte [rcx + 0x19], 4
jb 0x1401625ec
mov edx, 0x40
mov r9, r14
lea r8, [0x1400168e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
mov rdi, r14
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [r14 + rax*2], r13w
jne 0x1401625f6
test rax, rax
je 0x1401627a6
test r15, r15
je 0x14016261b
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x31], r13
lea rdx, [rbp - 0x31]
mov rcx, rdi
call fcn.1400a97c0
mov ebx, eax
test eax, eax
js 0x140162714
mov eax, 0x5c
mov r15, qword [rbp - 0x31]
mov word [r15 + 2], ax
lea rdx, [rbp + 0x1f]
mov rcx, r15
call fcn.1400ac654
mov ebx, eax
test eax, eax
js 0x1401626c8
mov rax, qword [rbp - 0x19]
jmp 0x14016267e
lea rdx, [rbp + 0x1f]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx]
jne 0x140162673
mov r8, qword [rax + 0x18]
cmp r8, qword [rdx + 8]
jne 0x140162673
mov ecx, r13d
jmp 0x140162677
sbb ecx, ecx
sbb ecx, esi
test ecx, ecx
je 0x140162686
mov rax, qword [rax]
test rax, rax
jne 0x140162657
mov rax, r13
test rax, rax
jne 0x140162698
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x19]
call fcn.140118398
mov rax, rsi
inc rax
cmp word [rdi + rax*2], r13w
jne 0x14016269b
lea rdi, [rdi + rax*2]
add rdi, 2
mov rax, rsi
inc rax
cmp word [rdi + rax*2], r13w
jne 0x1401626b0
test rax, rax
jne 0x140162609
jmp 0x1401624d3
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14016299b
test byte [rcx + 0x1c], 0x20
je 0x14016299b
cmp byte [rcx + 0x19], 2
jb 0x14016299b
mov edx, 0x42
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x1400168e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
jmp 0x140162994
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140162758
test byte [rcx + 0x1c], 0x20
je 0x140162758
cmp byte [rcx + 0x19], 2
jb 0x140162758
mov edx, 0x41
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x1400168e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
mov r15, qword [rbp - 0x31]
jmp 0x140162994
mov r15, qword [rbp - 0x31]
jmp 0x14016299b
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x14016279c
test byte [rcx + 0x1c], 0x20
je 0x14016279c
cmp byte [rcx + 0x19], 2
jb 0x14016279c
mov edx, 0x3f
lea r8, [0x1400168e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
mov rcx, qword [0x14017d3a8]
mov ebx, 0x80070057
jmp 0x1401629a2
mov ebx, dword [rbp - 9]
mov eax, ebx
shl rax, 4
mov edx, reloc.ADVAPI32.dll_TraceEvent
cmp rax, rdx
jbe 0x1401627c0
mov ebx, 0x80070216
jmp 0x1401627de
mov edi, eax
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
test rax, rax
jne 0x14016281f
mov ebx, 0x8007000e
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x1401629a2
test byte [rcx + 0x1c], 0x20
je 0x1401629a2
cmp byte [rcx + 0x19], 2
jb 0x1401629a2
mov edx, 0x43
mov r9d, ebx
lea r8, [0x1400168e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
jmp 0x140162527
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r11, qword [rbp - 0x19]
mov edx, r13d
test ebx, ebx
je 0x14016286c
mov rcx, rsi
mov eax, r13d
test r11, r11
setne al
test eax, eax
je 0x140162861
mov rax, r11
mov r11, qword [r11]
movups xmm0, xmmword [rax + 0x10]
movdqu xmmword [rcx], xmm0
inc edx
add rcx, 0x10
cmp edx, ebx
jb 0x14016283a
jmp 0x14016286c
mov ecx, 0x80004005
call fcn.14001ad98
int3
lea r9, [rbp - 0x21]
lea r8, [rbp - 0x29]
mov rdx, rsi
mov ecx, ebx
call fcn.1400a9c04
mov ebx, eax
mov rdi, qword [rbp - 0x21]
test eax, eax
jns 0x1401628d0
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14016297d
test byte [rcx + 0x1c], 0x20
je 0x14016297d
cmp byte [rcx + 0x19], 2
jb 0x14016297d
mov edx, 0x44
mov r9d, ebx
lea r8, [0x1400168e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
jmp 0x14016297d
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140162907
test byte [rcx + 0x1c], 0x20
je 0x140162907
cmp byte [rcx + 0x19], 4
jb 0x140162907
mov edx, 0x45
mov r9, rdi
lea r8, [0x1400168e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001ec40
mov eax, dword [rbp - 0x29]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 7
xor r8d, r8d
lea rdx, [0x1400168c8]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14016297d
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14016297d
test byte [rcx + 0x1c], 0x20
je 0x14016297d
cmp byte [rcx + 0x19], 2
jb 0x14016297d
mov edx, 0x46
mov dword [rsp + 0x20], ebx
lea r9, [0x1400168c8]
lea r8, [0x1400168e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
test rdi, rdi
je 0x14016298b
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
test r14, r14
je 0x1401629b7
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
test r15, r15
je 0x1401629cc
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x1401629f3
test byte [rcx + 0x1c], 0x20
je 0x1401629f3
cmp byte [rcx + 0x19], 4
jb 0x1401629f3
mov edx, 0x47
lea r8, [0x1400168e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
nop
lea rcx, [rbp - 0x19]
call fcn.14010918c
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret