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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
mov rax, qword [0x1401cf518]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x58]
call fcn.1400035d0
nop
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x98]
lea rcx, [0x140143c48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x11
rep movsb byte [rdi], byte [rsi]
lea rdx, [0x140143bd1]
lea rcx, [rsp + 0x78]
call fcn.140003570
nop
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14000412a
lea rdx, [0x140143c60]
lea rcx, [rsp + 0x58]
call fcn.140003940
jmp 0x140004278
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140004171
lea rdx, [0x140143c80]
lea rcx, [rsp + 0x58]
call fcn.140003940
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140004278
xor r9d, r9d
mov r8d, dword [rsp + 0x100]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1400041b6
lea rdx, [0x140143c98]
lea rcx, [rsp + 0x58]
call fcn.140003940
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140004278
mov dword [rsp + 0x40], 0x14
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0xb0]
mov edx, 2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000424f
mov dword [rsp + 0x34], 0
jmp 0x1400041fb
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x34], eax
jae 0x14000424d
mov eax, dword [rsp + 0x34]
movzx eax, byte [rsp + rax + 0xb0]
sar eax, 4
cdqe
movzx edx, byte [rsp + rax + 0x98]
lea rcx, [rsp + 0x78]
call fcn.140003a40
mov eax, dword [rsp + 0x34]
movzx eax, byte [rsp + rax + 0xb0]
and eax, 0xf
cdqe
movzx edx, byte [rsp + rax + 0x98]
lea rcx, [rsp + 0x78]
call fcn.140003a40
jmp 0x1400041f1
jmp 0x140004260
lea rdx, [0x140143cb0]
lea rcx, [rsp + 0x58]
call fcn.140003940
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x108]
cmp dword [rax], 0xffffffff
je 0x1400042de
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x100]
cmp dword [rsp + 0x30], eax
jae 0x1400042bb
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xf8]
movzx eax, byte [rcx + rax]
test eax, eax
jne 0x1400042bb
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x14000428d
mov eax, dword [rsp + 0x100]
cmp dword [rsp + 0x30], eax
jne 0x1400042d0
mov dword [rsp + 0x30], 0xffffffff
mov rax, qword [rsp + 0x108]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xf0]
call fcn.1400034f0
mov eax, dword [rsp + 0x38]
or eax, 1
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x78]
call fcn.140003860
nop
lea rcx, [rsp + 0x58]
call fcn.140003860
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140101e00
add rsp, 0xd8
pop rdi
pop rsi
ret