Function at 0x1006e4a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x50
call fcn.10084230
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
push edi
push esi
mov dword [esp + 0x40], 0
call fcn.10028210
push esi
call fcn.10028360
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x1006e8e5
push esi
call fcn.10028360
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x1006e8e5
push esi
call fcn.10028360
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x1c], edi
je 0x1006e8e5
push esi
call fcn.10028360
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x1006e8e5
mov esi, dword [esp + 0x6c]
xor edx, edx
mov eax, dword [esi + 4]
test eax, eax
je 0x1006e5fe
dec eax
test eax, eax
jl 0x1006e585
mov ecx, dword [esi]
mov ebx, eax
shl ebx, 5
lea ebp, [ecx + eax*4]
inc eax
mov dword [esp + 0x30], eax
cmp dword [ebp], 0
je 0x1006e56f
mov esi, bind
mov ecx, 0x1f
lea eax, [esp + edx*4 + 0x48]
test dword [ebp], esi
je 0x1006e566
cmp edx, 6
jge 0x1006e562
lea edi, [ebx + ecx]
mov dword [eax], edi
mov edi, dword [esp + 0x1c]
inc edx
add eax, 4
shr esi, 1
dec ecx
jns 0x1006e54f
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x30]
sub ebp, 4
sub ebx, 0x20
dec eax
mov dword [esp + 0x30], eax
jne 0x1006e53b
cmp edx, 6
jge 0x1006e58e
mov dword [esp + edx*4 + 0x48], 0xffffffff
inc edx
test edx, edx
je 0x1006e5fe
cmp edx, 6
jg 0x1006e5fe
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x48]
push edx
push eax
push edi
call fcn.1006dcc0
add esp, 0xc
test eax, eax
je 0x1006e8e5
mov eax, dword [edi + 4]
test eax, eax
je 0x1006e8e5
mov ebp, dword [esp + 0x20]
push esi
push ebp
call fcn.10027130
add esp, 8
test eax, eax
je 0x1006e8e5
push edi
call fcn.10026db0
mov ebx, eax
push ebp
mov dword [esp + 0x70], ebx
call fcn.10026db0
mov ebp, dword [esi + 4]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 8]
add esp, 8
cmp ebp, eax
mov dword [esp + 0x10], ebp
jg 0x1006e61e
mov eax, edi
jmp 0x1006e628
push 0x1dd
push 0x100b3110
push 0x6a
push 0x83
push 3
call fcn.10025e30
add esp, 0x14
jmp 0x1006e8e5
push ebp
push edi
call fcn.10027030
add esp, 8
test eax, eax
je 0x1006e8e5
mov eax, dword [edi + 4]
mov esi, dword [edi]
cmp eax, ebp
mov dword [esp + 0x14], esi
jge 0x1006e64c
mov ecx, ebp
lea edi, [esi + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
mov dword [edi + 4], ebp
mov edi, dword [esp + 0x18]
cmp ebp, dword [edi + 8]
jg 0x1006e65c
mov eax, edi
jmp 0x1006e666
push ebp
push edi
call fcn.10027030
add esp, 8
test eax, eax
je 0x1006e8e5
mov ebp, dword [edi]
mov edx, dword [esp + 0x10]
cmp edx, 1
mov dword [esp + 0x38], ebp
mov dword [ebp], 1
jle 0x1006e68e
lea edi, [ebp + 4]
lea ecx, [edx - 1]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov dword [ecx + 4], edx
mov eax, dword [edi + 8]
cmp edx, eax
jg 0x1006e6a4
mov eax, edi
jmp 0x1006e6ae
push edx
push edi
call fcn.10027030
add esp, 8
test eax, eax
je 0x1006e8e5
mov edx, dword [esp + 0x10]
mov edi, dword [edi]
test edx, edx
mov dword [esp + 0x2c], edi
jle 0x1006e6ca
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [ecx]
mov dword [esp + 0x28], edx
test ebx, ebx
je 0x1006e7a4
mov ebx, dword [esi]
test bl, 1
jne 0x1006e7a0
mov edx, dword [ebp]
mov eax, dword [esp + 0x6c]
mov edi, edx
mov ecx, dword [eax]
and edi, 1
neg edi
mov eax, dword [ecx]
mov ecx, dword [esp + 0x10]
and eax, edi
xor edx, eax
xor eax, eax
dec ecx
test ecx, ecx
jle 0x1006e786
mov eax, dword [esp + 0x14]
lea ecx, [ebp + 4]
sub eax, ebp
mov ebp, dword [esp + 0x10]
dec ebp
mov esi, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x44], ebp
jmp 0x1006e734
mov eax, dword [esp + 0x40]
mov eax, dword [eax + ecx]
add esi, 4
mov ebp, eax
add ecx, 4
shl ebp, 0x1f
shr ebx, 1
or ebp, ebx
mov ebx, dword [esp + 0x14]
shr edx, 1
mov dword [ebx + esi - 8], ebp
mov ebx, eax
mov eax, dword [esp + 0x6c]
mov ebp, dword [ecx - 4]
mov eax, dword [eax]
mov eax, dword [esi + eax - 4]
and eax, edi
xor eax, ebp
mov ebp, eax
shl ebp, 0x1f
or ebp, edx
mov edx, eax
mov eax, dword [esp + 0x34]
mov dword [ecx - 8], ebp
dec eax
mov dword [esp + 0x34], eax
jne 0x1006e730
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
shr ebx, 1
shr edx, 1
mov dword [esi + eax*4], ebx
mov dword [ebp + eax*4], edx
mov eax, dword [esp + 0x68]
dec eax
mov dword [esp + 0x68], eax
jne 0x1006e6e3
mov ebx, dword [esp + 0x68]
cmp ebx, 0x20
jg 0x1006e7bc
mov eax, dword [esi]
test eax, eax
je 0x1006e8e5
cmp eax, 1
je 0x1006e89b
mov ecx, dword [esp + 0x30]
cmp ebx, ecx
jge 0x1006e812
mov edx, dword [esp + 0x20]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x1c]
mov eax, ebx
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x14], edx
mov edx, dword [eax]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x1006e851
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x10]
mov ecx, ebp
sub edx, esi
sub edi, esi
mov eax, esi
sub ecx, esi
mov dword [esp + 0x34], ebx
mov ebx, dword [edx + eax]
xor dword [eax], ebx
mov ebx, dword [edi + eax]
xor dword [ecx + eax], ebx
mov ebx, dword [esp + 0x34]
add eax, 4
dec ebx
mov dword [esp + 0x34], ebx
jne 0x1006e834
mov ebx, dword [esp + 0x68]
cmp ebx, dword [esp + 0x30]
jne 0x1006e6db
lea eax, [ebx - 1]
cdq
and edx, 0x1f
add eax, edx
mov edi, eax
sar edi, 5
mov eax, dword [esi + edi*4]
lea ecx, [esi + edi*4]
test eax, eax
jne 0x1006e882
test edi, edi
je 0x1006e882
mov eax, dword [ecx - 4]
sub ecx, 4
dec edi
test eax, eax
je 0x1006e873
push eax
call fcn.10026d50
shl edi, 5
add esp, 4
add eax, edi
mov dword [esp + 0x68], eax
mov ebx, eax
jmp 0x1006e6db
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
test eax, eax
jle 0x1006e8bd
mov ecx, dword [edx]
lea ecx, [ecx + eax*4 - 4]
mov esi, dword [ecx]
sub ecx, 4
test esi, esi
jne 0x1006e8ba
dec eax
test eax, eax
jg 0x1006e8ac
mov dword [edx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x1006e8cb
mov dword [edx + 0xc], 0
push edx
mov edx, dword [esp + 0x68]
push edx
call fcn.10027130
add esp, 8
test eax, eax
je 0x1006e8e5
mov dword [esp + 0x3c], 1
mov eax, dword [esp + 0x70]
push eax
call fcn.100282f0
mov eax, dword [esp + 0x40]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret