Function at 0x40f5e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
xor eax, eax
push esi
xor ecx, ecx
inc eax
push edi
mov edx, eax
and dl, 0x80
mov byte [ebp + ecx - 0x308], al
mov byte [ebp + ecx - 0x209], al
mov byte [ebp + eax - 0x108], cl
inc ecx
neg dl
lea esi, [eax + eax]
sbb edx, edx
and edx, 0x11b
xor edx, esi
xor eax, edx
cmp eax, 1
jne 0x40f5fa
xor ecx, ecx
test eax, eax
mov dword [ecx + 0x421940], eax
je 0x40f649
movzx eax, byte [ebp + eax - 0x108]
movzx eax, byte [ebp + eax - 0x2ef]
jmp 0x40f64b
xor eax, eax
add ecx, 4
cmp ecx, 0x28
jb 0x40f62d
and dword [ebp - 4], 0
cmp byte [ebp - 4], 0
je 0x40f676
movzx eax, byte [ebp - 4]
movzx eax, byte [ebp + eax - 0x108]
lea ecx, [ebp - 0x209]
sub ecx, eax
movzx eax, byte [ecx]
jmp 0x40f678
xor eax, eax
lea ecx, [eax + eax]
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor eax, ecx
mov ecx, eax
shr ecx, 8
xor cl, al
xor cl, 0x63
je 0x40f6aa
movzx eax, cl
movzx eax, byte [ebp + eax - 0x108]
movzx eax, byte [ebp + eax - 0x307]
jmp 0x40f6ac
xor eax, eax
test cl, cl
je 0x40f6c5
movzx edx, cl
movzx edx, byte [ebp + edx - 0x108]
movzx edx, byte [ebp + edx - 0x2ef]
jmp 0x40f6c7
xor edx, edx
mov esi, dword [ebp - 4]
shl eax, 8
movzx edi, cl
or eax, edi
shl eax, 8
or eax, edi
shl eax, 8
or eax, edx
mov ebx, eax
push 8
shl esi, 2
push ebx
mov dword [esi + 0x420940], ebx
call fcn.0041245d
push 0x10
push ebx
mov dword [esi + 0x420d40], eax
call fcn.0041245d
push 0x18
push ebx
mov dword [esi + 0x421140], eax
call fcn.0041245d
push 8
push edi
mov dword [esi + 0x421540], eax
mov dword [esi + 0x4219c0], edi
call fcn.0041245d
push 0x10
push edi
mov dword [esi + 0x421dc0], eax
call fcn.0041245d
push 0x18
push edi
mov dword [esi + 0x4221c0], eax
call fcn.0041245d
movzx ecx, byte [ebp - 4]
mov dword [esi + 0x4225c0], eax
mov eax, ecx
shl eax, 3
xor eax, ecx
shl eax, 2
xor eax, ecx
add eax, eax
mov edx, eax
shr edx, 8
xor dl, al
add esp, 0x30
xor dl, 5
je 0x40f794
mov eax, ecx
shl eax, 3
xor eax, ecx
shl eax, 2
xor eax, ecx
add eax, eax
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx eax, al
xor ecx, eax
xor ecx, 5
movzx eax, byte [ebp + ecx - 0x108]
lea ecx, [ebp - 0x209]
sub ecx, eax
mov al, byte [ecx]
jmp 0x40f796
xor al, al
test al, al
je 0x40f7af
movzx ecx, al
movzx ecx, byte [ebp + ecx - 0x108]
movzx ebx, byte [ebp + ecx - 0x2a0]
jmp 0x40f7b1
xor ebx, ebx
test al, al
je 0x40f7ca
movzx ecx, al
movzx ecx, byte [ebp + ecx - 0x108]
movzx edi, byte [ebp + ecx - 0x21a]
jmp 0x40f7cc
xor edi, edi
test al, al
je 0x40f7e5
movzx ecx, al
movzx ecx, byte [ebp + ecx - 0x108]
movzx edx, byte [ebp + ecx - 0x241]
jmp 0x40f7e7
xor edx, edx
test al, al
je 0x40f800
movzx ecx, al
movzx ecx, byte [ebp + ecx - 0x108]
movzx ecx, byte [ebp + ecx - 0x229]
jmp 0x40f802
xor ecx, ecx
shl ebx, 8
or ebx, edi
shl ebx, 8
movzx eax, al
or ebx, edx
shl ebx, 8
or ebx, ecx
mov edi, eax
push 8
shl edi, 2
push ebx
mov dword [ebp - 8], eax
mov dword [edi + 0x4239c0], ebx
call fcn.0041245d
push 0x10
push ebx
mov dword [edi + 0x423dc0], eax
call fcn.0041245d
push 0x18
push ebx
mov dword [edi + 0x4241c0], eax
call fcn.0041245d
push 8
push ebx
mov dword [edi + 0x4245c0], eax
mov dword [esi + 0x4229c0], ebx
call fcn.0041245d
push 0x10
push ebx
mov dword [esi + 0x422dc0], eax
call fcn.0041245d
push 0x18
push ebx
mov dword [esi + 0x4231c0], eax
call fcn.0041245d
mov edi, dword [ebp - 8]
push 8
push edi
mov dword [esi + 0x4235c0], eax
mov dword [esi + 0x41f940], edi
call fcn.0041245d
push 0x10
push edi
mov dword [esi + 0x41fd40], eax
call fcn.0041245d
add esp, 0x40
push 0x18
push edi
mov dword [esi + 0x420140], eax
call fcn.0041245d
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
pop ecx
pop ecx
mov dword [esi + 0x420540], eax
jb 0x40f657
pop edi
pop esi
mov byte [0x41f474], 1
pop ebx
leave
ret