Function at 0x100122f48
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 0x100122fd5
test byte [rcx + 0x1c], 1
je 0x100122fd5
cmp byte [rcx + 0x19], 4
jb 0x100122fd5
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f40]
mov edx, 0x3c
call fcn.10001c7b8
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 0x100123011
lea r8, [0x100013a08]
lea rcx, [0x1000138c0]
mov edx, 0x6c9
call fcn.100099ad8
and qword [rbx], rsi
and qword [r12], rsi
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, r14
call fcn.100123824
mov ebx, eax
test eax, eax
js 0x10012345f
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
call fcn.10010bcc8
mov rsi, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
js 0x10012345f
test rsi, rsi
je 0x10012345f
and qword [rsp + 0x48], rdi
xor r12d, r12d
cmp dword [rsp + 0x218], edi
jbe 0x100123431
mov rax, qword [rsp + 0x70]
mov r14, qword [rsp + 0x210]
mov r10, qword [0x1001653b8]
mov qword [rsp + 0x38], rax
cmp byte [r14], 0
jne 0x1001230cf
lea rcx, [0x1001653b8]
cmp r10, rcx
je 0x100123410
test byte [r10 + 0x1c], 1
je 0x100123410
cmp byte [r10 + 0x19], 4
jb 0x100123410
mov rcx, qword [r10 + 0x10]
lea r8, [0x100002f40]
mov edx, 0x3d
mov r9d, r12d
call fcn.10001c7dc
jmp 0x100123404
test rdi, rdi
je 0x1001230e3
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.100120b70
mov ebx, eax
test eax, eax
js 0x1001234c1
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 0x10012337e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070002
jne 0x10012331d
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x10012331d
test byte [r13], 1
jne 0x10012331d
mov rax, qword [rsp + 0x38]
movdqu xmm0, xmmword [0x100001fe0]
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.10011ba0c
mov ebx, eax
test eax, eax
js 0x10012344c
cmp byte [rsp + 0x30], 0
je 0x100123314
mov rax, qword [0x1001653b8]
lea rcx, [0x1001653b8]
cmp rax, rcx
je 0x100123241
test byte [rax + 0x1c], 1
je 0x100123241
cmp byte [rax + 0x19], 4
jb 0x100123241
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x134]
call fcn.10009b2bc
lea rcx, [rsp + 0xd0]
mov rdx, rbp
mov rbx, rax
call fcn.10009b2bc
mov rcx, qword [0x1001653b8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f40]
mov edx, 0x3f
mov r9, rax
mov qword [rsp + 0x20], rbx
call fcn.10001df38
test rdi, rdi
je 0x100123255
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.100120b70
mov ebx, eax
test eax, eax
js 0x1001234c1
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 0x10012337e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov r10, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp r10, rax
je 0x100123308
test byte [r10 + 0x1c], 1
je 0x100123308
cmp byte [r10 + 0x19], 3
jb 0x100123308
mov rcx, qword [r10 + 0x10]
movzx eax, r11w
lea r8, [0x100002f40]
or eax, 0x80070000
test r11d, r11d
mov edx, 0x40
cmovle eax, r11d
mov r9d, r12d
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
mov r10, qword [0x1001653b8]
xor ebx, ebx
mov rbp, qword [rsp + 0x50]
jmp 0x10012340b
mov r10, qword [0x1001653b8]
jmp 0x10012330a
mov r10, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp r10, rax
je 0x100123308
test byte [r10 + 0x1c], 1
je 0x100123308
cmp byte [r10 + 0x19], 4
jb 0x100123308
lea rcx, [rsp + 0xd0]
mov rdx, rbp
call fcn.10009b2bc
mov rcx, qword [0x1001653b8]
lea r8, [0x100002f40]
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.100120748
jmp 0x100123301
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 0x1001233b8
test byte [r13], 4
je 0x1001233b8
add rbp, rax
mov qword [rsp + 0x50], rbp
mov r10, qword [0x1001653b8]
lea rcx, [0x1001653b8]
cmp r10, rcx
je 0x10012340b
test byte [r10 + 0x1c], 1
je 0x10012340b
cmp byte [r10 + 0x19], 4
jb 0x10012340b
mov ecx, dword [r13]
lea r8, [0x100002f40]
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.10012080c
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 0x100123086
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 0x10012345a
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r14, qword [rsp + 0x78]
cmp qword [rsp + 0x58], 0
je 0x100123472
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x100123480
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x1001234c8
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x1001234fc
test byte [rcx + 0x1c], 1
je 0x1001234d6
cmp byte [rcx + 0x19], 2
jb 0x1001234d6
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f40]
mov edx, 0x42
mov r9, r14
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
jmp 0x1001234cf
mov rdi, qword [rsp + 0x40]
jmp 0x10012344c
lea rdi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1001234fc
test byte [rcx + 0x1c], 1
je 0x1001234fc
cmp byte [rcx + 0x19], 4
jb 0x1001234fc
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f40]
mov edx, 0x43
call fcn.10001c7b8
mov eax, ebx
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.10014e480
add rsp, 0x1b0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret