Function at 0x140021040
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x8b0
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x8a0], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x802
rep stosb byte [rdi], al
cmp dword [rsp + 0x40], 0
je 0x140021133
cmp qword [rsp + 0x8c8], 0
jne 0x140021133
mov dword [rsp + 0x48], 0x57
mov r9, qword [rsp + 0x8c8]
lea r8, [0x140033010]
mov edx, 0x401
lea rcx, [rsp + 0x90]
call fcn.14001a9c0
mov word [rsp + 0x30], 1
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, 0x123
lea rdx, [0x140033020]
lea rcx, [0x140033040]
call fcn.1400201f0
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
je 0x14002119b
mov rcx, qword [rsp + 0x8c0]
call fcn.140020ad0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14002119b
mov dword [rsp + 0x48], 6
mov word [rsp + 0x30], 1
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [0x140033090]
mov r8d, 0x12f
lea rdx, [0x1400330c0]
lea rcx, [0x1400330e0]
call fcn.1400201f0
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
je 0x140021332
mov dword [rsp + 0x44], 0
jmp 0x1400211ba
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x8d0]
cmp dword [rsp + 0x44], eax
jae 0x140021332
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x8c8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140021281
cmp dword [rsp + 0x4c], 0
je 0x140021281
mov dword [rsp + 0x48], 0x57
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x50]
lea r8, [0x140033130]
mov edx, 0x401
lea rcx, [rsp + 0x90]
call fcn.14001a9c0
mov word [rsp + 0x30], 1
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, 0x140
lea rdx, [0x140033148]
lea rcx, [0x140033190]
call fcn.1400201f0
mov dword [rsp + 0x40], 0
jmp 0x140021332
xor r9d, r9d
mov r8d, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x14002132d
mov rcx, qword [rsp + 0x8c0]
call fcn.140022060
mov dword [rsp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x1400331e0]
mov edx, 0xb
lea rcx, [rsp + 0x70]
call fcn.14001a9c0
mov eax, 8
imul rax, rax, 0
lea rcx, [rsp + 0x70]
mov qword [rsp + rax + 0x68], rcx
mov word [rsp + 0x30], 1
mov word [rsp + 0x28], 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, str.CryptHashData_Error
mov r8d, 0x148
lea rdx, [0x1400331f0]
lea rcx, [0x140033210]
call fcn.1400201f0
mov dword [rsp + 0x40], 0
jmp 0x140021332
jmp 0x1400211b0
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x8c0]
call fcn.140022090
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x8a0]
xor rcx, rsp
call fcn.1400257c0
add rsp, 0x8b0
pop rdi
ret