Function at 0x4072aa
Capabilities:
Encode data using base64

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0xf0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x1c0]
mov rcx, qword [rbp + 0x10]
call rax
mov qword [rbp - 0x38], rax
cmp qword [rbp - 0x38], 0
jne 0x4072f2
mov eax, 0
jmp 0x407654
mov rax, qword [rbp - 0x38]
mov rax, qword [rax + 8]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sub.msvcrt.dll_free
lea rax, [rbp - 0x7c]
mov r8, qword [rbp + 0x10]
mov edx, 4
mov rcx, rax
call fcn.0040e2a7
cmp rax, 4
je 0x407343
call fcn.0040b4d1
cmp eax, 1
je 0x407339
mov ecx, 0xa
call fcn.0040b4dd
mov eax, 0
jmp 0x407654
mov rax, qword [fcn.00412661]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x7c]
mov rcx, rax
call fcn.00412661
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x50]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x40]
sub rax, rdx
sub rax, 4
mov qword [rbp - 0x10], rax
movabs rax, 0xfffffffffffffff
cmp qword [rbp - 0x50], rax
jbe 0x407393
mov eax, 0
jmp 0x407654
mov rax, qword [rbp - 0x50]
shl rax, 4
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x50]
shl rax, 2
mov qword [rbp - 0x60], rax
mov rdx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x10]
add rax, rdx
add rax, 1
cmp qword [rbp - 0x58], rax
jb 0x4073ca
mov eax, 0
jmp 0x407654
mov rdx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x10]
add rax, rdx
add rax, 1
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.004144f9
mov rdx, rax
mov rax, qword [rbp - 0x30]
mov qword [rax + 0x18], rdx
mov rax, qword [rbp - 0x30]
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x407407
mov eax, 0
jmp 0x407654
mov rax, qword [rbp - 0x30]
mov rax, qword [rax + 0x18]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x30]
mov rdx, qword [rax + 0x18]
mov rax, qword [rbp - 0x58]
add rax, rdx
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x60]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.0041439f
mov qword [rbp - 0x68], rax
cmp qword [rbp - 0x68], 0
je 0x40763a
mov rdx, qword [rbp - 0x60]
mov rax, qword [rbp - 0x68]
mov r8, qword [rbp + 0x10]
mov rcx, rax
call fcn.0040e2a7
cmp qword [rbp - 0x60], rax
jne 0x407479
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r8, qword [rbp + 0x10]
mov rcx, rax
call fcn.0040e2a7
cmp qword [rbp - 0x10], rax
je 0x407496
call fcn.0040b4d1
cmp eax, 1
je 0x407627
mov ecx, 0xa
call fcn.0040b4dd
jmp 0x407627
mov dword [rbp - 0x1c], 0
jmp 0x407514
mov eax, dword [rbp - 0x1c]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x68]
add rax, rdx
mov qword [rbp - 0x70], rax
mov rdx, qword [rbp - 0x70]
mov rax, qword [rbp - 0x48]
mov rcx, rdx
call rax
mov rdx, rax
mov rax, qword [rbp - 0x18]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp - 8]
mov qword [rax], rdx
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.004cd4a0
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
cmp rax, qword [rbp - 0x10]
jae 0x4074fb
add qword [rbp - 0x28], 1
mov rax, qword [rbp - 0x28]
add qword [rbp - 8], rax
mov rax, qword [rbp - 0x28]
sub qword [rbp - 0x10], rax
add qword [rbp - 0x18], 0x10
add dword [rbp - 0x1c], 1
mov eax, dword [rbp - 0x1c]
cmp qword [rbp - 0x50], rax
jbe 0x407528
cmp qword [rbp - 0x10], 0
jne 0x40749f
mov rax, qword [rbp - 8]
mov byte [rax], 0
mov rax, qword [rbp - 0x50]
mov edx, eax
mov rax, qword [rbp - 0x30]
mov dword [rax + 0x20], edx
mov rcx, qword [rbp + 0x10]
call fcn.0040e4dc
mov rdx, rax
mov rax, qword [rbp - 0x30]
mov qword [rax], rdx
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
mov rax, qword [rbp - 0x30]
mov rax, qword [rax]
cqo
shr rdx, 0x3f
add rax, rdx
and eax, 1
sub rax, rdx
lea rdx, [rcx + rax]
mov rax, qword [rbp - 0x30]
mov qword [rax], rdx
mov rax, qword [rbp + 0x10]
movzx edx, byte [rax + 0x43]
or edx, 0xffffff80
mov byte [rax + 0x43], dl
mov rax, qword [rbp - 0x68]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.004145ed
mov rax, qword [rbp - 0x30]
mov rax, qword [rax]
mov r8d, 0
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.0040e67d
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x1c0]
mov rcx, qword [rbp + 0x10]
call rax
mov qword [rbp - 0x78], rax
cmp qword [rbp - 0x78], 0
je 0x407620
mov rax, qword [rbp - 0x78]
mov rax, qword [rax]
movzx eax, byte [rax]
cmp al, 0x2f
jne 0x407614
mov rax, qword [rbp - 0x78]
mov rax, qword [rax]
add rax, 1
movzx eax, byte [rax]
cmp al, 0x20
jne 0x407614
mov rax, qword [rbp - 0x30]
mov rax, qword [rax]
mov rdx, rax
mov rax, qword [rbp - 0x78]
mov rax, qword [rax + 8]
add rax, 0x3d
and eax, 0xfffffffe
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x30]
mov qword [rax], rdx
mov rax, qword [rbp - 0x78]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 1
jmp 0x407654
nop
mov rax, qword [rbp - 0x68]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.004145ed
jmp 0x40763b
nop
mov rax, qword [rbp - 0x30]
mov rax, qword [rax + 0x18]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.004145ed
mov eax, 0
add rsp, 0xa0
pop rbp
ret