Function at 0x4088a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
xor eax, eax
push ebx
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x10
mov edx, ecx
push edx
push esi
mov dword [esp + 0x24], 0
call fcn.00401e90
add esp, 0x14
test eax, eax
jne 0x408ac9
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov ch, al
movzx edx, ah
movzx eax, byte [esp + 0x2a]
or ecx, edx
movzx edx, byte [esp + 0x2b]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
mov eax, ecx
mov ecx, dword [esp + 0x2c]
movzx edx, cl
shl edx, 8
movzx ecx, ch
or edx, ecx
movzx ecx, byte [esp + 0x2e]
shl edx, 8
or edx, ecx
movzx ecx, byte [esp + 0x2f]
shl edx, 8
or edx, ecx
xor ecx, ecx
or eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
movzx ecx, byte [esp + 0x33]
movzx ebx, al
xor edi, edi
or edi, edx
movzx edx, ah
movzx eax, byte [esp + 0x32]
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x34]
movzx edx, al
shl edx, 8
movzx eax, ah
or edx, eax
movzx eax, byte [esp + 0x36]
shl edx, 8
or edx, eax
movzx eax, byte [esp + 0x37]
shl ebx, 8
shl edx, 8
or ebx, ecx
or edx, eax
xor eax, eax
xor ecx, ecx
or ecx, edx
mov edx, dword [esp + 0x1c]
or ebx, eax
mov dword [esp + 0x18], edi
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edx
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esp + 0xc], 4
mov eax, ecx
shrd ecx, ebx, 1
shr ebx, 1
xor edx, edx
shl edi, 0x1f
or ebx, edi
and eax, 1
or ecx, edx
imul eax, eax, 0xe1000000
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x1c]
shrd edx, ebx, 1
shr ebx, 1
xor edi, edi
xor edi, edx
mov edx, dword [esp + 0xc]
xor eax, ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + edx*8 + 0x40], ecx
mov dword [esi + edx*8 + 0x44], ebx
mov dword [esi + edx*8 + 0xc0], edi
mov dword [esi + edx*8 + 0xc4], eax
sar edx, 1
test edx, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], edx
jg 0x4089bf
mov ebx, 2
mov dword [esp + 0xc], ebx
lea ebx, [ebx]
cmp ebx, 1
mov eax, dword [esi + ebx*8 + 0xc0]
mov ecx, dword [esi + ebx*8 + 0xc4]
lea edi, [esi + ebx*8 + 0xc0]
lea edx, [esi + ebx*8 + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [edx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jle 0x408ab8
sub edi, edx
add ebx, 0xffffffff
lea ecx, [edx + 8]
lea eax, [esi + 0x48]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov edi, dword [eax + 0x80]
mov ebx, dword [eax + 0x84]
xor edi, dword [esp + 0x18]
xor ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [edx + ecx], edi
mov edi, dword [esp + 0x24]
mov dword [edx + ecx + 4], ebx
xor edi, dword [eax + 4]
mov edx, dword [esp + 0x20]
xor edx, dword [eax]
mov dword [ecx + 4], edi
mov dword [ecx], edx
add eax, 8
add ecx, 8
sub dword [esp + 0x10], 1
jne 0x408a76
mov ebx, dword [esp + 0xc]
add ebx, ebx
cmp ebx, 8
mov dword [esp + 0xc], ebx
jle 0x408a30
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret