Function at 0x1400578e0
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 0x140057901
mov r12, r9
cmp dword [r9 + 0x10], 0
je 0x140057937
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.140049240
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 0x140057ad7
mov r13, r8
mov rbx, rdx
mov r14, rcx
mov rcx, qword [r12]
cmp eax, 4
jae 0x140057961
xor r8d, r8d
xor edx, edx
jmp 0x140057a60
lea r9, [rax - 4]
mov r8, r9
shr r8, 2
inc r8
mov edx, r8d
and edx, 3
cmp r9, 0xc
jae 0x140057988
pxor xmm0, xmm0
xor r9d, r9d
pxor xmm1, xmm1
jmp 0x140057a01
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor r9d, r9d
pxor xmm1, xmm1
nop word [rax + rax]
movdqu xmm2, xmmword [rcx + r9*8]
por xmm2, xmm0
movdqu xmm0, xmmword [rcx + r9*8 + 0x10]
por xmm0, xmm1
movdqu xmm1, xmmword [rcx + r9*8 + 0x20]
movdqu xmm3, xmmword [rcx + r9*8 + 0x30]
movdqu xmm4, xmmword [rcx + r9*8 + 0x40]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [rcx + r9*8 + 0x50]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [rcx + r9*8 + 0x60]
por xmm0, xmm4
movdqu xmm1, xmmword [rcx + r9*8 + 0x70]
por xmm1, xmm2
add r9, 0x10
add r8, 0xfffffffffffffffc
jne 0x1400579a0
mov r8, rax
and r8, 0xfffffffffffffffc
test rdx, rdx
je 0x140057a3e
lea r9, [rcx + r9*8]
add r9, 0x10
shl rdx, 5
xor r10d, r10d
nop dword [rax]
movdqu xmm2, xmmword [r9 + r10 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [r9 + r10]
por xmm1, xmm2
add r10, 0x20
cmp rdx, r10
jne 0x140057a20
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq rdx, xmm1
cmp r8, rax
je 0x140057a6c
nop word cs:[rax + rax]
or rdx, qword [rcx + r8*8]
inc r8
cmp rax, r8
jne 0x140057a60
test rdx, rdx
je 0x140057ad7
mov r15, qword [rsp + 0xc8]
cmp byte [r15 + 0x28], 0
jne 0x140057b0f
mov rcx, qword [r15 + 0x10]
mov rsi, qword [r15 + 0x20]
cmp rcx, qword [r15 + 0x18]
jne 0x140057afa
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov edi, 0x20
cmovne rdi, rax
cmp rdi, rcx
jbe 0x140057b08
mov rax, rdi
shr rax, 0x3d
jne 0x140057b08
lea rdx, [rdi*8]
mov rcx, qword [r15 + 8]
call fcn.14009eae0
test rax, rax
je 0x140057b08
mov qword [r15 + 8], rax
mov qword [r15 + 0x18], rdi
mov rcx, qword [r15 + 0x10]
jmp 0x140057afe
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 0x14005791f
mov rax, qword [r15 + 8]
mov qword [rax + rcx*8], rsi
inc qword [r15 + 0x10]
jmp 0x140057b0f
mov word [r15 + 0x28], 0x101
test r14, r14
je 0x140057b21
cmp r14, r13
je 0x140057b21
mov rbp, r14
cmp r14, r12
jne 0x140057b2c
mov rcx, r15
call fcn.140055ae0
mov rbp, rax
test rbx, rbx
je 0x140057b3e
cmp rbx, r13
je 0x140057b3e
mov rax, rbx
cmp rbx, r12
jne 0x140057b46
mov rcx, r15
call fcn.140055ae0
mov qword [rsp + 0x28], rax
mov rcx, r15
call fcn.140055ae0
mov qword [rsp + 0x38], rax
xor esi, esi
test rbp, rbp
je 0x140057fe3
cmp qword [rsp + 0x28], 0
je 0x140057fe3
cmp qword [rsp + 0x38], 0
je 0x140057fe3
movsxd rdx, dword [r13 + 8]
mov rcx, rbp
call fcn.140053090
test eax, eax
je 0x140057fe3
movsxd rdx, dword [r12 + 8]
mov rcx, qword [rsp + 0x28]
call fcn.140053090
test eax, eax
je 0x140057fe3
movsxd rdx, dword [r12 + 8]
mov rcx, qword [rsp + 0x38]
call fcn.140053090
test eax, eax
je 0x140057fe3
movsxd r8, dword [r13 + 8]
xor edi, edi
mov eax, 0
test r8, r8
je 0x140057be0
shl r8, 3
mov rcx, qword [rbp]
xor edx, edx
call fcn.14027bdc0
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 0x140057c13
shl r8, 3
mov rcx, qword [r15]
xor edx, edx
call fcn.14027bdc0
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 0x140057c6f
dec esi
shr esi, 6
movsxd rdx, dword [r13 + 8]
cmp esi, edx
cmovge esi, edx
test esi, esi
je 0x140057c6f
movsxd r8, esi
shl r8, 3
mov rcx, qword [r10]
shl rdx, 3
add rdx, qword [r13]
sub rdx, r8
call fcn.14027bf80
mov r10, qword [rsp + 0x28]
not esi
mov eax, esi
add eax, dword [r13 + 8]
js 0x140057f94
mov eax, eax
mov qword [rsp + 0x30], rax
xor ebx, ebx
jmp 0x140057c9a
mov rcx, qword [rsp + 0x30]
lea rax, [rcx - 1]
test ecx, ecx
mov qword [rsp + 0x30], rax
jle 0x140057f94
mov r15d, 0x3f
jmp 0x140057cdd
not ebp
and ebp, 1
mov ecx, r15d
shl rbp, cl
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x30]
or qword [rax + rcx*8], rbp
sub r15, 1
mov r12, r13
mov r13, r14
mov r10, qword [rsp + 0x28]
jb 0x140057c84
movsxd rdx, dword [r12 + 8]
test rdx, rdx
je 0x140057da0
mov rax, qword [r10]
mov rcx, rbx
cmp edx, 4
jb 0x140057d7b
mov r8, rbx
nop dword [rax]
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 0x140057d00
test rdx, rdx
je 0x140057e20
mov r10, qword [rsp + 0x28]
test dl, 1
jne 0x140057db0
mov r9, rbx
mov r8, rdx
cmp rdx, 1
jne 0x140057ddb
jmp 0x140057e30
mov rbp, rbx
jmp 0x140057e30
mov r8, qword [rax]
add rcx, r8
mov rbp, rbx
adc rbp, 0
add rcx, r8
adc rbp, 0
mov qword [rax], rcx
add rax, 8
lea r8, [rdx - 1]
mov rcx, rbp
mov r9, rbx
cmp rdx, 1
je 0x140057e30
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 0x140057de0
mov rbp, rcx
jmp 0x140057e30
mov rbp, rcx
mov r10, qword [rsp + 0x28]
nop dword [rax + rax]
mov r14, 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.1400540a0
sub rbp, rax
test rsi, rsi
je 0x140057cb0
mov rax, rbp
not rax
cmp esi, 6
jb 0x140057ea1
lea rcx, [rdi + rsi*8]
cmp r12, rcx
jae 0x140057f1b
lea rcx, [r12 + rsi*8]
cmp rdi, rcx
jae 0x140057f1b
mov rcx, rbx
mov rdx, rcx
test sil, 1
je 0x140057ec9
mov rdx, qword [r12 + rcx*8]
and rdx, rbp
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 0x140057cb0
nop word cs:[rax + rax]
mov rcx, qword [r12 + rdx*8]
and rcx, rbp
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, rbp
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 0x140057ee0
jmp 0x140057cb0
mov rcx, rsi
and rcx, 0xfffffffffffffffc
movq xmm0, rbp
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 0x140057f40
cmp rcx, rsi
je 0x140057cb0
jmp 0x140057ea4
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140057fad
mov rdx, qword [rsp + 0x40]
call fcn.140054540
test rax, rax
je 0x140057fd5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
mov r15, qword [rsp + 0xc8]
je 0x140057fce
mov rdx, qword [rsp + 0x28]
call fcn.140054540
test rax, rax
je 0x140057fe1
mov esi, 1
jmp 0x140057fe3
xor esi, esi
mov r15, qword [rsp + 0xc8]
jmp 0x140057fe3
xor esi, esi
cmp byte [r15 + 0x28], 0
jne 0x140057924
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 0x140057924