Function at 0x4078f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x7c6ee4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, ecx
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x20]
cmp dword [esi + 0xa4], 1
mov dword [ebp - 0x470], eax
je 0x407947
mov eax, 0xffffbf80
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b38b
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [esi + 4]
mov dword [ebp - 0x458], edi
lea eax, [edi - 0x10]
cmp eax, 0x3f0
ja 0x407c42
mov ecx, dword [esi + 0xa8]
call fcn.0040a0c0
mov dword [ebp - 0x448], eax
test eax, eax
je 0x407c42
mov al, byte [eax + 8]
push ebx
movzx ebx, al
mov dword [ebp - 0x468], ebx
lea eax, [ebx + ebx]
mov dword [ebp - 0x454], eax
add eax, 2
cmp eax, edi
jbe 0x4079ab
pop ebx
pop edi
mov eax, 0xffffbf80
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b38b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x444]
mov ecx, esi
push eax
push dword [ebp - 0x450]
push dword [ebp - 0x44c]
call fcn.00407090
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x407c06
mov esi, dword [ebp - 0x448]
xorps xmm0, xmm0
mov dword [ebp - 0x45c], eax
movq qword [ebp - 0x464], xmm0
mov eax, dword [esi + 0x20]
call eax
mov dword [ebp - 0x460], eax
test eax, eax
jne 0x407a0d
lea ecx, [ebp - 0x464]
mov esi, 0xffffae80
call fcn.0040a120
jmp 0x407c06
lea eax, [ebp - 0x44]
mov dword [ebp - 0x464], esi
push eax
push ecx
mov ecx, esi
call fcn.0040a1f0
mov esi, edi
lea eax, [ebp - 0x464]
sub esi, ebx
lea edi, [ebp - 0x443]
push eax
dec esi
lea ecx, [ebp - 0x443]
add edi, ebx
mov edx, ebx
push esi
push edi
call fcn.00407470
lea eax, [ebp - 0x464]
mov edx, esi
push eax
lea eax, [ebp - 0x443]
mov ecx, edi
push ebx
push eax
call fcn.00407470
add esp, 0x20
lea ecx, [ebp - 0x464]
call fcn.0040a120
mov esi, dword [ebp - 0x468]
lea eax, [ebp - 0x443]
mov bl, byte [ebp - 0x444]
add eax, esi
xor edx, edx
test esi, esi
je 0x407b1e
cmp esi, 0x20
jb 0x407b05
mov ecx, esi
xorps xmm2, xmm2
and ecx, 0xffffffe0
movaps xmm3, xmm2
nop word [eax + eax]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [ebp + edx - 0x44]
pxor xmm1, xmm0
movups xmm0, xmmword [eax + 0x10]
add eax, 0x20
por xmm2, xmm1
movups xmm1, xmmword [ebp + edx - 0x34]
add edx, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
cmp edx, ecx
jb 0x407aa0
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd ecx, xmm2
or bl, cl
cmp edx, esi
jae 0x407b1e
nop dword [eax]
mov cl, byte [ebp + edx - 0x44]
inc edx
xor cl, byte [eax]
inc eax
or bl, cl
cmp edx, esi
jb 0x407b10
mov ecx, dword [ebp - 0x458]
xor edi, edi
sub ecx, dword [ebp - 0x454]
xor dl, dl
add ecx, 0xfffffffe
mov dword [ebp - 0x448], edi
xor esi, esi
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x44c], ecx
cmp ecx, 2
jb 0x407b95
nop word [eax + eax]
or dl, byte [eax + esi]
mov cl, dl
neg cl
or cl, dl
or dl, byte [eax + esi + 1]
not cl
add esi, 2
movzx ecx, cl
shr ecx, 7
add edi, ecx
mov cl, dl
neg cl
mov dword [ebp - 0x454], edi
or cl, dl
not cl
movzx ecx, cl
shr ecx, 7
add dword [ebp - 0x448], ecx
mov ecx, dword [ebp - 0x44c]
dec ecx
cmp esi, ecx
jb 0x407b50
mov ecx, dword [ebp - 0x44c]
cmp esi, ecx
jae 0x407bb0
or dl, byte [esi + eax]
mov cl, dl
neg cl
or cl, dl
not cl
movzx ecx, cl
shr ecx, 7
mov dword [ebp - 0x450], ecx
mov ecx, dword [ebp - 0x448]
add ecx, edi
add ecx, dword [ebp - 0x450]
add eax, ecx
mov cl, byte [eax]
inc eax
xor cl, 1
or bl, cl
je 0x407bd1
mov esi, 0xffffbf00
jmp 0x407c06
mov ecx, dword [ebp - 0x458]
sub ecx, eax
lea ecx, [ebp + ecx - 0x444]
cmp ecx, dword [ebp + 0x24]
jbe 0x407bec
mov esi, 0xffffbc00
jmp 0x407c06
mov edx, dword [ebp - 0x46c]
push ecx
push eax
push dword [ebp - 0x470]
mov dword [edx], ecx
call fcn.0050c59e
add esp, 0xc
xor esi, esi
mov eax, 0x400
lea ecx, [ebp - 0x444]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x407c11
mov eax, 0x40
lea ecx, [ebp - 0x44]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x407c24
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b38b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffbf80
pop edi
xor ecx, ebp
pop esi
call fcn.0050b38b
mov esp, ebp
pop ebp
ret