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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xf8
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp - 9], rax
mov r13, qword [rbp + 0x77]
xor edi, edi
mov r15, qword [rbp + 0x7f]
mov r14d, r9d
mov qword [rsp + 0x48], rdi
mov r12, r8
mov qword [rsp + 0x50], rdi
mov ebx, edi
mov qword [rsp + 0x40], rdi
mov sil, dil
mov dword [rsp + 0x38], edi
test r13, r13
je 0x14012151e
cmp dword [r15], 0x14
jae 0x14012152a
mov dword [r15], setsockopt
mov ebx, 0x80070057
mov dword [rsp + 0x30], SHFlushSFCache
mov dword [rsp + 0x34], 0x6602
test ebx, ebx
js 0x1401217e5
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x69], rax
mov eax, edx
mov dword [rbp - 0x61], edx
test edx, edx
je 0x1401215a6
test rcx, rcx
je 0x140121570
cmp rax, 0x10
ja 0x140121570
mov rdx, rcx
mov r8d, eax
lea rcx, [rbp - 0x5d]
call fcn.14003a540
jmp 0x1401215a6
xorps xmm0, xmm0
movups xmmword [rbp - 0x5d], xmm0
test rcx, rcx
jne 0x14012158f
call fcn.1400469e8
mov edi, socket
mov dword [rax], edi
call fcn.14004687c
jmp 0x1401215a6
cmp rax, 0x10
jbe 0x1401215a1
call fcn.1400469e8
mov edi, 0x22
jmp 0x140121586
mov edi, socket
mov ebx, edi
or ebx, 0x80070000
test edi, edi
cmove ebx, edi
xor edi, edi
test ebx, ebx
js 0x1401217b3
lea r9d, [rdi + 1]
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1401215e1
mov ebx, edi
jmp 0x1401215f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov esi, ebx
shr esi, 0x1f
xor sil, 1
test ebx, ebx
js 0x1401217b3
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x69]
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 0x1c]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x14012164a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1401217b3
mov r8, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov edx, 0x8009
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14012168c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1401217b3
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x58]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xor r9d, r9d
mov qword [rbp - 0x71], rax
movups xmmword [rsp + 0x68], xmm0
lea edx, [rax + 5]
mov dword [rsp + 0x58], 0x8004
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x1401216dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1401217b3
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, r14d
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140121716
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov r12d, 0x80070000
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1401217b3
jmp 0x14012171c
mov r12d, 0x80070000
and r14d, 0x3f
je 0x140121766
mov ebx, 0x40
lea rcx, [rbp - 0x49]
mov r8d, ebx
xor edx, edx
call fcn.14003a220
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x49]
sub ebx, r14d
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140121766
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1401217b3
mov eax, dword [r15]
lea r9, [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8, r13
mov edx, 2
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1401217a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1401217b3
mov eax, dword [rsp + 0x38]
sub eax, 0x14
neg eax
sbb ebx, ebx
and ebx, 0x80004005
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401217c3
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1401217d3
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test sil, sil
je 0x1401217e5
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140038910
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret