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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
mov rax, qword [0x140325af8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, r8
mov rdi, rdx
mov qword [rbp - 0x71], rdx
xor r15d, r15d
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], r15
lea r14, [r8 + 0x10]
mov qword [r14], r15
mov rax, r8
cmp qword [r8 + 0x18], 8
jb 0x14005397b
mov rax, qword [r8]
mov word [rax], r15w
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400539e4
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140053c6b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140053c66
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140053ca6
jmp 0x140053c63
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140053a57
xor edx, edx
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140053c6b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140053c66
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140053cac
jmp 0x140053c63
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140053a64
mov rdx, qword [rdi]
mov rax, qword [rdi + 0x10]
lea r8d, [rax + rax]
xor r9d, r9d
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140053ad8
xor edx, edx
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140053c6b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140053c66
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140053cb2
jmp 0x140053c63
mov dword [rbp - 0x59], 0x14
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x51]
mov edx, 2
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140053c19
mov ebx, dword [rbp - 0x59]
cmp ebx, 0x14
ja 0x140053c19
xor edx, edx
lea r8d, [rdx + 0x52]
lea rcx, [rbp - 0x39]
call fcn.1401dbcd0
mov r9d, r15d
test ebx, ebx
je 0x140053b66
lea r10, [rbp - 0x51]
lea r11, str.0123456789abcdef
movzx r8d, byte [r10]
lea edx, [r9 + r9]
mov eax, r8d
shr rax, 4
movzx eax, word [r11 + rax*2]
mov word [rbp + rdx*2 - 0x39], ax
and r8d, 0xf
lea ecx, [rdx + 1]
movzx eax, word [r11 + r8*2]
mov word [rbp + rcx*2 - 0x39], ax
inc r9d
lea r10, [r10 + 1]
cmp r9d, ebx
jb 0x140053b30
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rax, [rbp - 0x39]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], r15w
jne 0x140053b90
mov rax, qword [rsi + 0x18]
cmp rdx, rax
ja 0x140053bc9
cmp rax, 8
jb 0x140053bac
mov rsi, qword [rsi]
mov qword [r14], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.1401db870
mov word [rbx + rsi], r15w
jmp 0x140053bd6
lea r9, [rbp - 0x39]
mov rcx, rsi
call fcn.14000c3b0
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140053c15
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140053c10
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140053ca0
mov rcx, r8
call fcn.1401d94a8
mov al, 1
jmp 0x140053c6d
xor edx, edx
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140053c6b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140053c66
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140053cb8
mov rcx, r8
call fcn.1401d94a8
xor al, al
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401d9c30
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1401e4d9c
int3
call fcn.1401e4d9c
int3
call fcn.1401e4d9c
int3
call fcn.1401e4d9c
int3
call fcn.1401e4d9c
int3