Function at 0x417b44
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.004177a0
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x417bb3
mov eax, 0x45c3a6
jmp 0x417e9e
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x1bc
call fcn.004286c0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x417be8
push ebx
call fcn.00427715
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 0x417c09
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 0x417c38
push 0xd4
push 0x40114a0
push 6
call fcn.00427721
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 0x417c5d
mov eax, 0x45c3a6
push eax
push 3
mov ebx, 0x19c
call fcn.004287f0
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 0x417c91
and eax, 0xff
jmp 0x417ce6
cmp ecx, 0x80000201
jne 0x417c9c
cwde
jmp 0x417ce6
cmp ecx, 0x80000301
je 0x417ce6
cmp ecx, 0x80000401
je 0x417ce6
mov dword [ebp - 0x38], eax
cmp ecx, 0x80000501
je 0x417cd6
cmp ecx, 0x80000601
je 0x417cdb
push 0x123
push 0x40114a0
push 2
call fcn.00427721
add esp, 0xc
fld dword [ebp - 0x38]
jmp 0x417ce1
mov dword [ebp - 0x34], edx
fld qword [ebp - 0x38]
call fcn.00402a85
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fdiv qword [0x45dafb]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00402a85
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x417d1a
mov eax, 0x45c3a6
jmp 0x417e9e
push 0x80000005
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x417d2f
mov eax, 0x45c3a6
push eax
push 1
mov ebx, 0x194
call fcn.00428e50
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x2c], eax
je 0x417d5b
mov eax, 0x45c3a6
jmp 0x417e9e
push dword [ebp + 0xc]
call fcn.0041295c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x417d7a
push ebx
call fcn.00427715
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 0x417da0
mov dword [ebp - 0x24], 0x20
jmp 0x417da7
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 0x417db8
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 0x417def
push 0x338
push 0x40114a0
push 6
call fcn.00427721
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x417e06
mov eax, 0x45c3a6
jmp 0x417e9e
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x417e23
mov eax, 0x45c3a6
push eax
push 2
mov ebx, 0x1a0
call fcn.00428e60
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x417e4d
push ebx
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0
je 0x417e7f
lea eax, [ebp - 0x18]
push eax
call fcn.0041295c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x417e7b
push ebx
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x417e99
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0042770f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x417e9e
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x417eaf
push ebx
call fcn.00427715
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x417ebf
push ebx
call fcn.00427715
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10