Function at 0x140046bb0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r15, r9
mov r13, rdx
mov r14, rcx
mov r12, qword [rsp + 0xf0]
mov qword [rsp + 0x38], r8
mov ecx, dword [r8 + 8]
mov ebp, ecx
sar ebp, 0x1f
and ebp, ecx
mov r8d, ecx
test ecx, ecx
jle 0x140046c06
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax]
lea rax, [rcx - 1]
cmp qword [rbx + rcx*8 - 8], 0
mov rcx, rax
je 0x140046be4
inc eax
mov ebp, eax
mov esi, dword [r15 + 8]
mov ecx, esi
sar ecx, 0x1f
and ecx, esi
mov rbx, rsi
mov edi, ebx
test ebx, ebx
jle 0x140046c30
mov rdx, qword [r15]
lea rax, [rbx - 1]
cmp qword [rdx + rbx*8 - 8], 0
mov rbx, rax
je 0x140046c14
inc eax
mov ecx, eax
test r8d, r8d
jle 0x140046c4a
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
dec ebp
cmp qword [rax + rbp*8], 0
je 0x14004738a
test edi, edi
jle 0x140046c5e
mov rax, qword [r15]
dec ecx
cmp qword [rax + rcx*8], 0
je 0x14004738a
test rsi, rsi
je 0x1400472a7
mov rax, qword [r15]
movsxd rcx, esi
xor edx, edx
xor ebx, ebx
or rbx, qword [rax + rdx*8]
inc rdx
cmp rcx, rdx
jne 0x140046c71
test rbx, rbx
je 0x1400472a7
cmp byte [r12 + 0x28], 0
jne 0x140046cb1
mov rcx, qword [r12 + 0x10]
mov rsi, qword [r12 + 0x20]
cmp rcx, qword [r12 + 0x18]
je 0x14004724f
mov rax, qword [r12 + 8]
mov qword [rax + rcx*8], rsi
inc qword [r12 + 0x10]
mov rcx, r12
call fcn.140046a50
mov qword [rsp + 0x60], rax
mov rcx, r12
call fcn.140046a50
mov rsi, rax
mov rcx, r12
call fcn.140046a50
mov qword [rsp + 0x30], rax
test r14, r14
jne 0x140046ce6
mov rcx, r12
call fcn.140046a50
mov r14, rax
cmp qword [rsp + 0x30], 0
je 0x140047426
test r14, r14
je 0x140047426
mov ecx, dword [r15 + 8]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], rsi
test ecx, ecx
jle 0x140047443
mov rax, qword [r15]
lea rdx, [rcx - 1]
cmp qword [rax + rcx*8 - 8], 0
mov rcx, rdx
je 0x140046d09
inc edx
mov ecx, edx
movsxd rdx, ecx
shl ecx, 6
mov rbp, qword [rax + rdx*8 - 8]
xor eax, eax
test rbp, rbp
setne al
or eax, ecx
xor ecx, ecx
mov rdx, rbp
shr rdx, 0x20
cmove rdx, rbp
setne cl
shl ecx, 5
mov rdi, rdx
shr rdi, 0x10
xor ebp, ebp
cmp rdx, 0x10000
cmovb rdi, rdx
setae bpl
shl ebp, 4
mov rdx, rdi
shr rdx, 8
xor r8d, r8d
cmp rdi, 0x100
cmovb rdx, rdi
setae r8b
mov rdi, rdx
shr rdi, 4
xor esi, esi
cmp rdx, 0x10
setae sil
cmovb rdi, rdx
mov rdx, rdi
shr rdx, 2
xor ebx, ebx
cmp rdi, 4
setae bl
cmovb rdx, rdi
add ebx, ebx
or ecx, eax
or ecx, ebp
lea eax, [rcx + r8*8]
lea esi, [rax + rsi*4]
add esi, 0xffffffc0
or esi, ebx
cmp rdx, 2
sbb esi, 0xffffffff
and esi, 0x3f
mov r8d, 0x40
sub r8d, esi
mov rcx, qword [rsp + 0x30]
mov rdx, r15
call fcn.1400873a0
test eax, eax
mov rbx, qword [rsp + 0x50]
je 0x140047426
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov rbp, qword [rsp + 0x30]
test eax, eax
jle 0x140047453
mov rdx, qword [rbp]
lea rcx, [rax - 1]
cmp qword [rdx + rax*8 - 8], 0
mov rax, rcx
je 0x140046df8
inc ecx
mov dword [rbp + 8], ecx
mov dword [rbp + 0x10], 0
mov r8d, 0x80
sub r8d, esi
mov rcx, rbx
mov rdx, qword [rsp + 0x38]
mov dword [rsp + 0x74], r8d
call fcn.1400873a0
test eax, eax
je 0x140047426
mov ecx, dword [rbx + 8]
test ecx, ecx
jle 0x14004746f
mov rdx, qword [rbx]
lea rax, [rcx - 1]
cmp qword [rdx + rcx*8 - 8], 0
mov rcx, rax
je 0x140046e45
inc eax
mov dword [rbx + 8], eax
mov dword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 8]
lea ecx, [rdx + 1]
cmp ecx, eax
jge 0x14004748d
lea esi, [rax + 1]
cmp dword [rbx + 0xc], esi
jb 0x140047133
mov rdi, qword [rbx]
cdqe
mov qword [rdi + rax*8], 0
mov edi, dword [rbx + 8]
inc edi
mov dword [rbx + 8], edi
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 8]
mov esi, edi
sub esi, ecx
mov rax, qword [rax]
cmp rcx, 1
mov qword [rsp + 0x78], r13
je 0x1400474d9
mov rdx, qword [rax + rcx*8 - 0x10]
mov qword [rsp + 0x68], rdx
mov r14, qword [rbx]
mov qword [rsp + 0x58], rcx
mov r13, qword [rax + rcx*8 - 8]
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax + 0x10]
mov eax, dword [r15 + 0x10]
xor eax, ecx
mov rbp, qword [rsp + 0x40]
mov dword [rbp + 0x10], eax
lea ebx, [rsi + 1]
cmp dword [rbp + 0xc], ebx
mov dword [rsp + 0x70], ecx
jb 0x140047184
mov r15, qword [rbp]
lea edx, [rsi - 1]
mov dword [rbp + 8], edx
mov rax, qword [rsp + 0x58]
lea rbx, [rax + 1]
mov eax, edx
mov rcx, qword [rsp + 0x60]
mov rbp, rbx
mov qword [rsp + 0x38], rbx
cmp dword [rcx + 0xc], ebx
mov dword [rsp + 0x4c], edx
jb 0x1400471de
movsxd rcx, edx
lea rbx, [r15 + rcx*8]
test eax, eax
je 0x1400474e0
add rbx, 0xfffffffffffffff8
cmp esi, 2
jl 0x140047056
movsxd rax, esi
movsxd rcx, edi
lea r12, [r14 + rax*8]
lea rsi, [r14 + rcx*8]
add rsi, 0xfffffffffffffff8
xor r14d, r14d
mov r15, qword [rsp + 0x58]
mov rdx, qword [rsi]
cmp rdx, r13
je 0x140047323
mov rax, qword [rsi - 8]
mov qword [rsp + 0x80], r13
div qword [rsp + 0x80]
mov rbp, rdx
mov rdi, rax
mul qword [rsp + 0x68]
mov r9, qword [rsi - 0x10]
cmp r9, rax
mov rcx, rbp
sbb rcx, rdx
jb 0x14004701d
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
mov rbp, qword [rsp + 0x60]
mov rcx, qword [rbp]
mov r8, r15
mov r9, rdi
call fcn.140086f50
add r12, 0xfffffffffffffff8
mov rcx, qword [rbp]
mov qword [rcx + r15*8], rax
mov rcx, qword [rsp + 0x38]
test ecx, ecx
je 0x140047002
mov rax, qword [rbp]
xor edx, edx
sub rbp, rbp
jmp 0x140046fe0
mov rbp, qword [r12 + rdx*8]
sbb rbp, qword [rax + rdx*8]
mov qword [r12 + rdx*8], rbp
lea rdx, [rdx + 1]
dec rcx
jne 0x140046fe0
sbb rbp, rbp
test bpl, 1
jne 0x14004732f
mov qword [rbx], rdi
inc r14d
add rsi, 0xfffffffffffffff8
add rbx, 0xfffffffffffffff8
cmp r14d, dword [rsp + 0x4c]
jne 0x140046f61
jmp 0x140047056
add rbp, r13
dec rdi
mov r8, rdi
mov rdi, r8
cmp rbp, r13
jb 0x140046f9f
sub rax, qword [rsp + 0x68]
sbb rdx, 0
mov rcx, rbp
add rcx, r13
lea r8, [rdi - 1]
cmp r9, rax
sbb rbp, rdx
mov rbp, rcx
jae 0x140046f9f
jmp 0x140047026
mov rdx, qword [rsp + 0x50]
mov eax, dword [rdx + 8]
mov r12, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x78]
test eax, eax
jle 0x14004730c
mov rbp, qword [rdx]
lea rcx, [rax - 1]
cmp qword [rbp + rax*8 - 8], 0
mov rax, rcx
je 0x140047070
inc ecx
mov dword [rdx + 8], ecx
test rdi, rdi
je 0x1400470d1
mov rcx, rdi
mov r8d, dword [rsp + 0x74]
call fcn.140047520
test eax, eax
je 0x140047426
movsxd rax, dword [rdi + 8]
test rax, rax
je 0x1400470d1
mov rcx, qword [rdi]
xor edx, edx
xor ebp, ebp
or rbp, qword [rcx + rdx*8]
inc rdx
cmp rax, rdx
jne 0x1400470b9
test rbp, rbp
je 0x1400470d1
mov eax, dword [rsp + 0x70]
mov dword [rdi + 0x10], eax
mov eax, dword [rsi + 8]
test eax, eax
jle 0x1400473ad
mov rdx, qword [rsi]
lea rcx, [rax - 1]
cmp qword [rdx + rax*8 - 8], 0
mov rax, rcx
je 0x1400470d4
inc ecx
mov dword [rsi + 8], ecx
mov esi, 1
cmp byte [r12 + 0x28], 0
jne 0x14004711d
mov rax, qword [r12 + 8]
mov rcx, qword [r12 + 0x10]
lea rdx, [rcx - 1]
mov qword [r12 + 0x10], rdx
mov rax, qword [rax + rcx*8 - 8]
mov qword [r12 + 0x20], rax
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp esi, 0x800000
jae 0x1400473c9
test byte [rbx + 0x14], 2
jne 0x1400473e7
movsxd rcx, esi
shl rcx, 3
call fcn.1400891b0
test rax, rax
je 0x140047405
mov rdi, rax
movsxd r8, dword [rbx + 8]
test r8, r8
jne 0x1400472cf
mov rcx, qword [rbx]
call fcn.1400891f0
mov qword [rbx], rdi
mov dword [rbx + 0xc], esi
mov eax, dword [rbx + 8]
jmp 0x140046e8e
cmp ebx, 0x800000
jae 0x1400473c9
mov rax, qword [rsp + 0x40]
test byte [rax + 0x14], 2
jne 0x1400473e7
movsxd rcx, ebx
shl rcx, 3
call fcn.1400891b0
test rax, rax
je 0x140047405
mov r15, rax
mov rbp, qword [rsp + 0x40]
movsxd r8, dword [rbp + 8]
test r8, r8
jne 0x1400472e3
mov rcx, qword [rbp]
call fcn.1400891f0
mov qword [rbp], r15
mov dword [rbp + 0xc], ebx
jmp 0x140046f00
cmp dword [rsp + 0x38], 0x800000
jae 0x1400473c9
mov rax, qword [rsp + 0x60]
test byte [rax + 0x14], 2
jne 0x1400473e7
mov rax, qword [rsp + 0x38]
lea rcx, [rax*8]
call fcn.1400891b0
test rax, rax
je 0x140047405
mov rbp, rax
mov rbx, qword [rsp + 0x60]
movsxd r8, dword [rbx + 8]
test r8, r8
jne 0x1400472f8
mov rcx, qword [rbx]
call fcn.1400891f0
mov qword [rbx], rbp
mov rax, qword [rsp + 0x38]
mov dword [rbx + 0xc], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov edx, dword [rsp + 0x4c]
jmp 0x140046f2b
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov edi, 0x20
cmovne rdi, rax
cmp rdi, rcx
jbe 0x1400474f1
mov rax, rdi
shr rax, 0x3d
jne 0x1400474f1
lea rdx, [rdi*8]
mov rcx, qword [r12 + 8]
call fcn.140089240
test rax, rax
je 0x1400474f1
mov qword [r12 + 8], rax
mov qword [r12 + 0x18], rdi
mov rcx, qword [r12 + 0x10]
jmp 0x140046ca8
mov dword [rsp + 0x20], 0xd9
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bndiv.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
call fcn.14012ee90
jmp 0x14004711d
shl r8, 3
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.1400a9f10
jmp 0x14004716e
shl r8, 3
mov rdx, qword [rbp]
mov rcx, r15
call fcn.1400a9f10
jmp 0x1400471c9
shl r8, 3
mov rdx, qword [rbx]
mov rcx, rbp
call fcn.1400a9f10
jmp 0x14004722b
mov dword [rdx + 8], eax
test eax, eax
jne 0x14004708f
mov dword [rdx + 0x10], 0
jmp 0x14004708f
mov rdi, 0xffffffffffffffff
jmp 0x140046f9f
dec rdi
cmp dword [rsp + 0x58], 0
je 0x140047002
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
xor edx, edx
mov rcx, qword [rsp + 0x58]
sub rbp, rbp
jmp 0x140047360
mov rbp, qword [r12 + rdx*8]
adc rbp, qword [rax + rdx*8]
mov qword [r12 + rdx*8], rbp
lea rdx, [rdx + 1]
dec rcx
jne 0x140047360
sbb rbp, rbp
test bpl, 1
je 0x140047002
inc qword [rsi]
jmp 0x140047002
mov dword [rsp + 0x20], 0xd4
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bndiv.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x6f
jmp 0x1400472c5
mov dword [rsi + 8], eax
test eax, eax
jne 0x1400470f3
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x10], 0
jmp 0x1400470f3
mov dword [rsp + 0x20], 0x15c
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bn_bn.c
mov ecx, 3
xor edx, edx
mov r8d, 0x66
jmp 0x140047421
mov dword [rsp + 0x20], 0x161
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bn_bn.c
mov ecx, 3
xor edx, edx
mov r8d, 0x6a
jmp 0x140047421
mov dword [rsp + 0x20], 0x167
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bn_bn.c
mov ecx, 3
xor edx, edx
mov r8d, 0x41
call fcn.14012ee90
xor esi, esi
cmp byte [r12 + 0x28], 0
jne 0x14004711d
mov rax, r12
mov rbp, r12
mov rax, qword [rax + 8]
jmp 0x140047105
test ecx, ecx
je 0x14004750a
mov rax, qword [r15]
jmp 0x140046d27
mov rbp, qword [rsp + 0x30]
mov dword [rbp + 8], eax
test eax, eax
jne 0x140046e18
mov dword [rbp + 0x10], 0
jmp 0x140046e18
mov dword [rbx + 8], ecx
test ecx, ecx
jne 0x1400474fe
mov rbx, qword [rsp + 0x50]
mov dword [rbx + 0x10], 0
mov eax, ecx
jmp 0x140046e64
add rdx, 2
mov rcx, rbx
call fcn.1401069b0
test eax, eax
je 0x140047426
movsxd rax, dword [rbx + 8]
mov rcx, qword [rsp + 0x30]
mov edi, dword [rcx + 8]
add edi, 2
cmp eax, edi
jge 0x140046e9d
mov rcx, qword [rbx]
mov qword [rcx + rax*8], 0
inc rax
mov rcx, qword [rsp + 0x30]
movsxd rdi, dword [rcx + 8]
add rdi, 2
cmp rax, rdi
jl 0x1400474b4
jmp 0x140046e9d
xor edx, edx
jmp 0x140046ec4
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x10], 0
jmp 0x140046f3e
mov word [r12 + 0x28], 0x101
jmp 0x140046cb1
mov eax, ecx
mov rbx, qword [rsp + 0x50]
jmp 0x140046e64
xor esi, esi
jmp 0x140046dc5