Function at 0x47c130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x47c350
mov esi, dword [ebp + 0xc]
cmp esi, 8
jl 0x47c350
cmp esi, 0x4000
jg 0x47c350
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov dword [ebp - 8], eax
test eax, eax
je 0x47c350
push edi
lea edi, [esi + esi*2]
shl edi, 3
push edi
call dword [0x5351d0]
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x47c194
mov esi, dword [ebp - 8]
or eax, 0xffffffff
pop edi
mov dword [ebx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push eax
call fcn.004bdca0
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebx + 4], esi
test eax, eax
jle 0x47c33b
mov esi, dword [ebp - 8]
mov edi, eax
add esi, 0xc
cmp dword [esi + 8], 0
je 0x47c1ee
push dword [esi]
push dword [esi - 4]
push dword [esi - 8]
push ebx
call fcn.0047bc50
movups xmm0, xmmword [esi - 0xc]
add esp, 0x10
lea ecx, [eax + eax*2]
mov eax, dword [ebx]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esi + 4]
movq qword [eax + ecx*8 + 0x10], xmm0
mov eax, dword [ebx]
mov dword [eax + ecx*8], 0
add esi, 0x18
sub edi, 1
jne 0x47c1b6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], eax
nop
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47c326
nop dword [eax]
mov ecx, dword [eax]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 4]
mov esi, dword [eax + 8]
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edi
test ebx, ebx
je 0x47c25d
movzx ecx, byte [ebx]
mov eax, ecx
mov dword [ebp - 0x14], ecx
shl eax, 4
sub eax, ecx
add eax, eax
test ecx, ecx
je 0x47c25d
mov edi, ecx
nop dword [eax]
mov edx, eax
lea ebx, [ebx + 1]
shl edx, 5
mov ecx, eax
add edx, edi
shr ecx, 3
movzx edi, byte [ebx]
add ecx, edx
xor eax, ecx
test edi, edi
jne 0x47c240
mov edi, dword [ebp - 0x18]
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
xor eax, edx
test esi, esi
je 0x47c290
movzx ebx, byte [esi]
test ebx, ebx
je 0x47c290
mov edx, eax
lea esi, [esi + 1]
shl edx, 5
mov ecx, eax
add edx, ebx
shr ecx, 3
movzx ebx, byte [esi]
add ecx, edx
xor eax, ecx
test ebx, ebx
jne 0x47c276
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
xor eax, edx
test edi, edi
je 0x47c2ca
movzx esi, byte [edi]
test esi, esi
je 0x47c2ca
nop dword [eax]
mov edx, eax
lea edi, [edi + 1]
shl edx, 5
mov ecx, eax
add edx, esi
shr ecx, 3
movzx esi, byte [edi]
add ecx, edx
xor eax, ecx
test esi, esi
jne 0x47c2b0
mov ebx, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp - 0xc]
div dword [ebx + 4]
mov eax, dword [ebx]
lea edx, [edx + edx*2]
shl edx, 3
add eax, edx
cmp dword [eax + 0x14], 0
jne 0x47c30a
movups xmm0, xmmword [ecx]
push ecx
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov eax, dword [ebx]
mov dword [edx + eax], 0
call dword [0x5351dc]
add esp, 4
jmp 0x47c313
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebx]
mov dword [edx + eax], ecx
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x47c210
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add eax, 0x18
sub ecx, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
jne 0x47c200
push dword [ebp - 8]
call dword [0x5351dc]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret