Function at 0x4376a8
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push 0x4c
mov eax, 0x45b47e
call fcn.00438c9e
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
or dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x4c], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x4d], al
test edx, edx
je 0x437969
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x14]
jne 0x4376fc
sub ecx, esi
sar ecx, 1
je 0x437967
lea eax, [ebp - 0x3c]
push eax
push edx
call fcn.004373d7
mov edi, dword [ebp - 0x3c]
pop ecx
pop ecx
test al, al
je 0x43784e
mov eax, dword [ebp - 0x38]
sub eax, edi
mov dword [ebp - 0x58], eax
cmp eax, 0x14
jne 0x437762
push 0xf0000000
push 1
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x43784e
lea eax, [ebp - 0x1c]
push eax
xor eax, eax
push eax
push eax
push 0x8004
jmp 0x4377b2
cmp eax, 0x20
jne 0x43784e
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor eax, eax
push 0xf0000000
push 0x18
push 0x4063e8
push eax
lea eax, [ebp - 0x18]
push eax
call esi
test eax, eax
jne 0x4377a5
push 0xf0000000
push 0x18
push 0x406458
push eax
lea eax, [ebp - 0x18]
push eax
call esi
test eax, eax
je 0x43784e
lea eax, [ebp - 0x1c]
push eax
xor eax, eax
push eax
push eax
push 0x800c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x43784e
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
push dword [ebp - 0x4c]
call dword [0x460968]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
je 0x43784e
xor eax, eax
lea ecx, [ebp - 0x30]
mov esi, 0x4000
mov dword [ebp - 0x30], eax
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.004341ae
xor eax, eax
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push esi
mov esi, dword [ebp - 0x30]
push esi
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x437889
test esi, esi
je 0x43784e
mov eax, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x4c], eax
cmp eax, 0x1000
jb 0x437845
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x14]
pop ecx
pop ecx
push eax
push esi
call fcn.00438c1d
pop ecx
pop ecx
xor eax, eax
jmp 0x43796c
xor ecx, ecx
push ecx
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x437931
xor eax, eax
push eax
lea eax, [ebp - 0x24]
push eax
push 0x4000
push esi
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x437931
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x437855
test esi, esi
je 0x4378c4
mov eax, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x4378bb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x4c]
pop ecx
pop ecx
push eax
push esi
call fcn.00438c1d
pop ecx
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x20]
xor ecx, ecx
push ecx
push eax
push ecx
push 2
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x43784e
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x20], eax
jne 0x43784e
lea eax, [ebp - 0x4e]
xor ebx, ebx
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x4e], bl
call fcn.0043441a
push ebx
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x20]
push eax
push ebx
push 2
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x43784e
push dword [ebp - 0x20]
push edi
push ebx
call fcn.0043a5eb
add esp, 0xc
test eax, eax
sete byte [ebp - 0x4d]
jmp 0x43784e
test esi, esi
je 0x43784e
mov eax, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x437845
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x4c]
jmp 0x437843
xor eax, eax
mov byte [ebp - 0x4d], al
cmp dword [ebp - 0x18], 0
je 0x43797c
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x1c], 0
je 0x43798b
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x54]
cmp eax, 0xffffffff
je 0x43799a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4379ce
mov eax, dword [ebp - 0x40]
sub eax, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x4379c5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x4c]
pop ecx
pop ecx
push eax
push ebx
call fcn.00438c1d
pop ecx
pop ecx
test edi, edi
je 0x437a02
mov eax, dword [ebp - 0x34]
sub eax, edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x4379f9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x4c]
pop ecx
pop ecx
push eax
push edi
call fcn.00438c1d
pop ecx
pop ecx
mov al, byte [ebp - 0x4d]
call fcn.00438c4d
ret