Function at 0x18000ceeb
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
sub rsp, 0x240
lea rbp, [rsp + 0x30]
mov qword [rsp], rax
mov rax, 0x23c
mov dword [rsp + rax], 0xcccccccc
sub rax, 4
cmp rax, 4
jg 0x18000cf03
mov rax, qword [rsp]
mov dword [rsp], 0xcccccccc
mov dword [rsp + 4], 0xcccccccc
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xc0], rbx
mov qword [rbp + 0x220], rcx
mov qword [rbp + 0x228], rdx
mov dword [rbp + 0x230], r8d
mov rax, qword [0x1800f4ae8]
xor rax, rbp
mov qword [rbp + 0x200], rax
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x28], 0
mov rax, qword [rbp + 0x228]
mov byte [rax], 0
lea rax, [rbp + 0x18]
mov edx, 0
mov ecx, 0
mov ebx, 1
mov dword [rsp + 0x20], 0xf0000000
mov rsi, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov qword [rbp + 0x78], rcx
mov rcx, rax
mov rax, qword [rbp + 0x78]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x18]
mov edx, 0x8004
mov ecx, 0
mov ebx, 0
lea rsi, [rbp + 0x28]
mov qword [rsp + 0x20], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov qword [rbp + 0x80], rcx
mov rcx, rax
mov rax, qword [rbp + 0x80]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0x220]
mov rcx, rax
call fcn.1800622d0
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x220]
mov ecx, 1
add rcx, qword [rbp + 0x60]
imul rcx, rcx, 2
mov ebx, 0
mov rsi, qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [rbp + 0x88], ecx
mov rcx, rax
mov eax, dword [rbp + 0x88]
mov r8d, eax
mov r9d, ebx
call rsi
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
test eax, eax
je 0x18000d1ee
mov dword [rbp + 8], reloc.WS2_32.dll_sendto
mov rax, qword [rbp + 0x28]
mov edx, 2
lea rcx, [rbp + 0xd8]
lea rbx, [rbp + 8]
mov dword [rsp + 0x20], 0
mov rsi, qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov qword [rbp + 0x90], rcx
mov rcx, rax
mov rax, qword [rbp + 0x90]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x48], eax
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x18000d1db
mov byte [rbp + 0x38], 0
mov dword [rbp + 0x50], 0
mov eax, dword [rbp + 0x50]
cmp eax, 0x14
jb 0x18000d0be
jmp 0x18000d162
mov eax, 1
add eax, dword [rbp + 0x50]
mov dword [rbp + 0x50], eax
jmp 0x18000d0a4
lea rax, [rbp + 0xd8]
mov edx, dword [rbp + 0x50]
add rax, rdx
movzx eax, byte [rax]
mov byte [rbp + 0x39], al
movzx eax, byte [rbp + 0x38]
movzx eax, al
movzx edx, byte [rbp + 0x39]
movzx edx, dl
add eax, edx
mov byte [rbp + 0x38], al
lea rax, [rbp + 0xf4]
mov edx, 0x100
lea rcx, [0x180101732]
mov rbx, qword [rbp + 0x228]
movzx esi, byte [rbp + 0x39]
movzx esi, sil
mov dword [rsp + 0x20], esi
mov qword [rbp + 0x98], rcx
mov rcx, rax
mov rax, qword [rbp + 0x98]
mov r8, rax
mov r9, rbx
call fcn.180067ac0
mov dword [rbp + 0x58], eax
mov rax, qword [rbp + 0x228]
lea rdx, [rbp + 0xf4]
mov ecx, dword [rbp + 0x230]
movsxd rcx, ecx
mov qword [rbp + 0xa0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xa0]
mov r8, rax
call fcn.180066f00
mov qword [rbp + 0x68], rax
jmp 0x18000d0b1
lea rax, [rbp + 0xf4]
mov edx, 0x100
lea rcx, [0x18010173a]
mov rbx, qword [rbp + 0x228]
movzx esi, byte [rbp + 0x38]
movzx esi, sil
mov dword [rsp + 0x20], esi
mov qword [rbp + 0xa8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xa8]
mov r8, rax
mov r9, rbx
call fcn.180067ac0
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x228]
lea rdx, [rbp + 0xf4]
mov ecx, dword [rbp + 0x230]
movsxd rcx, ecx
mov qword [rbp + 0xb0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xb0]
mov r8, rax
call fcn.180066f00
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x28]
mov rdx, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, rax
call rdx
mov dword [rbp + 0x54], eax
mov rax, qword [rbp + 0x18]
mov edx, 0
mov rcx, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rbp + 0xb8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xb8]
call rax
mov dword [rbp + 0x4c], eax
lea rax, reloc.WS2_32.dll_getpeername
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x200]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov rbx, qword [rbp + 0xc0]
mov rsi, qword [rbp + 0xc8]
lea rsp, [rbp + 0x210]
pop rbp
ret