Function at 0x180021a60
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
movups xmm0, xmmword [r9]
movups xmm1, xmmword [r9 + 0x10]
test r8d, r8d
mov eax, 1
mov edx, 0
mov r13d, r8d
cmove r13d, eax
mov ecx, edx
mov esi, 2
test r13b, 0x1f
mov eax, r13d
mov dword [rbp + 0x60], edx
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [r9 + 0x20]
movups xmmword [rsp + 0x30], xmm1
setne cl
shr eax, 5
lea r12d, [rsi + 0x35]
add ecx, eax
mov eax, dword [r9 + 0x30]
mov dword [rsp + 0x50], eax
movzx eax, word [r9 + 0x34]
mov dword [rbp + 0x68], ecx
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x54], ax
movzx eax, byte [r9 + 0x36]
mov byte [rsp + 0x56], al
test ecx, ecx
jle 0x180021ce3
nop word [rax + rax]
xor eax, eax
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x3c], 0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov eax, edx
mov dword [rsp + 0x60], 0x6a09e667
mov dword [rsp + 0x64], 0xbb67ae85
mov dword [rsp + 0x68], 0x3c6ef372
mov dword [rsp + 0x6c], 0xa54ff53a
mov dword [rbp - 0x40], eax
mov dword [rsp + 0x70], 0x510e527f
mov dword [rsp + 0x74], 0x9b05688c
mov dword [rsp + 0x78], 0x1f83d9ab
mov dword [rsp + 0x7c], 0x5be0cd19
mov r14d, r12d
lea r15, [rsp + 0x20]
mov esi, edx
mov edi, 0x40
lea rcx, [rbp - 0x80]
mov rdx, r15
sub edi, eax
cmp r14d, edi
cmovb edi, r14d
add rcx, rax
mov r8d, edi
mov ebx, edi
call fcn.18002efa0
mov eax, dword [rbp - 0x40]
add r15, rbx
add eax, edi
sub r14d, edi
mov dword [rbp - 0x40], eax
cmp eax, 0x40
jne 0x180021bfb
lea rax, [rbp - 0x80]
mov r8d, reloc.WS2_32.dll_recv
mov ecx, dword [rax]
lea rax, [rax + 4]
mov edx, ecx
rol ecx, 8
and ecx, 0xff00ff
ror edx, 8
and edx, 0xff00ff00
or edx, ecx
mov dword [rax - 4], edx
dec r8
jne 0x180021bb0
lea rcx, [rsp + 0x60]
call fcn.1800255f0
mov esi, eax
test eax, eax
jne 0x180021c04
mov ecx, dword [rbp - 0x3c]
mov eax, ecx
add ecx, 0x40
mov dword [rbp - 0x3c], ecx
cmp ecx, eax
jae 0x180021bf6
inc dword [rbp - 0x38]
xor eax, eax
mov dword [rbp - 0x40], eax
test r14d, r14d
jne 0x180021b71
test esi, esi
jne 0x180021cc8
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x60]
call fcn.180025cb0
mov esi, eax
test eax, eax
jne 0x180021cc8
mov rdx, qword [rbp + 0x50]
mov ecx, dword [rbp - 0x20]
cmp dword [rdx], 1
jbe 0x180021c52
cmp ecx, dword [rdx + 4]
jne 0x180021c52
cmp byte [rdx + 0x76], 1
je 0x180021cdc
mov eax, dword [rbp + 0x68]
cmp dword [rbp + 0x60], eax
jne 0x180021c4c
inc eax
mov dword [rbp + 0x68], eax
mov byte [rdx + 0x76], 1
jmp 0x180021c59
mov byte [rdx + 0x76], 0
mov dword [rdx + 4], ecx
mov r10, qword [rbp + 0x58]
test r10, r10
je 0x180021cc8
test r13d, r13d
je 0x180021cc8
cmp r13d, 0x20
jb 0x180021cb6
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
add r13d, 0xffffffe0
add r10, 0x20
mov eax, gethostname
mov qword [rbp + 0x58], r10
movups xmmword [r10 - 0x20], xmm0
movups xmmword [r10 - 0x10], xmm1
inc byte [rsp + rax + 0x20]
jne 0x180021cc8
inc byte [rsp + rax + 0x1f]
jne 0x180021cc8
inc byte [rsp + rax + 0x1e]
jne 0x180021cc8
inc byte [rsp + rax + 0x1d]
jne 0x180021cc8
inc byte [rsp + rax + 0x1c]
jne 0x180021cc8
sub rax, 5
jns 0x180021c90
jmp 0x180021cc8
lea rdx, [rbp - 0x20]
mov r8d, r13d
mov rcx, r10
call fcn.18002efa0
xor r13d, r13d
mov edx, dword [rbp + 0x60]
inc edx
mov dword [rbp + 0x60], edx
cmp edx, dword [rbp + 0x68]
jge 0x180021ce3
xor edx, edx
jmp 0x180021b00
mov eax, 4
jmp 0x180021d03
lea rax, [rsp + 0x20]
nop dword [rax + rax]
mov byte [rax], 0
lea rax, [rax + 1]
dec r12d
jne 0x180021cf0
neg esi
sbb eax, eax
and eax, 2
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret