Function at 0x4159a0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433940
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, 0x459704
mov byte [ebp - 0x35], 0
lea ecx, [ebp - 0x34]
call fcn.00403830
mov ecx, dword [ebp - 0x24]
mov esi, ecx
mov eax, dword [0x459640]
mov dword [ebp - 0x18], esi
test eax, eax
jne 0x415a04
xor edi, edi
jmp 0x415a26
push 0
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, dword [ebp - 0x24]
neg eax
sbb edi, edi
and edi, dword [ebp - 0x1c]
test esi, esi
je 0x415b67
test edi, edi
je 0x415b67
cmp edi, ecx
ja 0x415a4e
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], edi
cmovae eax, dword [ebp - 0x34]
mov byte [eax + edi], 0
jmp 0x415a94
mov eax, dword [ebp - 0x20]
mov edx, edi
sub edx, ecx
sub eax, ecx
mov dword [ebp - 0x1c], edx
cmp edx, eax
ja 0x415a86
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
push edx
cmovae esi, dword [ebp - 0x34]
add esi, ecx
mov dword [ebp - 0x24], edi
push 0
push esi
call fcn.00423800
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x18]
jmp 0x415a94
push ecx
push edx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push edx
call fcn.004034a0
mov ecx, dword [0x459640]
mov dword [ebp - 0x18], esi
test ecx, ecx
je 0x415b67
cmp dword [ebp - 0x20], 0x10
lea edx, [ebp - 0x18]
push edi
push edx
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push 0
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
setne al
test al, al
je 0x415b67
mov esi, dword [ebp - 0x24]
mov eax, SysReAllocString
mov edx, dword [0x459634]
sub eax, esi
cmp eax, edx
jb 0x415bb8
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
push edx
cmovae ecx, dword [ebp - 0x34]
mov eax, 0x459624
cmp dword [0x459638], 0x10
cmovae eax, dword [0x459624]
push eax
push esi
push ecx
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x50]
call fcn.00417390
mov ecx, dword [0x4596c4]
cmp ecx, 0x10
jb 0x415b4b
mov eax, dword [0x4596b0]
inc ecx
cmp ecx, 0x1000
jb 0x415b41
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415bbd
mov eax, edx
push ecx
push eax
call fcn.004205b6
add esp, 8
movups xmm0, xmmword [ebp - 0x50]
mov byte [ebp - 0x35], 1
movups xmmword [0x4596b0], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [0x4596c0], xmm0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x415b97
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x415b8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415bbd
push ecx
push edx
call fcn.004205b6
add esp, 8
mov al, byte [ebp - 0x35]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401640
call fcn.0042552f
int3