Function at 0x102ebe70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x104cc790]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
push esi
push edi
mov dword [ebp - 0x1c], eax
mov esi, dword [ebx]
movzx ecx, byte [ebx + 0x1ca]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], esi
test dword [esi + 0x18], 0x40000
mov dword [ebp - 0x30], ecx
je 0x102ec369
mov ecx, dword [eax + 0x40]
mov edi, 0xfff0bdc0
mov dword [ebp - 0x20], edi
test ecx, ecx
je 0x102ebedf
mov edx, dword [esi + 0x14]
xor edi, edi
mov dword [ebp - 0x20], edi
test edx, edx
jle 0x102ebedf
mov eax, dword [esi + 0x10]
add eax, 0xc
lea ebx, [ebx]
cmp dword [eax], ecx
je 0x102ebedc
inc edi
add eax, 0x10
cmp edi, edx
jl 0x102ebed0
mov dword [ebp - 0x20], edi
mov eax, dword [esi + 0x10]
mov ecx, edi
mov edi, dword [ebp - 0x1c]
add ecx, ecx
mov edi, dword [edi + 0x10]
mov eax, dword [eax + ecx*8]
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x102ec17a
lea ebx, [ebx]
cmp byte [ebx + 0x1ca], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
push eax
je 0x102ebf2e
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.102e15f0
add esp, 4
jmp 0x102ebf3d
push dword [edi + 8]
xor edx, edx
mov ecx, ebx
call fcn.102e1730
add esp, 8
mov esi, eax
test esi, esi
je 0x102ec054
lea eax, [ebp - 0xc]
mov edx, esi
push eax
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push edi
call fcn.102eab50
add esp, 0xc
test eax, eax
jne 0x102ec054
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x102ebf72
mov ecx, eax
mov dword [ebp - 0x24], eax
jmp 0x102ebf7e
mov eax, dword [edi + 0x24]
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], ecx
xor ebx, ebx
cmp dword [edi + 0x14], ebx
jle 0x102ebfe4
mov eax, dword [ebp - 0x1c]
movsx eax, word [eax + 0x24]
cmp dword [ecx + ebx*4], eax
jne 0x102ebf98
mov dword [ecx + ebx*4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10c], 0
je 0x102ebfde
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x102ebfb3
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
jmp 0x102ebfb7
movsx eax, word [esi + 0x24]
push dword [ebp - 0x20]
mov edx, dword [esi]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 4]
push dword [eax + ecx*8]
mov ecx, dword [ebp - 0x28]
call fcn.102e0e50
xor ecx, ecx
add esp, 8
cmp eax, 2
sete cl
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x24]
inc ebx
cmp ebx, dword [edi + 0x14]
jl 0x102ebf85
push dword [esi]
mov ebx, dword [ebp - 0x28]
mov ecx, ebx
mov edx, dword [ebp - 0x20]
push 0
push dword [esi + 0x20]
call fcn.102e10a0
inc dword [ebx + 0x48]
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x102ec020
push dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov ecx, ebx
push 0xffffffffffffffff
push eax
push dword [ebp - 0x24]
push edi
push dword [ebp - 0x14]
push esi
call fcn.102eadc0
add esp, 0x1c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x102ec042
push dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov ecx, ebx
push 1
push eax
push dword [ebp - 0x24]
push edi
push dword [ebp - 0x14]
push esi
call fcn.102eadc0
add esp, 0x1c
mov esi, dword [ebp - 0x10]
mov ecx, esi
mov edx, dword [ebp - 0xc]
call fcn.102acfa0
jmp 0x102ec16c
cmp dword [ebp - 0x30], 0
je 0x102ec369
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x38], 0
jne 0x102ec369
test esi, esi
jne 0x102ec16a
mov esi, dword [ebx + 8]
test esi, esi
jne 0x102ec096
mov ecx, dword [ebx]
call fcn.102c8590
mov esi, eax
mov dword [ebx + 8], esi
test esi, esi
je 0x102ec096
mov edx, 0x94
mov ecx, esi
call fcn.102c8770
mov eax, dword [esi + 0x1c]
xor ebx, ebx
mov ecx, dword [edi + 0x14]
inc eax
add eax, ecx
mov dword [ebp - 0x24], eax
test ecx, ecx
jle 0x102ec115
lea eax, [edi + 0x24]
mov dword [ebp - 0xc], eax
mov edi, edi
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
inc ecx
add eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x20], eax
jg 0x102ec0d4
mov ecx, esi
call fcn.102c8690
test eax, eax
jne 0x102ec106
mov eax, dword [ebp - 0x18]
inc dword [esi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x24]
mov word [eax + ecx*4], 0x49
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp - 0xc]
inc ebx
add eax, 8
mov dword [ebp - 0xc], eax
cmp ebx, dword [edi + 0x14]
jl 0x102ec0b0
movzx eax, byte [edi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [esi + 0x20], ebx
jg 0x102ec12f
mov ecx, esi
call fcn.102c8690
test eax, eax
jne 0x102ec162
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
inc dword [esi + 0x1c]
mov edx, dword [ebp - 0xc]
mov word [eax + ecx*4], 0x75
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0xffffffff
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x10]
jmp 0x102ec16c
mov esi, eax
mov edi, dword [edi + 4]
mov eax, dword [ebp - 0x2c]
test edi, edi
jne 0x102ebf00
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edi]
mov esi, ecx
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x102ec19e
cmp byte [ecx], 0
je 0x102ec196
lea ecx, [ecx]
inc esi
cmp byte [esi], 0
jne 0x102ec190
sub esi, ecx
and esi, 0x3fffffff
mov eax, dword [edi + 0x40]
add eax, 0x38
mov dword [ebp - 0x18], eax
cmp dword [eax + 0xc], 0
je 0x102ec1f7
mov eax, ecx
xor edi, edi
mov dword [ebp - 0xc], eax
test esi, esi
jle 0x102ec1e7
mov ebx, esi
lea ebx, [ebx]
movzx eax, byte [eax]
lea ecx, [edi*8]
dec ebx
movzx edx, byte [eax + 0x103f5620]
mov eax, dword [ebp - 0xc]
xor edx, ecx
inc eax
xor edi, edx
mov dword [ebp - 0xc], eax
test ebx, ebx
jg 0x102ec1c0
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov eax, edi
xor edx, edx
mov edi, dword [ebp - 0x18]
div dword [edi]
mov eax, edi
mov edi, dword [ebp - 0x1c]
jmp 0x102ec1f9
xor edx, edx
push edx
mov edx, ecx
mov ecx, eax
push esi
call fcn.102b0560
add esp, 8
test eax, eax
je 0x102ec369
mov esi, dword [eax + 8]
test esi, esi
je 0x102ec369
lea ebx, [ebx]
cmp byte [esi + 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
jne 0x102ec247
cmp dword [ebx + 0x1b0], 0
jne 0x102ec247
cmp byte [ebx + 0x17], 0
je 0x102ec35b
lea eax, [ebp - 0x14]
mov edx, edi
push eax
lea eax, [ebp - 0xc]
mov ecx, ebx
push eax
push esi
call fcn.102eab50
add esp, 0xc
test eax, eax
je 0x102ec27c
cmp dword [ebp - 0x30], 0
je 0x102ec369
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x38], 0
jne 0x102ec369
jmp 0x102ec35b
mov ecx, dword [ebp - 0x10]
mov edx, 0x50
call fcn.102ad1f0
mov edi, eax
test edi, edi
je 0x102ec350
push 0x50
push 0
push edi
call fcn.10334af0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov eax, 1
mov edx, edi
mov word [edi + 2], ax
movsx eax, word [edi]
push eax
push 1
call fcn.102e54e0
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x38], 0
je 0x102ec2cb
mov ecx, eax
jmp 0x102ec349
movsx eax, word [edi]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*8]
mov dword [edi + eax*8 - 0x38], 0
mov dword [edi + eax*8 - 0x3c], 0
mov eax, dword [esi]
mov dword [edi + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x18]
inc word [eax + 0x28]
mov eax, dword [ebx + 0x48]
mov dword [edi + 0x34], eax
inc dword [ebx + 0x48]
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x102ec321
push 0xffffffffffffffff
push ecx
push dword [ebp - 0x14]
mov edx, edi
mov ecx, ebx
push esi
push eax
push dword [ebp - 0x1c]
call fcn.102eb640
mov eax, dword [ebp - 0xc]
add esp, 0x18
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x102ec33f
push 1
push ecx
push dword [ebp - 0x14]
mov edx, edi
mov ecx, ebx
push esi
push eax
push dword [ebp - 0x1c]
call fcn.102eb640
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [edi + 0x10], 0
mov edx, edi
call fcn.102e5720
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.102acfa0
mov esi, dword [esi + 0xc]
mov edi, dword [ebp - 0x1c]
test esi, esi
jne 0x102ec220
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1032ef46
mov esp, ebp
pop ebp
ret