Function at 0x140032030
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov rax, qword [0x1400537d8]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rsi, r8
mov r13, rdx
mov r14, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
and qword [rsp + 0x78], 0
movups xmmword [rsp + 0x50], xmm0
xor edx, edx
call fcn.14002adf8
mov r12, rax
and qword [rsp + 0x60], 0
cmp qword [r13 + 0x18], 8
jb 0x140032098
mov rcx, qword [r13]
jmp 0x14003209b
mov rcx, r13
lea rdx, [rsp + 0x68]
call fcn.14002e380
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x1400322fb
mov r15d, dword [rsp + 0x70]
sub r15d, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x70]
call fcn.1400297a0
nop
lea rdx, [r14 + 0x80]
lea r9, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140029904
nop
lea rcx, [rbp - 0x70]
call fcn.14002998c
nop
mov edx, dword [r14 + 0xa8]
cmp dword [rsp + 0x40], 0xffffffff
jne 0x1400321de
and dword [rsp + 0x40], 0
mov ecx, edx
call fcn.140027e9c
mov qword [rbp - 0x70], rax
test rax, rax
jne 0x140032126
mov ebx, 0x80070032
jmp 0x1400322fb
mov ebx, 2
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9d, r15d
mov r8, qword [rsp + 0x68]
lea rdx, [rbp - 0x70]
mov rcx, r12
call qword [sym.imp.ncrypt.dll_NCryptSignHash]
nop dword [rax + rax]
test eax, eax
je 0x140032176
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400322fb
mov r14d, dword [rsp + 0x40]
mov ecx, r14d
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x140032197
mov ebx, 0x8007000e
jmp 0x1400322fb
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8, qword [rsp + 0x68]
lea rdx, [rbp - 0x70]
mov rcx, r12
call qword [sym.imp.ncrypt.dll_NCryptSignHash]
nop dword [rax + rax]
test eax, eax
je 0x1400322d9
jmp 0x140032163
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
nop dword [rax + rax]
test eax, eax
jne 0x140032212
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140032163
xor r9d, r9d
mov r8, qword [rsp + 0x68]
lea ebx, [r9 + 2]
mov edx, ebx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
nop dword [rax + rax]
test eax, eax
je 0x140032201
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptSignHashA]
nop dword [rax + rax]
test eax, eax
je 0x140032201
mov ecx, dword [rsp + 0x50]
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14003218d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptSignHashA]
nop dword [rax + rax]
test eax, eax
je 0x140032201
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400322d9
mov rdx, qword [rsp + 0x58]
lea r8, [rdx - 1]
add r8, rax
jmp 0x1400322d4
mov cl, byte [rdx]
mov al, byte [r8]
mov byte [rdx], al
mov byte [r8], cl
inc rdx
dec r8
cmp rdx, r8
jb 0x1400322c4
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x70], xmm0
cmp qword [rsi + 0x18], 8
jb 0x1400322ed
mov rsi, qword [rsi]
lea rdx, [rbp - 0x70]
mov rcx, rsi
call fcn.14002f054
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140032311
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140032320
call sub.msvcrt.dll_free
test ebx, ebx
js 0x14003235d
cmp qword [rsp + 0x68], 0
je 0x14003233d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.MFC42.dll_CListCtrl::SetColumnOrderArray]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140039fa0
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.Error:_Digest_sign.
lea rcx, [rbp - 0x70]
call fcn.1400094c0
nop
mov r9, r13
mov r8d, ebx
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x40]
call fcn.14000fc78
lea rdx, [0x1400503c8]
lea rcx, [rbp - 0x40]
call sub.msvcrt.dll__CxxThrowException
int3