Function at 0x414ab6
Capabilities:
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445500
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4571dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 0x20], 0
mov dword [ebp - 0x14], 1
je 0x414b02
mov eax, dword [ebp + 8]
add eax, 0xffff99ff
cmp eax, 0xe
ja case.0x414aaf.26114
movzx eax, byte [eax + 0x414cf4]
jmp dword [eax*4 + 0x414ce4]
mov esi, 0xc
mov ebx, 0x380000
jmp 0x414ada
mov ebx, 0x800000
jmp 0x414ad5
mov ebx, 0xc00000
jmp 0x414ad5
mov ebx, 0x1000000
mov esi, 0x18
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push esi
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
call edi
test eax, eax
jne 0x414b18
push 8
push esi
xor esi, esi
push esi
push esi
lea edx, [ebp - 0x20]
push edx
call edi
test eax, eax
jne 0x414b1a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
xor esi, esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x414b35
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24]
push esi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x414b4f
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push ebx
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x414b6d
mov dword [ebp - 0x14], esi
mov edx, dword [ebp - 0x1c]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
lea ecx, [ebp - 0x28]
push ecx
push 3
push edx
mov dword [ebp - 0x28], 1
call esi
xor ebx, ebx
test eax, eax
jne 0x414b90
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x1c]
push ebx
push eax
push 1
push ecx
call esi
test eax, eax
jne 0x414ba4
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x1c]
push ebx
lea edx, [ebp + 0x10]
push edx
push 4
push eax
call esi
cmp eax, ebx
jne 0x414bb8
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp + 0x24]
push 0x186a0
mov dword [ebp - 0x18], edi
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
call fcn.00418165
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov ecx, 0x186a0
jmp 0x414be0
cmp ecx, ebx
je 0x414beb
mov byte [eax], 0
inc eax
dec ecx
jmp 0x414be0
mov ecx, dword [ebp + 0x20]
push edi
push ecx
push esi
call fcn.0042a620
mov eax, dword [ebp - 0x1c]
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
push esi
push ebx
push 1
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
mov dword [edi + 0xc], ecx
cmp eax, ebx
jne 0x414c1f
mov dword [edi + 0xc], ebx
mov dword [ebp - 0x14], ebx
mov eax, 0x186a0
sub eax, ecx
add ecx, esi
cmp eax, ebx
je 0x414c33
mov byte [ecx], 0
inc ecx
dec eax
jmp 0x414c28
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x414c46
push eax
call fcn.00418170
add esp, 4
mov dword [edi + 8], ebx
mov ecx, dword [ebp - 0x18]
add ecx, 2
push ecx
call fcn.00418165
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [edi + 8], eax
add ecx, 2
mov edi, edi
cmp ecx, ebx
je 0x414c6b
mov byte [eax], 0
inc eax
dec ecx
jmp 0x414c60
mov edx, dword [ebp - 0x18]
mov eax, dword [edi + 8]
push edx
push esi
push eax
call fcn.0042a620
add esp, 0xc
jmp 0x414c89
cmp esi, ebx
je 0x414c96
push esi
call fcn.00418170
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x414ca7
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x414cb8
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x20]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x414cca
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20