Function at 0x429972
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af80], 2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0
je 0x429ce4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 3
jb 0x429a26
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x6af84]
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x1af72]
xor eax, ecx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x4af70]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + eax*4 + 0x2af70], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x6af84]
mov dword [ecx + eax*4 + 0x4af70], edx
cmp dword [ebp - 0xc], 0
je 0x429a8f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
sub eax, dword [ebp - 0xc]
cmp eax, 0x7efa
ja 0x429a8f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x6afa0]
cmp eax, dword [ecx + 0x6af90]
jbe 0x429a65
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x6af90]
mov dword [eax + 0x6afa0], ecx
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004294d4
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x6af90]
jbe 0x429a8f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jb 0x429c19
mov eax, dword [ebp - 8]
sub eax, 3
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
sub eax, dword [ecx + 0x6af88]
push eax
push dword [ebp + 8]
call fcn.004288f8
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af90]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x6af98]
ja 0x429bb1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 3
jb 0x429bb1
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x6af84]
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x1af72]
xor eax, ecx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x4af70]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + eax*4 + 0x2af70], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x6af84]
mov dword [ecx + eax*4 + 0x4af70], edx
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
jne 0x429aff
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
jmp 0x429c17
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
and dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 0x1af70]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x6af84]
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x1af71]
xor eax, ecx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x429c64
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 0x1af70]
push eax
push 0
push dword [ebp + 8]
call fcn.004288f8
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af90]
dec eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
cmp dword [ebp - 4], 0
je 0x429cc7
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af74], 0
jl 0x429c8e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af74]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x1af70]
mov dword [ebp - 0x10], eax
jmp 0x429c92
and dword [ebp - 0x10], 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
sub eax, dword [ecx + 0x6af74]
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00428658
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x6af84]
mov dword [eax + 0x6af74], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0x106
jae 0x429cdf
push dword [ebp + 8]
call fcn.00429784
pop ecx
jmp 0x42998d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af74], 0
jl 0x429d08
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af74]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x1af70]
mov dword [ebp - 0x14], eax
jmp 0x429d0c
and dword [ebp - 0x14], 0
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
sub eax, dword [ecx + 0x6af74]
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00428658
add esp, 0x10
leave
ret