Function at 0x100923c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
push esi
mov esi, dword [ebp + 8]
sub eax, esi
and eax, 0xfffffff8
push edi
cmp eax, 0x100
jle 0x1009244d
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x100924b0
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push ebx
push esi
push eax
call fcn.100918d0
mov edx, dword [ebp - 0x14]
mov eax, edi
sar eax, 2
mov ecx, ebx
sar edi, 1
add esp, 0x10
add edi, eax
sub ecx, edx
mov eax, dword [ebp - 0x18]
and ecx, 0xfffffff8
sub eax, esi
and eax, 0xfffffff8
cmp eax, ecx
mov eax, dword [ebp + 0x14]
push eax
push edi
jge 0x1009242f
mov eax, dword [ebp - 0x18]
push eax
push esi
call fcn.100923c0
mov esi, dword [ebp - 0x14]
mov dword [ebp + 8], esi
jmp 0x1009243c
push ebx
push edx
call fcn.100923c0
mov ebx, dword [ebp - 0x18]
mov dword [ebp + 0xc], ebx
mov eax, ebx
add esp, 0x10
sub eax, esi
and eax, 0xfffffff8
cmp eax, 0x100
jg 0x100923e0
cmp esi, ebx
je 0x10092668
lea edi, [esi + 8]
mov dword [ebp - 0x10], edi
cmp edi, ebx
je 0x10092668
mov dword [ebp - 0xc], esi
push dword [esi + 4]
mov ecx, dword [edi + 4]
mov ebx, edi
push dword [esi]
mov eax, dword [edi]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
call fcn.10095e30
add esp, 0x10
test al, al
je 0x100925f8
mov ecx, edi
mov eax, edi
sub ecx, esi
push ecx
sub eax, ecx
add eax, 8
push esi
push eax
call fcn.100f29f0
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
jmp 0x10092655
sub ebx, esi
mov ecx, ebx
mov dword [ebp + 0xc], ebx
sar ecx, 3
mov edx, ecx
mov dword [ebp - 8], ecx
sar edx, 1
test edx, edx
jle 0x100925a0
lea eax, [ecx - 1]
mov dword [ebp - 0x14], eax
sar eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [esi + edx*8 - 8]
dec edx
mov dword [ebp - 4], eax
mov ebx, edx
mov dword [ebp + 8], edx
mov edi, edx
mov eax, dword [esi + edx*8 + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
cmp edx, eax
jge 0x10092531
add edi, edi
push dword [esi + edi*8 + 0xc]
push dword [esi + edi*8 + 8]
push dword [esi + edi*8 + 0x14]
push dword [esi + edi*8 + 0x10]
call fcn.10095e30
movzx eax, al
add esp, 0x10
xor eax, 1
inc eax
add edi, eax
mov eax, dword [esi + edi*8]
mov ecx, dword [esi + edi*8 + 4]
mov dword [esi + ebx*8], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + ebx*8 + 4], ecx
mov ebx, edi
cmp edi, eax
jl 0x100924f1
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ebx, eax
jne 0x1009254c
test cl, 1
jne 0x1009254c
mov eax, dword [esi + ecx*8 - 8]
mov ecx, dword [esi + ecx*8 - 4]
mov dword [esi + ebx*8], eax
mov dword [esi + ebx*8 + 4], ecx
mov ebx, dword [ebp - 0x14]
cmp edx, ebx
jge 0x10092585
push dword [ebp - 0x10]
lea edi, [ebx - 1]
push dword [ebp - 4]
sar edi, 1
push dword [esi + edi*8 + 4]
push dword [esi + edi*8]
call fcn.10095e30
mov edx, dword [ebp + 8]
add esp, 0x10
test al, al
je 0x10092585
mov eax, dword [esi + edi*8]
mov ecx, dword [esi + edi*8 + 4]
mov dword [esi + ebx*8], eax
mov dword [esi + ebx*8 + 4], ecx
mov ebx, edi
cmp edx, edi
jl 0x10092550
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [esi + ebx*8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + ebx*8 + 4], eax
test edx, edx
jg 0x100924d4
mov ebx, dword [ebp + 0xc]
cmp ecx, 2
jl 0x10092668
nop dword [eax]
mov eax, dword [esi + ebx - 8]
mov ecx, dword [esi + ebx - 4]
push dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 4]
mov dword [esi + ebx - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebx - 8]
mov dword [esi + ebx - 4], ecx
sar eax, 3
push eax
push 0
push esi
call fcn.10091ce0
sub ebx, 8
add esp, 0x14
mov eax, ebx
and eax, 0xfffffff8
cmp eax, 0x10
jge 0x100925b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov edi, eax
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.10095e30
add esp, 0x10
test al, al
je 0x10092647
mov esi, dword [ebp - 4]
nop dword [eax]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ebx, edi
push dword [edi - 4]
sub edi, 8
push dword [edi]
push dword [ebp - 8]
push esi
call fcn.10095e30
add esp, 0x10
test al, al
jne 0x10092620
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
add dword [ebp - 0xc], 8
add edi, 8
mov dword [ebp - 0x10], edi
cmp edi, dword [ebp + 0xc]
jne 0x10092466
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret