Function at 0x41da81
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.0041d6dd
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41daf0
mov eax, 0x45134f
jmp 0x41dddb
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x1bc
call fcn.00427600
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41db25
push ebx
call fcn.004268af
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 0x41db46
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 0x41db75
push 0xd4
push 0x40114a0
push 6
call fcn.004268b5
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 0x41db9a
mov eax, 0x45134f
push eax
push 3
mov ebx, 0x19c
call fcn.00427730
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 0x41dbce
and eax, 0xff
jmp 0x41dc23
cmp ecx, 0x80000201
jne 0x41dbd9
cwde
jmp 0x41dc23
cmp ecx, 0x80000301
je 0x41dc23
cmp ecx, 0x80000401
je 0x41dc23
mov dword [ebp - 0x38], eax
cmp ecx, 0x80000501
je 0x41dc13
cmp ecx, 0x80000601
je 0x41dc18
push 0x123
push 0x40114a0
push 2
call fcn.004268b5
add esp, 0xc
fld dword [ebp - 0x38]
jmp 0x41dc1e
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 [0x4762cc]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00401f8d
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41dc57
mov eax, 0x45134f
jmp 0x41dddb
push 0x80000005
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x41dc6c
mov eax, 0x45134f
push eax
push 1
mov ebx, 0x194
call fcn.00427ef0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x2c], eax
je 0x41dc98
mov eax, 0x45134f
jmp 0x41dddb
push dword [ebp + 0xc]
call fcn.00418899
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41dcb7
push ebx
call fcn.004268af
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 0x41dcdd
mov dword [ebp - 0x24], 0x20
jmp 0x41dce4
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 0x41dcf5
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 0x41dd2c
push 0x338
push 0x40114a0
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41dd43
mov eax, 0x45134f
jmp 0x41dddb
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41dd60
mov eax, 0x45134f
push eax
push 2
mov ebx, 0x1a0
call fcn.00427f00
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41dd8a
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0
je 0x41ddbc
lea eax, [ebp - 0x18]
push eax
call fcn.00418899
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41ddb8
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41ddd6
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004268a9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x41dddb
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41ddec
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41ddfc
push ebx
call fcn.004268af
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10