Function at 0x429330
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push 0x80
mov eax, 0x43378f
call fcn.0042fed0
mov ebx, ecx
mov dword [ebp - 0x6c], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
call fcn.0042428a
and dword [ebp - 0x64], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x70], eax
jb 0x429384
mov ecx, dword [esi]
jmp 0x429386
mov ecx, esi
lea edx, [ebp - 0x8c]
call fcn.004266ba
mov edi, dword [ebp - 0x8c]
mov esi, eax
test esi, esi
js 0x429535
mov esi, dword [ebp - 0x88]
lea ecx, [ebp - 0x20]
and dword [ebp - 0x68], 0
sub esi, edi
mov dword [ebp - 0x74], esi
call fcn.004231a5
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 1
push eax
push ecx
lea eax, [ebx + 0x58]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042324f
cmp dword [ebp - 0x68], 0xffffffff
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
sete bl
call fcn.0042329e
test bl, bl
je 0x42947d
mov eax, dword [ebp - 0x6c]
xor edx, edx
mov dword [ebp - 0x68], edx
mov ecx, dword [eax + 0x70]
call fcn.004220e7
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x429409
mov esi, 0x80070032
jmp 0x429535
mov ebx, dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push 2
push eax
push edx
push edx
push esi
push edi
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [sym.imp.ncrypt.dll_NCryptSignHash]
mov esi, eax
test esi, esi
je 0x42943b
jle 0x429535
movzx esi, si
or esi, 0x80070000
jmp 0x429535
mov esi, dword [ebp - 0x68]
push esi
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x5c], eax
pop ecx
test eax, eax
jne 0x429456
mov esi, 0x8007000e
jmp 0x429535
push 2
lea eax, [ebp - 0x68]
mov dword [ebp - 0x60], esi
push eax
push esi
push dword [ebp - 0x5c]
lea eax, [ebp - 0x6c]
push dword [ebp - 0x74]
push edi
push eax
push ebx
call dword [sym.imp.ncrypt.dll_NCryptSignHash]
mov esi, eax
test esi, esi
jne 0x429427
jmp 0x42951b
mov ebx, dword [ebp - 0x70]
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x6c]
push 0
push 0
push dword [eax + 0x70]
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4294a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jmp 0x429427
xor ebx, ebx
push ebx
push edi
push 2
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x429499
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push 2
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
je 0x429499
push dword [ebp - 0x60]
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x5c], eax
pop ecx
test eax, eax
je 0x42944c
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x5c]
push ebx
push ebx
push 2
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
je 0x429499
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x42951e
mov edx, dword [ebp - 0x5c]
lea esi, [eax - 1]
add esi, edx
cmp edx, esi
jae 0x429521
mov al, byte [esi]
mov cl, byte [edx]
mov byte [edx], al
inc edx
mov byte [esi], cl
dec esi
cmp edx, esi
jb 0x42950d
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0x14], 8
jb 0x42952c
mov ecx, dword [ecx]
push edx
push eax
call 0x427143
mov esi, eax
cmp dword [ebp - 0x64], 0
je 0x429544
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x429552
push eax
call sub.msvcrt.dll_free
pop ecx
test esi, esi
jns 0x429585
push 0x405134
lea ecx, [ebp - 0x2c]
call fcn.0040c051
push dword [ebp - 0x7c]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push esi
push eax
lea ecx, [ebp - 0x58]
call fcn.00418a71
push 0x4380b8
lea eax, [ebp - 0x58]
push eax
call sub.msvcrt.dll__CxxThrowException
test edi, edi
je 0x429591
push edi
call dword [sym.imp.MFC42.dll_operatordelete]
pop ecx
call fcn.0042fe70
ret 8