Function at 0x41b426
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.0041b082
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41b495
mov eax, 0x4503f8
jmp 0x41b780
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x1bc
call fcn.0042d8d0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41b4ca
push ebx
call fcn.0042c749
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 0x41b4eb
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 0x41b51a
push 0xd4
push 0x40114a0
push 6
call fcn.0042c74f
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 0x41b53f
mov eax, 0x4503f8
push eax
push 3
mov ebx, 0x19c
call fcn.0042d730
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 0x41b573
and eax, 0xff
jmp 0x41b5c8
cmp ecx, 0x80000201
jne 0x41b57e
cwde
jmp 0x41b5c8
cmp ecx, 0x80000301
je 0x41b5c8
cmp ecx, 0x80000401
je 0x41b5c8
mov dword [ebp - 0x38], eax
cmp ecx, 0x80000501
je 0x41b5b8
cmp ecx, 0x80000601
je 0x41b5bd
push 0x123
push 0x40114a0
push 2
call fcn.0042c74f
add esp, 0xc
fld dword [ebp - 0x38]
jmp 0x41b5c3
mov dword [ebp - 0x34], edx
fld qword [ebp - 0x38]
call fcn.00403126
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fdiv qword [0x451c36]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00403126
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41b5fc
mov eax, 0x4503f8
jmp 0x41b780
push 0x80000005
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x41b611
mov eax, 0x4503f8
push eax
push 1
mov ebx, 0x194
call fcn.0042e070
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x2c], eax
je 0x41b63d
mov eax, 0x4503f8
jmp 0x41b780
push dword [ebp + 0xc]
call fcn.0041623e
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41b65c
push ebx
call fcn.0042c749
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 0x41b682
mov dword [ebp - 0x24], 0x20
jmp 0x41b689
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 0x41b69a
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 0x41b6d1
push 0x338
push 0x40114a0
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41b6e8
mov eax, 0x4503f8
jmp 0x41b780
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41b705
mov eax, 0x4503f8
push eax
push 2
mov ebx, 0x1a0
call fcn.0042e080
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41b72f
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0
je 0x41b761
lea eax, [ebp - 0x18]
push eax
call fcn.0041623e
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41b75d
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41b77b
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0042c743
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x41b780
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41b791
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41b7a1
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10