Function at 0x41aa70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x577690]
xor eax, esp
mov dword [esp + 0x34], eax
xor eax, eax
push ebx
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0x10
mov edx, ecx
push edx
push esi
mov dword [esp + 0x30], 0
call fcn.0041b850
add esp, 0x14
test eax, eax
jne 0x41aca7
mov eax, dword [esp + 0x2c]
movzx ecx, al
shl ecx, 8
movzx edx, ah
movzx eax, byte [esp + 0x2e]
or ecx, edx
movzx edx, byte [esp + 0x2f]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
mov eax, ecx
mov ecx, dword [esp + 0x30]
movzx edx, cl
shl edx, 8
movzx ecx, ch
or edx, ecx
movzx ecx, byte [esp + 0x32]
shl edx, 8
or edx, ecx
movzx ecx, byte [esp + 0x33]
shl edx, 8
or edx, ecx
xor ecx, ecx
or eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
movzx ecx, byte [esp + 0x37]
movzx ebx, al
xor edi, edi
or edi, edx
movzx edx, ah
movzx eax, byte [esp + 0x36]
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x38]
movzx edx, al
shl edx, 8
movzx eax, ah
or edx, eax
movzx eax, byte [esp + 0x3a]
shl edx, 8
or edx, eax
movzx eax, byte [esp + 0x3b]
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 + 0x14]
or ebx, eax
mov dword [esp + 0x10], 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 + 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 0x41ab9c
mov ebx, 2
mov dword [esp + 0xc], ebx
jmp 0x41ac10
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 + 0x10], eax
mov eax, dword [edx]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jle 0x41ac96
sub edi, edx
dec ebx
lea ecx, [edx + 8]
lea eax, [esi + 0x48]
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ebx
mov edi, dword [eax + 0x80]
mov ebx, dword [eax + 0x84]
xor edi, dword [esp + 0x10]
xor ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov dword [edx + ecx], edi
mov dword [edx + ecx + 4], ebx
mov edx, dword [eax]
mov edi, dword [eax + 4]
xor edx, dword [esp + 0x20]
xor edi, dword [esp + 0x24]
mov dword [ecx], edx
mov dword [ecx + 4], edi
add eax, 8
add ecx, 8
sub dword [esp + 0x1c], 1
jne 0x41ac54
mov ebx, dword [esp + 0xc]
add ebx, ebx
cmp ebx, 8
mov dword [esp + 0xc], ebx
jle 0x41ac10
xor eax, eax
mov ecx, dword [esp + 0x3c]
pop edi
pop ebx
xor ecx, esp
call fcn.004f8e7f
mov esp, ebp
pop ebp
ret