Function at 0x4783b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x824910
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x93bf44]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebx + 0xc]
push 0x901a78
mov dword [ebp - 0x78], eax
call fcn.005dff3c
mov edx, dword [0x1816094]
mov edi, eax
mov ecx, 4
test edi, edi
je 0x478485
cmp dword [ebx + 0x10], 0x64
jne 0x47865d
cmp word [0x901ca6], 0
mov eax, dword [edi]
movq xmm0, qword [0x901c9c]
movq qword [ebp - 0x20], xmm0
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x78], eax
mov eax, dword [0x901ca4]
mov dword [ebp - 0x18], eax
je 0x478476
xor esi, esi
nop
mov eax, 0x51eb851f
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x32
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x20], cx
inc esi
cmp esi, 6
jl 0x478450
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call dword [ebp - 0x78]
mov edx, dword [0x1816094]
mov esi, dword [ebp - 0x74]
cmp word [0x901c8a], 0
movups xmm0, xmmword [0x901c70]
mov eax, dword [0x901c88]
mov dword [ebp - 0x28], eax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [0x901c80]
movq qword [ebp - 0x30], xmm0
je 0x4785e6
xor ecx, ecx
cmp edx, 2
jl 0x4785c0
movaps xmm2, xmmword [0x903710]
mov eax, 4
movaps xmm4, xmmword [0x9037a0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov ecx, 8
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
movd xmm5, eax
mov eax, 0x1f
psrad xmm1, xmm5
movaps xmm0, xmm1
movd xmm6, eax
mov eax, 0x901c70
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x903730]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x903720]
paddd xmm2, xmmword [0x903710]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x903770]
paddw xmm1, xmm0
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x40], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x903730]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x903770]
paddw xmm1, xmm0
movq xmm0, qword [ebp - 0x38]
pxor xmm1, xmm0
movq qword [ebp - 0x38], xmm1
nop dword [eax + eax]
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x32
sub edx, eax
add edx, 0x33
xor word [ebp + ecx*2 - 0x40], dx
inc ecx
cmp ecx, 0xe
jl 0x4785c0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00415a20
add esp, 8
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x5c], 8
cmovae eax, dword [ebp - 0x70]
mov ecx, dword [ecx + 4]
push eax
call fcn.005dff3c
test eax, eax
je 0x478620
push esi
mov ecx, eax
call fcn.005f411a
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x47881b
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x478811
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47883b
jmp 0x478811
movups xmm0, xmmword [0x901c8c]
pextrw eax, xmm0, 7
movups xmmword [ebp - 0x24], xmm0
test ax, ax
je 0x478796
xor esi, esi
cmp edx, 2
jl 0x478770
movaps xmm2, xmmword [0x903710]
mov eax, 0x1f
movaps xmm4, xmmword [0x9037a0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
movd xmm5, ecx
psrad xmm1, xmm5
movd xmm6, eax
mov eax, 0x901c8c
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x903730]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x903720]
paddd xmm2, xmmword [0x903710]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x903770]
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x24], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x903730]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0x1c]
paddw xmm1, xmmword [0x903770]
pxor xmm1, xmm0
movq qword [ebp - 0x1c], xmm1
jmp 0x478796
mov eax, 0x51eb851f
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x32
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x24], cx
inc esi
cmp esi, 8
jl 0x478770
push dword [ebp - 0x78]
mov esi, dword [ebp - 0x74]
lea eax, [ebp - 0x24]
push esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00415a20
add esp, 0x10
mov dword [ebp - 4], 0
mov ecx, edi
mov eax, dword [edi]
cmp dword [ebp - 0x44], 8
mov edx, dword [eax + 0x2c]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x478806
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4787fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478840
push edx
push ecx
call fcn.005c2556
add esp, 8
mov edx, dword [0x1816094]
jmp 0x478488
push edx
push ecx
call fcn.005c2556
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005c234a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.006d14a9
call fcn.006d14a9
int3