Function at 0x10026de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 0x18]
mov eax, ecx
mov dword [ebp - 0x2c], eax
push esi
push edi
test ebx, ebx
jne 0x10026e03
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [eax + 0x13c]
mov edx, dword [ebp + 8]
lea ecx, [edx + edx*2]
mov esi, dword [eax + ecx*8]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + ecx*8 + 4]
mov dword [ebp - 0x18], esi
mov esi, dword [eax + ecx*8 + 8]
mov dword [ebp - 0x38], esi
mov esi, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 0x34], esi
mov esi, dword [eax + ecx*8 + 0x10]
mov eax, dword [eax + ecx*8 + 0x14]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
push edx
push ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], 0
call dword [eax + 0x1c]
mov edi, eax
cmp edi, 1
jne 0x10026e5b
xor edi, edi
jmp 0x1002702d
test edi, edi
js 0x1002702d
xorps xmm0, xmm0
mov dword [ebp + 8], 0
lea ecx, [ebp + 8]
movlpd qword [ebp - 0x24], xmm0
or ebx, 0xffffffff
call fcn.100215b0
cmp dword [ebp - 0x18], 0
mov esi, dword [ebp + 8]
jb 0x10026fc7
mov eax, dword [ebp - 0xc]
ja 0x10026e97
test eax, eax
je 0x10026fc7
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edx
mov ecx, eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x18]
sub ecx, edx
sbb eax, edi
test eax, eax
ja 0x10026ec1
jb 0x10026ec6
cmp ecx, 0x20000
jb 0x10026ec6
mov ecx, 0x20000
mov eax, dword [ebp - 0x2c]
lea esi, [ebp + 0xc]
push esi
lea esi, [ebp - 8]
mov dword [ebp + 0xc], ecx
push esi
mov eax, dword [eax + 0x130]
push edi
push edx
push dword [ebp - 0x30]
mov ecx, dword [eax]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push eax
call dword [ecx + 0x10]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x10026ffb
mov edx, dword [ebp - 8]
test edx, edx
je 0x10026ffb
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10026ffb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10026f3f
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov ecx, dword [eax]
push esi
push edi
push edx
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp + 8]
mov edi, eax
test edi, edi
jne 0x10027020
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0xc]
jne 0x10026fea
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x44]
add ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
adc eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, eax
test edi, edi
jne 0x10027020
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x28], eax
je 0x10026fa0
mov eax, dword [ebp - 8]
test eax, eax
je 0x10026f9e
test edi, edi
je 0x10026f9e
test esi, esi
je 0x10026f9e
xor edx, edx
test edi, edi
je 0x10026fa0
movzx ecx, byte [edx + eax]
inc edx
movzx eax, bl
xor ecx, eax
shr ebx, 8
mov eax, dword [ebp - 8]
xor ebx, dword [esi + ecx*4]
cmp edx, edi
jb 0x10026f85
jmp 0x10026fa0
xor ebx, ebx
mov edx, dword [ebp - 0x10]
add edx, edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
adc edi, 0
mov dword [ebp - 0x14], edi
cmp edi, dword [ebp - 0x18]
ja 0x10026fc7
mov eax, dword [ebp - 0xc]
jb 0x10026ea3
cmp edx, eax
jb 0x10026ea3
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1002700d
not eax
cmp ebx, eax
je 0x1002700d
mov ebx, dword [ebp + 0x18]
push 0xe00e0003
push ebx
mov eax, dword [ebx]
call dword [eax + 0x14]
mov edi, eax
test edi, edi
je 0x1002701e
jmp 0x10027020
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebx]
call fcn.10015440
push eax
push ebx
call dword [edi + 0x14]
jmp 0x10027018
mov ebx, dword [ebp + 0x18]
push 0xe00e0004
push ebx
mov eax, dword [ebx]
call dword [eax + 0x14]
mov edi, eax
jmp 0x10027020
mov ebx, dword [ebp + 0x18]
push 0
push ebx
mov eax, dword [ebx]
call dword [eax + 0x14]
mov edi, eax
test edi, edi
jne 0x10027020
xor edi, edi
test esi, esi
je 0x1002702d
push esi
call fcn.1007bfd8
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1002703a
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14