Function at 0x4299d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
cmp eax, ecx
je 0x429c39
test al, 7
jne 0x429c39
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
jne 0x429ac5
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov dword [ebp - 0xc], ecx
cmp eax, 8
jb 0x429abc
mov esi, dword [ebp + 8]
add esi, 7
shr eax, 3
mov dword [ebp + 8], eax
movzx eax, byte [esi - 7]
movzx ecx, byte [esi - 6]
movzx edx, byte [esi - 2]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi - 5]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi - 4]
or eax, ecx
movzx ecx, byte [esi - 3]
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
movzx edx, byte [esi - 1]
shl edx, 8
or ecx, edx
movzx edx, byte [esi]
or ecx, edx
xor ecx, dword [ebp - 0xc]
xor eax, ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
mov dword [ebp - 4], ecx
push eax
mov ecx, edi
call fcn.004292d0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add esi, 8
mov byte [esi - 8], cl
mov edx, ecx
shr edx, 8
mov byte [esi - 9], dl
mov edx, ecx
shr edx, 0x10
mov byte [esi - 0xa], dl
mov dword [ebp - 0xc], ecx
shr ecx, 0x18
mov byte [esi - 0xb], cl
mov ecx, eax
mov byte [esi - 0xc], al
mov edx, eax
shr ecx, 8
shr edx, 0x10
mov ebx, eax
mov byte [esi - 0xd], cl
shr eax, 0x18
dec dword [ebp + 8]
mov byte [esi - 0xe], dl
mov byte [esi - 0xf], al
jne 0x429a20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 2
jne 0x429b89
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
cmp eax, 8
jb 0x429abc
mov esi, dword [ebp + 8]
add esi, 7
shr eax, 3
mov ebx, eax
lea ebx, [ebx]
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.004292d0
movzx eax, byte [esi - 7]
movzx ecx, byte [esi - 6]
movzx edx, byte [esi - 2]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi - 5]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi - 4]
or eax, ecx
movzx ecx, byte [esi - 3]
shl edx, 0x10
xor eax, dword [ebp - 8]
shl ecx, 0x18
or ecx, edx
movzx edx, byte [esi - 1]
shl edx, 8
or ecx, edx
movzx edx, byte [esi]
or ecx, edx
xor ecx, dword [ebp - 4]
add esi, 8
mov byte [esi - 8], cl
mov edx, ecx
shr edx, 8
mov byte [esi - 9], dl
mov edx, ecx
shr edx, 0x10
mov byte [esi - 0xa], dl
mov dword [ebp - 4], ecx
shr ecx, 0x18
mov byte [esi - 0xb], cl
mov ecx, eax
mov byte [esi - 0xc], al
mov edx, eax
shr ecx, 8
shr edx, 0x10
mov dword [ebp - 8], eax
mov byte [esi - 0xd], cl
shr eax, 0x18
dec ebx
mov byte [esi - 0xe], dl
mov byte [esi - 0xf], al
jne 0x429af0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 8
jb 0x429abc
mov esi, dword [ebp + 8]
add esi, 7
shr eax, 3
mov ebx, eax
lea ecx, [ecx]
movzx eax, byte [esi - 7]
movzx ecx, byte [esi - 6]
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [esi - 5]
movzx edx, byte [esi]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi - 4]
or eax, ecx
movzx ecx, byte [esi - 2]
mov dword [ebp - 8], eax
movzx eax, byte [esi - 3]
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [esi - 1]
shl ecx, 8
or eax, ecx
or eax, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.004292d0
mov eax, dword [ebp - 4]
add esi, 8
mov byte [esi - 8], al
mov ecx, eax
mov edx, eax
shr ecx, 8
mov byte [esi - 9], cl
shr edx, 0x10
mov byte [esi - 0xa], dl
shr eax, 0x18
mov byte [esi - 0xb], al
mov eax, dword [ebp - 8]
mov ecx, eax
mov byte [esi - 0xc], al
mov edx, eax
shr ecx, 8
shr edx, 0x10
mov byte [esi - 0xd], cl
shr eax, 0x18
dec ebx
mov byte [esi - 0xe], dl
mov byte [esi - 0xf], al
jne 0x429ba0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x43e980
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0x439f30
call sub.MSVCR100.dll__CxxThrowException
int3