Function at 0x413cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x348
mov eax, dword [0x44e004]
xor eax, esp
mov dword [esp + 0x344], eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
push edi
mov edi, edx
cmp esi, 0x180
jbe 0x413d16
mov eax, 0xffffffc8
pop edi
pop esi
mov ecx, dword [esp + 0x344]
xor ecx, esp
call fcn.004295a7
mov esp, ebp
pop ebp
ret
push 0x1a0
lea eax, [esp + 0x1ac]
push 0
push eax
call fcn.0042a750
mov eax, esi
mov byte [esp + 0x1cb], 0x30
bswap eax
push esi
mov dword [esp + 0x1c8], eax
lea eax, [esp + 0x1d0]
push edi
push eax
call fcn.0042b1d0
mov byte [esp + esi + 0x1d8], pe_nt_image_headers32
add esp, 0x18
add esi, 0x19
xor eax, eax
mov dword [esp + 0x24], esi
mov byte [esp + eax + 0x188], al
inc eax
cmp eax, 0x20
jl 0x413d60
push 0x118
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0042a750
push 0x100
lea edx, [esp + 0x198]
lea ecx, [esp + 0x38]
call fcn.00415df0
add esp, 0x10
test eax, eax
jne 0x413fc0
mov cl, byte [esp + 0x1ab]
mov dword [esp + 0x1c], eax
nop dword [eax]
mov dword [esp + 0x18], esi
lea edi, [esp + 0x1a8]
mov dword [esp + 0x14], edi
xorps xmm0, xmm0
movaps xmmword [esp + 0x140], xmm0
test esi, esi
je 0x413f49
lea ecx, [esp + 0x140]
mov eax, edi
sub eax, ecx
mov ecx, edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x150]
sub eax, ecx
mov dword [esp + 0xc], eax
xor eax, eax
mov ecx, dword [edi + eax]
xor dword [esp + eax + 0x140], ecx
add eax, 4
lea ecx, [eax + 4]
cmp ecx, 0x10
jbe 0x413df2
mov esi, 0x10
sub esi, eax
cmp eax, 0x10
jae 0x413ee4
cmp esi, 0x40
jb 0x413ec9
lea edx, [esp + 0x140]
lea ecx, [edi + 0xf]
add edx, eax
cmp edx, ecx
lea ecx, [eax + edi]
ja 0x413e42
lea edx, [esp + 0x14f]
cmp edx, ecx
jae 0x413ec9
mov edi, dword [esp + 0xc]
and esi, 0x3f
mov edx, 0x10
sub edx, esi
add ecx, 0x20
nop dword [eax]
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x140]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx - 0x60]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x140], xmm1
movups xmm0, xmmword [esp + eax + 0x150]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x150], xmm1
add eax, 0x40
mov esi, eax
movups xmm0, xmmword [ecx + edi - 0x50]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx + edi - 0x50], xmm1
movups xmm0, xmmword [ecx + edi - 0x40]
movups xmm1, xmmword [ecx - 0x30]
pxor xmm1, xmm0
movups xmmword [ecx + edi - 0x40], xmm1
cmp eax, edx
jb 0x413e60
mov edi, dword [esp + 0x14]
cmp esi, 0x10
jae 0x413ee4
mov esi, dword [esp + 0x10]
nop dword [eax]
lea edx, [esp + 0x140]
add edx, eax
inc eax
mov cl, byte [edx + esi]
xor byte [edx], cl
cmp eax, 0x10
jb 0x413ed0
mov esi, dword [esp + 0x18]
add edi, 0x10
sub dword [esp + 0xc], 0x10
mov eax, esi
add dword [esp + 0x10], 0x10
mov ecx, 0x10
cmp esi, 0x10
mov dword [esp + 0x14], edi
cmovae eax, ecx
lea ecx, [esp + 0x28]
sub esi, eax
lea eax, [esp + 0x140]
push eax
mov edx, eax
mov dword [esp + 0x1c], esi
call fcn.00416f90
add esp, 4
test eax, eax
jne 0x413fc0
test esi, esi
jne 0x413df0
movaps xmm0, xmmword [esp + 0x140]
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 0x1ab]
mov esi, dword [esp + 0x24]
movups xmmword [esp + eax + 0x158], xmm0
add eax, 0x10
inc cl
mov byte [esp + 0x1ab], cl
mov dword [esp + 0x1c], eax
cmp eax, 0x30
jl 0x413db0
push 0x100
lea edx, [esp + 0x15c]
lea ecx, [esp + 0x2c]
call fcn.00415df0
add esp, 4
test eax, eax
jne 0x413fc0
mov esi, dword [esp + 0x20]
xor edi, edi
nop dword [eax]
lea eax, [esp + 0x178]
push eax
mov edx, eax
lea ecx, [esp + 0x2c]
call fcn.00416f90
add esp, 4
test eax, eax
jne 0x413fc0
movups xmm0, xmmword [esp + 0x178]
add edi, 0x10
movups xmmword [esi], xmm0
add esi, 0x10
cmp edi, 0x30
jl 0x413f90
mov edx, 0x118
lea ecx, [esp + 0x28]
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x413fd0
mov edx, 0x1a0
lea ecx, [esp + 0x1a8]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x413fe7
mov edx, 0x30
lea ecx, [esp + 0x158]
nop
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x414000
mov edx, 0x20
lea ecx, [esp + 0x188]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x414017
mov edx, 0x10
lea ecx, [esp + 0x140]
nop
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x414030
test eax, eax
je 0x41405b
mov edx, dword [esp + 0x20]
mov ecx, 0x30
nop dword [eax + eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub ecx, 1
jne 0x414050
mov ecx, dword [esp + 0x34c]
pop edi
pop esi
xor ecx, esp
call fcn.004295a7
mov esp, ebp
pop ebp
ret