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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r15, r8
mov rbx, rdx
mov rsi, rcx
xor eax, eax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov byte [rbp + 0x1f], al
mov dword [rbp + 0x7f], 0x14
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [rax + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, eax
movdqa xmm0, xmmword [0x1800087b0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov r8d, 0x13
lea rdx, str.CryptAcquireContext
lea rcx, [rbp - 0x39]
call fcn.180003af0
nop
test edi, edi
jne 0x180003537
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.180002970
test edi, edi
sete dil
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x18000358e
inc rdx
mov rax, qword [rbp - 0x39]
mov rcx, rax
cmp rdx, 0x1000
jb 0x180003586
lea r8, [rdx + 0x27]
cmp r8, rdx
jbe 0x18000357f
mov rdx, r8
test cl, 0x1f
jne 0x18000357f
mov rax, qword [rax - 8]
cmp rax, rcx
jae 0x18000357f
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
jbe 0x180003586
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.180006714
test dil, dil
je 0x18000359a
xor al, al
jmp 0x180003969
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, eax
movdqa xmm0, xmmword [0x1800087b0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov r8d, 0xf
lea rdx, str.CryptCreateHash
lea rcx, [rbp - 0x39]
call fcn.180003af0
nop
test edi, edi
jne 0x1800035f4
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.180002970
test edi, edi
sete dil
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x18000364b
inc rdx
mov rax, qword [rbp - 0x39]
mov rcx, rax
cmp rdx, 0x1000
jb 0x180003643
lea r8, [rdx + 0x27]
cmp r8, rdx
jbe 0x18000363c
mov rdx, r8
test cl, 0x1f
jne 0x18000363c
mov rax, qword [rax - 8]
cmp rax, rcx
jae 0x18000363c
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
jbe 0x180003643
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.180006714
test dil, dil
jne 0x180003593
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x180003662
mov rbx, qword [rbx]
xor r9d, r9d
mov r8d, eax
mov rdx, rbx
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ebx, eax
movdqa xmm0, xmmword [0x1800087b0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov r8d, 0xd
lea rdx, str.CryptHashData
lea rcx, [rbp - 0x39]
call fcn.180003af0
nop
test ebx, ebx
jne 0x1800036b1
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.180002970
test ebx, ebx
sete bl
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x180003707
inc rdx
mov rax, qword [rbp - 0x39]
mov rcx, rax
cmp rdx, 0x1000
jb 0x1800036ff
lea r8, [rdx + 0x27]
cmp r8, rdx
jbe 0x1800036f8
mov rdx, r8
test cl, 0x1f
jne 0x1800036f8
mov rax, qword [rax - 8]
cmp rax, rcx
jae 0x1800036f8
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
jbe 0x1800036ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.180006714
test bl, bl
jne 0x180003593
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea r9, [rbp + 0x7f]
lea r8, [rbp + 0x2f]
lea edx, [rbx + 2]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edi, eax
movdqa xmm0, xmmword [0x1800087b0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], bl
lea r8d, [rbx + 0x11]
lea rdx, str.CryptGetHashParam
lea rcx, [rbp - 0x39]
call fcn.180003af0
nop
test edi, edi
jne 0x180003763
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.180002970
test edi, edi
sete dil
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x1800037ba
inc rdx
mov rax, qword [rbp - 0x39]
mov rcx, rax
cmp rdx, 0x1000
jb 0x1800037b2
lea r8, [rdx + 0x27]
cmp r8, rdx
jbe 0x1800037ab
mov rdx, r8
test cl, 0x1f
jne 0x1800037ab
mov rax, qword [rax - 8]
cmp rax, rcx
jae 0x1800037ab
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
jbe 0x1800037b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.180006714
test dil, dil
jne 0x180003593
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edi, eax
movdqa xmm0, xmmword [0x1800087b0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov r8d, 0x10
lea rdx, str.CryptDestroyHash
lea rcx, [rbp - 0x39]
call fcn.180003af0
nop
test edi, edi
jne 0x180003809
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.180002970
test edi, edi
sete dil
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x180003860
inc rdx
mov rax, qword [rbp - 0x39]
mov rcx, rax
cmp rdx, 0x1000
jb 0x180003858
lea r8, [rdx + 0x27]
cmp r8, rdx
jbe 0x180003851
mov rdx, r8
test cl, 0x1f
jne 0x180003851
mov rax, qword [rax - 8]
cmp rax, rcx
jae 0x180003851
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
jbe 0x180003858
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.180006714
test dil, dil
jne 0x180003593
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r14d, eax
movdqa xmm0, xmmword [0x1800087b0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], dil
mov r8d, 0x13
lea rdx, str.CryptReleaseContext
lea rcx, [rbp - 0x39]
call fcn.180003af0
nop
test r14d, r14d
jne 0x1800038b4
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.180002970
test r14d, r14d
sete dil
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x180003907
mov rcx, qword [rbp - 0x39]
mov rax, rcx
inc rdx
cmp rdx, 0x1000
jb 0x180003902
lea r8, [rdx + 0x27]
cmp r8, rdx
jbe 0x1800038fb
mov rdx, r8
test al, 0x1f
jne 0x1800038fb
mov rcx, qword [rcx - 8]
cmp rcx, rax
jae 0x1800038fb
sub rax, rcx
sub rax, 8
cmp rax, 0x1f
jbe 0x180003902
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180006714
test dil, dil
jne 0x180003593
mov byte [rbp - 9], dil
lea rdi, [rbp + 0x2f]
nop dword [rax + rax]
movzx r8d, byte [rdi]
lea ecx, [rbx + rbx]
lea rax, [rbp - 9]
add rcx, rax
lea rdx, str._02x
call qword [sym.imp.USER32.dll_wsprintfA]
lea rax, [rbp - 9]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180003943
lea rdx, [rbp - 9]
mov rcx, r15
call fcn.180003af0
inc ebx
inc rdi
cmp ebx, 0x14
jb 0x180003920
test r14d, r14d
setne al
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret