Function at 0x4156e0
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 esi, dword [ebx + 8]
xorps xmm0, xmm0
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], edi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
cmp dword [0x459768], 0
je 0x415964
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x415964
mov eax, 0x51eb851f
mov dword [ebp - 0x3c], 0
mul ecx
mov eax, edx
shr eax, 6
add eax, 1
mov dword [ebp - 0x4c], eax
je 0x415964
xor edx, edx
mov dword [ebp - 0x40], edx
nop dword [eax]
mov eax, dword [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
cmp eax, edx
jb 0x415986
sub eax, edx
mov ecx, 0xc8
cmp eax, ecx
cmovb ecx, eax
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4157b6
mov eax, dword [edi]
push ecx
add eax, edx
lea ecx, [ebp - 0x2c]
push eax
call fcn.00408490
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], ecx
cmp ecx, 0x100
jb 0x4157eb
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], pe_nt_image_headers32
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + 0x100], 0
jmp 0x415836
mov edx, dword [ebp - 0x18]
mov edi, pe_nt_image_headers32
mov eax, edx
sub edi, ecx
sub eax, ecx
cmp edi, eax
ja 0x415825
cmp edx, 0x10
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea esi, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
push edi
add esi, ecx
push 0
push esi
call fcn.00423800
mov byte [edi + esi], 0
add esp, 0xc
mov esi, dword [ebp - 0x44]
jmp 0x415833
push ecx
push edi
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
push edi
call fcn.004034a0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], ecx
mov ecx, dword [0x459768]
test ecx, ecx
je 0x415920
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x30]
push pe_nt_image_headers32
push edx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x415920
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov ecx, dword [esi + 0x10]
cmovae edx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x1c]
sub eax, ecx
mov dword [ebp - 0x48], ecx
cmp edi, eax
ja 0x4158bf
cmp dword [esi + 0x14], 0x10
lea eax, [edi + ecx]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [ebp - 0x34], esi
jb 0x4158a4
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
push edi
add eax, ecx
push edx
push eax
call fcn.004239a0
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov ecx, dword [ebp - 0x48]
add eax, edi
mov byte [eax + ecx], 0
jmp 0x4158cc
push edi
push edx
push dword [ebp - 0x38]
mov ecx, esi
push edi
call fcn.004085e0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x415900
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4158f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41598b
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
inc ecx
add edx, 0xc8
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
cmp ecx, dword [ebp - 0x4c]
jae 0x415964
mov edi, dword [ebp - 0x38]
jmp 0x415780
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41592a
mov eax, dword [esi]
mov dword [esi + 0x10], 0
mov byte [eax], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x415964
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41595a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41598b
push ecx
push edx
call fcn.004205b6
add esp, 8
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 0xc
call fcn.00407bb0
call fcn.0042552f
int3