Function at 0x180035a70
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3e8
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x50], r8
mov r8, qword [rdx]
test r8, r8
je 0x1800361d0
mov qword [rsp + 0x68], rcx
mov rax, r8
shr rax, 0x3d
jne 0x1800361d0
movzx ebx, word [rsp + 0x450]
mov qword [rsp + 0x80], rdx
movzx edx, word [rdx + 0x18]
mov qword [rsp + 0x78], r8
mov rcx, r8
mov word [rsp + 0x5e], dx
call fcn.18003503a
mov rsi, rax
mov ebp, edx
mov edx, 0xffffffa0
sub edx, ebp
lea r12, [rsp + 0x1f0]
mov rcx, r12
call fcn.180034ff5
movzx edi, word [r12]
mov r8, qword [r12 + 8]
movzx r9d, word [r12 + 0x10]
mov rcx, rsi
mov edx, ebp
call fcn.1800350da
mov rbp, rax
neg edx
movzx r13d, dx
mov r12d, r13d
and r12d, 0x3f
mov rsi, rax
mov ecx, r12d
shr rsi, cl
mov edx, 1
shl rdx, cl
lea r14, [rdx - 1]
mov r15, r14
movsx rax, bx
mov qword [rsp + 0x70], rax
and r15, rbp
je 0x180035bf1
mov qword [rsp + 0x60], rdx
mov ecx, esi
call fcn.18003512d
mov r8d, edx
movzx ecx, al
mov r10d, ecx
sub r10d, edi
inc r10d
movzx r9d, word [rsp + 0x450]
cmp r10w, r9w
jle 0x180035c18
movsx rax, r10w
mov edx, r10d
sub edx, r9d
sub rax, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x48]
cmp rax, rdi
movsx r9, dx
cmovae r9, rdi
neg rcx
neg rdi
mov r11d, 1
mov ebp, 0xa
test r8d, r8d
je 0x1800361d0
lea rbx, [rdi + r11]
mov eax, esi
xor edx, edx
div r8d
cmp rbx, 1
je 0x1800361d0
mov esi, edx
add al, 0x30
mov rdx, qword [rsp + 0x50]
mov byte [rdx + r11 - 1], al
cmp r9, r11
je 0x180035c68
lea rax, [rcx + r11]
cmp rax, 1
je 0x180035ca2
mov eax, r8d
xor edx, edx
div ebp
inc r11
mov r8d, eax
jmp 0x180035b9f
cmp qword [rsp + 0x48], 0xa
ja 0x180035d5d
lea rax, [0x180047658]
mov rcx, qword [rsp + 0x48]
cmp dword [rax + rcx*4 - 4], esi
jbe 0x180035b41
jmp 0x180035d5d
mov ecx, 0xa
mov rax, rbp
xor edx, edx
div rcx
mov edx, r8d
mov ecx, r12d
shl rdx, cl
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov word [rsp + 0x28], r9w
mov word [rsp + 0x20], r10w
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
lea rcx, [rsp + 0x88]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
xor r9d, r9d
jmp 0x180035d2c
mov eax, esi
mov ecx, r12d
shl rax, cl
add rax, r15
mov edx, r8d
shl rdx, cl
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x40], rcx
movzx ecx, word [rsp + 0x450]
mov word [rsp + 0x28], cx
mov word [rsp + 0x20], r10w
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rax
jmp 0x180035d1a
dec r13d
and r13d, 0x3f
mov eax, 1
mov r8, qword [rsp + 0x60]
mov rdx, rax
mov ecx, r13d
shr rdx, cl
test rdx, rdx
jne 0x180035d5d
cmp r11, qword [rsp + 0x48]
jae 0x1800361d0
imul rdx, r15, 0xa
mov r15, rdx
and r15, r14
imul rax, rax, 0xa
mov ecx, r12d
shr rdx, cl
add dl, 0x30
mov rcx, qword [rsp + 0x50]
mov byte [rcx + r11], dl
inc r11
cmp r9, r11
jne 0x180035cb3
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r15
movzx eax, word [rsp + 0x450]
mov word [rsp + 0x28], ax
mov word [rsp + 0x20], r10w
lea rcx, [rsp + 0x88]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
call fcn.1800359b5
cmp qword [rsp + 0x88], 0
je 0x180035d5d
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx], xmm0
jmp 0x1800361b4
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx + 8]
test rax, rax
je 0x1800361d0
mov rcx, qword [rcx + 0x10]
test rcx, rcx
mov rdx, qword [rsp + 0x78]
je 0x1800361d0
add rcx, rdx
jb 0x1800361d0
cmp rdx, rax
jb 0x1800361d0
movsx rsi, word [rsp + 0x5e]
mov rax, rdx
dec rax
je 0x180035dae
bsr rax, rax
xor rax, 0x3f
jmp 0x180035db3
mov eax, 0x40
mov rcx, rsi
sub rcx, rax
imul rax, rcx, 0x4d104d42
movabs r13, 0x1344135080
add r13, rax
shr r13, 0x20
lea rcx, [rsp + 0xa0]
call fcn.180034db3
lea r14, [rsp + 0x14c]
mov r8d, 0x9c
mov rcx, r14
xor edx, edx
call fcn.180041ed9
mov qword [r14 + 0x9c], 1
mov dword [r14 - 4], 1
test si, si
js 0x180035e1b
lea rcx, [rsp + 0xa0]
mov rdx, rsi
jmp 0x180035e29
neg esi
movsx rdx, si
lea rcx, [rsp + 0x148]
call fcn.180034bf4
test r13w, r13w
js 0x180035e47
mov edx, r13d
and edx, 0x7fff
lea rcx, [rsp + 0x148]
jmp 0x180035e57
mov eax, r13d
neg eax
movzx edx, ax
lea rcx, [rsp + 0xa0]
call fcn.180034a0f
lea rdx, [rsp + 0x148]
mov rax, qword [rdx + 0xa0]
lea rsi, [rsp + 0x1f0]
mov qword [rsi + 0xa0], rax
mov r8d, 0xa0
mov rcx, rsi
call fcn.180041e0d
mov rdi, qword [rsp + 0x48]
cmp rdi, 0xa
jb 0x180035ea6
mov rcx, rsi
mov edx, 0x3b9aca00
call fcn.180034fb4
add rdi, 0xfffffffffffffff7
jmp 0x180035e8d
lea rax, [0x180047658]
mov edx, dword [rax + rdi*4]
add edx, edx
lea rsi, [rsp + 0x1f0]
mov rcx, rsi
call fcn.180034fb4
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.180034e16
lea rdx, [rsp + 0x148]
mov rcx, rsi
call fcn.180034ee6
test al, al
je 0x180035eeb
inc r13d
jmp 0x180035efd
lea rcx, [rsp + 0xa0]
mov edx, 0xa
call fcn.180034b03
movzx edx, word [rsp + 0x450]
cmp r13w, dx
jl 0x1800360d2
movsx rax, r13w
mov ecx, r13d
sub ecx, edx
sub rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x48]
cmp rax, rdx
movsx r14, cx
cmovae r14, rdx
test r14, r14
je 0x1800360d2
lea rbp, [rsp + 0x148]
mov rsi, qword [rbp + 0xa0]
lea rdi, [rsp + 0x298]
mov qword [rdi + 0xa0], rsi
mov r8d, 0xa0
mov rcx, rdi
mov rdx, rbp
call fcn.180041e0d
mov edx, 1
mov rcx, rdi
call fcn.180034bf4
lea rbx, [rsp + 0x340]
mov qword [rbx + 0xa0], rsi
mov r8d, 0xa0
mov rcx, rbx
mov rdx, rbp
call fcn.180041e0d
mov edx, 2
mov rcx, rbx
call fcn.180034bf4
lea r15, [rsp + 0x1f0]
mov qword [r15 + 0xa0], rsi
mov r8d, 0xa0
mov rcx, r15
mov rdx, rbp
call fcn.180041e0d
mov edx, 3
mov rcx, r15
call fcn.180034bf4
xor ebx, ebx
lea r12, [rsp + 0xa0]
cmp rbx, r14
je 0x1800361c8
mov rax, qword [rsp + 0x140]
cmp rax, 0x29
jae 0x1800361d0
lea rsi, [rbx + 1]
shl rax, 2
xor ecx, ecx
cmp rax, rcx
je 0x180036184
cmp dword [rsp + rcx + 0xa0], 0
lea rcx, [rcx + 4]
je 0x180035ffb
mov rcx, r12
mov rdx, r15
call fcn.180034ee6
test al, al
je 0x180036031
mov rcx, r12
mov rdx, r15
call fcn.180034ef9
mov r15b, 8
jmp 0x180036034
xor r15d, r15d
mov rcx, r12
lea rdi, [rsp + 0x340]
mov rdx, rdi
call fcn.180034ee6
test al, al
je 0x18003605a
mov rcx, r12
mov rdx, rdi
call fcn.180034ef9
or r15b, 4
lea rdi, [rsp + 0x298]
mov rcx, r12
mov rdx, rdi
call fcn.180034ee6
test al, al
je 0x180036080
mov rcx, r12
mov rdx, rdi
call fcn.180034ef9
add r15b, 2
mov rcx, r12
mov rdx, rbp
call fcn.180034ee6
test al, al
je 0x18003609d
mov rcx, r12
mov rdx, rbp
call fcn.180034ef9
inc r15b
cmp rbx, qword [rsp + 0x48]
je 0x1800361d0
add r15b, 0x30
mov rax, qword [rsp + 0x50]
mov byte [rax + rbx], r15b
mov rcx, r12
mov edx, 0xa
call fcn.180034b03
mov rbx, rsi
lea r15, [rsp + 0x1f0]
jmp 0x180035fd6
xor edi, edi
xor r14d, r14d
lea rsi, [rsp + 0x148]
mov rcx, rsi
mov edx, 5
call fcn.180034b03
lea rcx, [rsp + 0xa0]
mov rdx, rsi
call fcn.180034e7a
cmp al, 1
jne 0x180036143
cmp r14, qword [rsp + 0x48]
ja 0x1800361d0
mov rcx, qword [rsp + 0x50]
mov rdx, r14
call fcn.180034f50
test al, 1
movzx ecx, word [rsp + 0x450]
je 0x180036163
lea eax, [r13 + 1]
cmp r13w, cx
jl 0x180036166
cmp r14, qword [rsp + 0x48]
jae 0x180036166
mov rcx, qword [rsp + 0x50]
mov byte [rcx + r14], dl
inc r14
jmp 0x180036166
test al, al
sete al
test dil, al
je 0x180036163
lea rax, [r14 - 1]
cmp rax, qword [rsp + 0x48]
jae 0x1800361d0
mov rcx, qword [rsp + 0x50]
test byte [rcx + rax], 1
jne 0x180036100
mov eax, r13d
cmp r14, qword [rsp + 0x48]
ja 0x1800361d0
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x50]
mov qword [rcx], rdx
mov qword [rcx + 8], r14
mov word [rcx + 0x10], ax
jmp 0x1800361b4
cmp r14, qword [rsp + 0x48]
ja 0x1800361d0
mov rax, qword [rsp + 0x50]
cmp r14, rbx
je 0x18003619e
mov byte [rax + rbx], 0x30
inc rbx
jmp 0x180036190
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov qword [rax + 8], r14
mov word [rax + 0x10], r13w
add rsp, 0x3e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dil, 1
jmp 0x1800360d7
ud2