Function at 0x140002340
Capabilities:
Encode data using base64
Hash data using sha1

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x258]
sub rsp, 0x340
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rbp + 0x210], rax
movsd xmm6, qword [0x14005d020]
lea rbx, [rbp - 0x50]
movsd xmm7, qword [0x14005d050]
mov edi, 8
nop dword [rax + rax]
cmp dword [0x1400673d0], 0
jne 0x1400023bd
xor ecx, ecx
call fcn.140039078
mov ecx, eax
mov dword [0x1400673d0], eax
call fcn.1400350e4
call fcn.1400350b8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm6
mulsd xmm0, xmm7
cvttsd2si eax, xmm0
mov word [rbx], ax
add rbx, 2
sub rdi, 1
jne 0x1400023a0
xor eax, eax
lea r11, [rbp - 0x50]
xor r15d, r15d
mov qword [rbp - 0x60], rax
xorps xmm0, xmm0
mov byte [rbp - 0x58], al
mov r10d, r15d
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
mov r9d, r15d
movups xmmword [rbp - 0x70], xmm0
nop word [rax + rax]
mov eax, 0xaaaaaaab
mov ebx, r10d
mul r10d
shr edx, 1
lea eax, [rdx + rdx*2]
sub ebx, eax
mov ecx, ebx
je 0x140002487
sub ecx, 1
je 0x140002468
cmp ecx, 1
jne 0x14000249e
movzx r8d, byte [r11]
lea eax, [r10 - 1]
movzx edx, byte [rbp + rax - 0x50]
mov eax, r8d
shr eax, 6
and edx, 0xf
mov ecx, r9d
inc r9d
and r8d, 0x3f
lea eax, [rax + rdx*4]
movzx eax, byte [rax + r12]
mov byte [rbp + rcx - 0x70], al
movzx eax, byte [r8 + r12]
mov byte [rbp + r9 - 0x70], al
jmp 0x14000249b
lea eax, [r10 - 1]
movzx edx, byte [rbp + rax - 0x50]
movzx eax, byte [r11]
and edx, 3
shl edx, 4
shr eax, 4
add edx, eax
movzx eax, byte [rdx + r12]
jmp 0x140002494
movzx eax, byte [r11]
shr rax, 2
movzx eax, byte [rax + r12]
mov ecx, r9d
mov byte [rbp + rcx - 0x70], al
inc r9d
inc r10d
inc r11
cmp r10d, 0x10
jb 0x140002410
dec r10d
test ebx, ebx
jne 0x1400024d8
movzx edx, byte [rbp + r10 - 0x50]
and edx, 3
mov ecx, r9d
add rdx, rdx
inc r9d
movzx eax, byte [r12 + rdx*8]
mov byte [rbp + rcx - 0x70], al
mov byte [rbp + r9 - 0x70], 0x3d
jmp 0x1400024f2
cmp ebx, 1
jne 0x1400024fb
movzx edx, byte [rbp + r10 - 0x50]
and edx, 0xf
mov ecx, r9d
movzx eax, byte [r12 + rdx*4]
mov byte [rbp + rcx - 0x70], al
lea eax, [r9 + 1]
mov byte [rbp + rax - 0x70], 0x3d
movups xmm1, xmmword [0x14005c910]
xor eax, eax
mov dword [rsp + 0x30], 0x67452301
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
mov dword [rbp - 0x20], eax
mov r14, 0xffffffffffffffff
mov byte [rbp - 0x1c], al
mov rbx, r14
mov eax, dword [0x14005c920]
mov dword [rbp + 8], eax
movzx eax, byte [0x14005c924]
movups xmmword [rbp - 0x38], xmm0
mov byte [rbp + 0xc], al
xor eax, eax
movups xmm0, xmmword [str.258EAFA5_E914_47DA_95CA_C5AB0DC85B11]
mov dword [rbp - 0x40], eax
lea rax, [rbp - 0x70]
movups xmmword [rbp - 8], xmm1
mov dword [rsp + 0x34], 0xefcdab89
movups xmmword [rbp - 0x18], xmm0
mov dword [rsp + 0x38], 0x98badcfe
xorps xmm0, xmm0
mov dword [rsp + 0x3c], 0x10325476
movups xmmword [rbp - 0x50], xmm0
mov dword [rsp + 0x40], 0xc3d2e1f0
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r15b
jne 0x140002580
lea eax, [rbx*8]
mov esi, 0x40
mov dword [rsp + 0x44], eax
mov eax, ebx
shr eax, 0x1d
mov dword [rsp + 0x48], eax
cmp ebx, 0x3f
jbe 0x1400025ff
movups xmm0, xmmword [rbp - 0x70]
lea rdx, [rsp + 0x4c]
mov edi, esi
movups xmm1, xmmword [rbp - 0x60]
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x4c], xmm0
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rsp + 0x5c], xmm1
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rsp + 0x6c], xmm0
movups xmmword [rsp + 0x7c], xmm1
call fcn.14000b6c0
cmp ebx, 0x7f
jbe 0x140002602
mov eax, edi
lea rdx, [rbp - 0x70]
add rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b6c0
add edi, esi
lea eax, [rdi + 0x3f]
cmp eax, ebx
jb 0x1400025e1
jmp 0x140002602
mov edi, r15d
sub ebx, edi
mov eax, edi
lea rdx, [rbp - 0x70]
mov r8d, ebx
add rdx, rax
lea rcx, [rsp + 0x4c]
call fcn.140032040
lea rax, [rbp - 0x18]
mov rbx, r14
inc rbx
cmp byte [rax + rbx], r15b
jne 0x140002621
mov ecx, dword [rsp + 0x44]
mov edx, dword [rsp + 0x48]
lea eax, [rcx + rbx*8]
mov dword [rsp + 0x44], eax
cmp eax, ecx
jae 0x14000263f
inc edx
shr ecx, 3
mov eax, ebx
shr eax, 0x1d
and ecx, 0x3f
add edx, eax
mov dword [rsp + 0x48], edx
lea eax, [rcx + rbx]
cmp eax, 0x3f
jbe 0x1400026b2
sub esi, ecx
mov eax, ecx
lea rcx, [rsp + 0x4c]
mov r8d, esi
add rcx, rax
lea rdx, [rbp - 0x18]
call fcn.140032040
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x30]
call fcn.14000b6c0
lea edi, [rsi + 0x3f]
cmp edi, ebx
jae 0x1400026ad
nop word [rax + rax]
mov eax, esi
lea rdx, [rbp - 0x18]
add rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b6c0
add esi, 0x40
add edi, 0x40
cmp edi, ebx
jb 0x140002690
mov ecx, r15d
jmp 0x1400026b5
mov esi, r15d
mov eax, esi
lea rdx, [rbp - 0x18]
add rdx, rax
sub ebx, esi
mov eax, ecx
lea rcx, [rsp + 0x4c]
add rcx, rax
mov r8d, ebx
call fcn.140032040
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.14000ca00
mov r10d, r15d
lea r11, [rbp - 0x50]
mov r9d, r15d
nop word [rax + rax]
mov eax, 0xaaaaaaab
mov ebx, r10d
mul r10d
shr edx, 1
lea eax, [rdx + rdx*2]
sub ebx, eax
mov ecx, ebx
je 0x140002767
sub ecx, 1
je 0x140002748
cmp ecx, 1
jne 0x14000277e
movzx r8d, byte [r11]
lea eax, [r10 - 1]
movzx edx, byte [rbp + rax - 0x50]
mov eax, r8d
shr eax, 6
and edx, 0xf
mov ecx, r9d
inc r9d
and r8d, 0x3f
lea eax, [rax + rdx*4]
movzx eax, byte [rax + r12]
mov byte [rbp + rcx - 0x38], al
movzx eax, byte [r8 + r12]
mov byte [rbp + r9 - 0x38], al
jmp 0x14000277b
lea eax, [r10 - 1]
movzx edx, byte [rbp + rax - 0x50]
movzx eax, byte [r11]
and edx, 3
shl edx, 4
shr eax, 4
add edx, eax
movzx eax, byte [rdx + r12]
jmp 0x140002774
movzx eax, byte [r11]
shr rax, 2
movzx eax, byte [rax + r12]
mov ecx, r9d
mov byte [rbp + rcx - 0x38], al
inc r9d
inc r10d
inc r11
cmp r10d, 0x14
jb 0x1400026f0
dec r10d
test ebx, ebx
jne 0x1400027b8
movzx edx, byte [rbp + r10 - 0x50]
and edx, 3
mov ecx, r9d
add rdx, rdx
inc r9d
movzx eax, byte [r12 + rdx*8]
mov byte [rbp + rcx - 0x38], al
mov byte [rbp + r9 - 0x38], 0x3d
jmp 0x1400027d2
cmp ebx, 1
jne 0x1400027db
movzx edx, byte [rbp + r10 - 0x50]
and edx, 0xf
mov ecx, r9d
movzx eax, byte [r12 + rdx*4]
mov byte [rbp + rcx - 0x38], al
lea eax, [r9 + 1]
mov byte [rbp + rax - 0x38], 0x3d
xorps xmm0, xmm0
xor eax, eax
mov dword [rbp + 0x70], eax
lea rax, [rbp + 0x10]
dec rax
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
cmp byte [rax + 1], r15b
lea rax, [rax + 1]
jne 0x140002802
movups xmm0, xmmword [str.Sec_WebSocket_Accept___t_:___t_]
mov rcx, r14
movups xmm1, xmmword [0x14005c4f0]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
lea rax, [rbp - 0x38]
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], r15b
jne 0x140002830
lea rdx, [rbp + 0x10]
mov rax, r14
cmp byte [rdx + rax + 1], r15b
lea rax, [rax + 1]
jne 0x140002840
lea rax, [rbp + rax + 0x10]
test cl, cl
je 0x14000287c
lea rdx, [rbp - 0x38]
movzx r8d, cl
nop dword [rax]
movzx ecx, byte [rdx]
cmp cl, 0x2b
jne 0x14000286e
mov byte [rax], 0x5c
inc rax
mov byte [rax], cl
inc rdx
inc rax
sub r8, 1
jne 0x140002860
lea rcx, [rbp + 0x10]
mov rax, r14
inc rax
cmp byte [rcx + rax], r15b
jne 0x140002883
add eax, eax
movsxd rcx, eax
shl rcx, 5
call fcn.140038aa8
mov rbx, rax
test rax, rax
je 0x1400028eb
lea rax, [rbp + 0x10]
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x10]
cmp byte [rax + r14 + 1], r15b
lea r14, [r14 + 1]
jne 0x1400028b2
lea eax, [r14 + r14]
xor edx, edx
cdqe
lea rcx, [rbp - 0x50]
shl rax, 5
add rax, rbx
mov qword [rbp - 0x40], rax
call fcn.140005060
test rax, rax
jne 0x1400028e8
mov rcx, rbx
call fcn.140037f04
jmp 0x1400028eb
mov r15, rbx
mov rcx, r15
call fcn.140004c40
mov rcx, r15
mov qword [0x1400672f0], rax
call fcn.140037f04
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea r9, [0x140067450]
mov eax, dword [0x140067484]
lea r8, [0x140067230]
lea rdx, str.GET__s_HTTP_1.1_r_nHost:__s:_u_r_nConnection:_Upgrade_r_nUpgrade:_websocket_r_nSec_WebSocket_Version:_13_r_nSec_WebSocket_Key:__s_r_n_r_n
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x80]
call fcn.140001070
mov rcx, qword [0x140067488]
test eax, eax
js 0x14000295c
movsxd r8, eax
lea rdx, [rbp + 0x80]
mov dword [0x1400673a0], 1
call fcn.140008570
jmp 0x140002961
call fcn.1400089c0
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400310d0
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rbp
ret