Function at 0x477270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xbc]
push 0x20
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004d0d60
add esp, 0xc
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [edi], eax
push edx
push eax
rdtsc
mov dword [ebp - 0x18], eax
pop eax
pop edx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jle 0x4774a1
cmp ebx, 8
jl 0x47735c
pushal
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x18]
push ebp
mov ecx, 0x20
mov ebp, eax
add eax, dword [esi]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x47731c
pop ebp
mov esi, dword [ebp + 0xc]
mov dword [esi], edx
mov dword [esi + 4], eax
popal
jmp 0x477418
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
xor ecx, eax
mov eax, dword [ebp + 0x1c]
sub eax, 1
je 0x4773b0
sub eax, 1
je 0x47739c
sub eax, 1
jne 0x4773b8
xor edx, edx
nop dword [eax + eax]
lea eax, [ecx*8]
xor ecx, eax
mov eax, ecx
shr eax, 5
xor ecx, eax
mov byte [ebp + edx - 0xc], cl
inc edx
cmp edx, 8
jb 0x477380
jmp 0x4773b8
xor eax, eax
nop
mov cl, 8
sub cl, al
mov byte [ebp + eax - 0xc], cl
inc eax
cmp eax, 8
jb 0x4773a0
jmp 0x4773b8
xorps xmm0, xmm0
movq qword [ebp - 0xc], xmm0
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004d0d60
add esp, 0xc
pushal
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x18]
push ebp
mov ecx, 0x20
mov ebp, eax
add eax, dword [esi]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x4773dd
pop ebp
mov esi, dword [ebp + 0xc]
mov dword [esi], edx
mov dword [esi + 4], eax
popal
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
sub ebx, 8
add dword [ebp + 8], 8
add dword [ebp + 0xc], 8
add eax, 8
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x10], eax
je 0x477499
cmp dword [ebp + 0x20], 0
je 0x477499
test eax, 0x3ff
jne 0x477499
push dword [ebp + 0x18]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0047a3b0
add esp, 0xc
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [edi], eax
test ebx, ebx
jg 0x477302
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret