Function at 0x42e15b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
push 0x2000
push 0
push esi
call fcn.0046c6ab
add esp, 0xc
xor ebp, ebp
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x42e256
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov dword [esi + 0x180], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x184], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x188], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x18c], edx
mov edi, 4
lea eax, [edi + 8]
shl eax, 5
mov edx, dword [eax + esi]
add eax, esi
lea ecx, [edi + 0x10]
shl ecx, 4
add ecx, esi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
push ecx
mov dword [ecx + 0xc], eax
call fcn.0042e01b
sar edi, 1
add esp, 4
test edi, edi
jg 0x42e1b0
mov ecx, dword [esi + 0x110]
mov edx, dword [esi + 0x114]
lea eax, [esi + 0x80]
mov dword [eax], ecx
mov ecx, dword [esi + 0x118]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x11c]
mov dword [eax + 8], ecx
push eax
mov dword [eax + 0xc], edx
call fcn.0042e01b
add esp, 4
mov edi, 4
mov eax, edi
shl eax, 5
mov edx, dword [eax + esi]
add eax, esi
mov ecx, edi
shl ecx, 4
add ecx, esi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
push ecx
mov dword [ecx + 0xc], eax
call fcn.0042e01b
sar edi, 1
add esp, 4
test edi, edi
jg 0x42e21d
jmp 0x42e2f6
cmp ebp, 1
jle 0x42e2f6
lea ecx, [ebp - 2]
shl ecx, 4
mov eax, ebp
shl eax, 4
mov edi, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
jmp 0x42e283
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add ecx, edi
shl ecx, 4
mov edx, dword [ecx + esi]
add ecx, esi
add eax, edi
shl eax, 4
mov dword [eax + esi], edx
mov edx, dword [ecx + 4]
add eax, esi
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edx, dword [eax + 8]
mov ebx, ecx
mov ebp, edx
shr ebp, 0x18
shl ecx, 8
or ebp, ecx
mov ecx, dword [eax + 4]
mov dword [eax + 0xc], ebp
mov ebp, ecx
shr ebp, 0x18
shl edx, 8
or ebp, edx
mov edx, dword [eax]
mov dword [eax + 8], ebp
mov ebp, edx
shl ecx, 8
shr ebp, 0x18
or ebp, ecx
shr ebx, 0x18
mov dword [eax + 4], ebp
movzx ecx, word [ebx*2 + 0x52827e]
shl edx, 8
xor ecx, edx
sar edi, 1
mov dword [eax], ecx
test edi, edi
jg 0x42e27b
mov ebp, dword [esp + 0x14]
mov edx, ebp
shl edx, 8
mov ebx, ebp
lea eax, [edx + esi + 0x10]
shl ebx, 4
mov edi, 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x18]
lea edx, [ebx + edi]
shl edx, 4
add edx, esi
lea eax, [edx + 0x10]
cmp edi, 1
jle 0x42e35e
lea ebx, [edi - 1]
lea ecx, [ecx]
mov ebp, dword [ecx]
xor ebp, dword [edx]
add eax, 0x10
mov dword [eax - 0x10], ebp
mov ebp, dword [ecx + 4]
xor ebp, dword [edx + 4]
add ecx, 0x10
mov dword [eax - 0xc], ebp
mov ebp, dword [ecx - 8]
xor ebp, dword [edx + 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
xor ebp, dword [edx + 0xc]
dec ebx
mov dword [eax - 4], ebp
jne 0x42e32b
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
add edi, edi
cmp edi, 0x10
jl 0x42e311
inc ebp
mov dword [esp + 0x14], ebp
cmp ebp, 0x20
jl 0x42e17c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret