Function at 0x40596d
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, 0x4282cb
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4059d2
push ebx
call fcn.0040a7d0
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call fcn.00405cfe
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push eax
call fcn.00405d18
mov dword [ebp - 0x30], eax
lea eax, [ebp - 4]
push eax
call fcn.00405d18
mov dword [ebp - 0x34], eax
push 0xf0000000
push 1
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00405d34
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x405a72
lea eax, [ebp - 8]
push eax
call fcn.00405cfe
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push eax
call fcn.00405d18
mov dword [ebp - 0x30], eax
lea eax, [ebp - 4]
push eax
call fcn.00405d18
mov dword [ebp - 0x34], eax
push 0
push 1
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00405d34
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x405a72
mov eax, 0x4282b0
jmp 0x405c96
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x405a8e
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040a7ca
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 0x405a9f
push ebx
call fcn.0040a7d0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x405abf
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040a7ca
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 0x405ad0
push ebx
call fcn.0040a7d0
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
push 0
push 2
push 8
call fcn.00406de1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405b02
push ebx
call fcn.0040a7d0
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004070a6
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.0040af20
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.00403434
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x405b55
push ebx
call fcn.0040a7d0
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x405b69
push ebx
call fcn.0040a7d0
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00407138
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.004070a6
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405cfe
push eax
push 1
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 8]
call fcn.0040715f
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x405bbe
mov eax, 0x4282b0
jmp 0x405c96
push dword [ebp - 0x10]
push dword [ebp - 0x10]
mov ecx, 2
call fcn.00403434
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x405be8
push ebx
call fcn.0040a7d0
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004070a6
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004070a6
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004074e7
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405cfe
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 0x405c50
mov eax, 0x4282b0
jmp 0x405c96
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
call fcn.00407008
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x405c73
push ebx
call fcn.0040a7d0
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x405c91
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040a7ca
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x405c96
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405ca7
push ebx
call fcn.0040a7d0
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405cb7
push ebx
call fcn.0040a7d0
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x405cc7
push ebx
call fcn.0040a7d0
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405cd7
push ebx
call fcn.0040a7d0
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x405ce7
push ebx
call fcn.0040a7d0
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x405cf7
push ebx
call fcn.0040a7d0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc