Function at 0x416380
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 0x433600
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
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 eax, edx
mov dword [ebp - 0x28], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x41669f
mov eax, dword [eax + 0x68]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x41669f
mov eax, dword [0x459640]
test eax, eax
je 0x41669f
push 0
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
neg eax
sbb edx, edx
and edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
jbe 0x41669f
mov ecx, dword [ebp - 0x28]
add ecx, 0x40
mov esi, dword [ecx + 0x10]
cmp edx, esi
ja 0x416450
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x416447
mov eax, dword [ecx]
mov dword [ecx + 0x10], edx
mov byte [edx + eax], 0
jmp 0x41648c
mov eax, dword [ecx + 0x14]
mov edi, edx
sub edi, esi
sub eax, esi
cmp edi, eax
ja 0x41647e
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
mov dword [ecx + 0x10], edx
jb 0x41646a
mov eax, dword [ecx]
push edi
add esi, eax
push 0
push esi
call fcn.00423800
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x416489
push ecx
push edi
push dword [ebp - 0x1c]
push edi
call fcn.004034a0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ecx + 0x68]
lea edi, [ecx + 0x58]
cmp edx, esi
ja 0x4164ac
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4164a3
mov eax, dword [edi]
mov dword [edi + 0x10], edx
mov byte [edx + eax], 0
jmp 0x4164f3
mov eax, dword [edi + 0x14]
mov ecx, edx
sub ecx, esi
sub eax, esi
mov dword [ebp - 0x2c], ecx
cmp ecx, eax
ja 0x4164e0
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov dword [edi + 0x10], edx
jb 0x4164c9
mov eax, dword [edi]
push ecx
add esi, eax
push 0
push esi
call fcn.00423800
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4164ed
push ecx
push ecx
push dword [ebp - 0x1c]
push ecx
mov ecx, edi
call fcn.004034a0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [0x459640]
test eax, eax
je 0x41669c
cmp dword [ecx + 0x54], 0x10
lea esi, [ecx + 0x40]
mov ecx, esi
jb 0x416513
mov ecx, dword [esi]
push edx
lea edx, [ebp - 0x20]
push edx
push ecx
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
setne al
test al, al
je 0x41669c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x459640]
test eax, eax
je 0x41669c
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x416550
mov ecx, dword [edi]
push dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push ecx
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
setne al
test al, al
je 0x41669c
mov ecx, dword [esi + 0x10]
mov eax, SysReAllocString
mov edx, dword [edi + 0x10]
sub eax, ecx
cmp eax, edx
jb 0x4166bf
cmp dword [esi + 0x14], 0x10
jb 0x41658f
mov esi, dword [esi]
cmp dword [edi + 0x14], 0x10
jb 0x416597
mov edi, dword [edi]
push edx
push edi
push ecx
push esi
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x5c]
call fcn.00417390
push 0x459624
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x44]
call fcn.004172e0
mov esi, dword [ebp - 0x24]
mov edi, eax
add esp, 4
cmp esi, edi
je 0x416628
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x4165f6
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x4165ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4166c4
mov eax, edx
push ecx
push eax
call fcn.004205b6
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x416658
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41664e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4166c4
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x41669f
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x416690
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4166c4
push ecx
push edx
call fcn.004205b6
add esp, 8
jmp 0x41669f
mov esi, dword [ebp - 0x24]
mov eax, esi
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