Function at 0x14002ff58
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 0x140030690
mov qword [rsp + 0x70], rcx
mov rax, r8
shr rax, 0x3d
jne 0x140030690
movzx ebx, word [rsp + 0x450]
mov qword [rsp + 0x68], rdx
movzx edx, word [rdx + 0x18]
mov qword [rsp + 0x80], r8
mov rcx, r8
mov word [rsp + 0x5e], dx
call fcn.14002f4fa
mov rsi, rax
mov ebp, edx
mov edx, 0xffffffa0
sub edx, ebp
lea r12, [rsp + 0x1f0]
mov rcx, r12
call fcn.14002f4b3
movzx edi, word [r12]
mov r8, qword [r12 + 8]
movzx r9d, word [r12 + 0x10]
mov rcx, rsi
mov edx, ebp
call fcn.14002f598
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 + 0x78], rax
and r15, rbp
je 0x140030216
mov qword [rsp + 0x60], rdx
mov ecx, esi
call fcn.14002f5eb
mov r8d, edx
movzx ecx, al
mov r10d, ecx
sub r10d, edi
inc r10d
movzx r9d, word [rsp + 0x450]
cmp r10w, r9w
jle 0x1400300d1
movsx rax, r10w
mov edx, r10d
sub edx, r9d
sub rax, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x48]
cmp rax, rbp
movsx r9, dx
cmovae r9, rbp
neg rcx
neg rbp
mov r11d, 1
mov edi, 0xa
test r8d, r8d
je 0x140030690
lea rbx, [r11 + rbp]
mov eax, esi
xor edx, edx
div r8d
cmp rbx, 1
je 0x140030690
mov esi, edx
add al, 0x30
mov rdx, qword [rsp + 0x50]
mov byte [rdx + r11 - 1], al
cmp r9, r11
je 0x140030121
lea rax, [rcx + r11]
cmp rax, 1
je 0x14003015b
mov eax, r8d
xor edx, edx
div edi
inc r11
mov r8d, eax
jmp 0x140030083
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 0x1400301e5
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 0x1400301d3
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 0x140030216
cmp r11, qword [rsp + 0x48]
jae 0x140030690
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 0x14003016c
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.14002fea1
cmp qword [rsp + 0x88], 0
je 0x140030216
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx], xmm0
jmp 0x140030674
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + 8]
test rax, rax
je 0x140030690
mov rcx, qword [rcx + 0x10]
test rcx, rcx
movzx edi, word [rsp + 0x5e]
mov rdx, qword [rsp + 0x80]
je 0x140030690
add rcx, rdx
jb 0x140030690
cmp rdx, rax
jb 0x140030690
movzx esi, di
movsx rax, si
mov rcx, rdx
dec rcx
je 0x14003026d
bsr rcx, rcx
xor rcx, 0x3f
jmp 0x140030272
mov ecx, 0x40
sub rax, rcx
imul rax, rax, 0x4d104d42
movabs r13, 0x1344135080
add r13, rax
shr r13, 0x20
lea r15, [rsp + 0xa0]
mov rcx, r15
call fcn.14002f156
lea r14, [rsp + 0x14c]
mov r8d, 0x9c
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [r14 + 0x9c], 1
mov dword [r14 - 4], 1
test di, di
js 0x1400302da
lea rcx, [rsp + 0xa0]
mov rdx, rsi
jmp 0x1400302e8
neg esi
movsx rdx, si
lea rcx, [rsp + 0x148]
call fcn.14002f1bb
mov eax, r13d
neg eax
test r13w, r13w
cmovns rax, r13
lea r14, [rsp + 0x148]
cmovns r15, r14
movzx edx, ax
mov rcx, r15
call fcn.14002eee1
mov rax, qword [r14 + 0xa0]
lea rsi, [rsp + 0x1f0]
mov qword [rsi + 0xa0], rax
mov r8d, 0xa0
mov rcx, rsi
mov rdx, r14
call sub.msvcrt.dll_memcpy
mov rdi, qword [rsp + 0x48]
cmp rdi, 0xa
jb 0x140030356
mov rcx, rsi
mov edx, 0x3b9aca00
call fcn.14002f470
add rdi, 0xfffffffffffffff7
jmp 0x14003033d
lea rax, [0x14010f5ac]
mov edx, dword [rax + rdi*4]
lea rsi, [rsp + 0x1f0]
mov rcx, rsi
call fcn.14002f470
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.14002f2cd
lea rdx, [rsp + 0x148]
mov rcx, rsi
call fcn.14002f3a1
test al, al
je 0x140030399
inc r13d
jmp 0x1400303ab
lea rcx, [rsp + 0xa0]
mov edx, 0xa
call fcn.14002efab
movzx edx, word [rsp + 0x450]
cmp r13w, dx
jl 0x140030592
movsx rax, r13w
mov ecx, r13d
sub ecx, edx
sub rax, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x48]
cmp rax, rdx
movsx r14, cx
cmovae r14, rdx
test r14, r14
je 0x140030592
lea r15, [rsp + 0x148]
mov rax, qword [r15 + 0xa0]
lea rdi, [rsp + 0x340]
mov qword [rdi + 0xa0], rax
mov r8d, 0xa0
mov rcx, rdi
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov edx, 1
mov rcx, rdi
call fcn.14002f1bb
mov rax, qword [r15 + 0xa0]
lea rsi, [rsp + 0x298]
mov qword [rsi + 0xa0], rax
mov r8d, 0xa0
mov rcx, rsi
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov edx, 2
mov rcx, rsi
call fcn.14002f1bb
mov rax, qword [r15 + 0xa0]
lea rbp, [rsp + 0x1f0]
mov qword [rbp + 0xa0], rax
mov r8d, 0xa0
mov rcx, rbp
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov edx, 3
mov rcx, rbp
call fcn.14002f1bb
xor ebx, ebx
lea r12, [rsp + 0xa0]
cmp rbx, r14
je 0x140030688
mov rax, qword [rsp + 0x140]
cmp rax, 0x29
jae 0x140030690
lea rdx, [rbx + 1]
shl rax, 2
xor ecx, ecx
cmp rax, rcx
je 0x140030644
cmp dword [rsp + rcx + 0xa0], 0
lea rcx, [rcx + 4]
je 0x1400304b7
mov qword [rsp + 0x68], rdx
mov rsi, rdi
mov rcx, r12
mov rdx, rbp
call fcn.14002f3a1
test al, al
je 0x1400304f5
mov rcx, r12
mov rdx, rbp
call fcn.14002f3b4
mov bpl, 8
jmp 0x1400304f7
xor ebp, ebp
lea rdi, [rsp + 0x298]
mov rcx, r12
mov rdx, rdi
call fcn.14002f3a1
test al, al
je 0x14003051d
mov rcx, r12
mov rdx, rdi
call fcn.14002f3b4
or bpl, 4
mov rcx, r12
mov rdi, rsi
mov rdx, rsi
call fcn.14002f3a1
test al, al
je 0x14003053e
mov rcx, r12
mov rdx, rdi
call fcn.14002f3b4
add bpl, 2
mov rcx, r12
mov rdx, r15
call fcn.14002f3a1
test al, al
je 0x14003055b
mov rcx, r12
mov rdx, r15
call fcn.14002f3b4
inc bpl
cmp rbx, qword [rsp + 0x48]
je 0x140030690
add bpl, 0x30
mov rax, qword [rsp + 0x50]
mov byte [rax + rbx], bpl
mov rcx, r12
mov edx, 0xa
call fcn.14002efab
mov rbx, qword [rsp + 0x68]
lea rbp, [rsp + 0x1f0]
jmp 0x140030492
xor edi, edi
xor r14d, r14d
lea rsi, [rsp + 0x148]
mov rcx, rsi
mov edx, 5
call fcn.14002efab
lea rcx, [rsp + 0xa0]
mov rdx, rsi
call fcn.14002f333
cmp al, 1
jne 0x140030603
cmp r14, qword [rsp + 0x48]
ja 0x140030690
mov rcx, qword [rsp + 0x50]
mov rdx, r14
call fcn.14002f40d
test al, 1
movzx ecx, word [rsp + 0x450]
je 0x140030623
lea eax, [r13 + 1]
cmp r13w, cx
jl 0x140030626
cmp r14, qword [rsp + 0x48]
jae 0x140030626
mov rcx, qword [rsp + 0x50]
mov byte [rcx + r14], dl
inc r14
jmp 0x140030626
test al, al
sete al
test dil, al
je 0x140030623
lea rax, [r14 - 1]
cmp rax, qword [rsp + 0x48]
jae 0x140030690
mov rcx, qword [rsp + 0x50]
test byte [rcx + rax], 1
jne 0x1400305c0
mov eax, r13d
cmp r14, qword [rsp + 0x48]
ja 0x140030690
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x50]
mov qword [rcx], rdx
mov qword [rcx + 8], r14
mov word [rcx + 0x10], ax
jmp 0x140030674
cmp r14, qword [rsp + 0x48]
ja 0x140030690
mov rax, qword [rsp + 0x50]
cmp r14, rbx
je 0x14003065e
mov byte [rax + rbx], 0x30
inc rbx
jmp 0x140030650
mov rax, qword [rsp + 0x70]
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 0x140030597
ud2