Function at 0x411f40
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4535c0
mov eax, dword fs:[0]
push eax
sub esp, 0x908
mov eax, dword [0x46f7c0]
xor eax, esp
mov dword [esp + 0x904], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46f7c0]
xor eax, esp
push eax
lea eax, [esp + 0x91c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x930]
mov esi, dword [esp + 0x92c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x93c]
mov dword [esp + 0x28], eax
add eax, eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x934], eax
jbe 0x41216b
mov ecx, dword [0x45c7b4]
mov edx, dword [0x45c7b8]
mov eax, dword [0x45c7bc]
xor ebx, ebx
push ebx
push 0x8000000
push 3
push ebx
push 1
mov dword [esp + 0x48], ecx
mov ecx, dword [0x45c7c0]
mov dword [esp + 0x4c], edx
mov dl, byte [0x45c7c4]
push 0x80000000
push esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x60], dl
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
lea edi, [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x412172
push 3
call fcn.00417630
mov ecx, eax
call fcn.00417640
test al, al
je 0x41216b
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0041a1c0
mov edi, eax
push esi
mov dword [esp + 0x934], ebx
call fcn.00411cf0
push eax
lea ecx, [esp + 0x64]
push str.Error_opening_file___s_
push ecx
call fcn.0041bcf0
add esp, 0x1c
mov ebp, 0x10
mov byte [esp + 0x924], 1
cmp dword [edi + 0x14], ebp
jb 0x412076
mov edi, dword [edi]
cmp dword [eax + 0x14], ebp
jb 0x41207d
mov eax, dword [eax]
push edi
push eax
lea edx, [esp + 0x3c]
push 0x45c7e0
push edx
call fcn.0041bcf0
add esp, 0x10
mov byte [esp + 0x924], 2
cmp dword [eax + 0x14], ebp
jb 0x4120a2
mov esi, dword [eax]
jmp 0x4120a4
mov esi, eax
call fcn.00417630
mov edi, eax
mov eax, esi
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4120c3
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x74]
call fcn.00405990
lea eax, [esp + 0x6c]
push eax
push 0x45c7f4
push 0x2e
push 0x45c800
push 3
mov ecx, edi
mov byte [esp + 0x938], 3
call fcn.00419b70
cmp dword [esp + 0x80], ebp
jb 0x41210f
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0043a71e
add esp, 4
cmp dword [esp + 0x48], ebp
jb 0x412122
mov edx, dword [esp + 0x34]
push edx
call fcn.0043a71e
add esp, 4
mov esi, 0xf
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp dword [esp + 0x64], ebp
jb 0x412146
mov eax, dword [esp + 0x50]
push eax
call fcn.0043a71e
add esp, 4
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x9c], ebp
jb 0x41216b
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0043a71e
add esp, 4
xor eax, eax
jmp 0x412768
mov esi, dword [esp + 0x938]
cmp esi, 0x8004
jne 0x412186
mov edi, 1
push 0xf0000000
push edi
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4122c6
push 3
call fcn.00417630
mov ecx, eax
call fcn.00417640
test al, al
je 0x4122b4
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0041a1c0
add esp, 0xc
mov esi, eax
push 0x13
mov edi, 0xf
push str.CryptAcquireContext
lea ecx, [esp + 0x3c]
mov dword [esp + 0x92c], 4
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00405990
mov ebp, 0x10
mov byte [esp + 0x924], 5
cmp dword [esi + 0x14], ebp
jb 0x412211
mov esi, dword [esi]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x41221f
lea eax, [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0x58]
push 0x45c884
push ecx
call fcn.0041bcf0
add esp, 0x10
mov byte [esp + 0x924], 6
cmp dword [eax + 0x14], ebp
jb 0x412242
mov eax, dword [eax]
push eax
push 0x45c898
push 0x3b
push 0x45c8b8
push 3
call fcn.00417630
mov ecx, eax
call fcn.00406b70
cmp dword [esp + 0x64], ebp
jb 0x412270
mov edx, dword [esp + 0x50]
push edx
call fcn.0043a71e
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x48], ebp
jb 0x41228f
mov eax, dword [esp + 0x34]
push eax
call fcn.0043a71e
add esp, 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp dword [esp + 0x9c], ebp
jb 0x4122b4
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0043a71e
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x412768
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x412411
push 3
call fcn.00417630
mov ecx, eax
call fcn.00417640
test al, al
je 0x4123f3
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x90]
push edx
call fcn.0041a1c0
add esp, 0xc
mov esi, eax
mov edi, 0xf
push edi
push 0x45c928
lea ecx, [esp + 0x3c]
mov dword [esp + 0x92c], 7
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00405990
mov ebp, 0x10
mov byte [esp + 0x924], 8
cmp dword [esi + 0x14], ebp
jb 0x412350
mov esi, dword [esi]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x41235e
lea eax, [esp + 0x34]
push esi
push eax
lea eax, [esp + 0x58]
push 0x45c8a4
push eax
call fcn.0041bcf0
add esp, 0x10
mov byte [esp + 0x924], 9
cmp dword [eax + 0x14], ebp
jb 0x412381
mov eax, dword [eax]
push eax
push 0x45c938
push 0x41
push 0x45c958
push 3
call fcn.00417630
mov ecx, eax
call fcn.00406b70
cmp dword [esp + 0x64], ebp
jb 0x4123af
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0043a71e
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x48], ebp
jb 0x4123ce
mov edx, dword [esp + 0x34]
push edx
call fcn.0043a71e
add esp, 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp dword [esp + 0x9c], ebp
jb 0x4123f3
mov eax, dword [esp + 0x88]
push eax
call fcn.0043a71e
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x1c]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x412768
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x24]
push eax
push 0x800
lea ecx, [esp + 0x124]
push ecx
push edx
call edi
mov esi, eax
mov ebp, 0x10
cmp esi, ebx
je 0x4125a2
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4125a2
mov ecx, dword [esp + 0x18]
push ebx
push eax
lea eax, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41248a
mov ecx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x24]
push edx
push 0x800
lea eax, [esp + 0x124]
push eax
push ecx
call edi
mov esi, eax
cmp esi, ebx
jne 0x412440
jmp 0x4125a2
push 3
call fcn.00417630
mov ecx, eax
call fcn.00417640
test al, al
je 0x4125a0
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0xe4]
push edx
call fcn.0041a1c0
add esp, 0xc
mov esi, eax
push 0x45c9c8
lea ecx, [esp + 0x8c]
mov dword [esp + 0x928], 0xa
call fcn.00406ab0
mov byte [esp + 0x924], 0xb
cmp dword [esi + 0x14], ebp
jb 0x4124e5
mov esi, dword [esi]
cmp dword [eax + 0x14], ebp
jb 0x4124ec
mov eax, dword [eax]
push esi
push eax
lea eax, [esp + 0x58]
push 0x45c944
push eax
call fcn.0041bcf0
add esp, 0x10
mov byte [esp + 0x924], 0xc
cmp dword [eax + 0x14], ebp
jb 0x41250f
mov eax, dword [eax]
push eax
push 0x45c9d8
push 0x4c
push 0x45c9f8
push 3
call fcn.00417630
mov ecx, eax
call fcn.00406b70
cmp dword [esp + 0x64], ebp
jb 0x41253d
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0043a71e
add esp, 4
mov esi, 0xf
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x9c], ebp
jb 0x412567
mov edx, dword [esp + 0x88]
push edx
call fcn.0043a71e
add esp, 4
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov dword [esp + 0x924], 0xffffffff
cmp dword [esp + 0xf0], ebp
jb 0x4125a0
mov eax, dword [esp + 0xdc]
push eax
call fcn.0043a71e
add esp, 4
xor esi, esi
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
cmp esi, ebx
je 0x412744
mov ecx, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x100]
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x412613
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
xor eax, eax
mov byte [ebp], bl
cmp edi, ebx
jbe 0x412607
movzx ecx, byte [esp + eax + 0xf8]
mov edx, ecx
shr edx, 4
mov dl, byte [esp + edx + 0x34]
and ecx, 0xf
mov cl, byte [esp + ecx + 0x34]
mov byte [ebp + eax*2], dl
mov byte [ebp + eax*2 + 1], cl
inc eax
cmp eax, edi
jb 0x4125e2
mov edx, dword [esp + 0x30]
mov byte [edx + ebp], bl
jmp 0x412744
push 3
call fcn.00417630
mov ecx, eax
call fcn.00417640
test al, al
je 0x412742
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.0041a1c0
add esp, 0xc
mov esi, eax
push 0x11
mov edi, 0xf
push 0x45c9e4
lea ecx, [esp + 0x74]
mov dword [esp + 0x92c], 0xd
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
call fcn.00405990
mov byte [esp + 0x924], 0xe
cmp dword [esi + 0x14], ebp
jb 0x412684
mov esi, dword [esi]
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], ebp
jae 0x412695
lea eax, [esp + 0x6c]
push esi
push eax
lea ecx, [esp + 0xac]
push 0x45ca68
push ecx
call fcn.0041bcf0
add esp, 0x10
mov byte [esp + 0x924], 0xf
cmp dword [eax + 0x14], ebp
jb 0x4126bb
mov eax, dword [eax]
push eax
push str.getCheckSum
push 0x5e
push 0x45ca88
push 3
call fcn.00417630
mov ecx, eax
call fcn.00406b70
cmp dword [esp + 0xb8], ebp
jb 0x4126ef
mov edx, dword [esp + 0xa4]
push edx
call fcn.0043a71e
add esp, 4
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
cmp dword [esp + 0x80], ebp
jb 0x41271a
mov eax, dword [esp + 0x6c]
push eax
call fcn.0043a71e
add esp, 4
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
cmp dword [esp + 0xd4], ebp
jb 0x412742
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.0043a71e
add esp, 4
xor esi, esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x1c]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x91c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x904]
xor ecx, esp
call fcn.0043b8c7
add esp, 0x914
ret