Function at 0x100894c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e91dc
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
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 edi, ecx
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x874], 0
xor eax, eax
mov dword [ebp - 4], 1
push 0xffffffffffffffff
push eax
mov word [ebp - 0x828], ax
lea ecx, [ebp - 0x828]
lea eax, [ebp + 8]
mov dword [ebp - 0x814], 7
push eax
mov dword [ebp - 0x818], 0
call fcn.100040d0
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x818]
mov dword [ebp - 0x870], ebx
test ebx, ebx
jne 0x1008955b
push 0x1022a5e4
mov ecx, edi
call fcn.100031d0
jmp 0x100899df
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101875f8
add esp, 4
mov dword [ebp - 0x85c], eax
xor ecx, ecx
mov byte [ebp - 4], 3
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101875f8
mov ecx, eax
add esp, 4
mov dword [ebp - 0x860], ecx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x85c], 0
je 0x100896de
test ecx, ecx
je 0x100896de
lea esi, [ebx + ebx]
lea eax, [esi + 2]
push eax
push 0
push ecx
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], 8
cmovae eax, dword [ebp - 0x828]
push esi
push eax
push dword [ebp - 0x85c]
call fcn.101a1180
mov ecx, dword [ebp - 0x85c]
lea eax, [ebp + 0x20]
add esp, 0xc
mov edx, esi
cmp dword [ebp + 0x34], 8
cmovae eax, dword [ebp + 0x20]
push eax
push esi
push dword [ebp - 0x860]
call fcn.10089200
lea eax, [ebx*4]
xor ecx, ecx
mov dword [ebp - 0x868], eax
add esp, 0xc
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101875f8
mov edx, eax
add esp, 4
mov dword [ebp - 0x864], edx
test edx, edx
je 0x100896de
xor esi, esi
test ebx, ebx
jle 0x1008969e
xor edi, edi
mov ebx, edx
jmp 0x10089660
mov eax, dword [ebp - 0x860]
movzx eax, word [eax + esi*2]
push eax
mov eax, dword [ebp - 0x868]
sub eax, edi
push str._04lx
inc eax
push eax
push ebx
call fcn.101a1ab5
inc esi
add esp, 0x10
add edi, 4
add ebx, 8
cmp esi, dword [ebp - 0x870]
jl 0x10089660
mov edi, dword [ebp - 0x86c]
mov edx, dword [ebp - 0x864]
mov eax, dword [ebp - 0x868]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp word [edx], cx
je 0x100896c3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100896b4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x828]
call fcn.10003c10
push dword [ebp - 0x864]
call fcn.101a1ad1
add esp, 4
mov edx, dword [ebp - 0x818]
xor ecx, ecx
test edx, edx
je 0x1008971c
mov esi, dword [ebp - 0x814]
mov ebx, dword [ebp - 0x828]
jmp 0x10089700
cmp esi, 8
lea eax, [ebp - 0x828]
cmovae eax, ebx
cmp word [eax + ecx*2], 0x30
jne 0x1008993c
inc ecx
cmp ecx, edx
jb 0x10089700
xor eax, eax
mov dword [ebp - 0x82c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x840], ax
lea ecx, [ebp - 0x840]
lea eax, [ebp + 8]
mov dword [ebp - 0x830], 0
push eax
call fcn.100040d0
xor ecx, ecx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x830], ecx
jbe 0x10089781
mov edx, 0x6745
mov edi, edi
cmp dword [ebp - 0x82c], 8
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
xor word [eax + ecx*2], dx
inc ecx
cmp ecx, dword [ebp - 0x830]
jb 0x10089760
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
mov dword [ebp - 0x818], 0
cmovae eax, dword [ebp - 0x828]
xor ecx, ecx
push 0x7fe
mov word [eax], cx
xor eax, eax
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.101a01b0
xor esi, esi
add esp, 0xc
cmp dword [ebp - 0x830], esi
jbe 0x1008984b
cmp dword [ebp - 0x82c], 8
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
movzx eax, word [eax + esi*2]
push eax
push str._04lx
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.100053b0
add esp, 0x10
cmp word [ebp - 0x810], 0
jne 0x10089810
xor eax, eax
jmp 0x1008982f
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10089820
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.10003b30
inc esi
cmp esi, dword [ebp - 0x830]
jb 0x100897d0
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x858]
call fcn.10089e90
mov esi, eax
add esp, 4
lea eax, [ebp - 0x840]
cmp eax, esi
je 0x100898f8
cmp dword [ebp - 0x82c], 8
jb 0x10089887
push dword [ebp - 0x840]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x82c], 7
mov dword [ebp - 0x830], 0
mov word [ebp - 0x840], ax
cmp dword [esi + 0x14], 8
jae 0x100898c5
mov eax, dword [esi + 0x10]
inc eax
je 0x100898d3
add eax, eax
push eax
lea eax, [ebp - 0x840]
push esi
push eax
call fcn.101a0440
add esp, 0xc
jmp 0x100898d3
mov eax, dword [esi]
mov dword [ebp - 0x840], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x830], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x82c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x844], 8
jb 0x1008990f
push dword [ebp - 0x858]
call fcn.101a02f0
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x828]
call fcn.100040d0
cmp dword [ebp - 0x82c], 8
jb 0x1008993c
push dword [ebp - 0x840]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, dword [ebp - 0x814]
cmp ecx, 8
jae 0x1008997e
mov eax, dword [ebp - 0x818]
inc eax
je 0x10089990
add eax, eax
push eax
lea eax, [ebp - 0x828]
push eax
push edi
call fcn.101a0440
mov ecx, dword [ebp - 0x814]
add esp, 0xc
jmp 0x10089990
mov eax, dword [ebp - 0x828]
mov dword [edi], eax
mov dword [ebp - 0x828], 0
mov eax, dword [ebp - 0x818]
mov dword [edi + 0x10], eax
xor eax, eax
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x860]
mov dword [edi + 0x14], ecx
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
test eax, eax
je 0x100899cc
push eax
call fcn.101a1ad1
add esp, 4
mov eax, dword [ebp - 0x85c]
test eax, eax
je 0x100899df
push eax
call fcn.101a1ad1
add esp, 4
cmp dword [ebp - 0x814], 8
jb 0x100899f6
push dword [ebp - 0x828]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x814], 7
cmp dword [ebp + 0x1c], 8
mov word [ebp - 0x828], ax
mov dword [ebp - 0x818], eax
jb 0x10089a20
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 0x10089a41
push dword [ebp + 0x20]
call fcn.101a02f0
add esp, 4
mov eax, edi
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