Function at 0x42d6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x3c], edi
test bl, 7
je 0x42d70c
mov eax, 0xffffffe8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x42d9a9
mov ecx, dword [ebp + 0x14]
test eax, eax
jne 0x42d8fc
lea eax, [ecx + 2]
dec ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
sub ecx, eax
shr ebx, 3
inc ebx
mov dword [esp + 0x24], ebx
lea edx, [eax + 2]
lea eax, [ecx - 2]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
mov eax, dword [edx - 2]
movzx ecx, byte [edx - 2]
movzx esi, byte [edx + 2]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 2]
shl ecx, 8
mov dword [esp + 0x38], eax
movzx eax, byte [edx - 1]
or eax, ecx
shl esi, 8
movzx ecx, byte [edx]
shl eax, 8
or eax, ecx
mov dword [esp + 0x1c], 0x10
movzx ecx, byte [edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 3]
or esi, ecx
movzx ecx, byte [edx + 4]
shl esi, 8
or esi, ecx
movzx ecx, byte [edx + 5]
shl esi, 8
or esi, ecx
lea ecx, [edi + 0x44]
mov dword [esp + 0x18], ecx
nop dword [eax]
xor eax, dword [ecx]
mov edx, eax
mov dword [esp + 0x28], eax
mov ebx, eax
shr edx, 8
mov ecx, edx
shr ecx, 8
mov eax, ecx
movzx ecx, cl
shr eax, 8
mov eax, dword [edi + eax*4 + 0x48]
add eax, dword [edi + ecx*4 + 0x448]
movzx ecx, dl
mov edx, ebx
xor eax, dword [edi + ecx*4 + 0x848]
movzx ecx, bl
add eax, dword [edi + ecx*4 + 0xc48]
mov ecx, dword [esp + 0x18]
xor eax, esi
sub ecx, 4
mov esi, edx
sub dword [esp + 0x1c], 1
mov dword [esp + 0x18], ecx
jne 0x42d7a0
mov ecx, dword [edi]
mov esi, dword [esp + 0x14]
xor ecx, edx
mov edx, dword [edi + 4]
xor edx, eax
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x20]
mov eax, ecx
shr eax, 0x18
mov dword [esp + 0x28], eax
mov byte [ebx + esi], al
mov eax, ecx
mov ebx, dword [esp + 0x10]
shr eax, 0x10
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov byte [ebx - 1], al
mov ebx, ecx
mov eax, dword [esp + 0x10]
shr ebx, 8
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edx
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x10]
mov byte [eax], bl
mov eax, edx
shr eax, 0x18
mov dword [esp + 0x30], eax
mov byte [ecx + 2], al
mov eax, dword [esp + 0x1c]
mov byte [esi + 5], al
shr edx, 0x10
mov byte [ecx + 3], dl
mov ecx, eax
mov eax, dword [ebp + 0xc]
shr ecx, 8
mov byte [esi + 4], cl
mov esi, dword [esp + 0x14]
movzx eax, byte [eax]
xor al, byte [esp + 0x28]
mov byte [edi + esi], al
mov esi, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x3c]
movzx eax, byte [eax + 1]
xor al, byte [esp + 0x18]
mov byte [esi - 1], al
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 2]
xor al, bl
mov ebx, dword [ebp + 0xc]
mov byte [esi], al
movzx eax, byte [ebx + 3]
xor al, byte [esp + 0x2c]
mov byte [esi + 1], al
movzx eax, byte [ebx + 4]
xor al, byte [esp + 0x30]
mov byte [esi + 2], al
movzx eax, byte [ebx + 5]
xor al, dl
mov edx, dword [esp + 0x14]
mov byte [esi + 3], al
add edx, 8
movzx eax, byte [ebx + 6]
xor al, cl
mov dword [esp + 0x14], edx
mov byte [esi + 4], al
movzx eax, byte [ebx + 7]
xor al, byte [esp + 0x1c]
mov byte [esi + 5], al
add esi, 8
sub dword [esp + 0x24], 1
mov eax, dword [esp + 0x34]
mov dword [ebx], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 4], eax
mov dword [esp + 0x10], esi
jne 0x42d742
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
lea edx, [ecx + 2]
sub ecx, eax
mov dword [esp + 0x24], edx
lea ebx, [eax + 2]
mov eax, dword [ebp + 8]
dec eax
lea esi, [ecx - 2]
mov ecx, dword [ebp + 0xc]
shr eax, 3
inc eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], eax
movzx eax, byte [ebx - 2]
add esi, ebx
xor al, byte [ecx]
push esi
push esi
mov byte [esi], al
movzx eax, byte [ebx - 1]
xor al, byte [ecx + 1]
mov byte [edx - 1], al
movzx eax, byte [ecx + 2]
xor al, byte [ebx]
mov byte [edx], al
movzx eax, byte [ebx + 1]
xor al, byte [ecx + 3]
mov byte [edx + 1], al
movzx eax, byte [ebx + 2]
xor al, byte [ecx + 4]
mov byte [edx + 2], al
movzx eax, byte [ebx + 3]
xor al, byte [ecx + 5]
mov byte [edx + 3], al
movzx eax, byte [ebx + 4]
xor al, byte [ecx + 6]
mov byte [edx + 4], al
movzx eax, byte [ebx + 5]
xor al, byte [ecx + 7]
mov ecx, edi
mov byte [edx + 5], al
mov edx, dword [esp + 0x40]
call fcn.0042d5c0
mov ecx, dword [ebp + 0xc]
add esp, 8
mov eax, dword [esi]
add ebx, 8
mov edx, dword [esp + 0x24]
add edx, 8
sub dword [esp + 0x20], 1
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov dword [esp + 0x24], edx
jne 0x42d921
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret