Function at 0x180060680
Capabilities:
Authenticate hmac
Encode data using xor
Hash data using sha512

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x308]
sub rsp, 0x408
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov rax, qword [rbp + 0x370]
xor r12d, r12d
mov ebx, 0x80
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x28], r8
mov r14d, edx
mov qword [rsp + 0x30], rax
mov r13, rcx
lea esi, [r12 + 0x40]
lea r15d, [rbx + 0x50]
cmp edx, ebx
jle 0x18006077c
movaps xmm0, xmmword [0x1800cd920]
lea r8, [rbp + 0xe0]
movaps xmm1, xmmword [0x1800cd930]
movaps xmmword [rbp + 0xf0], xmm0
movaps xmm0, xmmword [0x1800cd940]
movaps xmmword [rbp + 0x100], xmm1
movaps xmm1, xmmword [0x1800cd950]
movaps xmmword [rbp + 0x110], xmm0
movaps xmmword [rbp + 0x120], xmm1
mov qword [rbp + 0xe8], r12
mov qword [rbp + 0xe0], r12
call fcn.180061cd0
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x2b0]
call fcn.180061de0
xor eax, eax
lea rdi, [rbp + 0xe0]
mov ecx, r15d
lea r13, [rbp + 0x2b0]
rep stosb byte [rdi], al
mov r14d, esi
lea rdx, [rbp + 0xe0]
mov r8d, r15d
nop dword [rax]
mov byte [rdx], al
lea rdx, [rdx + 1]
sub r8d, 1
jne 0x180060770
movaps xmm0, xmmword [0x1800cd920]
mov edx, r12d
movaps xmm1, xmmword [0x1800cd930]
movaps xmmword [rbp + 0x20], xmm0
movaps xmm0, xmmword [0x1800cd940]
movaps xmmword [rbp + 0x30], xmm1
movaps xmm1, xmmword [0x1800cd950]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x50], xmm1
mov qword [rbp + 0x18], r12
test r14d, r14d
jle 0x180060852
cmp r14d, 0x20
jb 0x180060852
lea eax, [r14 - 1]
movsxd rcx, eax
lea rdi, [rbp + 0x1b0]
add rdi, rcx
lea rax, [rcx + r13]
lea rcx, [rbp + 0x1b0]
cmp rcx, rax
ja 0x1800607e8
cmp rdi, r13
jae 0x180060852
mov ecx, r14d
and ecx, 0x8000001f
jge 0x1800607fa
dec ecx
or ecx, 0xffffffe0
inc ecx
movdqa xmm2, xmmword [str.6666666666666666JBe0DhBvIVVUYP8i]
mov eax, r14d
sub eax, ecx
mov rdi, r13
movsxd r8, eax
mov rcx, r12
lea rax, [rbp + 0x1b0]
sub rdi, rax
nop word [rax + rax]
lea rax, [rbp + 0x1b0]
add edx, 0x20
add rax, rcx
add rcx, 0x20
movdqu xmm0, xmmword [rdi + rax]
movdqu xmm1, xmmword [rdi + rax + 0x10]
pxor xmm0, xmm2
pxor xmm1, xmm2
movdqu xmmword [rax], xmm0
movdqu xmmword [rax + 0x10], xmm1
cmp rcx, r8
jl 0x180060820
movsxd rdx, edx
movsxd r12, r14d
cmp rdx, r12
jge 0x18006088a
lea rax, [rbp + 0x1b0]
mov rdi, r13
sub rdi, rax
nop word [rax + rax]
lea rcx, [rbp + 0x1b0]
add rcx, rdx
inc rdx
movzx eax, byte [rdi + rcx]
xor al, 0x36
mov byte [rcx], al
cmp rdx, r12
jl 0x180060870
cmp r14d, ebx
jge 0x1800608a8
mov eax, ebx
lea rdi, [rbp + 0x1b0]
sub eax, r14d
movsxd rcx, eax
add rdi, r12
mov eax, 0x36
rep stosb byte [rdi], al
movaps xmm0, xmmword [rbp + 0x1b0]
lea r9, [rbp + 0xe0]
movaps xmm1, xmmword [rbp + 0x1c0]
mov r10d, reloc.WS2_32.dll_recv
movups xmmword [rbp + 0x60], xmm0
mov edx, 0xff00ff00
mov qword [rbp + 0x10], rbx
movaps xmm0, xmmword [rbp + 0x1d0]
movups xmmword [rbp + 0x70], xmm1
movaps xmm1, xmmword [rbp + 0x1e0]
movups xmmword [rbp + 0x80], xmm0
movaps xmm0, xmmword [rbp + 0x1f0]
movups xmmword [rbp + 0x90], xmm1
movaps xmm1, xmmword [rbp + 0x200]
movups xmmword [rbp + 0xa0], xmm0
movaps xmm0, xmmword [rbp + 0x210]
movups xmmword [rbp + 0xb0], xmm1
movaps xmm1, xmmword [rbp + 0x220]
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm1
nop dword [rax + rax]
mov eax, dword [r9 - 8]
lea r9, [r9 - 8]
mov r8d, dword [r9]
mov rdi, qword [r9]
rol eax, 8
and eax, 0xff00ff
ror r8d, 8
and r8, 0xffffffffff00ff00
shr rdi, 0x20
or r8, rax
mov eax, edi
ror eax, 8
and rax, rdx
shl r8, 0x20
or r8, rax
mov eax, edi
rol eax, 8
and eax, 0xff00ff
or r8, rax
mov qword [r9], r8
sub r10d, 1
jne 0x180060930
lea rcx, [rbp + 0x10]
call fcn.180060ff0
mov edx, dword [rsp + 0x20]
lea r8, [rbp + 0x10]
mov rcx, qword [rsp + 0x28]
call fcn.180061cd0
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x270]
call fcn.180061de0
movaps xmm0, xmmword [0x1800cd920]
xor edx, edx
movaps xmm1, xmmword [0x1800cd930]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x1800cd940]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x1800cd950]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm1
mov qword [rsp + 0x48], 0
test r14d, r14d
jle 0x180060a82
cmp r14d, 0x20
jb 0x180060a82
lea eax, [r14 - 1]
movsxd rcx, eax
lea rdi, [rbp + 0x1b0]
add rdi, rcx
lea rax, [rcx + r13]
lea rcx, [rbp + 0x1b0]
cmp rcx, rax
ja 0x180060a1b
cmp rdi, r13
jae 0x180060a82
mov ecx, r14d
and ecx, 0x8000001f
jge 0x180060a2d
dec ecx
or ecx, 0xffffffe0
inc ecx
movdqa xmm2, xmmword [0x1800dae30]
mov eax, r14d
sub eax, ecx
mov rdi, r13
movsxd r8, eax
xor ecx, ecx
lea rax, [rbp + 0x1b0]
sub rdi, rax
nop dword [rax]
lea rax, [rbp + 0x1b0]
add edx, 0x20
add rax, rcx
add rcx, 0x20
movdqu xmm0, xmmword [rdi + rax]
movdqu xmm1, xmmword [rdi + rax + 0x10]
pxor xmm0, xmm2
pxor xmm1, xmm2
movdqu xmmword [rax], xmm0
movdqu xmmword [rax + 0x10], xmm1
cmp rcx, r8
jl 0x180060a50
movsxd rdx, edx
cmp rdx, r12
jge 0x180060abb
lea rax, [rbp + 0x1b0]
sub r13, rax
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rbp + 0x1b0]
add rcx, rdx
inc rdx
movzx eax, byte [rcx + r13]
xor al, 0x5c
mov byte [rcx], al
cmp rdx, r12
jl 0x180060aa0
cmp r14d, ebx
jge 0x180060ad9
mov eax, ebx
lea rdi, [rbp + 0x1b0]
sub eax, r14d
movsxd rcx, eax
add rdi, r12
mov eax, 0x5c
rep stosb byte [rdi], al
movaps xmm0, xmmword [rbp + 0x1b0]
lea r8, [rbp + 0x10]
movaps xmm1, xmmword [rbp + 0x1c0]
mov r9d, reloc.WS2_32.dll_recv
movups xmmword [rbp - 0x70], xmm0
mov r10d, 0xff00ff00
mov qword [rsp + 0x40], rbx
movaps xmm0, xmmword [rbp + 0x1d0]
movups xmmword [rbp - 0x60], xmm1
movaps xmm1, xmmword [rbp + 0x1e0]
movups xmmword [rbp - 0x50], xmm0
movaps xmm0, xmmword [rbp + 0x1f0]
movups xmmword [rbp - 0x40], xmm1
movaps xmm1, xmmword [rbp + 0x200]
movups xmmword [rbp - 0x30], xmm0
movaps xmm0, xmmword [rbp + 0x210]
movups xmmword [rbp - 0x20], xmm1
movaps xmm1, xmmword [rbp + 0x220]
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm1
nop word [rax + rax]
mov eax, dword [r8 - 8]
lea r8, [r8 - 8]
mov edi, dword [r8]
mov rdx, qword [r8]
rol eax, 8
and eax, 0xff00ff
ror edi, 8
and rdi, 0xffffffffff00ff00
shr rdx, 0x20
or rdi, rax
mov eax, edx
ror eax, 8
and rax, r10
shl rdi, 0x20
or rdi, rax
mov eax, edx
rol eax, 8
and eax, 0xff00ff
or rdi, rax
mov qword [r8], rdi
sub r9d, 1
jne 0x180060b50
lea rcx, [rsp + 0x40]
call fcn.180060ff0
mov rax, qword [rsp + 0x40]
lea r13, [rbp + 0x270]
mov ecx, eax
mov r14d, ebx
and ecx, 0x7f
add rax, rsi
sub r14d, ecx
mov qword [rsp + 0x40], rax
mov r12d, esi
cmp rax, rsi
jae 0x180060bd2
inc qword [rsp + 0x48]
cmp r14d, esi
ja 0x180060c8e
mov r15d, ecx
nop
mov eax, r15d
lea rcx, [rbp - 0x70]
add rcx, rax
mov r8d, r14d
mov rdx, r13
mov edi, r14d
call fcn.18008b7d0
sub r12d, r14d
lea r8, [rbp + 0x10]
add r13, rdi
mov r14d, ebx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
lea r9d, [r15 + 0x10]
mov r15d, 0xff00ff00
nop word [rax + rax]
mov eax, dword [r8 - 8]
lea r8, [r8 - 8]
mov edi, dword [r8]
mov rdx, qword [r8]
rol eax, 8
and eax, 0xff00ff
ror edi, 8
and rdi, 0xffffffffff00ff00
shr rdx, 0x20
or rdi, rax
mov eax, edx
ror eax, 8
and rax, r15
shl rdi, 0x20
or rdi, rax
mov eax, edx
rol eax, 8
and eax, 0xff00ff
or rdi, rax
mov qword [r8], rdi
sub r9d, 1
jne 0x180060c20
lea rcx, [rsp + 0x40]
call fcn.180060ff0
mov r15d, dword [rsp + 0x20]
cmp r12d, ebx
jae 0x180060be0
mov ecx, dword [rsp + 0x20]
mov r15d, 0xd0
mov eax, ecx
mov rdx, r13
lea rcx, [rbp - 0x70]
mov r8d, r12d
add rcx, rax
call fcn.18008b7d0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x230]
call fcn.180061de0
mov rax, qword [rsp + 0x30]
lea rdi, [rbp + 0x10]
movaps xmm0, xmmword [rbp + 0x230]
lea rdx, [rbp + 0x10]
movaps xmm1, xmmword [rbp + 0x240]
mov rcx, r15
mov r8d, r15d
movups xmmword [rax], xmm0
movaps xmm0, xmmword [rbp + 0x250]
movups xmmword [rax + 0x10], xmm1
movaps xmm1, xmmword [rbp + 0x260]
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm1
xor eax, eax
rep stosb byte [rdi], al
nop word [rax + rax]
mov byte [rdx], al
lea rdx, [rdx + 1]
sub r8d, 1
jne 0x180060d00
lea rdi, [rsp + 0x40]
mov rcx, r15
rep stosb byte [rdi], al
lea rdx, [rsp + 0x40]
nop dword [rax + rax]
mov byte [rdx], al
lea rdx, [rdx + 1]
sub r15d, 1
jne 0x180060d20
lea rdi, [rbp + 0x270]
mov rcx, rsi
rep stosb byte [rdi], al
lea rdx, [rbp + 0x270]
mov r8d, esi
mov byte [rdx], al
lea rdx, [rdx + 1]
sub r8d, 1
jne 0x180060d42
lea rdi, [rbp + 0x230]
mov rcx, rsi
rep stosb byte [rdi], al
lea rdx, [rbp + 0x230]
mov r8d, esi
mov byte [rdx], al
lea rdx, [rdx + 1]
sub r8d, 1
jne 0x180060d64
lea rdi, [rbp + 0x1b0]
mov rcx, rbx
rep stosb byte [rdi], al
lea rdx, [rbp + 0x1b0]
mov byte [rdx], al
lea rdx, [rdx + 1]
sub ebx, 1
jne 0x180060d83
lea rdi, [rbp + 0x2b0]
mov rcx, rsi
rep stosb byte [rdi], al
lea rdx, [rbp + 0x2b0]
mov byte [rdx], al
lea rdx, [rdx + 1]
sub esi, 1
jne 0x180060da1
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.180072920
add rsp, 0x408
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret