Function at 0x10103700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov ebx, edx
xor esi, esi
mov dword [esp + 0x14], ebx
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
test ebx, ebx
je 0x1010387d
test byte [ebp + 0xc], 8
jne 0x1010387d
mov ecx, dword [edi + 0xc]
mov esi, 0xd
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
lea edx, [edi - 1]
test edx, edx
js 0x1010375a
movzx ecx, byte [edx + ebx]
lea eax, [esi*8]
xor ecx, eax
xor esi, ecx
sub edx, 1
jns 0x10103742
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, esi
div dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x101037cf
nop dword [eax + eax]
mov eax, dword [ebx + 0x14]
inc eax
cmp edi, eax
jne 0x101037c9
mov edx, dword [esp + 0x18]
lea ecx, [ebx + 0x28]
mov esi, edi
sub esi, 4
jb 0x10103797
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1010379c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10103786
cmp esi, 0xfffffffc
je 0x101037fb
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x101037c9
cmp esi, 0xfffffffd
je 0x101037fb
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x101037c9
cmp esi, 0xfffffffe
je 0x101037fb
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x101037c9
cmp esi, 0xffffffff
je 0x101037fb
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x101037fb
mov ebx, dword [ebx]
test ebx, ebx
jne 0x10103770
xor esi, esi
xor ebx, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [ecx + 0x2c], 0
test esi, esi
je 0x101037ef
lea eax, [esi + 0xc]
mov dword [esp + 0x14], ebx
mov dword [esi], eax
mov ebx, dword [ebp + 0x10]
or dword [ebx + 4], 1
jmp 0x1010392e
mov esi, dword [ebx + 0x10]
lea eax, [edi + 0x29]
sub esi, eax
mov dword [esp + 0x1c], esi
call fcn.100cb360
test eax, eax
je 0x1010382f
xor esi, esi
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov dword [ecx + 0x2c], 7
or dword [ebx + 4], 1
jmp 0x1010392e
lea eax, [esi + 0x16]
cdq
push edx
push eax
call fcn.10025910
mov esi, eax
add esp, 8
test esi, esi
je 0x10103812
push dword [esp + 0x1c]
lea eax, [edi + 0x29]
add eax, ebx
push eax
lea eax, [esi + 0xc]
push eax
call fcn.10118c90
mov ecx, dword [esp + 0x20]
lea edx, [edi + 0x29]
mov eax, esi
add esp, 0xc
sub eax, edx
mov edx, ebx
add eax, 0xc
push eax
call fcn.100ffff0
mov ebx, eax
add esp, 4
add ebx, dword [esp + 0x1c]
jmp 0x101037d3
push dword [ebp + 8]
mov ecx, dword [edi + 0xc]
call fcn.10100860
mov ecx, dword [edi + 0xc]
add esp, 4
mov dword [edi + 0x2c], eax
mov ebx, dword [ecx + 0x10]
test ebx, ebx
je 0x101038eb
lea eax, [ebx + 0x28]
mov edi, eax
mov dword [esp + 0x18], eax
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x101038a4
sub edi, edx
mov edx, ebx
push 0
call fcn.100ffff0
mov edx, dword [esp + 0x1c]
add esp, 4
mov ebx, dword [ebx + 0x10]
sub ebx, edi
sub ebx, 0x29
lea ecx, [edx + 1]
mov dword [esp + 0x14], ebx
add ecx, edi
mov dword [esp + 0x1c], ecx
test edx, edx
je 0x101038fb
mov edi, edx
lea edx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x101038e0
sub edi, edx
jmp 0x101038fd
xor ecx, ecx
mov dword [esp + 0x18], esi
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
xor edi, edi
test ecx, ecx
je 0x10103920
mov ecx, dword [esp + 0x10]
push 0
push 0xc
lea ecx, [ecx + 0x2c]
call fcn.100f9ba0
mov esi, eax
add esp, 8
test esi, esi
je 0x10103920
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebp + 0x10]
mov dword [ecx + 0x20], 0
test esi, esi
je 0x101039ba
mov dword [ebx + 0x50], 0
test edi, edi
je 0x10103970
cmp edi, dword [ebx + 0x54]
jbe 0x10103959
push edi
lea edx, [ebx + 0x4c]
lea ecx, [ecx + 0x2c]
call fcn.100f9780
add esp, 4
test eax, eax
jne 0x10103970
mov eax, dword [ebx + 0x50]
add eax, dword [ebx + 0x4c]
push edi
push dword [esp + 0x1c]
push eax
call fcn.10118c90
add esp, 0xc
add dword [ebx + 0x50], edi
mov ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [ebx + 0xc], esi
lea edx, [ebx + 0x58]
mov ecx, dword [esi]
call fcn.101147c0
test byte [ebp + 0xc], 2
mov ecx, dword [esp + 0x10]
movzx eax, al
cdq
mov dword [ebx + 0x1c], edx
mov edx, ebx
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x38], eax
je 0x101039b1
or dword [ebx + 4], 2
call fcn.101026b0
jmp 0x101039b6
call fcn.10102360
mov ecx, dword [esp + 0x10]
test byte [ebx + 4], 2
je 0x101039ce
mov dword [ebx + 0x28], 0x10102940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
mov edx, 0x101029c0
mov ecx, 0x10102bd0
pop edi
pop esi
cmp dword [eax + 0x34], 1
cmove ecx, edx
mov dword [ebx + 0x28], ecx
pop ebx
mov esp, ebp
pop ebp
ret