Function at 0x1400138cf
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 0x140014007
mov qword [rsp + 0x70], rcx
mov rax, r8
shr rax, 0x3d
jne 0x140014007
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.140012e71
mov rsi, rax
mov ebp, edx
mov edx, 0xffffffa0
sub edx, ebp
lea r12, [rsp + 0x1f0]
mov rcx, r12
call fcn.140012e2a
movzx edi, word [r12]
mov r8, qword [r12 + 8]
movzx r9d, word [r12 + 0x10]
mov rcx, rsi
mov edx, ebp
call fcn.140012f0f
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 0x140013b8d
mov qword [rsp + 0x60], rdx
mov ecx, esi
call fcn.140012f62
mov r8d, edx
movzx ecx, al
mov r10d, ecx
sub r10d, edi
inc r10d
movzx r9d, word [rsp + 0x450]
cmp r10w, r9w
jle 0x140013a48
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 0x140014007
lea rbx, [r11 + rbp]
mov eax, esi
xor edx, edx
div r8d
cmp rbx, 1
je 0x140014007
mov esi, edx
add al, 0x30
mov rdx, qword [rsp + 0x50]
mov byte [rdx + r11 - 1], al
cmp r9, r11
je 0x140013a98
lea rax, [rcx + r11]
cmp rax, 1
je 0x140013ad2
mov eax, r8d
xor edx, edx
div edi
inc r11
mov r8d, eax
jmp 0x1400139fa
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 0x140013b5c
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 0x140013b4a
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 0x140013b8d
cmp r11, qword [rsp + 0x48]
jae 0x140014007
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 0x140013ae3
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.140013818
cmp qword [rsp + 0x88], 0
je 0x140013b8d
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 0x140013feb
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + 8]
test rax, rax
je 0x140014007
mov rcx, qword [rcx + 0x10]
test rcx, rcx
movzx edi, word [rsp + 0x5e]
mov rdx, qword [rsp + 0x80]
je 0x140014007
add rcx, rdx
jb 0x140014007
cmp rdx, rax
jb 0x140014007
movzx esi, di
movsx rax, si
mov rcx, rdx
dec rcx
je 0x140013be4
bsr rcx, rcx
xor rcx, 0x3f
jmp 0x140013be9
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.140012acd
lea r14, [rsp + 0x14c]
mov r8d, 0x9c
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [r14 + 0x9c], 1
mov dword [r14 - 4], 1
test di, di
js 0x140013c51
lea rcx, [rsp + 0xa0]
mov rdx, rsi
jmp 0x140013c5f
neg esi
movsx rdx, si
lea rcx, [rsp + 0x148]
call fcn.140012b32
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.140012858
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.VCRUNTIME140.dll_memcpy
mov rdi, qword [rsp + 0x48]
cmp rdi, 0xa
jb 0x140013ccd
mov rcx, rsi
mov edx, 0x3b9aca00
call fcn.140012de7
add rdi, 0xfffffffffffffff7
jmp 0x140013cb4
lea rax, [0x1400a51d8]
mov edx, dword [rax + rdi*4]
lea rsi, [rsp + 0x1f0]
mov rcx, rsi
call fcn.140012de7
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.140012c44
lea rdx, [rsp + 0x148]
mov rcx, rsi
call fcn.140012d18
test al, al
je 0x140013d10
inc r13d
jmp 0x140013d22
lea rcx, [rsp + 0xa0]
mov edx, 0xa
call fcn.140012922
movzx edx, word [rsp + 0x450]
cmp r13w, dx
jl 0x140013f09
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 0x140013f09
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.VCRUNTIME140.dll_memcpy
mov edx, 1
mov rcx, rdi
call fcn.140012b32
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.VCRUNTIME140.dll_memcpy
mov edx, 2
mov rcx, rsi
call fcn.140012b32
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.VCRUNTIME140.dll_memcpy
mov edx, 3
mov rcx, rbp
call fcn.140012b32
xor ebx, ebx
lea r12, [rsp + 0xa0]
cmp rbx, r14
je 0x140013fff
mov rax, qword [rsp + 0x140]
cmp rax, 0x29
jae 0x140014007
lea rdx, [rbx + 1]
shl rax, 2
xor ecx, ecx
cmp rax, rcx
je 0x140013fbb
cmp dword [rsp + rcx + 0xa0], 0
lea rcx, [rcx + 4]
je 0x140013e2e
mov qword [rsp + 0x68], rdx
mov rsi, rdi
mov rcx, r12
mov rdx, rbp
call fcn.140012d18
test al, al
je 0x140013e6c
mov rcx, r12
mov rdx, rbp
call fcn.140012d2b
mov bpl, 8
jmp 0x140013e6e
xor ebp, ebp
lea rdi, [rsp + 0x298]
mov rcx, r12
mov rdx, rdi
call fcn.140012d18
test al, al
je 0x140013e94
mov rcx, r12
mov rdx, rdi
call fcn.140012d2b
or bpl, 4
mov rcx, r12
mov rdi, rsi
mov rdx, rsi
call fcn.140012d18
test al, al
je 0x140013eb5
mov rcx, r12
mov rdx, rdi
call fcn.140012d2b
add bpl, 2
mov rcx, r12
mov rdx, r15
call fcn.140012d18
test al, al
je 0x140013ed2
mov rcx, r12
mov rdx, r15
call fcn.140012d2b
inc bpl
cmp rbx, qword [rsp + 0x48]
je 0x140014007
add bpl, 0x30
mov rax, qword [rsp + 0x50]
mov byte [rax + rbx], bpl
mov rcx, r12
mov edx, 0xa
call fcn.140012922
mov rbx, qword [rsp + 0x68]
lea rbp, [rsp + 0x1f0]
jmp 0x140013e09
xor edi, edi
xor r14d, r14d
lea rsi, [rsp + 0x148]
mov rcx, rsi
mov edx, 5
call fcn.140012922
lea rcx, [rsp + 0xa0]
mov rdx, rsi
call fcn.140012caa
cmp al, 1
jne 0x140013f7a
cmp r14, qword [rsp + 0x48]
ja 0x140014007
mov rcx, qword [rsp + 0x50]
mov rdx, r14
call fcn.140012d84
test al, 1
movzx ecx, word [rsp + 0x450]
je 0x140013f9a
lea eax, [r13 + 1]
cmp r13w, cx
jl 0x140013f9d
cmp r14, qword [rsp + 0x48]
jae 0x140013f9d
mov rcx, qword [rsp + 0x50]
mov byte [rcx + r14], dl
inc r14
jmp 0x140013f9d
test al, al
sete al
test dil, al
je 0x140013f9a
lea rax, [r14 - 1]
cmp rax, qword [rsp + 0x48]
jae 0x140014007
mov rcx, qword [rsp + 0x50]
test byte [rcx + rax], 1
jne 0x140013f37
mov eax, r13d
cmp r14, qword [rsp + 0x48]
ja 0x140014007
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 0x140013feb
cmp r14, qword [rsp + 0x48]
ja 0x140014007
mov rax, qword [rsp + 0x50]
cmp r14, rbx
je 0x140013fd5
mov byte [rax + rbx], 0x30
inc rbx
jmp 0x140013fc7
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 0x140013f0e
ud2