Function at 0x180033af0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push r13
sub rsp, 0x90
mov eax, dword [0x1800b4670]
mov r13, rdx
mov r9, rcx
test al, 1
jne 0x180033b17
or eax, 1
mov dword [0x1800b4670], eax
mov qword [rsp + 0xa8], rbx
lea eax, [r8 - 0x12]
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r15
mov dword [rsp + 0xb0], eax
cmp r8d, eax
jbe 0x180033c4e
mov r15, qword [rsp + 0xb8]
lea edi, [r8 - 0x20]
mov rbx, qword [rsp + 0xb8]
lea rdx, [0x180000000]
mov r12d, dword [rsp + 0xb0]
xor r11d, r11d
mov ebp, dword [rsp + 0xb0]
movabs r10, 0xaaaaaaaaaaaaaaab
mov r14, qword [0x1800b4668]
mov ecx, eax
mov esi, dword [rsp + 0xb8]
lea r8d, [r11 + 0x56]
mov dword [rsp + 0x30], edi
cmp edi, 0x14
ja case.default.0x180033bb9
mov ecx, dword [rdx + rdi*4 + 0x3414c]
add rcx, rdx
jmp rcx
mov eax, 0x49
mov word [0x1800b4628], ax
mov eax, 0x4e
mov word [0x1800b462d], ax
mov dword [0x1800b4629], 0x4d4c4b4a
jmp case.0x180033bb9.3
mov rcx, qword [r13 + 0x10]
mov rax, r10
add rcx, 2
xor r8d, r8d
mul rcx
mov rcx, r9
shr rdx, 1
shl rdx, 2
call fcn.180052a40
cmp qword [r13 + 0x18], 0x10
mov r15, r13
jb 0x180033c0d
mov r15, qword [r13]
mov r14, qword [0x1800b4668]
mov r9, qword [rsp + 0xa0]
xor r11d, r11d
movabs r10, 0xaaaaaaaaaaaaaaab
mov r8d, 0x56
lea rdx, [0x180000000]
mov ecx, dword [rsp + 0xb0]
dec edi
mov dword [rsp + 0x30], edi
lea eax, [rdi + 0x20]
cmp eax, ecx
ja 0x180033ba6
mov eax, dword [rsp + 0xb0]
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop r13
ret
lea r14, [0x1800b4620]
mov dword [0x1800b4659], 0x38373635
mov qword [0x1800b4668], r14
mov dword [0x1800b465d], 0x2f2b39
jmp case.0x180033bb9.3
mov ecx, dword [rsp + 0xb8]
mov r8, qword [r9]
mov r9, qword [r13]
mov r10d, dword [r8 + 4]
movsxd rdx, dword [r9]
mov eax, edx
mov dword [rsp + 0x34], r10d
sub eax, ecx
lea esi, [rcx + r10]
or eax, esi
or eax, ecx
or eax, r10d
jl 0x1800340fa
lea edi, [rsi + 1]
cmp edx, edi
jg 0x180033d72
mov rcx, qword [r8 + 8]
sub rcx, qword [r9 + 8]
js 0x180033d2f
cmp rcx, rdx
jge 0x180033d2f
mov qword [rsp + 0x50], r8
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], r11
mov r8d, 0xa1
xor r9d, r9d
mov qword [rsp + 0x20], r11
xor ecx, ecx
call fcn.180047660
mov qword [rsp + 0x48], rax
mov r14, rax
test rax, rax
je 0x1800340fa
jmp 0x180033d34
mov r14, qword [rsp + 0x48]
mov rax, qword [r13]
lea rdx, [rsp + 0x38]
xor r9d, r9d
mov dword [rsp + 0x38], edi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
lea r8d, [r9 + 0x2d]
call fcn.18004f640
test eax, eax
jne 0x1800340c9
mov r14, qword [0x1800b4668]
mov ecx, dword [rsp + 0xb8]
mov r10d, dword [rsp + 0x34]
movsxd r8, r10d
test r10d, r10d
je 0x180033d93
mov rax, qword [r13]
movsxd rcx, ecx
add rcx, qword [rax + 8]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 8]
call fcn.18006a6b0
mov rax, qword [r13]
mov edi, dword [rsp + 0x30]
mov r9, qword [rsp + 0xa0]
movsxd rcx, esi
mov rax, qword [rax + 8]
mov esi, dword [rsp + 0xb8]
mov byte [rcx + rax], 0
jmp 0x180033c1c
mov eax, 0x70
mov word [0x1800b4649], ax
mov eax, 0x71
mov word [0x1800b464a], ax
mov eax, 0x72
mov word [0x1800b464b], ax
mov dword [0x1800b464c], 0x76757473
jmp case.0x180033bb9.3
mov word [0x1800b4635], r8w
mov dword [0x1800b4636], 0x5a595857
jmp case.0x180033bb9.3
mov eax, 0x6c
mov dword [0x1800b4641], 0x6b6a6968
mov word [0x1800b4645], ax
mov dword [0x1800b4646], 0x6f6e6d
jmp case.0x180033bb9.3
mov eax, 0x52
mov word [0x1800b4631], ax
mov dword [0x1800b4632], 0x555453
jmp case.0x180033bb9.3
mov eax, 0x77
mov dword [0x1800b4653], 0x31307a
mov word [0x1800b4650], ax
mov eax, 0x7978
mov word [0x1800b4651], ax
mov eax, 0x32
mov word [0x1800b4656], ax
mov eax, 0x3433
mov word [0x1800b4657], ax
jmp case.0x180033bb9.3
mov rcx, qword [r13 + 0x10]
mov rax, r10
mul rcx
mov r8, r11
shr rdx, 1
lea rax, [rdx + rdx*2]
test rax, rax
je 0x180033f28
lea rcx, [rax - 1]
mov rax, r10
mul rcx
shr rdx, 1
inc rdx
lea r8, [rdx + rdx*2]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r15]
shr rax, 2
movzx eax, byte [rax + r14]
mov byte [rbx], al
movzx eax, byte [r15 + 1]
movzx ecx, byte [r15]
shr eax, 4
and ecx, 3
shl ecx, 4
add ecx, eax
movzx ecx, byte [rcx + r14]
mov byte [rbx + 1], cl
movzx eax, byte [r15 + 2]
movzx ecx, byte [r15 + 1]
shr eax, 6
and ecx, 0xf
lea eax, [rax + rcx*4]
movzx eax, byte [rax + r14]
mov byte [rbx + 2], al
movzx eax, byte [r15 + 2]
add r15, 3
and eax, 0x3f
movzx eax, byte [rax + r14]
mov byte [rbx + 3], al
add rbx, 4
sub rdx, 1
jne 0x180033ec0
mov rcx, qword [r13 + 0x10]
cmp r8, rcx
jae 0x180033c29
mov edx, 0x11d
mov eax, edx
sub eax, 0x11b
je 0x180033f80
sub eax, 1
je 0x180033f6d
cmp eax, 1
jne 0x180033fc4
movzx r12d, byte [r15]
lea rax, [r8 + 1]
cmp rax, qword [r13 + 0x10]
jae 0x180033f63
movzx ebp, byte [r15 + 1]
mov dword [rsp + 0x40], r11d
jmp 0x180033fc4
mov ebp, r11d
mov dword [rsp + 0x40], r11d
jmp 0x180033fc4
mov eax, r12d
shr rax, 2
movzx eax, byte [rax + r14]
mov byte [rbx], al
inc rbx
jmp 0x180033fc4
mov ecx, r12d
mov eax, ebp
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, eax
lea rax, [r8 + 1]
movzx ecx, byte [rcx + r14]
mov byte [rbx], cl
cmp rax, qword [r13 + 0x10]
jae 0x180033fb7
mov eax, dword [rsp + 0x40]
mov ecx, ebp
and ecx, 0xf
shr eax, 6
lea eax, [rax + rcx*4]
movzx eax, byte [rax + r14]
jmp 0x180033fb9
mov al, 0x3d
mov byte [rbx + 1], al
mov byte [rbx + 2], 0x3d
add rbx, 3
dec edx
cmp edx, 0x11a
ja 0x180033f36
jmp 0x180033c29
mov eax, 0x44
mov word [0x1800b4623], ax
mov eax, 0x48
mov dword [0x1800b4624], 0x474645
mov word [0x1800b4627], ax
jmp case.0x180033bb9.3
cmp qword [r9 + 0x18], 0x10
mov rbx, r9
jb case.0x180033bb9.3
mov rbx, qword [r9]
jmp case.0x180033bb9.3
mov eax, 0x6766
mov word [0x1800b463f], ax
jmp case.0x180033bb9.3
mov eax, 0x41
mov word [0x1800b4620], ax
mov eax, 0x4342
mov word [0x1800b4621], ax
jmp case.0x180033bb9.3
mov rax, qword [r13]
mov rcx, qword [r9]
mov qword [rsp + 0x48], rcx
test rax, rax
je 0x1800340fa
test rcx, rcx
je 0x1800340fa
cmp qword [rax + 8], 0
je 0x1800340fa
cmp qword [rcx + 8], 0
je 0x1800340fa
mov esi, dword [rax + 4]
mov dword [rsp + 0xb8], esi
jmp case.0x180033bb9.3
mov eax, 0x61
mov word [0x1800b463a], ax
mov eax, 0x62
mov word [0x1800b463b], ax
mov eax, 0x63
mov word [0x1800b463c], ax
mov eax, 0x6564
mov word [0x1800b463d], ax
jmp case.0x180033bb9.3
mov dword [0x1800b462e], 0x51504f
jmp case.0x180033bb9.3
mov rax, qword [rsp + 0xa0]
cmp r14, qword [rax]
je 0x1800340fa
xor r9d, r9d
mov qword [rsp + 0xb8], r14
lea r8, [rsp + 0xb8]
mov dword [rsp + 0x20], 0x118
xor edx, edx
xor ecx, ecx
call fcn.18004fae0
mov eax, 0xffffffff
jmp 0x180033c55
mov rax, qword [r13]
mov ecx, dword [rsp + 0x34]
add ecx, esi
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x48]
cmp rax, qword [r9]
je 0x180034142
xor r9d, r9d
mov qword [rsp + 0xb8], rax
lea r8, [rsp + 0xb8]
mov dword [rsp + 0x20], 0x118
xor edx, edx
xor ecx, ecx
call fcn.18004fae0
xor r11d, r11d
mov eax, r11d
jmp 0x180033c55