Function at 0x140170e80
Capabilities:
Hash data using sha1

Disassembly:
mov r11, rsp
push rbp
push r12
push r14
push r15
lea rbp, [r11 - 0xb8]
sub rsp, 0x198
mov rax, qword [0x1404c39e8]
xor rax, rsp
mov qword [rbp + 0x80], rax
xor r12d, r12d
mov qword [r11 + 8], rbx
mov qword [r11 - 0x28], rdi
mov r15, r8
mov dword [rsp + 0x20], 0x67452301
mov r14, rdx
mov dword [rsp + 0x24], 0xefcdab89
mov rdi, rcx
mov dword [rsp + 0x28], 0x98badcfe
mov ebx, r12d
mov dword [rsp + 0x2c], 0x10325476
mov dword [rsp + 0x30], 0xc3d2e1f0
cmp rdx, 0x40
jb 0x140170f6d
mov qword [r11 + 0x10], rsi
lea rsi, [rdx - 0x40]
lea rax, [rbx + 0x40]
cmp rbx, rax
jae 0x140170f51
lea rax, [rdi + 2]
mov r9d, reloc.WS2_32.dll_recv
add rax, rbx
lea r8, [rsp + 0x40]
add rbx, 0x40
nop word [rax + rax]
movzx ecx, byte [rax - 1]
lea r8, [r8 + 4]
movzx edx, byte [rax - 2]
lea rax, [rax + 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [rax - 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [rax - 3]
shl edx, 8
or edx, ecx
mov dword [r8 - 4], edx
sub r9, 1
jne 0x140170f20
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14018d350
cmp rbx, rsi
jbe 0x140170ef6
mov rsi, qword [rsp + 0x1c8]
mov r10, r14
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], r12
mov r11d, 3
mov qword [rsp + 0x68], r12
mov r9, r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
sub r10, rbx
je 0x140170fe3
lea r8, [rbx + rdi]
nop word [rax + rax]
mov rax, r9
lea rdx, [rsp + 0x40]
shr rax, 2
movzx ecx, r9b
lea rdx, [rdx + rax*4]
and cl, r11b
mov eax, r11d
sub al, cl
movzx ecx, al
movzx eax, byte [r8 + r9]
shl cl, 3
inc r9
shl eax, cl
or dword [rdx], eax
cmp r9, r10
jb 0x140170fb0
mov rdi, qword [rsp + 0x190]
lea r8, [rsp + 0x40]
mov rbx, qword [rsp + 0x1c0]
mov rax, r9
and r9b, r11b
shr rax, 2
sub r11b, r9b
lea r8, [r8 + rax*4]
movzx ecx, r11b
mov edx, 0x80
shl cl, 3
shl edx, cl
or dword [r8], edx
cmp r10, 0x38
jb 0x140171057
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14018d350
mov qword [rsp + 0x74], r12
mov qword [rsp + 0x6c], r12
mov qword [rsp + 0x64], r12
mov qword [rsp + 0x5c], r12
mov qword [rsp + 0x54], r12
mov qword [rsp + 0x4c], r12
mov qword [rsp + 0x44], r12
mov dword [rsp + 0x40], r12d
lea rax, [r14*8]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x7c], eax
lea rcx, [rsp + 0x20]
call fcn.14018d350
mov ecx, dword [rsp + 0x30]
movzx eax, byte [rsp + 0x30]
mov byte [r15 + 0x13], al
mov eax, ecx
shr eax, 8
mov byte [r15 + 0x12], al
mov eax, ecx
shr eax, 0x10
mov byte [r15 + 0x11], al
movzx eax, byte [rsp + 0x2c]
shr ecx, 0x18
mov byte [r15 + 0x10], cl
mov ecx, dword [rsp + 0x2c]
mov byte [r15 + 0xf], al
mov eax, ecx
shr eax, 8
mov byte [r15 + 0xe], al
mov eax, ecx
shr eax, 0x10
mov byte [r15 + 0xd], al
movzx eax, byte [rsp + 0x28]
shr ecx, 0x18
mov byte [r15 + 0xc], cl
mov ecx, dword [rsp + 0x28]
mov byte [r15 + 0xb], al
mov eax, ecx
shr eax, 8
mov byte [r15 + 0xa], al
mov eax, ecx
shr eax, 0x10
mov byte [r15 + 9], al
movzx eax, byte [rsp + 0x24]
shr ecx, 0x18
mov byte [r15 + 8], cl
mov ecx, dword [rsp + 0x24]
mov byte [r15 + 7], al
mov eax, ecx
shr eax, 8
mov byte [r15 + 6], al
mov eax, ecx
shr eax, 0x10
mov byte [r15 + 5], al
movzx eax, byte [rsp + 0x20]
shr ecx, 0x18
mov byte [r15 + 4], cl
mov ecx, dword [rsp + 0x20]
mov byte [r15 + 3], al
mov eax, ecx
shr eax, 8
mov byte [r15 + 2], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [r15 + 1], al
mov byte [r15], cl
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140382da0
add rsp, 0x198
pop r15
pop r14
pop r12
pop rbp
ret