Function at 0x429a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [eax + 0x400]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], ecx
lea ebx, [eax + 0x1000]
lea ecx, [eax + 0x800]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ecx
lea ecx, [eax + 0xc00]
mov dword [ebp - 0x2c], ecx
jne 0x429aa0
lea esi, [ebp - 1]
mov dword [ebp - 0x14], 1
mov dword [ebp + 0x14], esi
mov byte [ebp - 1], 0
jmp 0x429aa6
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x14], ecx
movsx ecx, word [ebp + 0x10]
mov esi, ebx
mov edi, dword [ebp + 0xc]
xor edx, edx
mov ebx, 0xfffff002
mov dword [ebp - 0x10], edx
sub ebx, eax
mov dword [ebp - 0x1c], ebx
nop
mov eax, edx
add ebx, esi
cdq
idiv ecx
movzx eax, byte [edx + edi]
shl eax, 0x18
xor dword [esi], eax
lea eax, [ebx - 1]
cdq
idiv ecx
mov eax, ebx
movzx edi, byte [edx + edi]
cdq
idiv ecx
mov eax, dword [ebp + 0xc]
shl edi, 0x10
xor edi, dword [esi]
mov dword [esi], edi
movzx ecx, byte [edx + eax]
lea eax, [ebx + 1]
shl ecx, 8
xor ecx, edi
cdq
movsx edi, word [ebp + 0x10]
idiv edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x1c]
mov dword [esi], ecx
movzx eax, byte [edx + edi]
mov edx, dword [ebp - 0x10]
xor eax, ecx
movsx ecx, word [ebp + 0x10]
add edx, 4
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x10], edx
cmp edx, 0x48
jl 0x429ac0
mov esi, dword [ebp + 0x14]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
movsx edi, ax
mov eax, 2
mov dword [ebp - 0x10], eax
nop dword [eax]
dec eax
cdq
idiv edi
mov eax, dword [ebp - 0xc]
push dword [ebp + 8]
add dword [ebp - 0xc], 8
movzx ecx, byte [edx + esi]
cdq
idiv edi
movzx eax, byte [edx + esi]
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0x10]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0x10]
inc eax
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 8]
xor eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
add eax, 2
cdq
idiv edi
mov eax, dword [ebp - 0x10]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0x10]
add eax, 4
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0x10]
add eax, 5
add dword [ebp - 0x10], 8
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
xor ebx, ecx
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.00429620
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 8]
mov dword [eax + ecx*4 + 0x1004], ebx
add ecx, 2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x12
jl 0x429b40
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], 0
lea ecx, [eax + 2]
mov dword [ebp + 0x14], ecx
cdq
idiv edi
mov eax, dword [ebp + 0x14]
dec eax
add dword [ebp - 0xc], 8
push dword [ebp + 8]
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
inc eax
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 8]
xor eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
add eax, 2
cdq
idiv edi
mov eax, dword [ebp + 0x14]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 4
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 5
add dword [ebp + 0x14], 8
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
xor ebx, ecx
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.00429620
mov edx, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + edx*4 + 4], ebx
add edx, 2
mov dword [ebp - 0x1c], edx
cmp edx, 0x100
jl 0x429c23
lea ecx, [eax + 2]
mov dword [ebp - 0x1c], 0
mov dword [ebp + 0x14], ecx
cdq
idiv edi
mov eax, dword [ebp + 0x14]
dec eax
add dword [ebp - 0xc], 8
push dword [ebp + 8]
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
inc eax
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 8]
xor eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
add eax, 2
cdq
idiv edi
mov eax, dword [ebp + 0x14]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 4
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 5
add dword [ebp + 0x14], 8
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
xor ebx, ecx
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.00429620
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 4], ebx
add ecx, 2
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x100
jl 0x429d00
add eax, 2
mov dword [ebp - 0x1c], 0
mov dword [ebp + 0x14], eax
nop dword [eax]
dec eax
cdq
idiv edi
mov eax, dword [ebp - 0xc]
push dword [ebp + 8]
add dword [ebp - 0xc], 8
movzx ecx, byte [edx + esi]
cdq
idiv edi
movzx eax, byte [edx + esi]
shl eax, 8
xor ecx, eax
mov eax, dword [ebp + 0x14]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
inc eax
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 8]
xor eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
add eax, 2
cdq
idiv edi
mov eax, dword [ebp + 0x14]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 4
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 5
add dword [ebp + 0x14], 8
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
xor ebx, ecx
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.00429620
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 0x14]
mov dword [edx + ecx*4 + 4], ebx
add ecx, 2
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x100
jl 0x429de0
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0x1c], 0
mov dword [ebp + 0x14], eax
dec eax
cdq
idiv edi
mov eax, dword [ebp - 0xc]
push dword [ebp + 8]
add dword [ebp - 0xc], 8
movzx ecx, byte [edx + esi]
cdq
idiv edi
movzx eax, byte [edx + esi]
shl eax, 8
xor ecx, eax
mov eax, dword [ebp + 0x14]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
inc eax
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 8]
xor eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
add eax, 2
cdq
idiv edi
mov eax, dword [ebp + 0x14]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 4
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 5
add dword [ebp + 0x14], 8
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
xor ebx, ecx
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.00429620
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 0x14]
mov dword [edx + ecx*4 + 4], ebx
add ecx, 2
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x100
jl 0x429ec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret