Function at 0x10023260
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x24]
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
mov eax, dword [esi + 0x4e68]
mov edi, 2
cmp eax, 3
jg 0x10023290
push esi
call fcn.10022f10
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov eax, dword [esi + 0x88]
test eax, eax
je 0x10023636
push ebp
mov ebp, 0x106
cmp dword [esi], 0
jne 0x10023619
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x54]
xor ecx, ecx
mov ebx, dword [esi + 0x5c]
mov cl, byte [edx + eax + 2]
mov eax, dword [esi + 0x74]
and eax, 0x1ff
and ecx, 0x3fff
shl eax, 5
xor ecx, eax
xor eax, eax
mov dword [esi + 0x74], ecx
and edx, 0x7fff
mov ax, word [ebx + ecx*2]
mov ecx, dword [esi + 0x58]
test eax, eax
mov word [ecx + edx*2], ax
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x5c]
mov bx, word [esi + 0x7c]
mov word [ecx + edx*2], bx
mov edx, dword [esi + 0x80]
mov dword [esi + 0x78], edi
mov dword [esp + 0x24], edx
mov edi, 2
je 0x1002349a
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x90]
cmp ecx, edx
jae 0x1002349a
mov edx, dword [esi + 0x7c]
mov ebx, edx
mov dword [esp + 0x20], edx
sub ebx, eax
cmp ebx, 0x7efa
ja 0x1002349a
mov ebp, eax
mov eax, dword [esi + 0x8c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x54]
add eax, edx
cmp edx, 0x7efa
mov edi, ecx
jbe 0x1002335c
add edx, 0xffff8106
mov dword [esp + 0x1c], edx
jmp 0x10023364
mov dword [esp + 0x1c], 0
mov bl, byte [edi + eax - 1]
lea edx, [eax + 0x102]
mov byte [esp + 0x2c], bl
mov bl, byte [edi + eax]
mov byte [esp + 0x13], bl
mov ebx, dword [esi + 0x94]
cmp ecx, ebx
jb 0x10023388
shr dword [esp + 0x14], 2
mov ecx, dword [esi + 0x54]
mov bl, byte [esp + 0x13]
add ecx, ebp
cmp byte [ecx + edi], bl
jne 0x10023444
mov bl, byte [esp + 0x2c]
cmp byte [ecx + edi - 1], bl
jne 0x10023444
mov bl, byte [ecx]
cmp bl, byte [eax]
jne 0x10023444
mov bl, byte [ecx + 1]
inc ecx
cmp bl, byte [eax + 1]
jne 0x10023444
add eax, 2
inc ecx
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x1002340f
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x1002340f
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x1002340f
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x1002340f
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x1002340f
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x1002340f
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x1002340f
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x1002340f
cmp eax, edx
jb 0x100233c3
mov ecx, eax
lea eax, [edx - 0x102]
sub ecx, edx
add ecx, 0x102
cmp ecx, edi
jle 0x10023444
mov ebx, dword [esi + 0x98]
mov dword [esi + 0x80], ebp
cmp ecx, ebx
mov edi, ecx
jge 0x1002346c
mov bl, byte [ecx + eax - 1]
mov cl, byte [ecx + eax]
mov byte [esp + 0x2c], bl
mov byte [esp + 0x13], cl
mov ecx, dword [esi + 0x58]
and ebp, 0x7fff
xor ebx, ebx
mov bx, word [ecx + ebp*2]
mov ecx, dword [esp + 0x1c]
mov ebp, ebx
cmp ebp, ecx
jbe 0x1002346c
mov ecx, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x14], ecx
jne 0x10023388
mov eax, dword [esi + 0x88]
cmp edi, eax
jbe 0x10023478
mov edi, eax
cmp edi, 3
jne 0x10023495
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x80]
sub eax, edx
cmp eax, 0x1000
jbe 0x10023495
mov edi, 2
mov ebp, 0x106
mov eax, dword [esi + 0x78]
cmp eax, 3
jb 0x10023579
cmp edi, eax
ja 0x10023579
mov edx, dword [esi + 0x7c]
add eax, 0xfffffffd
push esi
push eax
sub edx, dword [esp + 0x2c]
dec edx
push edx
call fcn.100247c0
mov ecx, dword [esi + 0x78]
mov edi, dword [esi + 0x88]
mov edx, 1
add esp, 0xc
sub edx, ecx
add edi, edx
add ecx, 0xfffffffe
mov dword [esi + 0x88], edi
mov dword [esi + 0x78], ecx
mov ebx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x54]
mov edi, dword [esi + 0x74]
inc ebx
mov dword [esi + 0x7c], ebx
mov edx, ebx
xor ebx, ebx
and edi, 0x1ff
mov bl, byte [edx + ecx + 2]
and edx, 0x7fff
mov ecx, ebx
mov ebx, dword [esi + 0x58]
and ecx, 0x3fff
shl edi, 5
xor ecx, edi
mov edi, dword [esi + 0x5c]
mov dword [esi + 0x74], ecx
mov cx, word [edi + ecx*2]
mov word [ebx + edx*2], cx
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x5c]
mov di, word [esi + 0x7c]
mov word [ecx + edx*2], di
mov ecx, dword [esi + 0x78]
dec ecx
mov dword [esi + 0x78], ecx
jne 0x100234e2
mov ecx, dword [esi + 0x7c]
xor ebx, ebx
inc ecx
mov dword [esp + 0x18], ebx
test eax, eax
mov edi, 2
mov dword [esi + 0x7c], ecx
je 0x100235e6
mov edx, dword [esi + 0x6c]
test edx, edx
jl 0x10023560
mov eax, edx
add eax, dword [esi + 0x54]
jmp 0x10023562
xor eax, eax
push esi
sub ecx, edx
push 0
push ecx
push eax
call fcn.100243a0
mov edx, dword [esi + 0x7c]
add esp, 0x10
mov dword [esi + 0x6c], edx
jmp 0x100235e6
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x100235c9
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x54]
xor edx, edx
push esi
mov dl, byte [eax + ecx - 1]
push edx
push 0
call fcn.100247c0
add esp, 0xc
test eax, eax
je 0x100235d2
mov ecx, dword [esi + 0x6c]
test ecx, ecx
jl 0x100235ad
mov edx, dword [esi + 0x54]
mov eax, ecx
add eax, edx
jmp 0x100235af
xor eax, eax
mov edx, dword [esi + 0x7c]
push esi
sub edx, ecx
push 0
push edx
push eax
call fcn.100243a0
mov eax, dword [esi + 0x7c]
add esp, 0x10
mov dword [esi + 0x6c], eax
jmp 0x100235d2
mov ebx, 1
mov dword [esp + 0x18], ebx
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x88]
inc ecx
dec eax
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x88], eax
cmp dword [esi + 0x88], ebp
jae 0x1002360b
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x1002360b
push esi
call fcn.10022df0
mov eax, dword [esi + 0x88]
add esp, 4
cmp eax, ebp
jb 0x100235ee
mov eax, dword [esi + 0x88]
test eax, eax
jne 0x100232a4
test ebx, ebx
pop ebp
je 0x10023636
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x54]
xor eax, eax
push esi
mov al, byte [ecx + edx - 1]
push eax
push 0
call fcn.100247c0
add esp, 0xc
mov ecx, dword [esi + 0x6c]
test ecx, ecx
jl 0x10023644
mov eax, dword [esi + 0x54]
add eax, ecx
jmp 0x10023646
xor eax, eax
mov edx, dword [esi + 0x7c]
push esi
sub edx, ecx
push 1
push edx
push eax
call fcn.100243a0
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x18
ret