Function at 0x1098740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov esi, 0xfffffffe
nop
nop
nop
nop
nop
nop
cmp word [eax + esi + 2], 0
lea esi, [esi + 2]
jne 0x1098760
sar esi, 1
lea ecx, [esp + 0x7c]
push ecx
push 0
push 0
push esi
push eax
push 0
call dword [0x10ccdc0]
mov dword [esp + 0x24], eax
mov dword [esp + 0x100], 0x612627d9
mov word [esp + 0x104], 0
xor ecx, ecx
nop
nop
nop
nop
nop
movzx eax, byte [esp + ecx + 0x100]
lea ebx, [ecx - 0x4880feb7]
mov edi, ebx
and edi, eax
lea edx, [ecx + eax]
add edx, 0xb77f0149
not edx
lea edi, [edx + edi*2]
and edi, ebx
mov edx, edi
and edx, 0x5d
mov ebx, edi
or ebx, 0xfd
inc ebx
imul ebx, edx
mov edx, edi
and edx, 2
or edi, 2
imul edi, edx
sub ebx, edi
lea edx, [ebx + ecx]
add edx, 0xb77f0149
add dl, al
add dl, 0x93
mov byte [esp + ecx + 0x100], dl
mov eax, ecx
and eax, 1
xor ecx, 1
lea ecx, [ecx + eax*2]
cmp ecx, 6
jb case.default.0x1098817
xor ecx, ecx
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x100]
setne cl
xor eax, eax
jmp dword [ecx*4 + 0x10c6964]
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jns 0x109882d
mov eax, 0xffffffff
jmp 0x1098830
lea eax, [ebx + ebx]
push eax
call fcn.01088730
add esp, 4
lea ecx, [esp + 0x7c]
push ecx
push ebx
mov dword [esp + 0x2c], eax
push eax
push esi
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
push 0
call dword [0x10ccdc0]
not eax
shr eax, 0x1f
jmp dword [eax*4 + 0x10c696c]
xor eax, eax
jmp dword [0x10c6974]
push dword [esp + 0x24]
call fcn.01088740
add esp, 4
jmp 0x109c642
mov eax, dword [esp + 0x7c]
mov ecx, eax
add ecx, 0xd
jns 0x109888a
mov eax, 0xffffffff
jmp 0x1098891
lea eax, [eax*2 + 0x1a]
push eax
call fcn.01088730
add esp, 4
mov esi, eax
mov dword [esp + 0x100], 0x23fe218c
mov dword [esp + 0x104], 0x27952585
mov dword [esp + 0x108], 0x3bda398c
mov dword [esp + 0x10c], 0x3f9b3dea
mov dword [esp + 0x110], 0x33813182
mov dword [esp + 0x114], 0x3789358d
mov dword [esp + 0x118], 0xb0a09b6
mov dword [esp + 0x11c], 0
mov eax, 0x7d6715c8
mov ecx, 0x298ea37
nop
nop
movzx edi, byte [esp + eax - 0x7d6714c8]
mov ebx, eax
and ebx, 0x552610e3
mov edx, ecx
and edx, 0x290021c
or edx, ebx
xor edx, edi
lea ebx, [ecx - 0x298ea00]
and ebx, edi
xor edx, 0xaad1071c
or edx, ebx
mov edi, edx
not edi
or edi, 0x17
add edi, edx
xor edx, 0x17
lea edx, [edx + edi*2]
add dl, 3
mov byte [esp + eax - 0x7d6714c8], dl
inc eax
dec ecx
cmp eax, 0x7d6715e8
jne 0x1098900
mov eax, dword [esp + 0x24]
movzx ecx, word [eax]
mov eax, esi
test cx, cx
je 0x1098981
mov eax, dword [esp + 0x24]
lea edx, [eax + 2]
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x1098970
mov word [eax], 0
movzx ecx, word [esp + 0x100]
test cx, cx
je 0x10989b1
lea edx, [esp + 0x102]
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x10989a0
mov word [eax], 0
lea eax, [esp + 0x288]
push 0x60
push 3
push 0x120089
push eax
push esi
call fcn.010c05a0
add esp, 0x14
not eax
shr eax, 0x1f
jmp dword [eax*4 + 0x10c697c]
jmp dword [0x10c69b4]
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret