Function at 0x41a180
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d9f0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x46b074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x30], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
cmp dword [eax + 0x34], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], ebx
je 0x41a39c
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x41a39c
mov eax, 0x51eb851f
mov dword [ebp - 0x34], 0
mul ecx
mov eax, edx
shr eax, 6
add eax, 1
mov dword [ebp - 0x48], eax
je 0x41a39c
xor esi, esi
mov dword [ebp - 0x38], esi
nop word [eax + eax]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp eax, esi
jb 0x41a3bc
sub eax, esi
mov ecx, 0xc8
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x41a243
mov eax, dword [ebx]
push ecx
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00409ab0
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0x100
jb 0x41a275
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0x100
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + 0x100], 0
jmp 0x41a2c5
mov ecx, dword [ebp - 0x18]
mov edi, 0x100
mov eax, ecx
sub edi, ebx
sub eax, ebx
cmp edi, eax
ja 0x41a2af
cmp ecx, 0x10
mov dword [ebp - 0x1c], 0x100
lea esi, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
push edi
add esi, ebx
push 0
push esi
call fcn.0043a370
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x38]
jmp 0x41a2c2
push 0
push edi
mov byte [ebp - 0x3c], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x3c]
push edi
call fcn.00404a30
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], ebx
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x41a358
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x44]
push 0x100
push edx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x41a358
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.004091a0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x41a33b
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41a331
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a3c1
push edx
push ecx
call fcn.00422d4e
add esp, 8
mov ecx, dword [ebp - 0x34]
add esi, 0xc8
inc ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ecx
cmp ecx, dword [ebp - 0x48]
jae 0x41a39c
mov ebx, dword [ebp - 0x4c]
jmp 0x41a210
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x41a362
mov eax, dword [edi]
mov dword [edi + 0x10], 0
mov byte [eax], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x41a39c
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41a392
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a3c1
push edx
push ecx
call fcn.00422d4e
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422d0d
mov esp, ebp
pop ebp
ret 0xc
call fcn.00403600
call fcn.0043d6f9
int3