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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r13, r9
mov rdi, r8
mov ebx, edx
mov sil, cl
lea rax, [0x1001653b8]
mov r15b, 0x20
mov r10, qword [0x1001653b8]
cmp r10, rax
je 0x1001475df
test byte [r10 + 0x1c], r15b
je 0x1001475df
cmp byte [r10 + 0x19], 4
jb 0x1001475df
mov edx, 0x39
lea r8, [0x100002be0]
mov rcx, qword [r10 + 0x10]
call fcn.10001c854
mov r10, qword [0x1001653b8]
lea rbp, [0x100015858]
xor r14d, r14d
cmp rdi, r14
jne 0x100147609
lea r8, [0x100015af0]
mov edx, 0x3ce
mov rcx, rbp
call fcn.10009a050
mov r10, qword [0x1001653b8]
cmp ebx, r14d
ja 0x100147629
lea r8, [0x100015b00]
mov edx, 0x3cf
mov rcx, rbp
call fcn.10009a050
mov r10, qword [0x1001653b8]
cmp r13, r14
jne 0x100147649
lea r8, [0x100015b10]
mov edx, 0x3d0
mov rcx, rbp
call fcn.10009a050
mov r10, qword [0x1001653b8]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], 0xa
mov rbp, r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x44], r14d
movdqu xmm0, xmmword [0x10000f0f8]
movdqu xmmword [rsp + 0x88], xmm0
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x48], r14
mov r12, r14
mov qword [rsp + 0x38], r14
cmp ebx, r14d
jbe 0x1001476bd
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.100104fa8
add rdi, 0x10
sub rbx, 1
jne 0x10014769f
mov r10, qword [0x1001653b8]
cmp sil, r14b
je 0x100147a53
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x30]
lea rdx, [0x100015b18]
mov rcx, r13
call fcn.1000a1bb0
mov edi, eax
cmp eax, r14d
jge 0x100147794
cmp eax, 0x80070002
jne 0x100147741
mov r10, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp r10, rax
je 0x100147737
test byte [r10 + 0x1c], r15b
je 0x100147737
cmp byte [r10 + 0x19], 4
jb 0x100147737
mov edx, 0x3a
lea r8, [0x100002be0]
mov rcx, qword [r10 + 0x10]
call fcn.10001c854
mov rbp, qword [rsp + 0x30]
mov r10, qword [0x1001653b8]
jmp 0x100147a53
mov rbp, qword [rsp + 0x30]
jmp 0x100147a53
mov r10, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp r10, rbx
je 0x10014778a
test byte [r10 + 0x1c], r15b
je 0x10014778a
cmp byte [r10 + 0x19], 2
jb 0x10014778a
mov edx, 0x3b
mov r9d, eax
lea r8, [0x100002be0]
mov rcx, qword [r10 + 0x10]
call fcn.10001c878
mov rbp, qword [rsp + 0x30]
mov r10, qword [0x1001653b8]
jmp 0x100147c7f
mov rbp, qword [rsp + 0x30]
jmp 0x100147c7f
mov edi, dword [rsp + 0x44]
cmp edi, 4
jae 0x1001477eb
mov r10, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp r10, rbx
je 0x1001477dc
test byte [r10 + 0x1c], r15b
je 0x1001477dc
cmp byte [r10 + 0x19], 2
jb 0x1001477dc
mov edx, 0x3c
mov r9d, edi
lea r8, [0x100002be0]
mov rcx, qword [r10 + 0x10]
call fcn.10001c878
mov r10, qword [0x1001653b8]
mov edi, 0x8000ffff
mov rbp, qword [rsp + 0x30]
jmp 0x100147c7f
shr edi, 1
lea eax, [rdi - 1]
mov rbp, qword [rsp + 0x30]
cmp word [rbp + rax*2], r14w
jne 0x100147a0d
lea eax, [rdi - 2]
cmp word [rbp + rax*2], r14w
jne 0x100147a0d
mov r10, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp r10, rax
je 0x10014784f
test byte [r10 + 0x1c], r15b
je 0x10014784f
cmp byte [r10 + 0x19], 4
jb 0x10014784f
mov edx, 0x3e
mov r9, rbp
lea r8, [0x100002be0]
mov rcx, qword [r10 + 0x10]
call fcn.10001db08
mov r10, qword [0x1001653b8]
mov rbx, rbp
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x100147a53
cmp r12, r14
je 0x100147881
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x38], r14
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.10009b954
mov edi, eax
cmp eax, r14d
jl 0x1001479a8
mov eax, 0x5c
mov r12, qword [rsp + 0x38]
mov word [r12 + 2], ax
lea rdx, [rsp + 0x88]
mov rcx, r12
call fcn.10009ca78
mov edi, eax
cmp eax, r14d
jl 0x10014794d
mov rax, qword [rsp + 0x50]
cmp rax, r14
je 0x1001478ff
lea rdx, [rsp + 0x88]
mov rdi, qword [rax + 0x10]
cmp rdi, qword [rdx]
jne 0x1001478ee
mov rdi, qword [rax + 0x18]
cmp rdi, qword [rdx + 8]
jne 0x1001478ee
mov ecx, r14d
jmp 0x1001478f2
sbb ecx, ecx
sbb ecx, esi
cmp ecx, r14d
je 0x100147902
mov rax, qword [rax]
cmp rax, r14
jne 0x1001478ce
mov rax, r14
cmp rax, r14
jne 0x100147919
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.100104fa8
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rbx, [rbx + rcx*2]
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
jne 0x10014786e
mov r10, qword [0x1001653b8]
jmp 0x100147a53
mov r10, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp r10, rax
je 0x100147c78
test byte [r10 + 0x1c], r15b
je 0x100147c6f
cmp byte [r10 + 0x19], 2
jb 0x100147c66
mov edx, 0x40
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x100002be0]
mov rcx, qword [r10 + 0x10]
call fcn.10001ddb0
mov r10, qword [0x1001653b8]
lea rbx, [0x1001653b8]
jmp 0x100147c7f
mov r10, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp r10, rax
je 0x1001479fc
test byte [r10 + 0x1c], r15b
je 0x1001479fc
cmp byte [r10 + 0x19], 2
jb 0x1001479fc
mov edx, 0x3f
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x100002be0]
mov rcx, qword [r10 + 0x10]
call fcn.10001ddb0
mov r12, qword [rsp + 0x38]
mov r10, qword [0x1001653b8]
lea rbx, [0x1001653b8]
jmp 0x100147c7f
mov r12, qword [rsp + 0x38]
lea rbx, [0x1001653b8]
jmp 0x100147c7f
mov r10, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp r10, rbx
je 0x100147a49
test byte [r10 + 0x1c], r15b
je 0x100147a49
cmp byte [r10 + 0x19], 2
jb 0x100147a49
mov edx, 0x3d
lea r8, [0x100002be0]
mov rcx, qword [r10 + 0x10]
call fcn.10001c854
mov r10, qword [0x1001653b8]
mov edi, 0x80070057
jmp 0x100147c7f
mov ebx, dword [rsp + 0x60]
mov rax, rbx
shl rax, 4
mov ecx, 0xffffffff
cmp rax, rcx
jbe 0x100147a6f
mov edi, 0x80070216
jmp 0x100147a8d
mov edi, eax
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
cmp rax, r14
jne 0x100147ad6
mov edi, 0x8007000e
mov r10, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp r10, rbx
je 0x100147c7f
test byte [r10 + 0x1c], r15b
je 0x100147c7f
cmp byte [r10 + 0x19], 2
jb 0x100147c7f
mov edx, 0x41
mov r9d, edi
lea r8, [0x100002be0]
mov rcx, qword [r10 + 0x10]
call fcn.10001c878
mov r10, qword [0x1001653b8]
jmp 0x100147c7f
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rdx, qword [rsp + 0x50]
mov edi, r14d
cmp ebx, r14d
jbe 0x100147b27
mov rcx, rsi
mov eax, r14d
cmp rdx, r14
setne al
cmp eax, r14d
je 0x100147b1c
mov rax, rdx
mov rdx, qword [rdx]
movdqu xmm0, xmmword [rax + 0x10]
movdqu xmmword [rcx], xmm0
inc edi
add rcx, 0x10
cmp edi, ebx
jb 0x100147af3
jmp 0x100147b27
mov ecx, 0x80004005
call fcn.1000196c8
int3
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov ecx, ebx
call fcn.10009bcdc
mov edi, eax
mov rbx, qword [rsp + 0x48]
cmp eax, r14d
jge 0x100147b8f
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100147c3f
test byte [rcx + 0x1c], r15b
je 0x100147c3f
cmp byte [rcx + 0x19], 2
jb 0x100147c3f
mov edx, 0x42
mov r9d, edi
lea r8, [0x100002be0]
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
jmp 0x100147c3f
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100147bc6
test byte [rcx + 0x1c], r15b
je 0x100147bc6
cmp byte [rcx + 0x19], 4
jb 0x100147bc6
mov edx, 0x43
mov r9, rbx
lea r8, [0x100002be0]
mov rcx, qword [rcx + 0x10]
call fcn.10001db08
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 7
xor r8d, r8d
lea rdx, [0x100015b18]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, r14d
je 0x100147c3f
movzx edi, ax
or edi, 0x80070000
cmp eax, r14d
cmovle edi, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100147c3f
test byte [rcx + 0x1c], r15b
je 0x100147c3f
cmp byte [rcx + 0x19], 2
jb 0x100147c3f
mov edx, 0x44
mov dword [rsp + 0x20], edi
lea r9, [0x100015b18]
lea r8, [0x100002be0]
mov rcx, qword [rcx + 0x10]
call fcn.10001ddb0
cmp rbx, r14
je 0x100147c4d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r10, qword [0x1001653b8]
lea rbx, [0x1001653b8]
jmp 0x100147c7f
lea rbx, [0x1001653b8]
jmp 0x100147c7f
lea rbx, [0x1001653b8]
jmp 0x100147c7f
lea rbx, [0x1001653b8]
cmp rbp, r14
je 0x100147c94
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r10, qword [0x1001653b8]
cmp r12, r14
je 0x100147ca9
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r10, qword [0x1001653b8]
cmp r10, rbx
je 0x100147cd1
test byte [r10 + 0x1c], r15b
je 0x100147cd1
cmp byte [r10 + 0x19], 4
jb 0x100147cd1
mov edx, 0x45
lea r8, [0x100002be0]
mov rcx, qword [r10 + 0x10]
call fcn.10001c854
nop
lea rcx, [rsp + 0x50]
call fcn.100105100
mov eax, edi
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.10014e600
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret