Function at 0x27b9eaf
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
test ebx, ebx
je 0x27ba2ec
test esi, esi
je 0x27ba2ec
mov ebp, dword [esp + 0x18]
mov eax, ebp
sub eax, 0x80
je 0x27b9f02
sub eax, 0x40
je 0x27b9ef6
sub eax, 0x40
je 0x27b9eea
push 0xfffffffffffffffe
pop eax
jmp 0x27ba2ef
mov dword [esi + 0xf0], 0xe
jmp 0x27b9f0c
mov dword [esi + 0xf0], 0xc
jmp 0x27b9f0c
mov dword [esi + 0xf0], 0xa
push ebx
call fcn.027b5d75
mov dword [esi], eax
lea edi, [esi + 4]
lea eax, [ebx + 4]
push eax
call fcn.027b5d75
mov dword [edi], eax
lea eax, [ebx + 8]
push eax
call fcn.027b5d75
mov dword [esi + 8], eax
lea eax, [ebx + 0xc]
push eax
call fcn.027b5d75
add esp, 0x10
mov edx, eax
mov dword [esi + 0xc], edx
cmp ebp, 0x80
jne 0x27ba034
shr eax, 0x10
mov ebx, 0xff000000
movzx eax, al
mov ebp, 0xff0000
mov ecx, dword [eax*4 + 0x2888578]
mov eax, edx
shr eax, 8
xor ecx, 0x1000000
movzx eax, al
and ecx, ebx
mov eax, dword [eax*4 + 0x2888978]
and eax, ebp
xor ecx, eax
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x2888178]
xor ecx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x2887d78]
and eax, 0xff00
xor ecx, eax
mov eax, dword [edi]
xor ecx, dword [esi]
xor eax, ecx
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + 0x14], eax
xor edx, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov esi, 0x2889e7c
lea edi, [edi + 0x10]
mov ecx, dword [edi + 8]
mov eax, ecx
shr eax, 8
movzx eax, al
mov edx, dword [eax*4 + 0x2888978]
mov eax, ecx
shr eax, 0x10
and edx, ebp
movzx eax, al
mov eax, dword [eax*4 + 0x2888578]
and eax, ebx
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x2888178]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + 0x2887d78]
and eax, 0xff00
xor edx, eax
xor edx, dword [edi - 4]
xor edx, dword [esi]
add esi, 4
mov dword [edi + 0xc], edx
mov eax, dword [edi]
xor eax, edx
mov dword [edi + 0x10], eax
mov ecx, dword [edi + 4]
xor ecx, eax
mov dword [edi + 0x14], ecx
mov eax, dword [edi + 8]
xor eax, ecx
mov dword [edi + 0x18], eax
cmp esi, 0x2889ea0
jne 0x27b9fbb
jmp 0x27ba2e8
lea eax, [ebx + 0x10]
push eax
call fcn.027b5d75
mov dword [esi + 0x10], eax
lea eax, [ebx + 0x14]
push eax
call fcn.027b5d75
mov edx, eax
mov dword [esi + 0x14], edx
pop ecx
pop ecx
cmp ebp, 0xc0
jne 0x27ba160
shr eax, 0x10
mov ebx, 0xff000000
movzx eax, al
mov ebp, 0xff0000
mov ecx, dword [eax*4 + 0x2888578]
mov eax, edx
shr eax, 8
xor ecx, 0x1000000
movzx eax, al
and ecx, ebx
mov eax, dword [eax*4 + 0x2888978]
and eax, ebp
xor ecx, eax
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x2888178]
xor ecx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x2887d78]
and eax, 0xff00
xor ecx, eax
mov eax, dword [edi]
xor ecx, dword [esi]
mov edi, 0x2889e7c
xor eax, ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
add esi, 0x28
mov ecx, dword [esi - 0x18]
xor ecx, dword [esi - 4]
mov eax, dword [esi - 0x14]
xor eax, ecx
mov dword [esi], ecx
mov dword [esi + 4], eax
lea esi, [esi + 0x18]
mov ecx, dword [esi - 0x14]
mov eax, ecx
shr eax, 8
movzx eax, al
mov edx, dword [eax*4 + 0x2888978]
mov eax, ecx
shr eax, 0x10
and edx, ebp
movzx eax, al
mov eax, dword [eax*4 + 0x2888578]
and eax, ebx
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x2888178]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + 0x2887d78]
and eax, 0xff00
xor edx, eax
xor edx, dword [esi - 0x28]
xor edx, dword [edi]
add edi, 4
mov dword [esi - 0x10], edx
mov eax, dword [esi - 0x24]
xor eax, edx
mov dword [esi - 0xc], eax
mov ecx, dword [esi - 0x20]
xor ecx, eax
mov dword [esi - 8], ecx
mov eax, dword [esi - 0x1c]
xor eax, ecx
mov dword [esi - 4], eax
cmp edi, 0x2889e98
jne 0x27ba0d2
jmp 0x27ba2e8
lea eax, [ebx + 0x18]
push eax
call fcn.027b5d75
mov dword [esi + 0x18], eax
lea eax, [ebx + 0x1c]
push eax
call fcn.027b5d75
mov edx, eax
mov dword [esi + 0x1c], edx
pop ecx
pop ecx
cmp ebp, 0x100
jne 0x27ba2e8
shr eax, 8
mov ecx, edx
shr ecx, 0x10
mov ebx, 0xff000000
movzx eax, al
mov ebp, 0xff0000
movzx ecx, cl
mov dword [esp + 0x14], 0x2889e7c
mov eax, dword [eax*4 + 0x2888978]
mov ecx, dword [ecx*4 + 0x2888578]
and eax, ebp
xor ecx, 0x1000000
and ecx, ebx
xor ecx, eax
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x2888178]
xor ecx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x2887d78]
and eax, 0xff00
xor ecx, eax
mov eax, dword [edi]
xor ecx, dword [esi]
lea edi, [esi + 0x30]
xor eax, ecx
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 8]
mov dword [esi + 0x24], eax
xor ecx, eax
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
mov esi, 0xff00
mov ecx, dword [edi - 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov edx, dword [eax*4 + 0x2888978]
mov eax, ecx
shr eax, 8
and edx, ebp
movzx eax, al
mov eax, dword [eax*4 + 0x2887d78]
and eax, esi
xor edx, eax
mov eax, ecx
shr eax, 0x18
mov eax, dword [eax*4 + 0x2888578]
and eax, ebx
xor edx, eax
movzx eax, cl
mov ecx, dword [edi - 0x18]
movzx eax, byte [eax*4 + 0x2888178]
xor edx, eax
mov eax, dword [edi - 0x1c]
xor edx, dword [edi - 0x20]
xor eax, edx
mov dword [edi], edx
mov dword [edi + 4], eax
lea edi, [edi + 0x20]
xor ecx, eax
mov eax, dword [edi - 0x34]
xor eax, ecx
mov dword [edi - 0x18], ecx
mov dword [edi - 0x14], eax
mov ecx, dword [edi - 0x14]
mov eax, ecx
shr eax, 8
movzx eax, al
mov edx, dword [eax*4 + 0x2888978]
mov eax, ecx
shr eax, 0x10
and edx, ebp
movzx eax, al
mov eax, dword [eax*4 + 0x2888578]
and eax, ebx
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x2888178]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + 0x2887d78]
and eax, esi
xor edx, eax
mov eax, dword [esp + 0x14]
xor edx, dword [edi - 0x30]
xor edx, dword [eax]
mov dword [edi - 0x10], edx
mov eax, dword [edi - 0x2c]
xor eax, edx
mov dword [edi - 0xc], eax
mov ecx, dword [edi - 0x28]
xor ecx, eax
mov dword [edi - 8], ecx
mov eax, dword [edi - 0x24]
xor eax, ecx
mov dword [edi - 4], eax
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
cmp eax, 0x2889e94
jne 0x27ba206
xor eax, eax
jmp 0x27ba2ef
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret