Function at 0x100eca70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10391724]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x24]
push 0x20
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], eax
call fcn.100efe10
mov esi, eax
add esp, 4
test esi, esi
jne 0x100ecabf
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1024a5e7
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ecx, 4
mov word [esi + 0xa], ax
cmp edx, ecx
movzx eax, dl
mov dword [esi + 0xc], 0xffffffff
cmovl ecx, eax
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 0
mov byte [esi], cl
test cl, cl
je 0x100ecb2c
mov edi, ebx
lea edx, [esi + 5]
mov ebx, 0xfffffffb
sub ebx, esi
nop word [eax + eax]
mov al, byte [edi]
lea edx, [edx + 1]
mov byte [edx - 5], al
lea ecx, [ebx + edx]
mov byte [edx - 1], 0xff
lea edi, [edi + 1]
movzx eax, byte [esi]
cmp ecx, eax
jl 0x100ecb10
mov edi, dword [ebp - 0x20]
mov eax, dword [edi]
push esi
push edi
call eax
mov edi, 4
mov byte [ebp - 0x10], 4
add esp, 8
mov dword [ebp - 0xb], 0xffffffff
mov ebx, eax
cmp dword [ebp + 0x10], edi
jle 0x100ecb97
nop dword [eax]
cmp ebx, 0xff
jge 0x100ecb97
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x10], 4
mov eax, dword [eax + edi - 3]
mov dword [ebp - 0xf], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [eax]
call eax
add esp, 8
cmp eax, ebx
jle 0x100ecb91
movq xmm0, qword [ebp - 0x10]
mov ebx, eax
movq qword [esi], xmm0
mov cl, byte [ebp - 8]
mov byte [esi + 8], cl
lea ecx, [edi - 3]
mov word [esi + 0xa], cx
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x100ecb50
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
mov dword [eax], ebx
mov ebx, dword [ebp + 0x14]
test bl, 0x10
je 0x100ecc6a
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call fcn.100ec580
mov ecx, dword [esi]
mov edi, eax
add esp, 8
test edi, edi
je 0x100ecc1e
test ecx, ecx
je 0x100ecbe2
nop word [eax + eax]
mov esi, dword [ecx + 0x1c]
push ecx
call fcn.100efda0
add esp, 4
mov ecx, esi
test esi, esi
jne 0x100ecbd0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100ecc02
nop dword [eax]
mov esi, dword [eax + 0x1c]
push eax
call fcn.100efda0
add esp, 4
mov eax, esi
test esi, esi
jne 0x100ecbf0
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1024a5e7
mov esp, ebp
pop ebp
ret
test bl, 8
je 0x100ecc4a
test ecx, ecx
jne 0x100ecc2e
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
jmp 0x100ecc6a
mov eax, dword [ecx + 0x1c]
mov edx, ecx
test eax, eax
je 0x100ecc40
mov edx, eax
mov eax, dword [edx + 0x1c]
test eax, eax
jne 0x100ecc37
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x1c], eax
mov dword [esi], ecx
jmp 0x100ecc6a
test ecx, ecx
je 0x100ecc65
nop
mov esi, dword [ecx + 0x1c]
push ecx
call fcn.100efda0
add esp, 4
mov ecx, esi
test esi, esi
jne 0x100ecc50
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
test bl, 4
je 0x100ecd01
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call fcn.100eba70
mov ecx, dword [esi]
mov edi, eax
add esp, 8
test edi, edi
je 0x100eccda
test ecx, ecx
je 0x100ecca2
nop dword [eax]
mov esi, dword [ecx + 0x1c]
push ecx
call fcn.100efda0
add esp, 4
mov ecx, esi
test esi, esi
jne 0x100ecc90
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100ecc02
nop dword [eax]
mov esi, dword [eax + 0x1c]
push eax
call fcn.100efda0
add esp, 4
mov eax, esi
test esi, esi
jne 0x100eccb0
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1024a5e7
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x100ecce3
mov ecx, dword [ebp - 0x14]
jmp 0x100eccff
mov eax, dword [ecx + 0x1c]
mov edx, ecx
test eax, eax
je 0x100eccf9
nop dword [eax]
mov edx, eax
mov eax, dword [edx + 0x1c]
test eax, eax
jne 0x100eccf0
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x1c], eax
mov dword [esi], ecx
test ebx, 0x80000
je 0x100ece07
mov esi, dword [esi]
xor edi, edi
mov dword [ebp - 0x14], edi
test esi, esi
je 0x100ecde6
movzx ecx, byte [ebp + 0x18]
movzx eax, byte [ebp + 0x19]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
nop word [eax + eax]
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
ja 0x100ecddb
nop dword [eax + eax]
push 0x20
call fcn.100efe10
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x100ece3f
mov bl, byte [esi]
test bl, bl
je 0x100ecd8e
neg eax
lea ecx, [edi + 1]
lea edx, [eax - 1]
lea edi, [esi + eax]
mov dword [ebp - 0x28], edx
nop dword [eax + eax]
mov al, byte [edi + ecx]
xor al, byte [ebp - 0x1c]
mov byte [ecx], al
mov byte [ecx + 4], 0xff
inc ecx
mov bl, byte [esi]
add edx, ecx
movzx eax, bl
cmp edx, eax
mov edx, dword [ebp - 0x28]
jl 0x100ecd70
mov edi, dword [ebp - 0x2c]
mov ecx, 4
movzx eax, bl
cmp bl, cl
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edi
cmovb ecx, eax
mov byte [edi], cl
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
mov ax, word [esi + 0xa]
mov dword [edi + 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
inc ebx
mov word [edi + 0xa], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], ebx
cmp ebx, eax
jle 0x100ecd40
mov ecx, dword [ebp - 0x34]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100ecd30
mov esi, dword [ebp - 0x18]
mov eax, dword [esi]
test eax, eax
je 0x100ece05
nop
mov esi, dword [eax + 0x1c]
push eax
call fcn.100efda0
add esp, 4
mov eax, esi
test esi, esi
jne 0x100ecdf0
mov esi, dword [ebp - 0x18]
mov dword [esi], edi
mov esi, dword [esi]
test esi, esi
je 0x100ece2c
nop dword [eax]
mov eax, dword [ebp - 0x20]
push esi
push eax
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 0x24]
add esp, 8
cmp eax, dword [ecx]
jge 0x100ece25
mov dword [ecx], eax
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100ece10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1024a5e7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov edi, 1
mov ebx, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x100ece62
mov esi, dword [eax + 0x1c]
push eax
call fcn.100efda0
add esp, 4
mov eax, esi
test esi, esi
jne 0x100ece50
test ebx, ebx
je 0x100ecc02
nop word [eax + eax]
mov esi, dword [ebx + 0x1c]
push ebx
call fcn.100efda0
add esp, 4
mov ebx, esi
test esi, esi
jne 0x100ece70
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.1024a5e7
mov esp, ebp
pop ebp
ret