Function at 0x2704dd6e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x270b313c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push edi
and dword [esp + 0x1c], 0
xor eax, eax
lea edi, [esp + 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push 0x10
push eax
push esi
call fcn.2703c81e
add esp, 0x14
test eax, eax
jne 0x2704df77
movzx eax, byte [esp + 0x2c]
movzx ecx, byte [esp + 0x2d]
movzx edx, byte [esp + 0x31]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x2e]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x2f]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x30]
movzx ebx, byte [esp + 0x34]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x32]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x33]
shl ecx, 8
or ecx, edx
xor edx, edx
or eax, edx
movzx edx, byte [esp + 0x39]
mov dword [esp + 0x14], eax
movzx eax, byte [esp + 0x35]
shl ebx, 8
or ebx, eax
movzx eax, byte [esp + 0x36]
shl ebx, 8
or ebx, eax
movzx eax, byte [esp + 0x37]
shl ebx, 8
or ebx, eax
movzx eax, byte [esp + 0x38]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x3a]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x3b]
xor edi, edi
or edi, ecx
shl eax, 8
or eax, edx
xor ecx, ecx
or ecx, eax
mov eax, dword [esp + 0x14]
xor edx, edx
or ebx, edx
mov dword [esi + 0x104], eax
xor eax, eax
mov dword [esp + 0x10], edi
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x100], edi
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 + 0x10]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x14]
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
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edx
test edx, edx
jg 0x2704de8d
push 2
pop ebx
mov dword [esp + 0xc], ebx
cmp ebx, 1
lea edi, [esi + ebx*8 + 0xc0]
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
lea edx, [esi + ebx*8 + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x24], eax
jle 0x2704df6a
sub edi, edx
dec ebx
lea ecx, [edx + 8]
lea eax, [esi + 0x48]
mov dword [esp + 0x1c], ebx
mov edx, dword [eax + 0x80]
mov ebx, dword [eax + 0x84]
xor edx, dword [esp + 0x10]
xor ebx, dword [esp + 0x14]
mov dword [edi + ecx], edx
mov dword [edi + ecx + 4], ebx
mov edx, dword [eax]
mov ebx, dword [eax + 4]
xor edx, dword [esp + 0x20]
xor ebx, dword [esp + 0x24]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
add eax, 8
add ecx, 8
dec dword [esp + 0x1c]
jne 0x2704df2d
mov ebx, dword [esp + 0xc]
add ebx, ebx
cmp ebx, 8
mov dword [esp + 0xc], ebx
jle 0x2704def6
xor eax, eax
mov ecx, dword [esp + 0x3c]
pop edi
pop ebx
xor ecx, esp
call fcn.27088f70
mov esp, ebp
pop ebp
ret