Function at 0x140062420
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbp, r9
mov r14d, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rcx], 0
lea rcx, [0x14039d948]
lea rdx, [0x1400546c0]
call fcn.14009c3d0
test rdi, rdi
je 0x1400624ae
mov esi, dword [rdi + 0x10]
cmp esi, dword [0x14039d960]
jne 0x1400624a0
movsxd r9, dword [0x14039d958]
mov r8, qword [0x14039d950]
movsxd rdx, dword [rdi + 8]
mov rcx, qword [rdi]
call fcn.140055000
mov ecx, eax
neg ecx
test esi, esi
cmove ecx, eax
test ecx, ecx
jg 0x1400624ae
jmp 0x140062732
mov r12d, 1
test esi, esi
jne 0x140062738
mov r15d, dword [rdi + 8]
test r15d, r15d
jle 0x14006254e
mov r12, qword [rdi]
mov r13, qword [r12]
test r13b, 1
jne 0x14006257a
xor r13, 2
cmp r15d, 1
je 0x140062561
mov eax, 1
cmp r15d, 5
jb 0x140062540
lea rcx, [r15 - 1]
mov rdx, rcx
and rdx, 0xfffffffffffffffc
lea rax, [rdx + 1]
movq xmm1, r13
pxor xmm0, xmm0
xor r8d, r8d
movdqu xmm2, xmmword [r12 + r8*8 + 8]
por xmm1, xmm2
movdqu xmm2, xmmword [r12 + r8*8 + 0x18]
por xmm0, xmm2
add r8, 4
cmp rdx, r8
jne 0x140062500
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r13, xmm1
cmp rcx, rdx
je 0x140062561
nop word cs:[rax + rax]
or r13, qword [r12 + rax*8]
inc rax
cmp r15, rax
jne 0x140062540
jmp 0x140062561
test r15, r15
je 0x14006272e
mov rax, qword [rdi]
mov r13, qword [rax]
xor r13, 2
xor eax, eax
test r13, r13
jne 0x140062730
xor eax, eax
cmp dword [rdi + 0x10], 0
sete al
jmp 0x140062730
mov rcx, r13
xor rcx, 3
cmp r15d, 1
je 0x1400625fc
mov eax, 1
cmp r15d, 5
jb 0x1400625f0
lea rdx, [r15 - 1]
mov r8, rdx
and r8, 0xfffffffffffffffc
lea rax, [r8 + 1]
movq xmm1, rcx
pxor xmm0, xmm0
xor ecx, ecx
movdqu xmm2, xmmword [r12 + rcx*8 + 8]
por xmm1, xmm2
movdqu xmm2, xmmword [r12 + rcx*8 + 0x18]
por xmm0, xmm2
add rcx, 4
cmp r8, rcx
jne 0x1400625b0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq rcx, xmm1
cmp rdx, r8
je 0x1400625fc
nop word cs:[rax + rax]
or rcx, qword [r12 + rax*8]
inc rax
cmp r15, rax
jne 0x1400625f0
test rcx, rcx
jne 0x14006260b
cmp dword [rdi + 0x10], 0
je 0x1400628a0
cmp dword [rsp + 0xe0], 0
je 0x1400627a5
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x28], rbx
xor ebp, ebp
cmp r15d, 0x11
setge bl
mov r14w, 3
mov rcx, rdi
mov dx, 3
call fcn.140057fa0
test ax, ax
je 0x140062696
mov bpl, bl
shl rbp, 9
add rbp, 0x200
mov ebx, 2
lea rsi, [0x1402decd0]
nop word cs:[rax + rax]
movzx r14d, word [rsi + rbx*2]
mov rcx, rdi
mov edx, r14d
call fcn.140057fa0
test ax, ax
je 0x14006268d
inc rbx
cmp rbp, rbx
jne 0x140062670
cmp rbx, rbp
jae 0x140062773
movzx eax, r14w
xor r13, rax
cmp r15d, 2
jl 0x140062759
mov eax, 1
cmp r15d, 5
mov r9, qword [rsp + 0x28]
jb 0x140062720
lea rcx, [r15 - 1]
mov rdx, rcx
and rdx, 0xfffffffffffffffc
lea rax, [rdx + 1]
movq xmm1, r13
pxor xmm0, xmm0
xor r8d, r8d
nop word cs:[rax + rax]
movdqu xmm2, xmmword [r12 + r8*8 + 8]
por xmm1, xmm2
movdqu xmm2, xmmword [r12 + r8*8 + 0x18]
por xmm0, xmm2
add r8, 4
cmp rdx, r8
jne 0x1400626e0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r13, xmm1
cmp rcx, rdx
je 0x14006275e
nop word cs:[rax + rax]
or r13, qword [r12 + rax*8]
inc rax
cmp r15, rax
jne 0x140062720
jmp 0x14006275e
xor eax, eax
mov dword [rbx], eax
mov r12d, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140263300
mov eax, r12d
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9, qword [rsp + 0x28]
xor eax, eax
test r13, r13
jne 0x14006276e
xor eax, eax
cmp dword [rdi + 0x10], 0
sete al
mov dword [r9], eax
jmp 0x140062732
mov r8, qword [rsp + 0xe8]
test r8, r8
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x30]
je 0x1400627a5
mov ecx, 1
mov edx, 0xffffffff
call qword [rioctlsocket + 8]
test eax, eax
je 0x140062b0f
test r14d, r14d
je 0x1400627c0
xor r12d, r12d
test rbp, rbp
je 0x1400627f6
xor esi, esi
cmp byte [rbp + 0x28], 0
jne 0x1400629f9
jmp 0x14006282b
mov eax, dword [rdi + 8]
mov ecx, eax
sar ecx, 0x1f
and ecx, eax
mov r8, rax
nop dword [rax]
test r8d, r8d
jle 0x1400628ab
mov rdx, qword [rdi]
lea r9, [r8 - 1]
cmp qword [rdx + r8*8 - 8], 0
mov r8, r9
je 0x1400627d0
inc r9d
mov ecx, r9d
jmp 0x1400628bc
mov ecx, 0x30
call fcn.140093600
test rax, rax
je 0x140062738
mov rsi, rax
pxor xmm0, xmm0
movdqu xmmword [rax + 0x1a], xmm0
movdqu xmmword [rax + 0x10], xmm0
movdqu xmmword [rax], xmm0
mov rbp, rax
cmp byte [rbp + 0x28], 0
jne 0x1400629f9
mov r15d, r14d
mov rcx, qword [rbp + 0x10]
mov r14, qword [rbp + 0x20]
cmp rcx, qword [rbp + 0x18]
jne 0x1400629d9
mov r12, rsi
mov rsi, rbx
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov ebx, 0x20
cmovne rbx, rax
cmp rbx, rcx
jbe 0x1400629ea
mov rax, rbx
shr rax, 0x3d
jne 0x1400629ea
lea rdx, [rbx*8]
mov rcx, qword [rbp + 8]
call fcn.1400936b0
test rax, rax
je 0x1400629ea
mov qword [rbp + 8], rax
mov qword [rbp + 0x18], rbx
mov rcx, qword [rbp + 0x10]
mov rbx, rsi
mov rsi, r12
jmp 0x1400629dd
mov dword [rbx], 1
jmp 0x140062732
mov r14d, 0x22
test eax, eax
jns 0x1400627aa
mov rdx, qword [rdi]
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
setne cl
cmove r8, rdx
shl ecx, 5
mov r9, r8
shr r9, 0x10
xor edx, edx
cmp r8, 0x10000
setae dl
cmovb r9, r8
shl edx, 4
mov r10, r9
shr r10, 8
xor r8d, r8d
cmp r9, 0x100
setae r8b
cmovb r10, r9
mov r9, r10
shr r9, 4
xor r11d, r11d
cmp r10, 0x10
setae r11b
cmovb r9, r10
mov r10, r9
shr r10, 2
xor esi, esi
cmp r9, 4
cmovb r10, r9
setae sil
add esi, esi
or ecx, eax
or ecx, edx
lea eax, [rcx + r8*8]
lea eax, [rax + r11*4]
add eax, 0xffffffc0
or eax, esi
cmp r10, 2
sbb eax, 0xffffffff
mov r14d, 3
cmp eax, 0xea2
jg 0x1400627aa
mov r14d, 4
cmp eax, 0x540
jg 0x1400627aa
mov r14d, 5
cmp eax, 0x1db
jg 0x1400627aa
mov r14d, 6
cmp eax, 0x18f
jg 0x1400627aa
mov r14d, 7
cmp eax, 0x15a
jg 0x1400627aa
mov r14d, 8
cmp eax, 0x133
jg 0x1400627aa
cmp eax, 0x37
mov eax, 0x1b
mov r14d, 0x22
cmovge r14d, eax
jmp 0x1400627aa
mov rax, qword [rbp + 8]
mov qword [rax + rcx*8], r14
inc qword [rbp + 0x10]
mov r14d, r15d
jmp 0x1400629f9
mov word [rbp + 0x28], 0x101
mov rbx, rsi
mov r14d, r15d
mov rsi, r12
mov rcx, rbp
call fcn.1400555e0
mov r13, rax
mov rcx, rdi
mov rdx, rbp
call fcn.1400589a0
mov rdi, rax
xor r12d, r12d
test r13, r13
je 0x140062b3d
test rdi, rdi
je 0x140062b3d
lea rcx, [rsp + 0x48]
mov rdx, rdi
mov r8, rbp
call fcn.1400616d0
test eax, eax
je 0x140062b3d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rsi
mov rsi, rbp
movsxd r14, r14d
mov ebp, 1
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
xor r15d, r15d
jmp 0x140062a95
add r15, rdi
xor eax, eax
cmp ebp, 0x10
lea ecx, [rbp + 1]
setb al
mov rdx, r15
xor rdx, r14
mov r8, r15
sub r8, r14
xor r8, r15
or r8, rdx
xor r8, r15
sar r8, 0x3f
or r8, rax
mov ebp, ecx
je 0x140062b24
mov r8d, 2
mov rcx, r13
lea rdx, [rsp + 0x44]
mov r9, qword [rsp + 0x38]
call fcn.140062ba0
test eax, eax
je 0x140062b17
movsxd rdi, dword [rsp + 0x44]
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov r8, r13
mov r9, qword [rsp + 0x28]
call fcn.140061ac0
xor r12d, r12d
test eax, eax
je 0x140062b30
cmp dword [rsp + 0x40], 0
je 0x140062b1c
mov r8, qword [rsp + 0xe8]
test r8, r8
je 0x140062a63
lea edx, [rbp - 1]
mov ecx, 1
call qword [rioctlsocket + 8]
test eax, eax
jne 0x140062a63
jmp 0x140062b30
xor r12d, r12d
jmp 0x140062738
xor r12d, r12d
jmp 0x140062b30
mov dword [rbx], 0
jmp 0x140062b2a
mov dword [rbx], 1
mov r12d, 1
mov rbp, rsi
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
mov rcx, rdi
call fcn.140058dc0
cmp byte [rbp + 0x28], 0
jne 0x140062b64
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x10]
lea rdx, [rcx - 1]
mov qword [rbp + 0x10], rdx
mov rax, qword [rax + rcx*8 - 8]
mov qword [rbp + 0x20], rax
test rsi, rsi
je 0x140062738
mov rcx, qword [rsi]
lea rdx, [0x140028ce0]
lea r8, [fcn.140054560]
call fcn.14009bb50
mov rcx, qword [rsi + 8]
call fcn.140093660
mov rcx, rsi
call fcn.140093660
jmp 0x140062738