Function at 0x402f10
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
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
mov dword [ebp - 0x28], 0
mov eax, 0x42e2c3
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402f75
push ebx
call fcn.0040f491
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call fcn.004032a1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push eax
call fcn.004032bb
mov dword [ebp - 0x30], eax
lea eax, [ebp - 4]
push eax
call fcn.004032bb
mov dword [ebp - 0x34], eax
push 0xf0000000
push 1
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.004032d7
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x403015
lea eax, [ebp - 8]
push eax
call fcn.004032a1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push eax
call fcn.004032bb
mov dword [ebp - 0x30], eax
lea eax, [ebp - 4]
push eax
call fcn.004032bb
mov dword [ebp - 0x34], eax
push 0
push 1
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.004032d7
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x403015
mov eax, 0x42e37c
jmp 0x403239
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x403031
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040f48b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403042
push ebx
call fcn.0040f491
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x403062
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040f48b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403073
push ebx
call fcn.0040f491
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
push 0
push 2
push 8
call fcn.00404384
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4030a5
push ebx
call fcn.0040f491
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404649
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.00410920
add esp, 0x10
mov dword [ebp - 0x30], eax
push dword [ebp - 0xc]
push dword [ebp - 0x30]
push dword [ebp - 0x14]
mov ecx, 3
call fcn.00402798
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4030f8
push ebx
call fcn.0040f491
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40310c
push ebx
call fcn.0040f491
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.004046db
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00404649
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004032a1
push eax
push 1
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 8]
call fcn.00404702
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x403161
mov eax, 0x42e37c
jmp 0x403239
push dword [ebp - 0x10]
push dword [ebp - 0x10]
mov ecx, 2
call fcn.00402798
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40318b
push ebx
call fcn.0040f491
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404649
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00404649
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404a8a
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004032a1
push eax
push dword [ebp - 0x2c]
push 0
push 1
push 0
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
nop
nop
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4031f3
mov eax, 0x42e37c
jmp 0x403239
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
call fcn.004045ab
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x403216
push ebx
call fcn.0040f491
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x403234
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040f48b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403239
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40324a
push ebx
call fcn.0040f491
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40325a
push ebx
call fcn.0040f491
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40326a
push ebx
call fcn.0040f491
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40327a
push ebx
call fcn.0040f491
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40328a
push ebx
call fcn.0040f491
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40329a
push ebx
call fcn.0040f491
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc