Function at 0x100278f6
Capabilities:
Encode data using xor

Disassembly:
push 8
push 0x50
mov eax, 0x10040187
call fcn.1003d78f
mov esi, ecx
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov byte [ebp - 0x2d], dl
mov dword [ebp - 0x44], ecx
jmp 0x10027b2d
mov edi, dword [eax]
test edi, edi
je 0x10027b2a
mov ecx, edi
call fcn.10008408
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10027a45
lea eax, [ebp - 0x33]
mov word [ebp - 0x34], 0x17
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x33], 0
call fcn.10003da4
mov ecx, dword [ebp - 0x38]
mov edx, edi
mov byte [ebp - 4], 1
call fcn.1000842a
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1002798d
cmp dword [eax + 0x40], 0
je 0x1002798d
push edi
push eax
xor edx, edx
lea ecx, [ebp - 0x5c]
call fcn.100084fa
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008b2b
lea ecx, [ebp - 0x5c]
call fcn.10003ba2
mov edi, dword [ebp - 0x38]
jmp 0x100279b0
push edi
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x5c]
push 0
mov edx, edi
call fcn.100084fa
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008b2b
lea ecx, [ebp - 0x5c]
call fcn.10003ba2
movzx ecx, byte [ebp - 0x2d]
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x10027a34
add ecx, 4
lea edx, [ebp - 0x2c]
call fcn.1000a5f2
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax + edx*4]
mov dword [eax + 0x60], edi
mov eax, dword [esi + 8]
mov eax, dword [eax + edx*4]
mov dword [eax + 0x64], ecx
mov eax, dword [esi + 8]
mov eax, dword [eax + edx*4]
mov dword [eax + 0x68], 1
test ecx, ecx
je 0x10027a01
movsx ecx, word [ecx + 0x4e]
movsx eax, word [edi + 0x5e]
add ecx, eax
jmp 0x10027a05
movsx ecx, word [edi + 0x5e]
mov eax, dword [esi + 8]
mov eax, dword [eax + edx*4]
mov dword [eax + 0x6c], ecx
mov eax, dword [esi + 8]
mov eax, dword [eax + edx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x10027a34
lea edx, [ebp - 0x2c]
call fcn.1000cdcf
mov eax, dword [esi + 8]
mov dl, 1
mov ecx, dword [ebp - 0x38]
mov ecx, dword [eax + ecx*4]
mov ecx, dword [ecx]
call fcn.1000c916
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10003ba2
jmp 0x10027b21
movzx edi, byte [ebp - 0x2d]
xor edx, edx
mov eax, dword [esi + 8]
cmp dword [eax + edi*4], edx
je 0x10027b21
movups xmm0, xmmword [0x1004d300]
mov dword [ebp - 0x1c], 0x75d4c5b
mov ecx, edx
mov dword [ebp - 0x18], 0x5d514d
movups xmmword [ebp - 0x2c], xmm0
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x16
jb 0x10027a72
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x15], dl
push eax
lea ecx, [ebp - 0x5c]
call fcn.10003da4
mov byte [ebp - 4], 2
lea edx, [ebp - 0x5c]
mov eax, dword [esi + 8]
mov ecx, dword [eax + edi*4]
add ecx, 4
call fcn.1000a5f2
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.10003ba2
mov eax, dword [esi + 8]
xor edx, edx
mov eax, dword [eax + edi*4]
cmp dword [eax], edx
je 0x10027b21
movups xmm0, xmmword [0x1004cf70]
mov dword [ebp - 0x1c], 0x79233225
mov ecx, edx
mov dword [ebp - 0x18], 0x232f33
movups xmmword [ebp - 0x2c], xmm0
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x16
jb 0x10027ad6
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x15], dl
push eax
lea ecx, [ebp - 0x5c]
call fcn.10003da4
mov byte [ebp - 4], 3
lea edx, [ebp - 0x5c]
mov eax, dword [esi + 8]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx]
call fcn.1000cdcf
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.10003ba2
mov eax, dword [esi + 8]
xor dl, dl
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx]
call fcn.1000c916
inc byte [ebp - 0x2d]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
add eax, 4
mov dword [ebp - 0x3c], eax
cmp eax, ecx
jne 0x1002791c
mov ecx, dword [esi]
call fcn.1000ca59
test al, al
jne 0x10027b78
mov eax, dword [0x10057868]
test eax, eax
je 0x10027b6f
mov ecx, dword [eax + 0x50]
test ecx, ecx
je 0x10027b6f
mov ecx, dword [ecx]
call fcn.1000c834
mov ecx, dword [esi]
add edx, 0xffffff4c
push edx
lea edx, [eax + 0x208]
call fcn.1000c8cd
pop ecx
mov ecx, dword [esi]
mov dl, 1
call fcn.1000c916
lea ecx, [ebx + 8]
call fcn.1000b2a1
mov ecx, dword [ebp - 0x14]
call fcn.1003d76d
ret 0xc