Function at 0x10089a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e9240
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 4], 1
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp + 8]
mov dword [ebp - 0x14], 7
push eax
mov dword [ebp - 0x18], 0
call fcn.100040d0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0
jne 0x10089aec
push 0x1022a5e4
mov ecx, ebx
call fcn.100031d0
jmp 0x10089dc0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push str.NEW_
push eax
call fcn.101a8209
add esp, 0xc
test eax, eax
jne 0x10089c1f
push 4
push eax
lea ecx, [ebp - 0x28]
call fcn.100043f0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10089adb
test al, 3
jne 0x10089adb
xor ecx, ecx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], cx
xor esi, esi
mov byte [ebp - 4], 3
test eax, eax
je 0x10089b78
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
cmovae eax, dword [ebp - 0x28]
push ecx
push str._04lx
lea eax, [eax + esi*2]
push eax
call fcn.101ac86a
add esp, 0xc
lea ecx, [ebp - 0x40]
push dword [ebp - 0x44]
push 1
call fcn.1001d590
add esi, 4
cmp esi, dword [ebp - 0x18]
jb 0x10089b43
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.100040d0
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
jbe 0x10089ba9
mov edx, 0x6745
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor word [eax + ecx*2], dx
inc ecx
cmp ecx, dword [ebp - 0x18]
jb 0x10089b94
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jae 0x10089bdf
mov eax, dword [ebp - 0x18]
inc eax
je 0x10089beb
add eax, eax
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.101a0440
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x10089beb
mov eax, dword [ebp - 0x28]
mov dword [ebx], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x10], eax
xor eax, eax
cmp dword [ebp - 0x2c], 8
mov dword [ebx + 0x14], ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x10089dd1
push dword [ebp - 0x40]
call fcn.101a02f0
jmp 0x10089dbd
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cdq
and edx, 3
add eax, edx
mov edx, 2
sar eax, 2
mov dword [ebp - 0x44], eax
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101875f8
mov edi, eax
add esp, 4
mov dword [ebp - 0x48], edi
test edi, edi
je 0x10089cb8
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov eax, dword [ebp - 0x44]
cmovae esi, dword [ebp - 0x28]
test eax, eax
jle 0x10089c86
mov ebx, eax
push edi
push str._04lx
push esi
call fcn.101ac86a
add esp, 0xc
add edi, 2
add esi, 8
dec ebx
jne 0x10089c65
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov word [edi + eax*2], cx
cmp word [edi], cx
je 0x10089ca5
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10089c96
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10003c10
push edi
call fcn.101a1ad1
add esp, 4
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x48], eax
mov edx, 2
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101875f8
mov edi, eax
add esp, 4
mov dword [ebp - 0x44], edi
xor ecx, ecx
mov byte [ebp - 4], 4
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101875f8
mov esi, eax
add esp, 4
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 5
test edi, edi
je 0x10089d9b
test esi, esi
je 0x10089d9b
mov edi, dword [ebp - 0x48]
add edi, edi
lea esi, [edi + 2]
push esi
push 0
push dword [ebp - 0x44]
call fcn.101a01b0
add esp, 0xc
push esi
mov esi, dword [ebp - 0x4c]
push 0
push esi
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push dword [ebp - 0x44]
call fcn.101a1180
add esp, 0xc
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
mov edx, edi
cmovae eax, dword [ebp + 0x20]
push eax
push edi
mov edi, dword [ebp - 0x44]
mov ecx, edi
push esi
call fcn.10088f80
add esp, 0xc
cmp word [esi], 0
jne 0x10089d7d
xor ecx, ecx
jmp 0x10089d91
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10089d82
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10003c10
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.10003230
test esi, esi
je 0x10089db3
push esi
call fcn.101a1ad1
add esp, 4
test edi, edi
je 0x10089dc0
push edi
call fcn.101a1ad1
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x10089dd1
push dword [ebp - 0x28]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp + 0x1c], 8
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
jb 0x10089df2
push dword [ebp + 8]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov word [ebp + 8], ax
mov dword [ebp + 0x18], eax
jb 0x10089e13
push dword [ebp + 0x20]
call fcn.101a02f0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret