Function at 0x41da40
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0041d69c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41daaf
mov eax, 0x45134f
jmp 0x41dd9a
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x1bc
call fcn.00427a00
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41dae4
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x28], esp
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41db05
add eax, 8
push eax
push 8
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x41db34
push 0xd4
push 0x40114a0
push 6
call fcn.00426cc5
add esp, 0xc
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push 0x80000005
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x41db59
mov eax, 0x45134f
push eax
push 3
mov ebx, 0x19c
call fcn.00427b30
add esp, 0x28
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp ecx, 0x80000101
jne 0x41db8d
and eax, 0xff
jmp 0x41dbe2
cmp ecx, 0x80000201
jne 0x41db98
cwde
jmp 0x41dbe2
cmp ecx, 0x80000301
je 0x41dbe2
cmp ecx, 0x80000401
je 0x41dbe2
mov dword [ebp - 0x38], eax
cmp ecx, 0x80000501
je 0x41dbd2
cmp ecx, 0x80000601
je 0x41dbd7
push 0x123
push 0x40114a0
push 2
call fcn.00426cc5
add esp, 0xc
fld dword [ebp - 0x38]
jmp 0x41dbdd
mov dword [ebp - 0x34], edx
fld qword [ebp - 0x38]
call fcn.00401f8d
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fdiv qword [0x476389]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00401f8d
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41dc16
mov eax, 0x45134f
jmp 0x41dd9a
push 0x80000005
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x41dc2b
mov eax, 0x45134f
push eax
push 1
mov ebx, 0x194
call fcn.004282f0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x2c], eax
je 0x41dc57
mov eax, 0x45134f
jmp 0x41dd9a
push dword [ebp + 0xc]
call fcn.00418858
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41dc76
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x10], 0
je 0x41dc9c
mov dword [ebp - 0x24], 0x20
jmp 0x41dca3
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41dcb4
add eax, 8
push eax
push dword [ebp - 0x24]
push 1
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x41dceb
push 0x338
push 0x40114a0
push 6
call fcn.00426cc5
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41dd02
mov eax, 0x45134f
jmp 0x41dd9a
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41dd1f
mov eax, 0x45134f
push eax
push 2
mov ebx, 0x1a0
call fcn.00428300
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41dd49
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0
je 0x41dd7b
lea eax, [ebp - 0x18]
push eax
call fcn.00418858
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41dd77
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41dd95
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00426cb9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x41dd9a
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41ddab
push ebx
call fcn.00426cbf
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41ddbb
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10