Function at 0x1011bfd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
xor eax, eax
mov dword [esp + 0xc], edx
cmp dword [ecx], eax
mov edx, dword [ebp + 0x1c]
push ebx
push esi
sete al
mov dword [esp + 8], ecx
add edx, 0xffffffff
mov dword [esp + 0x28], 0
push edi
mov dword [esp + 0x28], eax
mov esi, 0xd
js 0x1011c028
mov edi, dword [ebp + 0x18]
nop word [eax + eax]
movzx ecx, byte [edi + edx]
lea eax, [esi*8]
xor ecx, eax
xor esi, ecx
sub edx, 1
jns 0x1011c010
mov ecx, dword [esp + 0xc]
movzx edx, byte [ebp + 0x14]
lea eax, [esi*8]
mov ebx, dword [ecx + 0xc]
xor eax, edx
mov dword [esp + 0x34], edx
xor eax, esi
xor edx, edx
div ebx
mov edi, edx
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
lea eax, [edi*4]
mov esi, dword [eax + edx]
test esi, esi
je 0x1011c0e8
mov al, byte [ebp + 0x14]
cmp byte [esi + 0x28], al
jne 0x1011c0da
mov eax, dword [ebp + 0x1c]
cmp dword [esi + 0x14], eax
jne 0x1011c0d7
mov edx, dword [ebp + 0x18]
lea ecx, [esi + 0x29]
mov edi, eax
sub edi, 4
jb 0x1011c091
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1011c09a
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1011c080
cmp edi, 0xfffffffc
je 0x1011c260
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1011c0d7
cmp edi, 0xfffffffd
je 0x1011c260
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1011c0d7
cmp edi, 0xfffffffe
je 0x1011c260
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1011c0d7
cmp edi, 0xffffffff
je 0x1011c260
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1011c260
mov al, byte [ebp + 0x14]
mov esi, dword [esi]
test esi, esi
jne 0x1011c064
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0x1c]
add edx, 0x6a
mov dword [esp + 0x14], edx
cmp edx, 0x80
jae 0x1011c102
mov dword [esp + 0x14], 0x80
mov eax, dword [ecx + 8]
add eax, eax
cmp eax, ebx
jl 0x1011c33f
add ebx, ebx
mov dword [esp + 0x24], ebx
call fcn.100d8ee0
test eax, eax
jne 0x1011c66c
push eax
lea esi, [ebx*4]
push esi
call fcn.10027b10
mov edi, eax
add esp, 8
mov dword [esp + 0x30], edi
test edi, edi
je 0x1011c66c
push esi
push 0
push edi
call fcn.1013ad10
mov esi, dword [esp + 0x18]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp dword [esi + 0xc], eax
jle 0x1011c1f5
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], esi
nop dword [eax]
mov ebx, dword [esi]
test ebx, ebx
je 0x1011c1dc
mov eax, dword [ebx]
mov dword [esi], eax
lea eax, [ebx + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1011c180
sub eax, edx
mov edi, 0xd
add eax, 0xffffffff
js 0x1011c1ba
lea esi, [eax + 0x28]
add esi, ebx
nop dword [eax + eax]
movzx ecx, byte [esi]
lea edx, [edi*8]
xor edx, ecx
lea esi, [esi - 1]
xor edi, edx
sub eax, 1
jns 0x1011c1a0
mov esi, dword [esp + 0x20]
mov eax, edi
xor edx, edx
div dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov eax, dword [edi + edx*4]
mov dword [ebx], eax
mov dword [edi + edx*4], ebx
mov ebx, dword [esi]
test ebx, ebx
jne 0x1011c176
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
inc eax
add esi, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
cmp eax, dword [ecx + 0xc]
jl 0x1011c170
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1011c2f7
cmp dword [0x10178a38], 0
je 0x1011c2ed
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x1011c221
push eax
call dword [0x10178a88]
add esp, 4
push dword [esp + 0x10]
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push dword [esp + 0x10]
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x1011c2f7
push eax
call dword [0x10178a90]
jmp 0x1011c2f4
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, dword [esi + 0x10]
cmp eax, 0x16
jge 0x1011c2d5
lea ebx, [ecx + ecx]
call fcn.100d8ee0
test eax, eax
jne 0x1011c66c
mov eax, ebx
mov ecx, esi
cdq
push edx
push eax
call fcn.10027f60
mov edi, eax
add esp, 8
test edi, edi
je 0x1011c66c
mov ecx, dword [esp + 0x14]
mov dword [edi + 8], ebx
mov ebx, dword [esp + 0xc]
lea eax, [ecx*4]
mov edx, dword [ebx + 0x14]
add edx, eax
mov ecx, dword [edx]
cmp ecx, esi
je 0x1011c2bd
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp eax, esi
jne 0x1011c2b3
mov esi, edi
mov dword [edx], edi
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
neg eax
mov dword [esp + 0x2c], eax
jmp 0x1011c433
mov eax, dword [esi + 0x10]
mov ebx, dword [esp + 0xc]
neg eax
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
jmp 0x1011c433
push eax
call dword [0x10178a5c]
add esp, 4
mov dword [esi + 0xc], ebx
mov edx, 0xd
mov ebx, dword [esp + 0xc]
mov esi, dword [ebp + 0x1c]
sub esi, 1
mov dword [ebx + 0x14], edi
js 0x1011c329
mov ebx, dword [ebp + 0x18]
movzx ecx, byte [ebx + esi]
lea eax, [edx*8]
xor ecx, eax
xor edx, ecx
sub esi, 1
jns 0x1011c311
mov ebx, dword [esp + 0xc]
lea eax, [edx*8]
xor eax, dword [esp + 0x34]
xor eax, edx
xor edx, edx
div dword [ebx + 0xc]
mov edi, edx
jmp 0x1011c343
mov ebx, dword [esp + 0xc]
call fcn.100d8ee0
test eax, eax
jne 0x1011c66c
push eax
push dword [esp + 0x18]
call fcn.10027b10
mov esi, eax
add esp, 8
test esi, esi
je 0x1011c66c
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
push dword [ebp + 0x1c]
movups xmmword [esi], xmm0
push dword [ebp + 0x18]
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov dword [esi + 8], eax
mov al, byte [ebp + 0x14]
mov byte [esi + 0x28], al
lea eax, [esi + 0x29]
push eax
call fcn.1013c1a0
mov eax, dword [ebp + 0x1c]
add esp, 0xc
mov dword [esi + 0x14], eax
mov byte [esi + eax + 0x29], 0
add eax, 0x2a
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + edi*4]
mov dword [esi], eax
mov eax, dword [ebx + 0x14]
mov dword [eax + edi*4], esi
inc dword [ebx + 8]
mov edx, dword [esi + 0x10]
mov edi, dword [ebp + 0xc]
add edx, esi
mov eax, dword [ebp + 8]
test edi, edi
ja 0x1011c402
jb 0x1011c3cd
cmp eax, 0x7f
ja 0x1011c3d8
and al, 0x7f
mov byte [edx], al
mov eax, 1
jmp 0x1011c40e
test edi, edi
ja 0x1011c402
jb 0x1011c3e5
cmp eax, 0x3fff
ja 0x1011c402
mov ecx, eax
mov eax, edi
shrd ecx, eax, 7
mov eax, 2
or cl, 0x80
mov byte [edx], cl
mov ecx, dword [ebp + 8]
and cl, 0x7f
mov byte [edx + 1], cl
jmp 0x1011c40e
push edi
push eax
mov ecx, edx
call fcn.1002dde0
add esp, 8
add eax, dword [esi + 0x10]
mov edx, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edi
mov dword [esi + 0xc], eax
cmp dword [ebx], 1
je 0x1011c433
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
neg eax
sbb eax, eax
mov word [esi + 0x1a], ax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
cmp edx, ecx
jne 0x1011c445
cmp edi, eax
je 0x1011c4e1
mov ebx, edx
mov edx, esi
sub ebx, ecx
mov ecx, dword [esp + 0xc]
push 0
sbb edi, eax
call fcn.1011bea0
mov ecx, dword [esi + 0x10]
add esp, 4
add ecx, esi
test edi, edi
ja 0x1011c49c
jb 0x1011c46b
cmp ebx, 0x7f
ja 0x1011c477
and bl, 0x7f
mov eax, 1
mov byte [ecx], bl
jmp 0x1011c4a6
test edi, edi
ja 0x1011c49c
jb 0x1011c485
cmp ebx, 0x3fff
ja 0x1011c49c
mov eax, ebx
shrd eax, edi, 7
or al, 0x80
and bl, 0x7f
mov byte [ecx], al
mov eax, 2
mov byte [ecx + 1], bl
jmp 0x1011c4a6
push edi
push ebx
call fcn.1002dde0
add esp, 8
add eax, dword [esi + 0x10]
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0xc]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0xc], eax
cmp dword [ebx], 1
mov dword [esp + 0x28], 1
je 0x1011c4e1
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
neg eax
mov dword [esi + 0x1c], 0
sbb eax, eax
mov word [esi + 0x1a], ax
mov edi, dword [esp + 0x18]
test edi, edi
js 0x1011c653
mov ecx, dword [ebx]
cmp ecx, 1
jne 0x1011c50c
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x2c]
mov byte [esi + 0x19], cl
mov ecx, dword [ebx + 4]
add dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [esi + 0x1a]
cmp edi, eax
je 0x1011c586
test ecx, ecx
jne 0x1011c5e0
mov eax, dword [esi + 0x10]
mov byte [esi + eax], 1
mov eax, edi
inc dword [esi + 0x10]
mov ecx, dword [esi + 0x10]
cdq
add ecx, esi
mov ebx, eax
test edx, edx
ja 0x1011c56a
jb 0x1011c53b
cmp ebx, 0x7f
ja 0x1011c547
and bl, 0x7f
mov eax, 1
mov byte [ecx], bl
jmp 0x1011c574
test edx, edx
ja 0x1011c56a
jb 0x1011c555
cmp ebx, 0x3fff
ja 0x1011c56a
shrd eax, edx, 7
or al, 0x80
and bl, 0x7f
mov byte [ecx], al
mov eax, 2
mov byte [ecx + 1], bl
jmp 0x1011c574
push edx
push ebx
call fcn.1002dde0
add esp, 8
add dword [esi + 0x10], eax
mov ebx, dword [esp + 0xc]
mov word [esi + 0x1a], di
mov dword [esi + 0x1c], 0
cmp dword [esp + 0x28], 0
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], edi
je 0x1011c657
mov eax, edi
mov edi, dword [esi + 0x10]
sub eax, dword [esi + 0x1c]
add edi, esi
add eax, 2
cdq
mov ecx, eax
test edx, edx
ja 0x1011c628
jb 0x1011c5b7
cmp ecx, 0x7f
ja 0x1011c5e6
mov edx, dword [esp + 0x18]
and cl, 0x7f
mov byte [edi], cl
mov eax, 1
add dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x2c]
mov dword [esi + 0x1c], edx
mov ecx, dword [ebx + 4]
add dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov word [esi + 0x1a], di
jmp 0x1011c598
test edx, edx
ja 0x1011c628
jb 0x1011c5f4
cmp ecx, 0x3fff
ja 0x1011c628
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov edx, dword [esp + 0x18]
or al, 0x80
mov byte [edi + 1], cl
mov byte [edi], al
mov eax, 2
add dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x2c]
mov dword [esi + 0x1c], edx
mov ecx, dword [ebx + 4]
add dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
push ecx
mov ecx, edi
call fcn.1002dde0
add dword [esi + 0x10], eax
add esp, 8
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x2c]
mov dword [esi + 0x1c], edx
mov ecx, dword [ebx + 4]
add dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x18], 1
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x2c]
add dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret