Function at 0x10094c50
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 0x10094cdd
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x10094d40
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push ebx
push esi
push eax
call fcn.10094160
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 0x10094cbf
mov eax, dword [ebp - 0x18]
push eax
push esi
call fcn.10094c50
mov esi, dword [ebp - 0x14]
mov dword [ebp + 8], esi
jmp 0x10094ccc
push ebx
push edx
call fcn.10094c50
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 0x10094c70
cmp esi, ebx
je 0x10094ef8
lea edi, [esi + 8]
mov dword [ebp - 0x10], edi
cmp edi, ebx
je 0x10094ef8
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.100986c0
add esp, 0x10
test al, al
je 0x10094e88
mov ecx, edi
mov eax, edi
sub ecx, esi
push ecx
sub eax, ecx
add eax, 8
push esi
push eax
call fcn.100f5290
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
jmp 0x10094ee5
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 0x10094e30
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 0x10094dc1
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.100986c0
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 0x10094d81
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ebx, eax
jne 0x10094ddc
test cl, 1
jne 0x10094ddc
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 0x10094e15
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.100986c0
mov edx, dword [ebp + 8]
add esp, 0x10
test al, al
je 0x10094e15
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 0x10094de0
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 0x10094d64
mov ebx, dword [ebp + 0xc]
cmp ecx, 2
jl 0x10094ef8
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.10094570
sub ebx, 8
add esp, 0x14
mov eax, ebx
and eax, 0xfffffff8
cmp eax, 0x10
jge 0x10094e40
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.100986c0
add esp, 0x10
test al, al
je 0x10094ed7
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.100986c0
add esp, 0x10
test al, al
jne 0x10094eb0
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 0x10094cf6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret