Function at 0x27a720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x10
je 0x27a73f
cmp ecx, 0x18
je 0x27a73f
cmp ecx, 0x20
je 0x27a73f
mov eax, 3
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x27a764
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [eax + eax + 6]
cmp esi, eax
je 0x27a764
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
lea edx, [eax + eax + 6]
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [edi + 0x1e0], edx
movzx edx, byte [eax]
movzx esi, byte [eax + 1]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 2]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 3]
shl edx, 8
or edx, esi
mov dword [edi], edx
movzx edx, byte [eax + 4]
movzx ebx, byte [eax + 5]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 6]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 7]
shl edx, 8
or edx, ebx
mov dword [edi + 4], edx
movzx edx, byte [eax + 8]
movzx ebx, byte [eax + 9]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 0xa]
lea esi, [edi + 4]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 0xb]
shl edx, 8
or edx, ebx
mov dword [edi + 8], edx
movzx edx, byte [eax + 0xc]
movzx ebx, byte [eax + 0xd]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 0xe]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 0xf]
shl edx, 8
or edx, ebx
mov dword [edi + 0xc], edx
cmp ecx, 0x10
jne 0x27a87d
mov ebx, edx
mov ecx, edx
mov dword [ebp + 0xc], 0x2c
call fcn.0027a6e0
xor eax, dword [edi]
mov ecx, dword [esi]
xor eax, 0x1000000
xor ecx, eax
mov dword [edi + 0x10], eax
mov eax, dword [edi + 8]
xor eax, ecx
mov dword [edi + 0x18], eax
xor eax, ebx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x1c], eax
mov ebx, 0x2c7564
mov ecx, dword [esi + 0x18]
add esi, 0x10
call fcn.0027a6e0
xor eax, dword [esi - 4]
add ebx, 4
xor eax, dword [ebx - 4]
mov dword [esi + 0xc], eax
mov ecx, dword [esi]
xor ecx, eax
mov dword [esi + 0x10], ecx
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + 0x18], ecx
cmp ebx, 0x2c7588
jne 0x27a842
jmp 0x27aaa9
cmp ecx, 0x18
jne 0x27a965
movzx edx, byte [eax + 0x10]
movzx ecx, byte [eax + 0x11]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x12]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x13]
shl edx, 8
or edx, ecx
mov dword [edi + 0x10], edx
movzx edx, byte [eax + 0x14]
movzx ecx, byte [eax + 0x15]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x16]
movzx eax, byte [eax + 0x17]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov ecx, edx
mov dword [ebp + 0xc], 0x34
mov dword [edi + 0x14], edx
call fcn.0027a6e0
xor eax, dword [edi]
mov esi, dword [esi]
mov ecx, dword [edi + 0xc]
xor eax, 0x1000000
xor esi, eax
mov dword [edi + 0x18], eax
mov eax, dword [edi + 8]
xor eax, esi
xor ecx, eax
mov dword [edi + 0x24], ecx
mov ecx, 0xffffffd8
sub ecx, edi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], eax
lea esi, [edi + 0x28]
mov ebx, 0x2c7564
mov dword [ebp - 4], ecx
jmp 0x27a913
mov ecx, dword [ebp - 4]
mov eax, dword [esi - 0x18]
xor eax, dword [esi - 4]
mov edx, dword [esi - 0x14]
xor edx, eax
mov dword [esi], eax
mov dword [esi + 4], edx
add esi, 0x18
add ecx, esi
sar ecx, 2
mov ecx, dword [edi + ecx*4 + 0x14]
call fcn.0027a6e0
xor eax, dword [esi - 0x28]
add ebx, 4
xor eax, dword [ebx - 4]
mov dword [esi - 0x10], eax
mov ecx, dword [esi - 0x24]
xor ecx, eax
mov dword [esi - 0xc], ecx
mov eax, dword [esi - 0x20]
xor eax, ecx
mov dword [esi - 8], eax
mov ecx, dword [esi - 0x1c]
xor ecx, eax
mov dword [esi - 4], ecx
cmp ebx, 0x2c7580
jne 0x27a910
jmp 0x27aaa9
cmp ecx, 0x20
jne 0x27ac07
movzx edx, byte [eax + 0x10]
movzx ecx, byte [eax + 0x11]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x12]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x13]
shl edx, 8
or edx, ecx
mov dword [edi + 0x10], edx
movzx edx, byte [eax + 0x14]
movzx ecx, byte [eax + 0x15]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x16]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x17]
shl edx, 8
or edx, ecx
mov dword [edi + 0x14], edx
movzx edx, byte [eax + 0x18]
movzx ecx, byte [eax + 0x19]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x1a]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x1b]
shl edx, 8
or edx, ecx
mov dword [edi + 0x18], edx
movzx edx, byte [eax + 0x1c]
movzx ecx, byte [eax + 0x1d]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 0x1e]
movzx eax, byte [eax + 0x1f]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov ecx, edx
mov dword [ebp + 0xc], 0x3c
mov dword [edi + 0x1c], edx
call fcn.0027a6e0
xor eax, dword [edi]
mov esi, dword [esi]
mov ecx, dword [edi + 0xc]
xor eax, 0x1000000
xor esi, eax
mov dword [edi + 0x20], eax
mov eax, dword [edi + 8]
xor eax, esi
xor ecx, eax
mov dword [edi + 0x28], eax
mov eax, 0xffffffd0
sub eax, edi
mov dword [edi + 0x24], esi
mov dword [edi + 0x2c], ecx
lea esi, [edi + 0x30]
mov ebx, 0x2c7564
mov dword [ebp - 4], eax
jmp 0x27aa40
mov ecx, dword [esi - 4]
ror ecx, 8
call fcn.0027a6e0
xor eax, dword [esi - 0x20]
mov ecx, dword [esi - 0x1c]
mov edx, dword [esi - 0x14]
xor ecx, eax
mov dword [esi], eax
mov eax, dword [esi - 0x18]
xor eax, ecx
mov dword [esi + 4], ecx
xor edx, eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], edx
add esi, 0x20
lea ecx, [esi + eax]
sar ecx, 2
mov ecx, dword [edi + ecx*4 + 0x1c]
call fcn.0027a6e0
xor eax, dword [esi - 0x30]
add ebx, 4
xor eax, dword [ebx - 4]
mov dword [esi - 0x10], eax
mov ecx, dword [esi - 0x2c]
xor ecx, eax
mov dword [esi - 0xc], ecx
mov eax, dword [esi - 0x28]
xor eax, ecx
mov dword [esi - 8], eax
mov edx, dword [esi - 0x24]
xor edx, eax
mov dword [esi - 4], edx
cmp ebx, 0x2c757c
jne 0x27aa40
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + eax*4 - 0x10]
lea eax, [edi + eax*4 - 0x10]
mov dword [edi + 0xf0], edx
mov edx, dword [eax + 4]
lea ecx, [edi + 0xf0]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, 1
mov dword [ebp + 0xc], edx
cmp dword [edi + 0x1e0], edx
jle 0x27abe6
mov edx, dword [eax - 0x10]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
sub eax, 0x10
mov esi, edx
shr esi, 0x18
mov esi, dword [esi*4 + 0x2c6560]
xor esi, dword [ebx*4 + 0x2c6960]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor esi, dword [ebx*4 + 0x2c6d60]
movzx edx, dl
xor esi, dword [edx*4 + 0x2c7160]
add ecx, 0x10
mov dword [ecx], esi
mov edx, dword [eax + 4]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov esi, edx
shr esi, 0x18
mov esi, dword [esi*4 + 0x2c6560]
xor esi, dword [ebx*4 + 0x2c6960]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor esi, dword [ebx*4 + 0x2c6d60]
movzx edx, dl
xor esi, dword [edx*4 + 0x2c7160]
mov dword [ecx + 4], esi
mov edx, dword [eax + 8]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov esi, edx
shr esi, 0x18
mov esi, dword [esi*4 + 0x2c6560]
xor esi, dword [ebx*4 + 0x2c6960]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor esi, dword [ebx*4 + 0x2c6d60]
movzx edx, dl
xor esi, dword [edx*4 + 0x2c7160]
mov dword [ecx + 8], esi
mov edx, dword [eax + 0xc]
mov ebx, edx
shr ebx, 0x10
mov esi, edx
shr esi, 0x18
mov esi, dword [esi*4 + 0x2c6560]
movzx ebx, bl
xor esi, dword [ebx*4 + 0x2c6960]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor esi, dword [ebx*4 + 0x2c6d60]
movzx edx, dl
xor esi, dword [edx*4 + 0x2c7160]
mov edx, dword [ebp + 0xc]
inc edx
mov dword [ecx + 0xc], esi
mov dword [ebp + 0xc], edx
cmp edx, dword [edi + 0x1e0]
jl 0x27aae6
mov edx, dword [eax - 0x10]
mov dword [ecx + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [ecx + 0x14], edx
mov edx, dword [eax - 8]
mov dword [ecx + 0x18], edx
mov eax, dword [eax - 4]
pop edi
pop ebx
mov dword [ecx + 0x1c], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret