Function at 0x140055730
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov r13, r9
mov rbp, r8
mov rbx, rcx
mov r15, qword [rsp + 0x100]
mov rax, qword [0x1403a6f08]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov eax, dword [r8 + 8]
mov ecx, eax
sar ecx, 0x1f
and ecx, eax
nop word cs:[rax + rax]
test eax, eax
jle 0x14005579d
mov r8, qword [rbp]
lea r9, [rax - 1]
cmp qword [r8 + rax*8 - 8], 0
mov rax, r9
je 0x140055780
inc r9d
mov ecx, r9d
mov esi, dword [r13 + 8]
movsxd rax, esi
mov r8d, eax
sar r8d, 0x1f
and r8d, eax
mov r9, rsi
nop word cs:[rax + rax]
test r9d, r9d
jle 0x1400557de
mov r11, qword [r13]
lea r10, [r9 - 1]
cmp qword [r11 + r9*8 - 8], 0
mov r9, r10
je 0x1400557c0
inc r10d
mov r8d, r10d
test ecx, ecx
jle 0x1400557ef
mov r9, qword [rbp]
dec ecx
cmp qword [r9 + rcx*8], 0
je 0x14005581e
test r8d, r8d
jle 0x140055802
mov rcx, qword [r13]
dec r8d
cmp qword [rcx + r8*8], 0
je 0x14005581e
test esi, esi
je 0x140055914
mov rcx, qword [r13]
cmp esi, 4
jae 0x140055846
xor r9d, r9d
xor r8d, r8d
jmp 0x1400558a0
mov dword [rsp + 0x20], 0xd4
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_div.c
xor edi, edi
mov ecx, 3
xor edx, edx
mov r8d, reloc.WS2_32.dll_WSAGetLastError
call fcn.14004a660
jmp 0x1400560c8
mov r9, rax
and r9, 0xfffffffffffffffc
pxor xmm0, xmm0
xor r8d, r8d
pxor xmm1, xmm1
nop dword [rax + rax]
movdqu xmm2, xmmword [rcx + r8*8]
por xmm0, xmm2
movdqu xmm2, xmmword [rcx + r8*8 + 0x10]
por xmm1, xmm2
add r8, 4
cmp r9, r8
jne 0x140055860
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r8, xmm0
cmp r9, rax
je 0x1400558ac
nop word cs:[rax + rax]
or r8, qword [rcx + r9*8]
inc r9
cmp rax, r9
jne 0x1400558a0
test r8, r8
je 0x140055914
mov qword [rsp + 0x68], rdx
cmp byte [r15 + 0x28], 0
jne 0x140055951
mov rcx, qword [r15 + 0x10]
mov rsi, qword [r15 + 0x20]
cmp rcx, qword [r15 + 0x18]
jne 0x14005593c
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov edi, 0x20
cmovne rdi, rax
cmp rdi, rcx
jbe 0x14005594a
mov rax, rdi
shr rax, 0x3d
jne 0x14005594a
lea rdx, [rdi*8]
mov rcx, qword [r15 + 8]
call fcn.1400936b0
test rax, rax
je 0x14005594a
mov qword [r15 + 8], rax
mov qword [r15 + 0x18], rdi
mov rcx, qword [r15 + 0x10]
jmp 0x140055940
mov dword [rsp + 0x20], 0xd9
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_div.c
xor edi, edi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
call fcn.14004a660
jmp 0x1400560c8
mov rax, qword [r15 + 8]
mov qword [rax + rcx*8], rsi
inc qword [r15 + 0x10]
jmp 0x140055951
mov word [r15 + 0x28], 0x101
mov rcx, r15
call fcn.1400555e0
mov qword [rsp + 0x48], rax
mov rcx, r15
call fcn.1400555e0
mov qword [rsp + 0x38], rax
mov rcx, r15
call fcn.1400555e0
mov r12, rax
test rbx, rbx
jne 0x140055986
mov rcx, r15
call fcn.1400555e0
mov rbx, rax
mov qword [rsp + 0x30], rbx
test r12, r12
je 0x1400560a6
cmp qword [rsp + 0x30], 0
je 0x1400560a6
mov eax, dword [r13 + 8]
mov ecx, eax
sar ecx, 0x1f
and ecx, eax
mov r8, rax
nop
test r8d, r8d
jle 0x1400559d0
mov rdx, qword [r13]
lea r9, [r8 - 1]
cmp qword [rdx + r8*8 - 8], 0
mov r8, r9
je 0x1400559b0
inc r9d
mov ecx, r9d
jmp 0x1400559de
xor esi, esi
test eax, eax
jns 0x140055a7e
mov rdx, qword [r13]
movsxd rax, ecx
shl ecx, 6
mov rdx, qword [rdx + rax*8 - 8]
xor eax, eax
test rdx, rdx
setne al
or eax, ecx
xor ecx, ecx
mov r8, rdx
shr r8, 0x20
cmove r8, rdx
setne cl
shl ecx, 5
mov r9, r8
shr r9, 0x10
xor edx, edx
cmp r8, 0x10000
cmovb r9, r8
setae dl
shl edx, 4
mov r10, r9
shr r10, 8
xor r8d, r8d
cmp r9, 0x100
cmovb r10, r9
setae r8b
mov r9, r10
shr r9, 4
xor r11d, r11d
cmp r10, 0x10
setae r11b
cmovb r9, r10
mov r10, r9
shr r10, 2
xor edi, edi
cmp r9, 4
setae dil
cmovb r10, r9
add edi, edi
or ecx, eax
or ecx, edx
lea eax, [rcx + r8*8]
lea esi, [rax + r11*4]
add esi, 0xffffffc0
or esi, edi
cmp r10, 2
sbb esi, 0xffffffff
and esi, 0x3f
mov r8d, 0x40
sub r8d, esi
mov rcx, r12
mov rdx, r13
call fcn.1400561a0
test eax, eax
je 0x1400560a6
mov ecx, dword [r12 + 8]
mov eax, ecx
sar eax, 0x1f
and eax, ecx
nop dword [rax]
test ecx, ecx
jle 0x140055acb
mov r8, qword [r12]
lea rdx, [rcx - 1]
cmp qword [r8 + rcx*8 - 8], 0
mov rcx, rdx
je 0x140055ab0
inc edx
mov eax, edx
mov dword [r12 + 8], eax
mov dword [r12 + 0x10], 0
mov r8d, 0x80
sub r8d, esi
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
mov dword [rsp + 0x58], r8d
call fcn.1400561a0
test eax, eax
je 0x1400560a6
mov rcx, qword [rsp + 0x38]
mov r9d, dword [rcx + 8]
mov eax, r9d
sar eax, 0x1f
and eax, r9d
nop
test r9d, r9d
jle 0x140055b2b
mov r8, qword [rcx]
lea rdx, [r9 - 1]
cmp qword [r8 + r9*8 - 8], 0
mov r9, rdx
je 0x140055b10
inc edx
mov eax, edx
mov dword [rcx + 8], eax
mov dword [rcx + 0x10], 0
movsxd rdx, dword [r12 + 8]
lea r8d, [rdx + 1]
cmp eax, r8d
jle 0x140055b70
inc eax
movsxd rdx, eax
call fcn.140053740
test eax, eax
je 0x1400560a6
mov rdx, qword [rsp + 0x38]
mov rax, qword [rdx]
movsxd rcx, dword [rdx + 8]
mov qword [rax + rcx*8], 0
mov edi, dword [rdx + 8]
inc edi
jmp 0x140055bbc
add rdx, 2
call fcn.140053740
test eax, eax
je 0x1400560a6
mov rdx, qword [rsp + 0x38]
movsxd rax, dword [rdx + 8]
mov edi, dword [r12 + 8]
add edi, 2
cmp eax, edi
jge 0x140055bbc
nop word cs:[rax + rax]
mov rcx, qword [rdx]
mov qword [rcx + rax*8], 0
inc rax
movsxd rdi, dword [r12 + 8]
add rdi, 2
cmp rax, rdi
jl 0x140055ba0
mov dword [rdx + 8], edi
movsxd r14, dword [r12 + 8]
mov ebx, edi
sub ebx, r14d
mov rax, qword [r12]
cmp r14, 1
jne 0x140055bd7
xor ecx, ecx
jmp 0x140055bdc
mov rcx, qword [rax + r14*8 - 0x10]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rdx]
mov qword [rsp + 0x40], rcx
mov rsi, qword [rax + r14*8 - 8]
mov ebp, dword [rbp + 0x10]
mov eax, dword [r13 + 0x10]
xor eax, ebp
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x10], eax
lea eax, [rbx + 1]
movsxd rdx, eax
call fcn.140053740
test eax, eax
je 0x1400560a6
mov r13, r14
lea ecx, [rbx - 1]
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], ecx
mov dword [rsp + 0x5c], ecx
movsxd r14, ecx
shl r14, 3
add r14, qword [rax]
lea rdx, [r13 + 1]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x78], rdx
call fcn.140053740
test eax, eax
je 0x1400560a6
mov rax, qword [rsp + 0x30]
cmp dword [rax + 8], 0
mov dword [rsp + 0x54], ebp
je 0x140055c61
mov rdx, r14
add rdx, 0xfffffffffffffff8
jmp 0x140055c6b
mov dword [rax + 0x10], 0
mov rdx, r14
cmp ebx, 2
jl 0x14005600d
movsxd rax, ebx
movsxd rcx, edi
mov r8, qword [rsp + 0x40]
lea r15, [r8 + rax*8]
lea rdi, [r8 + rcx*8]
add rdi, 0xfffffffffffffff8
xor ebx, ebx
mov qword [rsp + 0x70], r13
jmp 0x140055cb8
mov rax, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x40]
mov qword [rdx], rax
inc ebx
add rdi, 0xfffffffffffffff8
add rdx, 0xfffffffffffffff8
cmp ebx, dword [rsp + 0x5c]
je 0x14005600d
mov qword [rsp + 0x40], rdx
mov rbp, r15
mov qword [rsp + 0x80], 0
mov r8, qword [rdi]
mov rcx, 0xffffffffffffffff
cmp r8, rsi
je 0x140055d6d
mov r9, qword [rdi - 8]
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0x80]
call fcn.140056590
mov rcx, qword [rsp + 0x88]
mov rax, rcx
mov r15, qword [rsp + 0x60]
mul r15
mov r8, qword [rsp + 0x80]
mov r9, qword [rdi - 0x10]
cmp r9, rax
mov r10, r8
sbb r10, rdx
jae 0x140055d65
add r8, rsi
dec rcx
mov r10, rcx
mov r11, r8
nop word cs:[rax + rax]
mov r8, r11
mov rcx, r10
cmp r11, rsi
jb 0x140055d65
sub rax, r15
sbb rdx, 0
lea r11, [r8 + rsi]
lea r10, [rcx - 1]
cmp r9, rax
mov r14, r8
sbb r14, rdx
jb 0x140055d40
mov qword [rsp + 0x80], r8
mov qword [rsp + 0x88], rcx
test r13d, r13d
je 0x140055e24
mov rax, qword [rsp + 0x48]
mov r15, qword [rax]
mov r14, qword [r12]
xor r8d, r8d
cmp r13d, 4
jb 0x140055e13
nop word [rax + rax]
mov rax, rcx
mul qword [r14]
mov r9, rdx
mov r10, rax
add rax, r8
mov qword [r15], rax
mov rax, rcx
mul qword [r14 + 8]
mov r11, rdx
add r10, r8
adc rax, r9
setb r9b
mov qword [r15 + 8], rax
mov rax, rcx
mul qword [r14 + 0x10]
mov r8, rdx
add r9b, 0xff
adc rax, r11
setb r9b
mov qword [r15 + 0x10], rax
mov rax, rcx
mul qword [r14 + 0x18]
add r9b, 0xff
adc rax, r8
mov r8, rdx
adc r8, 0
mov qword [r15 + 0x18], rax
add r14, 0x20
add r15, 0x20
add r13, 0xfffffffffffffffc
cmp r13, 4
jae 0x140055da0
test r13, r13
je 0x140055e89
test r13b, 1
jne 0x140055e28
mov r11, r13
cmp r13, 1
jne 0x140055e4d
jmp 0x140055e8c
xor edx, edx
jmp 0x140055e8c
mov rax, rcx
mul qword [r14]
add rax, r8
adc rdx, 0
mov qword [r15], rax
add r14, 8
add r15, 8
lea r11, [r13 - 1]
mov r8, rdx
cmp r13, 1
je 0x140055e8c
xor r13d, r13d
mov rax, rcx
mul qword [r14 + r13*8]
mov r9, rdx
mov r10, rax
add rax, r8
mov qword [r15 + r13*8], rax
mov rax, rcx
mul qword [r14 + r13*8 + 8]
add r10, r8
adc rax, r9
adc rdx, 0
mov qword [r15 + r13*8 + 8], rax
add r13, 2
mov r8, rdx
cmp r11, r13
jne 0x140055e50
jmp 0x140055e8c
mov rdx, r8
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov r13, qword [rsp + 0x70]
mov qword [rax + r13*8], rdx
lea r15, [rbp - 8]
mov r8, qword [rcx]
mov rcx, r15
mov rdx, r15
mov r9, qword [rsp + 0x78]
call fcn.140054260
test rax, rax
je 0x140055c94
dec qword [rsp + 0x88]
test r13d, r13d
je 0x140055c94
mov rax, qword [r12]
cmp r13d, 4
jae 0x140055ef2
mov rdx, r15
mov rcx, r13
xor r8d, r8d
test cl, 1
jne 0x140055f8e
mov r10, rcx
jmp 0x140055fae
xor edx, edx
mov rcx, r13
xor r8d, r8d
nop word [rax + rax]
xor r9d, r9d
add r8, qword [rax + rdx]
setb r9b
add qword [rbp + rdx - 8], r8
adc r9, qword [rax + rdx + 8]
setb r8b
add qword [rbp + rdx], r9
mov r9, qword [rbp + rdx + 8]
setb r10b
xor r11d, r11d
add r9, qword [rax + rdx + 0x10]
setb r11b
movzx r8d, r8b
add r10b, 0xff
adc r8, r9
mov r9, qword [rbp + rdx + 0x10]
setb r10b
mov qword [rbp + rdx + 8], r8
xor r8d, r8d
add r9, qword [rax + rdx + 0x18]
setb r8b
add r10b, 0xff
adc r11, r9
adc r8, 0
mov qword [rbp + rdx + 0x10], r11
add rcx, 0xfffffffffffffffc
add rdx, 0x20
cmp rcx, 4
jae 0x140055f00
test rcx, rcx
je 0x140055ff9
add rax, rdx
add rdx, rbp
add rdx, 0xfffffffffffffff8
test cl, 1
je 0x140055eea
xor r9d, r9d
add r8, qword [rax]
setb r9b
add qword [rdx], r8
adc r9, 0
add rdx, 8
add rax, 8
lea r10, [rcx - 1]
mov r8, r9
cmp rcx, 1
je 0x140055ffc
xor ecx, ecx
mov r9, r8
nop dword [rax]
xor r8d, r8d
add r9, qword [rax + rcx*8]
setb r8b
add r9, qword [rdx + rcx*8]
mov qword [rdx + rcx*8], r9
adc r8, qword [rax + rcx*8 + 8]
setb r9b
movzx r9d, r9b
add r8, qword [rdx + rcx*8 + 8]
adc r9, 0
mov qword [rdx + rcx*8 + 8], r8
add rcx, 2
cmp r10, rcx
jne 0x140055fc0
jmp 0x140055ffc
mov r9, r8
test r9, r9
je 0x140055c94
inc qword [rdi]
jmp 0x140055c94
mov rdx, qword [rsp + 0x38]
mov eax, dword [rdx + 8]
mov r11d, eax
sar r11d, 0x1f
and r11d, eax
mov rsi, rax
mov r15, qword [rsp + 0x100]
mov r10, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov edi, dword [rsp + 0x54]
test esi, esi
jle 0x140056057
mov r9, qword [rdx]
lea r8, [rsi - 1]
cmp qword [r9 + rsi*8 - 8], 0
mov rsi, r8
je 0x140056038
inc r8d
mov dword [rdx + 8], r8d
jmp 0x140056066
mov dword [rdx + 8], r11d
test eax, eax
js 0x140056066
mov dword [rdx + 0x10], 0
test rcx, rcx
je 0x14005614a
mov r8d, dword [rsp + 0x58]
call fcn.140056860
test eax, eax
je 0x1400560a6
mov r9, qword [rsp + 0x68]
movsxd rax, dword [r9 + 8]
test rax, rax
mov r10, qword [rsp + 0x30]
je 0x14005614a
mov rcx, qword [r9]
cmp eax, 4
jae 0x1400560ee
xor edx, edx
xor r8d, r8d
jmp 0x140056135
xor edi, edi
cmp byte [r15 + 0x28], 0
jne 0x1400560c8
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
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140263800
mov eax, edi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
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 0x140056100
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r8, xmm0
cmp rdx, rax
je 0x140056141
or r8, qword [rcx + rdx*8]
inc rdx
cmp rax, rdx
jne 0x140056135
test r8, r8
je 0x14005614a
mov dword [r9 + 0x10], edi
mov eax, dword [r10 + 8]
mov ecx, eax
sar ecx, 0x1f
and ecx, eax
mov rdx, rax
test edx, edx
jle 0x14005617f
mov r9, qword [r10]
lea r8, [rdx - 1]
cmp qword [r9 + rdx*8 - 8], 0
mov rdx, r8
je 0x140056158
inc r8d
mov dword [r10 + 8], r8d
mov edi, 1
jmp 0x1400560a8
mov dword [r10 + 8], ecx
test eax, eax
js 0x14005618f
mov dword [r10 + 0x10], 0
mov edi, 1
jmp 0x1400560a8