Function at 0x1127910
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11472d0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x115f604]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x5c], 0x8004
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0x1c]
cmp edi, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], eax
jne 0x1127972
mov edi, 0x1069c74
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1127977
mov ebx, dword [ebp + 0x18]
sub eax, edx
lea esi, [eax + ebx]
xor eax, eax
cmp esi, eax
jne 0x1127999
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], eax
jmp 0x11279c4
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x44], eax
jne 0x11279be
push 0x114de9c
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0x8007000e
call fcn.01083d3b
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], esi
cmp dword [ebp + 0x14], 0
mov byte [ebp - 4], 3
je 0x1127cc6
test ebx, ebx
je 0x1127cc6
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x1127cc6
mov eax, edi
lea edx, [eax + 1]
jmp 0x11279f0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x11279f0
mov esi, dword [ebp - 0x44]
sub eax, edx
push eax
push edi
push esi
call fcn.01086710
mov eax, edi
add esp, 0xc
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1127a10
mov edx, dword [ebp + 0x14]
sub eax, ecx
push ebx
push edx
add esi, eax
push esi
call fcn.01086710
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x24]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
push esi
push eax
call fcn.011276f0
test eax, eax
jne 0x1127a5a
call fcn.01071a70
mov esi, eax
jmp 0x1127ccb
mov edx, dword [ebp + 0x28]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
push edx
push esi
push edi
push ecx
push eax
call fcn.011273d0
mov esi, eax
test esi, esi
jl 0x1127ccb
cmp dword [ebp - 0x18], 0
jne 0x1127a90
mov esi, 0x8000ffff
jmp 0x1127ccb
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x1127a99
mov eax, edi
mov edi, dword [ebp + 0x2c]
push 1
push eax
mov ecx, edi
call fcn.010a03e0
cmp dword [edi + 4], 0
jne 0x1127ab6
mov esi, 0x8007000e
jmp 0x1127ccb
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebx]
lea edx, [ebp - 0x10]
push edx
push 0
push eax
push 0x8009
push ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1127ae4
call fcn.01071a70
mov esi, eax
test esi, esi
jl 0x1127ccb
push 0
lea eax, [ebp - 0x5c]
push eax
push 5
lea ecx, [ebp - 0x10]
call fcn.010d3d90
mov esi, eax
test esi, esi
jl 0x1127ccb
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
push 0
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.010d3d60
mov esi, eax
test esi, esi
jl 0x1127ccb
mov dword [ebp + 0x14], 0
push 1
mov esi, 0x14
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.01125490
push 1
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.01125490
mov eax, dword [edi]
mov ebx, dword [ebp - 0x24]
sub eax, ebx
cmp eax, esi
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], esi
jae 0x1127b58
mov dword [ebp + 0x18], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [ebp + 0x14]
push ecx
push 0
push edx
push 0x8009
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1127b86
call fcn.01071a70
mov esi, eax
test esi, esi
jl 0x1127cac
push 0
lea eax, [ebp - 0x5c]
push eax
push 5
lea ecx, [ebp + 0x14]
call fcn.010d3d90
mov esi, eax
test esi, esi
jl 0x1127cac
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp + 0x1c]
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.010d3e00
mov esi, eax
test esi, esi
jl 0x1127cac
lea ecx, [ebp - 0x10]
call fcn.011270a0
mov esi, eax
test esi, esi
jl 0x1127cac
mov edx, dword [ebp + 0x1c]
push 0
push edx
push edi
lea ecx, [ebp + 0x14]
call fcn.010d3d60
mov esi, eax
test esi, esi
jl 0x1127cac
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
push 0
push eax
push ecx
lea ecx, [ebp + 0x14]
call fcn.010d3d60
mov esi, eax
test esi, esi
jl 0x1127cac
mov edi, dword [ebp - 0x38]
lea edx, [ebp + 0x1c]
push edx
push edi
lea ecx, [ebp + 0x14]
call fcn.010d3e00
mov esi, eax
test esi, esi
jl 0x1127cac
mov eax, dword [ebp + 0x18]
push eax
push edi
mov edi, dword [ebp + 0x2c]
mov ecx, dword [edi + 4]
add ecx, ebx
push ecx
call fcn.01086710
add ebx, dword [ebp + 0x18]
add esp, 0xc
cmp ebx, dword [edi]
mov dword [ebp - 0x24], ebx
je 0x1127cac
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push 0
push edx
push 0x8009
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1127c65
call fcn.01071a70
mov esi, eax
test esi, esi
jl 0x1127cac
push 0
lea eax, [ebp - 0x5c]
push eax
push 5
lea ecx, [ebp - 0x10]
call fcn.010d3d90
mov esi, eax
test esi, esi
jl 0x1127cac
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x2c]
push 0
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.010d3d60
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.010975a0
lea ecx, [ebp - 0x30]
call fcn.010975a0
lea ecx, [ebp + 0x14]
call fcn.010d43a0
jmp 0x1127b12
lea ecx, [ebp - 0x3c]
call fcn.010975a0
lea ecx, [ebp - 0x30]
call fcn.010975a0
lea ecx, [ebp + 0x14]
call fcn.010d43a0
jmp 0x1127ccb
mov esi, 0x80070057
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1127cd9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.01083924
mov eax, dword [ebp - 0x14]
add esp, 4
test eax, eax
je 0x1127cfa
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1127d08
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28