Function at 0x140056690
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
cmp dword [r8 + 0x10], 0
jne 0x1400566b1
mov r12, r9
cmp dword [r9 + 0x10], 0
je 0x1400566e7
mov dword [rsp + 0x20], 0x1cd
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_div.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, WSAGetLastError
call fcn.1400490c0
mov eax, esi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movsxd rax, dword [r12 + 8]
test rax, rax
je 0x1400567d7
mov r13, r8
mov rbx, rdx
mov r14, rcx
mov rcx, qword [r12]
cmp eax, 4
jae 0x14005670e
xor edx, edx
xor r8d, r8d
jmp 0x140056760
mov rdx, rax
and rdx, 0xfffffffffffffffc
pxor xmm0, xmm0
xor r8d, r8d
pxor xmm1, xmm1
movdqu xmm2, xmmword [rcx + r8*8]
por xmm0, xmm2
movdqu xmm2, xmmword [rcx + r8*8 + 0x10]
por xmm1, xmm2
add r8, 4
cmp rdx, r8
jne 0x140056720
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r8, xmm0
cmp rdx, rax
je 0x14005676c
nop word cs:[rax + rax]
or r8, qword [rcx + rdx*8]
inc rdx
cmp rax, rdx
jne 0x140056760
test r8, r8
je 0x1400567d7
mov r15, qword [rsp + 0xc8]
cmp byte [r15 + 0x28], 0
jne 0x14005680f
mov rcx, qword [r15 + 0x10]
mov rsi, qword [r15 + 0x20]
cmp rcx, qword [r15 + 0x18]
jne 0x1400567fa
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov edi, 0x20
cmovne rdi, rax
cmp rdi, rcx
jbe 0x140056808
mov rax, rdi
shr rax, 0x3d
jne 0x140056808
lea rdx, [rdi*8]
mov rcx, qword [r15 + 8]
call fcn.140098700
test rax, rax
je 0x140056808
mov qword [r15 + 8], rax
mov qword [r15 + 0x18], rdi
mov rcx, qword [r15 + 0x10]
jmp 0x1400567fe
mov dword [rsp + 0x20], 0x1d1
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_div.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
jmp 0x1400566cf
mov rax, qword [r15 + 8]
mov qword [rax + rcx*8], rsi
inc qword [r15 + 0x10]
jmp 0x14005680f
mov word [r15 + 0x28], 0x101
test r14, r14
je 0x140056821
cmp r14, r13
je 0x140056821
mov rbp, r14
cmp r14, r12
jne 0x14005682c
mov rcx, r15
call fcn.140054a90
mov rbp, rax
test rbx, rbx
je 0x14005683e
cmp rbx, r13
je 0x14005683e
mov rax, rbx
cmp rbx, r12
jne 0x140056846
mov rcx, r15
call fcn.140054a90
mov qword [rsp + 0x28], rax
mov rcx, r15
call fcn.140054a90
mov qword [rsp + 0x38], rax
xor esi, esi
test rbp, rbp
je 0x140056ce3
cmp qword [rsp + 0x28], 0
je 0x140056ce3
cmp qword [rsp + 0x38], 0
je 0x140056ce3
movsxd rdx, dword [r13 + 8]
mov rcx, rbp
call fcn.140052a70
test eax, eax
je 0x140056ce3
movsxd rdx, dword [r12 + 8]
mov rcx, qword [rsp + 0x28]
call fcn.140052a70
test eax, eax
je 0x140056ce3
movsxd rdx, dword [r12 + 8]
mov rcx, qword [rsp + 0x38]
call fcn.140052a70
test eax, eax
je 0x140056ce3
movsxd r8, dword [r13 + 8]
xor edi, edi
mov eax, 0
test r8, r8
je 0x1400568e0
shl r8, 3
mov rcx, qword [rbp]
xor edx, edx
call fcn.140268830
mov eax, dword [r13 + 8]
mov esi, dword [rsp + 0xc0]
mov dword [rbp + 8], eax
mov dword [rbp + 0x10], 0
movsxd r8, dword [r12 + 8]
test r8, r8
mov r15, qword [rsp + 0x28]
je 0x140056913
shl r8, 3
mov rcx, qword [r15]
xor edx, edx
call fcn.140268830
mov edi, dword [r12 + 8]
mov dword [r15 + 8], edi
mov dword [r15 + 0x10], 0
mov eax, 0xffffffff
test esi, esi
mov r10, r15
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x40], rbp
je 0x14005696f
dec esi
shr esi, 6
movsxd rdx, dword [r13 + 8]
cmp esi, edx
cmovge esi, edx
test esi, esi
je 0x14005696f
movsxd r8, esi
shl r8, 3
mov rcx, qword [r10]
shl rdx, 3
add rdx, qword [r13]
sub rdx, r8
call fcn.1402689f0
mov r10, qword [rsp + 0x28]
not esi
mov eax, esi
add eax, dword [r13 + 8]
js 0x140056c94
mov eax, eax
mov qword [rsp + 0x30], rax
xor ebx, ebx
jmp 0x14005699a
mov rcx, qword [rsp + 0x30]
lea rax, [rcx - 1]
test ecx, ecx
mov qword [rsp + 0x30], rax
jle 0x140056c94
mov r15d, 0x3f
jmp 0x1400569df
not r14d
and r14d, 1
mov ecx, r15d
shl r14, cl
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x30]
or qword [rax + rcx*8], r14
sub r15, 1
mov r12, r13
mov r13, rbp
mov r10, qword [rsp + 0x28]
jb 0x140056984
movsxd rdx, dword [r12 + 8]
test rdx, rdx
je 0x140056aa0
mov rax, qword [r10]
mov rcx, rbx
cmp edx, 4
jb 0x140056a7b
mov r8, rbx
nop
mov r9, qword [rax]
mov r10, qword [rax + 8]
mov r11, r9
shr r11, 0x3f
add r9, r9
add r9, rcx
adc r11, r8
mov qword [rax], r9
mov r8, r10
shr r8, 0x3f
add r10, r10
mov r9, qword [rax + 0x10]
mov rsi, r9
shr rsi, 0x3f
add r9, r9
mov rdi, qword [rax + 0x18]
mov rcx, rdi
shr rcx, 0x3f
add rdi, rdi
add r10, r11
mov qword [rax + 8], r10
adc r9, r8
adc rdi, rsi
mov qword [rax + 0x10], r9
adc rcx, 0
mov qword [rax + 0x18], rdi
add rax, 0x20
add rdx, 0xfffffffffffffffc
mov r8d, 0
cmp rdx, 4
jae 0x140056a00
test rdx, rdx
je 0x140056b20
mov r10, qword [rsp + 0x28]
test dl, 1
jne 0x140056ab0
mov r9, rbx
mov r8, rdx
cmp rdx, 1
jne 0x140056adb
jmp 0x140056b30
mov r14, rbx
jmp 0x140056b30
mov r8, qword [rax]
add rcx, r8
mov r14, rbx
adc r14, 0
add rcx, r8
adc r14, 0
mov qword [rax], rcx
add rax, 8
lea r8, [rdx - 1]
mov rcx, r14
mov r9, rbx
cmp rdx, 1
je 0x140056b30
mov rdx, rbx
nop
add rcx, qword [rax + rdx*8]
adc r9, 0
add rcx, qword [rax + rdx*8]
adc r9, 0
mov qword [rax + rdx*8], rcx
xor ecx, ecx
add r9, qword [rax + rdx*8 + 8]
setb cl
add r9, qword [rax + rdx*8 + 8]
adc rcx, 0
mov qword [rax + rdx*8 + 8], r9
add rdx, 2
mov r9d, 0
cmp r8, rdx
jne 0x140056ae0
mov r14, rcx
jmp 0x140056b30
mov r14, rcx
mov r10, qword [rsp + 0x28]
nop dword [rax + rax]
mov rbp, r13
mov rax, qword [r13]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rax + rcx*8]
xor ecx, ecx
bt rax, r15
setb cl
mov rax, qword [r10]
or qword [rax], rcx
movsxd rsi, dword [r12 + 8]
mov rax, qword [rsp + 0x38]
mov rdi, qword [rax]
mov r13, r12
mov r8, qword [r12]
mov r12, qword [r10]
mov rcx, rdi
mov rdx, r12
mov r9, rsi
call fcn.140053610
sub r14, rax
test rsi, rsi
je 0x1400569b0
mov rax, r14
not rax
cmp esi, 6
jb 0x140056ba1
lea rcx, [rdi + rsi*8]
cmp r12, rcx
jae 0x140056c1b
lea rcx, [r12 + rsi*8]
cmp rdi, rcx
jae 0x140056c1b
mov rcx, rbx
mov rdx, rcx
test sil, 1
je 0x140056bc9
mov rdx, qword [r12 + rcx*8]
and rdx, r14
mov r8, qword [rdi + rcx*8]
and r8, rax
or r8, rdx
mov qword [r12 + rcx*8], r8
mov rdx, rcx
or rdx, 1
not rcx
add rcx, rsi
je 0x1400569b0
nop word cs:[rax + rax]
mov rcx, qword [r12 + rdx*8]
and rcx, r14
mov r8, qword [rdi + rdx*8]
and r8, rax
or r8, rcx
mov qword [r12 + rdx*8], r8
mov rcx, qword [r12 + rdx*8 + 8]
and rcx, r14
mov r8, qword [rdi + rdx*8 + 8]
and r8, rax
or r8, rcx
mov qword [r12 + rdx*8 + 8], r8
add rdx, 2
cmp rsi, rdx
jne 0x140056be0
jmp 0x1400569b0
mov rcx, rsi
and rcx, 0xfffffffffffffffc
movq xmm0, r14
pshufd xmm0, xmm0, 0x44
movq xmm1, rax
pshufd xmm1, xmm1, 0x44
mov rdx, rbx
nop dword [rax]
movdqu xmm2, xmmword [rdi + rdx*8]
movdqu xmm3, xmmword [rdi + rdx*8 + 0x10]
movdqu xmm4, xmmword [r12 + rdx*8]
movdqu xmm5, xmmword [r12 + rdx*8 + 0x10]
pand xmm4, xmm0
pand xmm5, xmm0
pand xmm2, xmm1
por xmm2, xmm4
pand xmm3, xmm1
por xmm3, xmm5
movdqu xmmword [r12 + rdx*8], xmm2
movdqu xmmword [r12 + rdx*8 + 0x10], xmm3
add rdx, 4
cmp rcx, rdx
jne 0x140056c40
cmp rcx, rsi
je 0x1400569b0
jmp 0x140056ba4
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140056cad
mov rdx, qword [rsp + 0x40]
call fcn.140053a10
test rax, rax
je 0x140056cd5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
mov r15, qword [rsp + 0xc8]
je 0x140056cce
mov rdx, qword [rsp + 0x28]
call fcn.140053a10
test rax, rax
je 0x140056ce1
mov esi, 1
jmp 0x140056ce3
xor esi, esi
mov r15, qword [rsp + 0xc8]
jmp 0x140056ce3
xor esi, esi
cmp byte [r15 + 0x28], 0
jne 0x1400566d4
mov rax, qword [r15 + 8]
mov rcx, qword [r15 + 0x10]
lea rdx, [rcx - 1]
mov qword [r15 + 0x10], rdx
mov rax, qword [rax + rcx*8 - 8]
mov qword [r15 + 0x20], rax
jmp 0x1400566d4