Function at 0x140020c50
Capabilities:
Initialize hashing via wincrypt

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x900
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x8f0], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x4c], 0
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x802
rep stosb byte [rdi], al
cmp dword [rsp + 0x40], 0
je 0x140020d7e
mov eax, dword [rsp + 0x918]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x8001
jb 0x140020d15
cmp dword [rsp + 0x48], 0x8004
jbe 0x140020d13
cmp dword [rsp + 0x48], 0x800b
jbe 0x140020d15
cmp dword [rsp + 0x48], 0x800e
jbe 0x140020d13
jmp 0x140020d15
jmp 0x140020d7e
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0x57
mov r9d, dword [rsp + 0x918]
lea r8, [0x140032d80]
mov edx, 0x401
lea rcx, [rsp + 0xe0]
call fcn.14001a9c0
mov word [rsp + 0x30], 1
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xe0]
mov r8d, 0xb7
lea rdx, [0x140032d98]
lea rcx, [0x140032df0]
call fcn.1400201f0
cmp dword [rsp + 0x40], 0
je 0x140020def
mov rcx, qword [rsp + 0x910]
call fcn.1400221d0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140020def
mov rcx, qword [rsp + 0x910]
call fcn.140022060
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov word [rsp + 0x30], 1
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [0x140032db8]
mov r8d, 0xc4
lea rdx, [0x140032e40]
lea rcx, [0x140032e60]
call fcn.1400201f0
cmp dword [rsp + 0x40], 0
je 0x140020e25
mov rcx, qword [rsp + 0x910]
call fcn.1400225e0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140020e1a
mov dword [rsp + 0x4c], 0x8009
jmp 0x140020e25
mov eax, dword [rsp + 0x918]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x40], 0
je 0x140020ef1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140020ef1
mov rcx, qword [rsp + 0x910]
call fcn.140022060
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x140032eb0]
mov edx, 0xb
lea rcx, [rsp + 0xa8]
call fcn.14001a9c0
mov eax, 8
imul rax, rax, 0
lea rcx, [rsp + 0xa8]
mov qword [rsp + rax + 0x98], rcx
mov word [rsp + 0x30], 1
mov word [rsp + 0x28], 1
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea r9, str.CryptCreateHash_Error
mov r8d, 0xde
lea rdx, [0x140032ef0]
lea rcx, [0x140032f10]
call fcn.1400201f0
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
je 0x140020fe9
cmp dword [rsp + 0x4c], 0x8009
jne 0x140020fe9
mov edx, 0x28
lea rcx, [rsp + 0x70]
call fcn.14001aa40
mov eax, dword [rsp + 0x918]
mov dword [rsp + 0x70], eax
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, 5
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140020fda
mov rcx, qword [rsp + 0x910]
call fcn.140022060
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x140032f60]
mov edx, 0xb
lea rcx, [rsp + 0xc0]
call fcn.14001a9c0
mov eax, 8
imul rax, rax, 0
lea rcx, [rsp + 0xc0]
mov qword [rsp + rax + 0xa0], rcx
mov word [rsp + 0x30], 1
mov word [rsp + 0x28], 1
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, str.CryptSetHashParam_Error
mov r8d, 0xee
lea rdx, [0x140032fa0]
lea rcx, [0x140032fc0]
call fcn.1400201f0
mov dword [rsp + 0x40], 0
mov edx, 0x28
lea rcx, [rsp + 0x70]
call fcn.14001aa40
mov rcx, qword [rsp + 0x910]
call fcn.140020b20
cmp dword [rsp + 0x40], 0
je 0x14002100f
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x910]
call fcn.140020b00
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x910]
call fcn.140022090
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x8f0]
xor rcx, rsp
call fcn.1400257c0
add rsp, 0x900
pop rdi
ret