Function at 0x42a900
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
mov ebp, ecx
je 0x42a917
test al, 7
je 0x42a91f
push eax
mov ecx, ebp
call fcn.0042ae00
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], esi
cmp ecx, 1
mov dword [esp + 0x14], esi
jne 0x42aa24
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp eax, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jb 0x42ab59
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
shr eax, 3
lea edi, [ebx + 6]
lea esi, [ecx - 7]
mov dword [esp + 0x28], eax
xor eax, eax
xor ecx, ecx
mov al, byte [ebx]
mov cl, byte [edi - 5]
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
xor ecx, ecx
mov cl, byte [edi - 4]
xor edx, edx
shl ecx, 8
or eax, ecx
mov dl, byte [edi - 1]
xor ecx, ecx
mov cl, byte [edi - 3]
or eax, ecx
xor ecx, ecx
mov cl, byte [edi - 2]
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
xor edx, edx
mov dh, byte [edi]
or ecx, edx
xor edx, edx
mov dl, byte [edi + 1]
or ecx, edx
mov edx, dword [esp + 0x18]
xor eax, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
xor ecx, edx
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
push eax
mov ecx, ebp
call fcn.00429cf0
mov ecx, dword [esp + 0x14]
add esi, 8
mov edx, ecx
mov eax, dword [esp + 0x10]
shr edx, 8
mov byte [esi + 6], cl
mov byte [esi + 5], dl
mov edx, ecx
mov dword [esp + 0x1c], ecx
shr edx, 0x10
shr ecx, 0x18
mov byte [esi + 4], dl
mov byte [esi + 3], cl
mov ecx, eax
mov edx, eax
shr ecx, 8
mov dword [esp + 0x18], eax
mov byte [esi + 2], al
shr edx, 0x10
mov byte [esi + 1], cl
mov byte [esi], dl
shr eax, 0x18
mov byte [esi - 1], al
mov eax, dword [esp + 0x28]
add ebx, 8
add edi, 8
dec eax
mov dword [esp + 0x28], eax
jne 0x42a960
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
cmp ecx, 2
jne 0x42ab16
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp eax, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jb 0x42ab59
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
shr eax, 3
lea edi, [ebx + 6]
lea esi, [ecx - 7]
mov dword [esp + 0x28], eax
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
call fcn.00429cf0
xor eax, eax
xor ecx, ecx
mov al, byte [ebx]
mov cl, byte [edi - 5]
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
xor ecx, ecx
mov cl, byte [edi - 4]
xor edx, edx
shl ecx, 8
or eax, ecx
mov dl, byte [edi - 1]
xor ecx, ecx
add esi, 8
mov cl, byte [edi - 3]
add ebx, 8
or eax, ecx
xor ecx, ecx
mov cl, byte [edi - 2]
add edi, 8
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
xor edx, edx
mov dh, byte [edi - 8]
or ecx, edx
xor edx, edx
mov dl, byte [edi - 7]
or ecx, edx
mov edx, dword [esp + 0x18]
xor eax, edx
mov edx, dword [esp + 0x1c]
xor ecx, edx
mov dword [esp + 0x10], eax
mov edx, ecx
mov byte [esi + 6], cl
shr edx, 8
mov byte [esi + 5], dl
mov edx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
shr edx, 0x10
shr ecx, 0x18
mov byte [esi + 4], dl
mov byte [esi + 3], cl
mov ecx, eax
mov edx, eax
shr ecx, 8
mov dword [esp + 0x18], eax
mov byte [esi + 2], al
shr edx, 0x10
mov byte [esi + 1], cl
mov byte [esi], dl
shr eax, 0x18
mov byte [esi - 1], al
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
jne 0x42aa59
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
cmp eax, 8
jb 0x42ab59
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
shr eax, 3
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0042a5d0
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00429cf0
add esi, 8
lea edx, [esp + 0x10]
push esi
push edx
call fcn.0042a650
add esp, 8
add edi, 8
dec ebx
jne 0x42ab28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10