Function at 0x42f210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov ebx, 0xfffff002
push edi
mov edi, edx
mov dword [ebp - 0x20], esi
movsx edx, word [ebp + 8]
xor cl, cl
mov dword [ebp - 8], edx
lea eax, [esi + 0x1000]
xor edx, edx
mov dword [ebp - 0xc], edi
sub ebx, esi
mov byte [ebp - 1], cl
mov dword [ebp - 0x10], edx
mov esi, eax
mov dword [ebp - 0x14], ebx
mov eax, edx
add ebx, esi
cdq
idiv dword [ebp - 8]
movzx eax, byte [edx + edi]
shl eax, 0x18
xor dword [esi], eax
lea eax, [ebx - 1]
cdq
idiv dword [ebp - 8]
mov eax, ebx
movsx ebx, word [ebp + 8]
movzx edi, byte [edx + edi]
cdq
idiv ebx
mov eax, dword [ebp - 0xc]
shl edi, 0x10
xor edi, dword [esi]
mov dword [esi], edi
movzx ebx, byte [edx + eax]
mov eax, dword [ebp - 0x14]
inc eax
shl ebx, 8
add eax, esi
xor ebx, edi
movsx edi, word [ebp + 8]
cdq
idiv edi
mov edi, dword [ebp - 0xc]
mov dword [esi], ebx
movzx eax, byte [edx + edi]
mov edx, dword [ebp - 0x10]
xor eax, ebx
mov ebx, dword [ebp - 0x14]
add edx, 4
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x10], edx
cmp edx, 0x48
jl 0x42f246
mov esi, dword [ebp - 0x20]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x14], ebx
movzx edx, cl
shl edx, 8
movzx eax, cl
xor edx, eax
movzx eax, cl
shl edx, 8
xor edx, eax
movzx eax, cl
shl edx, 8
xor edx, eax
movzx eax, cl
xor edi, edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
movzx edi, cl
shl edi, 8
xor edi, eax
movzx eax, cl
shl edi, 8
xor edi, eax
movzx eax, cl
mov ecx, dword [ebp - 0x20]
shl edi, 8
xor edi, eax
lea eax, [ebp - 0x1c]
xor ebx, edi
push esi
push eax
mov edx, ebx
mov dword [ebp - 0x18], ebx
call fcn.0042e5c0
mov eax, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebp - 1]
mov dword [esi + eax*4 + 0x1000], edi
mov dword [esi + eax*4 + 0x1004], ebx
add eax, 2
mov dword [ebp - 0x14], eax
cmp eax, 0x12
jl 0x42f2b6
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 1]
movzx edx, al
shl edx, 8
movzx ecx, al
xor edx, ecx
movzx ecx, al
shl edx, 8
xor edx, ecx
movzx ecx, al
shl edx, 8
xor edx, ecx
movzx ecx, al
xor edi, edx
movzx edx, al
shl edx, 8
xor edx, ecx
mov dword [ebp - 0x1c], edi
shl edx, 8
movzx ecx, al
xor edx, ecx
movzx eax, al
shl edx, 8
mov ecx, edi
xor edx, eax
lea eax, [ebp - 0x1c]
xor ebx, edx
push esi
push eax
mov edx, ebx
mov dword [ebp - 0x18], ebx
call fcn.0042e5c0
mov eax, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov dword [esi + eax*4], edi
mov dword [esi + eax*4 + 4], ebx
add eax, 2
mov dword [ebp - 0x14], eax
cmp eax, 0x100
jl 0x42f337
mov dword [ebp - 0x14], 0
nop
mov al, byte [ebp - 1]
movzx edx, al
shl edx, 8
movzx ecx, al
xor edx, ecx
movzx ecx, al
shl edx, 8
xor edx, ecx
movzx ecx, al
shl edx, 8
xor edx, ecx
movzx ecx, al
xor edi, edx
movzx edx, al
shl edx, 8
xor edx, ecx
mov dword [ebp - 0x1c], edi
shl edx, 8
movzx ecx, al
xor edx, ecx
movzx eax, al
shl edx, 8
mov ecx, edi
xor edx, eax
lea eax, [ebp - 0x1c]
xor ebx, edx
push esi
push eax
mov edx, ebx
mov dword [ebp - 0x18], ebx
call fcn.0042e5c0
mov eax, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov dword [esi + eax*4 + 0x400], edi
mov dword [esi + eax*4 + 0x404], ebx
add eax, 2
mov dword [ebp - 0x14], eax
cmp eax, 0x100
jl 0x42f3b0
mov dword [ebp - 0x14], 0
nop
mov al, byte [ebp - 1]
movzx edx, al
shl edx, 8
movzx ecx, al
xor edx, ecx
movzx ecx, al
shl edx, 8
xor edx, ecx
movzx ecx, al
shl edx, 8
xor edx, ecx
movzx ecx, al
xor edi, edx
movzx edx, al
shl edx, 8
xor edx, ecx
mov dword [ebp - 0x1c], edi
shl edx, 8
movzx ecx, al
xor edx, ecx
movzx eax, al
shl edx, 8
mov ecx, edi
xor edx, eax
lea eax, [ebp - 0x1c]
xor ebx, edx
push esi
push eax
mov edx, ebx
mov dword [ebp - 0x18], ebx
call fcn.0042e5c0
mov eax, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov dword [esi + eax*4 + 0x800], edi
mov dword [esi + eax*4 + 0x804], ebx
add eax, 2
mov dword [ebp - 0x14], eax
cmp eax, 0x100
jl 0x42f430
mov dword [ebp - 0x14], 0
nop
mov al, byte [ebp - 1]
movzx edx, al
shl edx, 8
movzx ecx, al
xor edx, ecx
movzx ecx, al
shl edx, 8
xor edx, ecx
movzx ecx, al
shl edx, 8
xor edx, ecx
movzx ecx, al
xor edi, edx
movzx edx, al
shl edx, 8
xor edx, ecx
mov dword [ebp - 0x1c], edi
shl edx, 8
movzx ecx, al
xor edx, ecx
movzx eax, al
shl edx, 8
mov ecx, edi
xor edx, eax
lea eax, [ebp - 0x1c]
xor ebx, edx
push esi
push eax
mov edx, ebx
mov dword [ebp - 0x18], ebx
call fcn.0042e5c0
mov eax, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov dword [esi + eax*4 + 0xc00], edi
mov dword [esi + eax*4 + 0xc04], ebx
add eax, 2
mov dword [ebp - 0x14], eax
cmp eax, 0x100
jl 0x42f4b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret