Function at 0xb29560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov dword [esp + 0x54], ecx
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x28], 0x100000
mov dword [esp + 0xc], 0
mov dword [esp + 0x38], 0x1c1d1e1f
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x44], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xc
ja 0xb29616
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x38]
mov edx, eax
and edx, 0x2560f27c
xor eax, 0xa560f27c
lea eax, [eax + edx*2]
mov edx, eax
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x9c
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xd
jb 0xb295d0
mov eax, dword [esp + 0x38]
mov ecx, dword [0xcc8bac]
test ecx, ecx
je 0xb2966e
xor edx, edx
mov esi, dword [0xcc8bb0]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xd23749
je 0xb29640
inc edx
cmp ecx, edx
jne 0xb29630
jmp 0xb2966e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0xb2966e
lea eax, [esp + 0x28]
lea edx, [esp + 0xc]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push dword [0xcc8bb4]
push ecx
call fcn.00b2a560
add esp, 0x24
test eax, eax
js 0xb29d0a
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0x10000
jmp 0xb296d7
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x38]
mov dword [esp + 0x34], eax
cmp eax, 0x7fffffff
jae 0xb29c3b
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov dword [esp + 0x10], 0x1c1d1e1f
lea eax, [esp + 0x14]
mov byte [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0xb29756
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
mov esi, eax
and esi, 0x2560f27c
xor eax, 0xa560f27c
lea eax, [eax + esi*2]
mov esi, eax
and esi, edx
add eax, edx
add esi, esi
sub eax, esi
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x9c
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0xb29710
mov eax, dword [esp + 0x10]
mov edx, dword [0xcc8bac]
test edx, edx
je 0xb297b0
xor esi, esi
mov edi, dword [0xcc8bb0]
nop
nop
nop
nop
cmp dword [edi + esi*8], 0x1a7c99fc
je 0xb29780
inc esi
cmp edx, esi
jne 0xb29770
jmp 0xb297b0
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0xb297b0
push 0
push 0x1c
lea eax, [esp + 0x40]
push eax
push 0
push dword [esp + 0x44]
push ecx
push 6
push dword [0xcc8bb4]
push edx
call fcn.00b2a560
add esp, 0x24
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0xbfffffff
ja 0xb29c3b
test eax, eax
js 0xb296c0
cmp dword [esp + 0x48], 0x1000
jne 0xb296c0
cmp dword [esp + 0x4c], 1
je 0xb296c0
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x44], eax
jbe 0xb299aa
mov dword [esp + 0x10], 0x1c1d1e1f
lea eax, [esp + 0x14]
mov byte [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0xb29866
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, eax
and edx, 0x2560f27c
xor eax, 0xa560f27c
lea eax, [eax + edx*2]
mov edx, eax
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x9c
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0xb29820
mov eax, dword [0xcc8bac]
test eax, eax
je 0xb298ba
mov ecx, dword [esp + 0x10]
xor edx, edx
mov esi, dword [0xcc8bb0]
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe23f8252
je 0xb29890
inc edx
cmp eax, edx
jne 0xb29880
jmp 0xb298ba
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0xb298ba
push 0x8000
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x14]
push ecx
push 0xffffffffffffffff
push 4
push dword [0xcc8bb4]
push eax
call fcn.00b2a560
add esp, 0x1c
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 0x1c1d1e1f
lea eax, [esp + 0x14]
mov byte [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0xb29946
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, eax
and edx, 0x2560f27c
xor eax, 0xa560f27c
lea eax, [eax + edx*2]
mov edx, eax
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x9c
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0xb29900
mov eax, dword [esp + 0x10]
mov ecx, dword [0xcc8bac]
test ecx, ecx
je 0xb2999e
xor edx, edx
mov esi, dword [0xcc8bb0]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xd23749
je 0xb29970
inc edx
cmp ecx, edx
jne 0xb29960
jmp 0xb2999e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0xb2999e
push 4
push 0x3000
lea eax, [esp + 0x30]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push 6
push dword [0xcc8bb4]
push ecx
call fcn.00b2a560
add esp, 0x24
test eax, eax
js 0xb29c3b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
lea edx, [esp + 8]
push edx
push eax
push dword [esp + 0x14]
push dword [esp + 0x40]
call fcn.00b293e0
cmp eax, 0xbfffffff
ja 0xb296c0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
call fcn.00b29d20
add esp, 0x18
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp ecx, edx
je 0xb296c0
mov eax, dword [ebx + 8]
mov dword [esp + 0x30], eax
mov esi, dword [ebx]
mov dword [esp + 0x24], esi
mov edi, dword [ebx + 4]
mov dword [esp + 0x60], ecx
mov esi, ecx
mov dword [esp + 0x64], edx
jmp 0xb29a45
mov eax, edx
mov edx, ebx
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x6c]
mov dword [edx + ecx*4], esi
add edi, 4
mov dword [ebx + 4], edi
mov esi, dword [esp + 0x70]
add esi, 4
cmp esi, eax
mov edx, eax
je 0xb29c19
mov dword [esp + 0x70], esi
mov esi, dword [esi]
sub esi, dword [esp + 0xc]
add esi, dword [esp + 0x34]
mov dword [esp + 0x6c], esi
mov esi, edi
mov ebx, dword [esp + 0x24]
sub esi, ebx
mov ecx, esi
sar ecx, 2
cmp edi, dword [esp + 0x30]
jne 0xb29a20
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
mov dword [esp + 0x68], ecx
add edx, ecx
cmp edx, eax
ja 0xb29a7d
mov edx, eax
mov dword [esp + 0x30], edx
lea eax, [edx*4]
push eax
call fcn.00af9490
add esp, 4
mov edx, dword [esp + 0x24]
test edx, edx
mov ebx, dword [ebp + 8]
je 0xb29bf3
cmp eax, edx
mov dword [esp + 0x58], eax
jbe 0xb29b6f
lea ecx, [edx + esi]
cmp ecx, eax
jbe 0xb29b6f
test esi, esi
je 0xb29be0
mov eax, esi
or eax, 0xfffffffe
mov ecx, esi
and ecx, 0xfffffffe
add ecx, eax
mov edx, dword [esp + 0x24]
lea eax, [edx + ecx]
inc eax
mov ecx, dword [esp + 0x58]
add ecx, esi
dec ecx
not edx
add edx, edi
mov ebx, esi
and ebx, 7
je 0xb29b06
mov dword [esp + 0x2c], edx
neg ebx
xor edi, edi
nop
nop
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
dec edi
cmp ebx, edi
jne 0xb29af0
add eax, edi
add ecx, edi
add esi, edi
mov edx, dword [esp + 0x2c]
cmp edx, 7
jb 0xb29be0
neg esi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
movzx ebx, byte [eax + edx - 1]
mov byte [ecx + edx - 1], bl
movzx ebx, byte [eax + edx - 2]
mov byte [ecx + edx - 2], bl
movzx ebx, byte [eax + edx - 3]
mov byte [ecx + edx - 3], bl
movzx ebx, byte [eax + edx - 4]
mov byte [ecx + edx - 4], bl
movzx ebx, byte [eax + edx - 5]
mov byte [ecx + edx - 5], bl
movzx ebx, byte [eax + edx - 6]
mov byte [ecx + edx - 6], bl
movzx ebx, byte [eax + edx - 7]
mov byte [ecx + edx - 7], bl
add edx, 0xfffffff8
cmp esi, edx
jne 0xb29b20
jmp 0xb29be0
mov ebx, eax
mov ecx, esi
shr ecx, 2
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov edx, esi
and edx, 0xfffffffc
lea ecx, [ebx + edx]
mov dword [esp + 0x2c], ecx
add edx, eax
mov eax, esi
and eax, 3
mov ecx, eax
shr ecx, 1
mov ebx, edx
mov edi, dword [esp + 0x2c]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov edi, dword [esp + 0x2c]
mov ecx, eax
xor ecx, 0xfffffffe
or eax, 1
and eax, ecx
je 0xb29be0
and esi, 2
movzx ecx, byte [edx + esi]
mov byte [edi + esi], cl
cmp eax, 1
je 0xb29be0
movzx ecx, byte [edx + esi + 1]
mov byte [edi + esi + 1], cl
cmp eax, 2
je 0xb29be0
movzx eax, byte [edx + esi + 2]
mov byte [edi + esi + 2], al
nop
nop
nop
nop
nop
nop
push dword [esp + 0x24]
call fcn.00af94a0
add esp, 4
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x58]
mov dword [ebx], eax
mov edx, eax
mov ecx, dword [esp + 0x68]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x30]
lea eax, [edx + eax*4]
mov dword [esp + 0x30], eax
mov dword [ebx + 8], eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x64]
jmp 0xb29a27
mov eax, dword [esp + 0x60]
test eax, eax
je 0xb296c0
cmp eax, edx
je 0xb296c0
push eax
call fcn.00af94a0
add esp, 4
jmp 0xb296c0
mov dword [esp + 0x10], 0x1c1d1e1f
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0xb29cb6
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, eax
and edx, 0x2560f27c
xor eax, 0xa560f27c
lea eax, [eax + edx*2]
mov edx, eax
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x9c
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0xb29c70
mov eax, dword [0xcc8bac]
test eax, eax
je 0xb29d0a
mov ecx, dword [esp + 0x10]
xor edx, edx
mov esi, dword [0xcc8bb0]
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe23f8252
je 0xb29ce0
inc edx
cmp eax, edx
jne 0xb29cd0
jmp 0xb29d0a
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0xb29d0a
push 0x8000
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x14]
push ecx
push 0xffffffffffffffff
push 4
push dword [0xcc8bb4]
push eax
call fcn.00b2a560
add esp, 0x1c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10