Function at 0x10120a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
mov ecx, edx
mov dword [esp + 0xc], edi
xor esi, esi
test ecx, ecx
je 0x10120bfe
test byte [ebp + 0xc], 8
jne 0x10120bfe
mov ebx, dword [edi + 0xc]
lea eax, [esi + 0xd]
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], ebx
lea esi, [edi - 1]
test esi, esi
js 0x10120abd
mov edi, ecx
movzx edx, byte [edi + esi]
lea ecx, [eax*8]
xor edx, ecx
xor eax, edx
sub esi, 1
jns 0x10120aa2
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
xor edx, edx
div dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x10120bc7
mov eax, dword [ebx + 0x14]
inc eax
cmp edi, eax
jne 0x10120b27
mov esi, edi
lea edx, [ebx + 0x28]
mov eax, ecx
sub esi, 4
jb 0x10120af5
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10120afa
add edx, 4
add eax, 4
sub esi, 4
jae 0x10120ae4
cmp esi, 0xfffffffc
je 0x10120b37
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x10120b27
cmp esi, 0xfffffffd
je 0x10120b37
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x10120b27
cmp esi, 0xfffffffe
je 0x10120b37
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x10120b27
cmp esi, 0xffffffff
je 0x10120b37
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x10120b37
mov ebx, dword [ebx]
test ebx, ebx
je 0x10120bc7
mov ecx, dword [esp + 0x14]
jmp 0x10120ad0
mov esi, dword [ebx + 0x10]
lea eax, [edi + 0x29]
sub esi, eax
mov dword [esp + 0x18], esi
call fcn.100d8ee0
test eax, eax
je 0x10120b7c
xor esi, esi
mov ecx, dword [esp + 0xc]
mov ebx, dword [ebp + 0x10]
add ecx, 0x2c
mov eax, dword [ebp + 0x10]
add ebx, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [ecx], 7
mov ecx, dword [esp + 0xc]
or dword [ebx], 1
jmp 0x10120ced
lea eax, [esi + 0x16]
cdq
push edx
push eax
call fcn.10027b10
mov esi, eax
add esp, 8
test esi, esi
je 0x10120b4e
push dword [esp + 0x18]
lea eax, [edi + 0x29]
add eax, ebx
push eax
lea eax, [esi + 0xc]
push eax
call fcn.1013c1a0
mov ecx, dword [esp + 0x28]
lea edx, [edi + 0x29]
mov eax, esi
add esp, 0xc
sub eax, edx
mov edx, ebx
add eax, 0xc
push eax
call fcn.1011bea0
mov edx, eax
add esp, 4
add edx, dword [esp + 0x18]
jmp 0x10120bcb
xor esi, esi
xor edx, edx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], edx
lea eax, [ecx + 0x2c]
mov dword [esp + 0x10], eax
mov dword [eax], 0
test esi, esi
je 0x10120bed
lea eax, [esi + 0xc]
mov dword [esp + 0x18], edx
mov dword [esi], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
add ebx, 4
or dword [ebx], 1
jmp 0x10120ced
push dword [ebp + 8]
mov ecx, dword [edi + 0xc]
lea ebx, [edi + 0x2c]
mov dword [esp + 0x14], ebx
call fcn.1011c720
mov dword [ebx], eax
add esp, 4
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x10120c7d
lea eax, [ecx + 0x28]
mov edi, eax
mov dword [esp + 0x14], eax
lea edx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x10120c30
mov eax, dword [esp + 0xc]
sub edi, edx
mov edx, ecx
push 0
mov ecx, dword [eax + 0xc]
call fcn.1011bea0
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
sub eax, edi
lea edx, [ecx + 1]
add edx, edi
sub eax, 0x29
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10120c8b
mov edi, ecx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10120c72
sub edi, ecx
jmp 0x10120c8d
xor edx, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
xor edi, edi
test edx, edx
je 0x10120cdc
cmp dword [ebx], esi
jne 0x10120cda
call fcn.100d8ee0
test eax, eax
je 0x10120ca8
xor esi, esi
mov dword [ebx], 7
jmp 0x10120cdc
push 0
push 0xc
call fcn.10027b10
mov esi, eax
add esp, 8
test esi, esi
jne 0x10120cc2
mov dword [ebx], 7
jmp 0x10120cdc
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov esi, eax
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
jmp 0x10120cdc
xor esi, esi
mov ecx, dword [esp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x20], 0
lea ebx, [eax + 4]
test esi, esi
je 0x10120e70
mov dword [eax + 0x50], 0
lea ecx, [eax + 0x4c]
mov dword [esp + 0x1c], ecx
test edi, edi
je 0x10120d62
cmp edi, dword [ecx + 8]
ja 0x10120d12
mov eax, dword [esp + 0x10]
jmp 0x10120d38
mov edx, ecx
mov ecx, dword [esp + 0x10]
push edi
call fcn.10114e00
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x10120d5f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
add eax, 0x2c
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
add eax, dword [ecx + 4]
push edi
push edx
push eax
call fcn.1013c1a0
mov eax, dword [esp + 0x28]
add esp, 0xc
add dword [eax + 4], edi
mov eax, dword [ebp + 0x10]
lea ebx, [eax + 4]
jmp 0x10120d62
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
lea edx, [eax + 0x58]
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
mov dword [eax + 0xc], esi
mov ecx, dword [esi]
call fcn.10137cb0
test byte [ebp + 0xc], 2
movzx eax, al
cdq
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edx
mov edx, dword [esi + 4]
mov esi, eax
mov dword [esi + 0x38], edx
je 0x10120dc2
mov ecx, dword [esp + 0xc]
lea ebx, [esi + 4]
or dword [ebx], 2
mov edx, esi
call fcn.1011f300
mov ecx, dword [esp + 0xc]
test byte [ebx], 2
je 0x10120e78
mov dword [esi + 0x28], 0x1011f6d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
jne 0x10120da7
mov eax, dword [esp + 0xc]
mov ebx, edi
mov ecx, dword [esi + 0xc]
mov eax, dword [eax]
cmp dword [eax + 0x34], 1
jne 0x10120e32
cmp edx, dword [ecx + 8]
cmovge edx, dword [ecx + 8]
mov byte [esi + 0x64], 0
mov dword [esi + 0x60], 1
cmp edi, edx
jge 0x10120e5f
mov eax, dword [ecx]
cmp byte [edi + eax], 0
jne 0x10120e5f
inc edi
mov byte [esi + 0x64], 1
cmp edi, edx
jge 0x10120e1a
mov eax, dword [ecx]
cmp byte [edi + eax], 0
jne 0x10120e1a
inc edi
lea ebx, [esi + 4]
mov eax, edi
cdq
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
jmp 0x10120da7
mov eax, edi
mov dword [esi + 0x60], 0
cdq
lea ebx, [esi + 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
jmp 0x10120da7
mov ecx, dword [ecx]
add ecx, edi
inc edi
movzx eax, byte [ecx]
mov dword [esp + 0x1c], eax
test al, al
jns 0x10120e52
lea edx, [esp + 0x1c]
call fcn.10137c20
lea edi, [eax + ebx]
mov eax, dword [esp + 0x1c]
mov cl, al
and cl, 1
sar eax, 1
mov byte [esi + 0x64], cl
mov dword [esi + 0x60], eax
mov eax, edi
lea ebx, [esi + 4]
cdq
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
jmp 0x10120da7
mov esi, dword [ebp + 0x10]
jmp 0x10120dab
mov eax, dword [ecx]
mov edx, 0x1011f750
mov ecx, 0x1011f9e0
pop edi
cmp dword [eax + 0x34], 1
cmove ecx, edx
mov dword [esi + 0x28], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret