Function at 0x100122fec
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x1b0
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
mov rbx, qword [rsp + 0x220]
mov r12, qword [rsp + 0x228]
mov r13, r9
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x68], rdx
mov r14, rcx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x78], rcx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100123079
test byte [rcx + 0x1c], 1
je 0x100123079
cmp byte [rcx + 0x19], 4
jb 0x100123079
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f00]
mov edx, 0x3c
call fcn.10001c854
xor esi, esi
xor edi, edi
xor ebp, ebp
and qword [rsp + 0x58], rsi
and qword [rsp + 0x60], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rbp
test rbx, rbx
jne 0x1001230b5
lea r8, [0x100013978]
lea rcx, [0x100013830]
mov edx, 0x6c9
call fcn.10009a050
and qword [rbx], rsi
and qword [r12], rsi
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, r14
call fcn.1001238c8
mov ebx, eax
test eax, eax
js 0x100123503
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
call fcn.10010c158
mov rsi, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
js 0x100123503
test rsi, rsi
je 0x100123503
and qword [rsp + 0x48], rdi
xor r12d, r12d
cmp dword [rsp + 0x218], edi
jbe 0x1001234d5
mov rax, qword [rsp + 0x70]
mov r14, qword [rsp + 0x210]
mov r10, qword [0x1001653b8]
mov qword [rsp + 0x38], rax
cmp byte [r14], 0
jne 0x100123173
lea rcx, [0x1001653b8]
cmp r10, rcx
je 0x1001234b4
test byte [r10 + 0x1c], 1
je 0x1001234b4
cmp byte [r10 + 0x19], 4
jb 0x1001234b4
mov rcx, qword [r10 + 0x10]
lea r8, [0x100002f00]
mov edx, 0x3d
mov r9d, r12d
call fcn.10001c878
jmp 0x1001234a8
test rdi, rdi
je 0x100123187
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x70]
mov r8d, dword [r13]
mov ebp, r12d
shl rbp, 4
lea r9, [rsp + 0x40]
add rbp, rcx
mov rcx, rsi
mov rdx, rbp
call fcn.100120c14
mov ebx, eax
test eax, eax
js 0x100123565
xor edx, edx
lea rcx, [rsp + 0x90]
lea r8d, [rdx + 0x24]
call sub.msvcrt.dll_memset
mov rdi, qword [rsp + 0x40]
lea r8, [rsp + 0x90]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x100123422
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070002
jne 0x1001233c1
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1001233c1
test byte [r13], 1
jne 0x1001233c1
mov rax, qword [rsp + 0x38]
movdqu xmm0, xmmword [0x10000f0f8]
mov rdx, rcx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x198]
lea rcx, [rsp + 0xc0]
movdqu xmm1, xmmword [rax]
movdqu xmmword [rsp + 0x198], xmm0
mov byte [rsp + 0x30], 0
movdqu xmmword [rsp + 0xc0], xmm1
call fcn.10011bab0
mov ebx, eax
test eax, eax
js 0x1001234f0
cmp byte [rsp + 0x30], 0
je 0x1001233b8
mov rax, qword [0x1001653b8]
lea rcx, [0x1001653b8]
cmp rax, rcx
je 0x1001232e5
test byte [rax + 0x1c], 1
je 0x1001232e5
cmp byte [rax + 0x19], 4
jb 0x1001232e5
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x134]
call fcn.10009b894
lea rcx, [rsp + 0xd0]
mov rdx, rbp
mov rbx, rax
call fcn.10009b894
mov rcx, qword [0x1001653b8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f00]
mov edx, 0x3f
mov r9, rax
mov qword [rsp + 0x20], rbx
call fcn.10001df74
test rdi, rdi
je 0x1001232f9
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rsp + 0x40], 0
xor edx, edx
lea rcx, [rsp + 0x90]
lea r8d, [rdx + 0x24]
call sub.msvcrt.dll_memset
mov r8d, dword [r13]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x198]
mov rcx, rsi
call fcn.100120c14
mov ebx, eax
test eax, eax
js 0x100123565
mov rdi, qword [rsp + 0x40]
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x100123422
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov r10, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp r10, rax
je 0x1001233ac
test byte [r10 + 0x1c], 1
je 0x1001233ac
cmp byte [r10 + 0x19], 3
jb 0x1001233ac
mov rcx, qword [r10 + 0x10]
movzx eax, r11w
lea r8, [0x100002f00]
or eax, 0x80070000
test r11d, r11d
mov edx, 0x40
cmovle eax, r11d
mov r9d, r12d
mov dword [rsp + 0x20], eax
call fcn.10001d914
mov r10, qword [0x1001653b8]
xor ebx, ebx
mov rbp, qword [rsp + 0x50]
jmp 0x1001234af
mov r10, qword [0x1001653b8]
jmp 0x1001233ae
mov r10, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp r10, rax
je 0x1001233ac
test byte [r10 + 0x1c], 1
je 0x1001233ac
cmp byte [r10 + 0x19], 4
jb 0x1001233ac
lea rcx, [rsp + 0xd0]
mov rdx, rbp
call fcn.10009b894
mov rcx, qword [0x1001653b8]
lea r8, [0x100002f00]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov edx, 0x3e
mov r9d, ebx
mov qword [rsp + 0x20], rax
call fcn.1001207ec
jmp 0x1001233a5
mov eax, dword [rsp + 0xb0]
mov rbp, qword [rsp + 0x50]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xac]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x48]
add qword [rsp + 0x60], rax
cmp byte [r14], 0
je 0x10012345c
test byte [r13], 4
je 0x10012345c
add rbp, rax
mov qword [rsp + 0x50], rbp
mov r10, qword [0x1001653b8]
lea rcx, [0x1001653b8]
cmp r10, rcx
je 0x1001234af
test byte [r10 + 0x1c], 1
je 0x1001234af
cmp byte [r10 + 0x19], 4
jb 0x1001234af
mov ecx, dword [r13]
lea r8, [0x100002f00]
mov edx, 0x41
shr ecx, 2
mov r9d, r12d
and ecx, 1
mov dword [rsp + 0x28], ecx
mov rcx, qword [r10 + 0x10]
mov qword [rsp + 0x20], rax
call fcn.1001208b0
mov r10, qword [0x1001653b8]
mov rax, qword [rsp + 0x38]
add rax, 0x10
inc r12d
inc r14
add r13, 4
mov qword [rsp + 0x38], rax
cmp r12d, dword [rsp + 0x218]
jb 0x10012312a
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
mov qword [rax], rbp
test rdi, rdi
je 0x1001234fe
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r14, qword [rsp + 0x78]
cmp qword [rsp + 0x58], 0
je 0x100123516
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x100123524
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x10012356c
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x1001235a0
test byte [rcx + 0x1c], 1
je 0x10012357a
cmp byte [rcx + 0x19], 2
jb 0x10012357a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f00]
mov edx, 0x42
mov r9, r14
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
jmp 0x100123573
mov rdi, qword [rsp + 0x40]
jmp 0x1001234f0
lea rdi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1001235a0
test byte [rcx + 0x1c], 1
je 0x1001235a0
cmp byte [rcx + 0x19], 4
jb 0x1001235a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f00]
mov edx, 0x43
call fcn.10001c854
mov eax, ebx
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.10014e600
add rsp, 0x1b0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret