Function at 0x10113810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov ecx, edx
mov dword [esp + 0xc], edi
test ecx, ecx
je 0x101139c5
test byte [ebp + 0xc], 8
jne 0x101139c5
mov ebx, dword [edi + 0xc]
mov eax, 0xd
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], ebx
lea esi, [edi - 1]
test esi, esi
js 0x1011387b
mov edi, ecx
nop word [eax + eax]
movzx edx, byte [esi + edi]
lea ecx, [eax*8]
xor edx, ecx
xor eax, edx
sub esi, 1
jns 0x10113860
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
xor edx, edx
div dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x1011397a
nop
mov eax, dword [ebx + 0x14]
inc eax
cmp edi, eax
jne 0x101138e7
mov esi, edi
lea edx, [ebx + 0x28]
mov eax, ecx
sub esi, 4
jb 0x101138b5
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x101138ba
add edx, 4
add eax, 4
sub esi, 4
jae 0x101138a4
cmp esi, 0xfffffffc
je 0x101138f7
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x101138e7
cmp esi, 0xfffffffd
je 0x101138f7
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x101138e7
cmp esi, 0xfffffffe
je 0x101138f7
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x101138e7
cmp esi, 0xffffffff
je 0x101138f7
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x101138f7
mov ebx, dword [ebx]
test ebx, ebx
je 0x1011397a
mov ecx, dword [esp + 0x10]
jmp 0x10113890
mov esi, dword [ebx + 0x10]
lea eax, [edi + 0x29]
sub esi, eax
mov dword [esp + 0x20], esi
call fcn.100cb480
test eax, eax
je 0x1011392b
xor esi, esi
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0xc]
xor eax, eax
add edx, 0x24
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov dword [edx], 7
jmp 0x101139a8
lea eax, [esi + 0x16]
cdq
push edx
push eax
call fcn.1001e4e0
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
test esi, esi
je 0x10113912
push dword [esp + 0x20]
lea eax, [edi + 0x29]
add eax, ebx
push eax
lea eax, [esi + 0xc]
push eax
call fcn.1012bff0
mov ecx, dword [esp + 0x30]
lea edx, [edi + 0x29]
mov eax, esi
add esp, 0xc
sub eax, edx
mov edx, ebx
add eax, 0xc
push eax
call fcn.1010f0c0
mov ecx, eax
add esp, 4
add ecx, dword [esp + 0x20]
jmp 0x1011397e
xor esi, esi
xor ecx, ecx
mov edx, dword [esp + 0xc]
add edx, 0x24
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edx
mov dword [edx], 0
test esi, esi
je 0x101139a8
lea eax, [esi + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esi], eax
mov dword [esp + 0x18], esi
mov ebx, dword [ebp + 0x10]
mov eax, edx
or dword [ebx + 4], 1
lea ecx, [ebx + 4]
mov dword [esp + 0x24], ecx
test esi, esi
je 0x10113bea
jmp 0x10113ab3
push dword [ebp + 8]
mov ecx, dword [edi + 0xc]
lea esi, [edi + 0x24]
mov dword [esp + 0x20], esi
call fcn.1010f940
mov dword [esi], eax
add esp, 4
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x10113a3d
lea edi, [ecx + 0x28]
mov esi, edi
mov dword [esp + 0x10], edi
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x101139f6
mov eax, dword [esp + 0xc]
sub esi, edx
mov edx, ecx
push 0
mov ecx, dword [eax + 0xc]
call fcn.1010f0c0
mov eax, dword [esp + 0x28]
lea ecx, [edi + 1]
add ecx, esi
add esp, 4
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0x10]
sub eax, esi
sub eax, 0x29
mov dword [esp + 0x14], eax
test edi, edi
je 0x10113a51
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10113a32
sub edi, edx
jmp 0x10113a53
xor ecx, ecx
mov dword [esp + 0x10], 0
xor eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
xor edi, edi
test ecx, ecx
je 0x10113bea
mov eax, dword [esp + 0x1c]
cmp dword [eax], 0
jne 0x10113bea
call fcn.100cb480
test eax, eax
jne 0x10113be0
push eax
push 0xc
call fcn.1001e4e0
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
test esi, esi
je 0x10113be0
mov eax, dword [esp + 0x20]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x1c]
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], eax
lea eax, [ebx + 4]
mov dword [esp + 0x24], eax
mov eax, ecx
mov dword [esp + 0x20], ecx
mov dword [ebx + 0x48], 0
lea ecx, [ebx + 0x44]
test edi, edi
je 0x10113af1
cmp edi, dword [ecx + 8]
jbe 0x10113ada
mov edx, ecx
mov ecx, eax
push edi
call fcn.10107ed0
add esp, 4
test eax, eax
jne 0x10113af1
lea ecx, [ebx + 0x44]
mov eax, dword [ecx]
mov edx, dword [esp + 0x10]
add eax, dword [ecx + 4]
push edi
push edx
push eax
call fcn.1012bff0
add esp, 0xc
add dword [ebx + 0x48], edi
mov eax, dword [esp + 0x14]
lea edx, [ebx + 0x50]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [ebx + 0xc], esi
mov ecx, dword [esi]
call fcn.10127ae0
test byte [ebp + 0xc], 2
movzx eax, al
cdq
mov esi, eax
mov dword [ebx + 0x1c], edx
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x18], esi
mov edx, dword [eax + 4]
mov dword [ebx + 0x30], edx
je 0x10113b3d
mov eax, dword [esp + 0x24]
mov edx, ebx
mov esi, dword [esp + 0xc]
mov ecx, esi
or dword [eax], 2
call fcn.10112120
jmp 0x10113bee
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
jne 0x10113bea
mov eax, dword [esp + 0xc]
mov edi, esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [eax]
cmp dword [eax + 0x30], 1
jne 0x10113ba8
cmp edx, dword [ecx + 8]
cmovge edx, dword [ecx + 8]
mov byte [ebx + 0x5c], 0
mov dword [ebx + 0x58], 1
cmp esi, edx
jge 0x10113bd5
mov eax, dword [ecx]
cmp byte [esi + eax], 0
jne 0x10113bd5
inc esi
mov byte [ebx + 0x5c], 1
cmp esi, edx
jge 0x10113b96
mov eax, dword [ecx]
cmp byte [esi + eax], 0
jne 0x10113b96
inc esi
mov eax, esi
cdq
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
jmp 0x10113bea
mov eax, esi
mov dword [ebx + 0x58], 0
cdq
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
jmp 0x10113bea
mov ecx, dword [ecx]
add ecx, esi
inc esi
movzx eax, byte [ecx]
mov dword [esp + 0x24], eax
test al, al
jns 0x10113bc8
lea edx, [esp + 0x24]
call fcn.10127a50
lea esi, [eax + edi]
mov eax, dword [esp + 0x24]
mov cl, al
and cl, 1
sar eax, 1
mov byte [ebx + 0x5c], cl
mov dword [ebx + 0x58], eax
mov eax, esi
cdq
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
jmp 0x10113bea
mov eax, dword [esp + 0x1c]
mov dword [eax], 7
mov esi, dword [esp + 0xc]
test byte [ebx + 4], 2
je 0x10113c02
mov dword [ebx + 0x20], 0x101124f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, 0x101127e0
mov edx, 0x10112570
pop edi
pop esi
cmp dword [eax + 0x30], 1
cmove ecx, edx
mov dword [ebx + 0x20], ecx
pop ebx
mov esp, ebp
pop ebp
ret