Function at 0x4783e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x4db06c]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov eax, edx
mov dword [esp + 0x18], eax
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
test eax, eax
je 0x478a75
mov esi, dword [ebp + 8]
add eax, esi
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x230]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x47842e
lea eax, [edi + 0x40]
mov dword [esp + 0x38], eax
push 0x40
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.00489a20
mov eax, dword [edi + 0x200]
add esp, 0xc
add dword [edi + 0x210], esi
adc dword [edi + 0x214], 0
mov edi, 0x100
sub edi, eax
cmp esi, edi
ja 0x478491
mov edi, dword [esp + 0xc]
add eax, 0x100
push esi
push dword [esp + 0x20]
add eax, edi
push eax
call fcn.00489a20
add dword [edi + 0x200], esi
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00487555
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x478781
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
add ecx, 0x100
push edi
add eax, ecx
push esi
push eax
call fcn.00489a20
mov eax, dword [esp + 0x18]
add esi, edi
mov edx, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0xc]
mov ecx, dword [eax + 0x21c]
lea edi, [eax + 0x100]
mov eax, dword [eax + 0x208]
mov dword [esp + 0x2c], 4
mov esi, dword [esi + 0x218]
sub esi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
lea edx, [edx + eax*8]
mov dword [esp + 0x20], edx
cmp esi, 4
ja 0x478685
mov eax, dword [esp + 0x38]
add eax, ecx
mov dword [esp + 0x18], eax
nop word [eax + eax]
test esi, esi
je 0x4785cb
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], esi
mov eax, edi
sub eax, ecx
lea ecx, [edi + 0x180]
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], ecx
prefetcht0 byte [ecx]
xor ecx, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
nop
lea eax, [eax + ecx*8]
xor ecx, 1
movq xmm0, qword [esp + eax + 0x58]
movq qword [esp + 0x30], xmm0
movq xmm0, qword [edx]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
movq qword [esp + 0x40], xmm0
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
xor eax, esi
xor edi, edx
add dword [esp + ecx*8 + 0x58], esi
adc dword [esp + ecx*8 + 0x5c], edx
mov ecx, dword [esp + 0x50]
mul edi
add dword [esp + ecx*8 + 0x58], eax
mov eax, dword [esp + 0x10]
adc dword [esp + ecx*8 + 0x5c], edx
inc ecx
mov edx, dword [esp + 0x54]
add edx, 8
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
cmp ecx, 8
jb 0x478540
mov ecx, dword [esp + 0x3c]
add eax, 0x40
mov edx, dword [esp + 0x20]
add ecx, 0x40
add edx, 8
mov dword [esp + 0x3c], ecx
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
jne 0x478532
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x14], eax
movq xmm0, qword [eax]
xor eax, eax
mov ecx, dword [esp + edi*8 + 0x5c]
mov esi, ecx
movq qword [esp + 0x30], xmm0
xor eax, dword [esp + 0x34]
xor eax, ecx
shr esi, 0xf
xor esi, dword [esp + 0x30]
mov ecx, 0x9e3779b1
xor esi, dword [esp + edi*8 + 0x58]
mul ecx
mov edx, 0x9e3779b1
mov ecx, eax
mov eax, esi
mul edx
add ecx, edx
mov dword [esp + edi*8 + 0x58], eax
mov eax, dword [esp + 0x14]
mov dword [esp + edi*8 + 0x5c], ecx
add eax, 8
inc edi
mov dword [esp + 0x14], eax
cmp edi, 8
jb 0x4785d1
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
shl eax, 6
add edi, eax
mov dword [esp + 0x2c], ecx
mov eax, dword [edx + 0x218]
mov esi, eax
mov edx, dword [esp + 0x38]
cmp ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], edx
jae 0x478510
mov eax, dword [esp + 0xc]
mov dword [eax + 0x208], 0
xor eax, eax
test ecx, ecx
jne 0x47868a
mov edi, dword [esp + 0xc]
mov dword [edi + 0x200], eax
jmp 0x478785
mov ecx, 4
test ecx, ecx
je 0x478769
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x58]
mov eax, edi
mov dword [esp + 0x14], esi
sub eax, ecx
lea ecx, [edi + 0x180]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
prefetcht0 byte [ecx]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
nop dword [eax]
lea eax, [eax + ecx*8]
xor ecx, 1
movq xmm0, qword [esp + eax + 0x58]
movq qword [esp + 0x40], xmm0
movq xmm0, qword [edx]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
movq qword [esp + 0x30], xmm0
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
xor eax, esi
xor edi, edx
add dword [esp + ecx*8 + 0x58], esi
adc dword [esp + ecx*8 + 0x5c], edx
mov ecx, dword [esp + 0x18]
mul edi
add dword [esp + ecx*8 + 0x58], eax
mov eax, dword [esp + 0x10]
adc dword [esp + ecx*8 + 0x5c], edx
inc ecx
mov edx, dword [esp + 0x28]
add edx, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
cmp ecx, 8
jb 0x4786c0
mov ecx, dword [esp + 0x24]
add eax, 0x40
mov edx, dword [esp + 0x20]
add ecx, 0x40
add edx, 8
mov dword [esp + 0x24], ecx
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
jne 0x4786b0
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0x208]
add eax, ecx
mov dword [edi + 0x208], eax
mov dword [edi + 0x200], 0
jmp 0x478785
mov edi, dword [esp + 0xc]
add eax, ecx
mov dword [edi + 0x208], eax
mov dword [edi + 0x200], 0
jmp 0x478785
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x1c]
sub eax, esi
cmp eax, 0x100
jle 0x478a43
mov ecx, dword [edi + 0x21c]
lea edi, [eax - 1]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0xc]
shr edi, 6
mov dword [esp + 0x2c], edi
mov eax, dword [esi + 0x208]
mov esi, dword [esi + 0x218]
sub esi, eax
mov dword [esp + 0x14], esi
lea edx, [edx + eax*8]
mov dword [esp + 0x20], edx
cmp edi, esi
jb 0x478951
mov eax, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
test esi, esi
je 0x4788a3
mov eax, ecx
mov dword [esp + 0x24], esi
lea edi, [esp + 0x58]
sub eax, edi
add ecx, 0x180
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ecx
prefetcht0 byte [ecx]
xor ecx, ecx
mov dword [esp + 0x18], edx
lea eax, [eax + ecx*8]
movq xmm0, qword [esp + eax + 0x58]
movq qword [esp + 0x40], xmm0
movq xmm0, qword [edx]
mov edx, ecx
mov edi, dword [esp + 0x40]
xor edx, 1
mov esi, dword [esp + 0x44]
movq qword [esp + 0x30], xmm0
mov eax, dword [esp + 0x30]
xor eax, edi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
xor eax, esi
add dword [esp + edx*8 + 0x58], edi
mov dword [esp + 0x50], eax
adc dword [esp + edx*8 + 0x5c], esi
mov eax, dword [esp + 0x54]
mul dword [esp + 0x50]
add dword [esp + ecx*8 + 0x58], eax
mov eax, dword [esp + 0x10]
adc dword [esp + ecx*8 + 0x5c], edx
inc ecx
mov edx, dword [esp + 0x18]
add edx, 8
mov dword [esp + 0x18], edx
cmp ecx, 8
jb 0x478810
mov ecx, dword [esp + 0x28]
add eax, 0x40
mov edx, dword [esp + 0x20]
add ecx, 0x40
add edx, 8
mov dword [esp + 0x28], ecx
sub dword [esp + 0x24], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
jne 0x478807
mov eax, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x18], eax
nop dword [eax]
movq xmm0, qword [eax]
xor eax, eax
mov ecx, dword [esp + edi*8 + 0x5c]
mov esi, ecx
movq qword [esp + 0x30], xmm0
xor eax, dword [esp + 0x34]
xor eax, ecx
shr esi, 0xf
xor esi, dword [esp + 0x30]
mov ecx, 0x9e3779b1
xor esi, dword [esp + edi*8 + 0x58]
mul ecx
mov edx, 0x9e3779b1
mov ecx, eax
mov eax, esi
mul edx
add ecx, edx
mov dword [esp + edi*8 + 0x58], eax
mov eax, dword [esp + 0x18]
mov dword [esp + edi*8 + 0x5c], ecx
add eax, 8
inc edi
mov dword [esp + 0x18], eax
cmp edi, 8
jb 0x4788b0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
sub edi, dword [esp + 0x14]
shl eax, 6
add ecx, eax
mov dword [esp + 0x2c], edi
mov eax, dword [edx + 0x218]
mov esi, eax
mov edx, dword [esp + 0x38]
cmp edi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
jae 0x4787e5
mov eax, dword [esp + 0xc]
mov dword [eax + 0x208], 0
jmp 0x478955
mov ecx, dword [esp + 0x1c]
test edi, edi
je 0x478a26
mov eax, ecx
mov dword [esp + 0x14], edi
lea esi, [esp + 0x58]
sub eax, esi
add ecx, 0x180
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
prefetcht0 byte [ecx]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
lea eax, [eax + ecx*8]
xor ecx, 1
movq xmm0, qword [esp + eax + 0x58]
movq qword [esp + 0x40], xmm0
movq xmm0, qword [edx]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
movq qword [esp + 0x30], xmm0
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
xor eax, esi
xor edi, edx
add dword [esp + ecx*8 + 0x58], esi
adc dword [esp + ecx*8 + 0x5c], edx
mov ecx, dword [esp + 0x18]
mul edi
add dword [esp + ecx*8 + 0x58], eax
mov eax, dword [esp + 0x10]
adc dword [esp + ecx*8 + 0x5c], edx
inc ecx
mov edx, dword [esp + 0x28]
add edx, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
cmp ecx, 8
jb 0x478984
mov ecx, dword [esp + 0x24]
add eax, 0x40
mov edx, dword [esp + 0x20]
add ecx, 0x40
add edx, 8
mov dword [esp + 0x24], ecx
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
jne 0x478977
mov ecx, dword [esp + 0x2c]
mov eax, ecx
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
shl eax, 6
add esi, eax
add dword [edi + 0x208], ecx
jmp 0x478a2e
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
push 0x40
lea eax, [esi - 0x40]
push eax
lea eax, [edi + 0x1c0]
push eax
call fcn.00489a20
add esp, 0xc
mov eax, dword [esp + 0x4c]
sub eax, esi
push eax
mov dword [esp + 0x50], eax
lea eax, [edi + 0x100]
push esi
push eax
call fcn.00489a20
mov eax, dword [esp + 0x58]
mov dword [edi + 0x200], eax
lea eax, [esp + 0x64]
push 0x40
push eax
push edi
call fcn.00489a20
add esp, 0x18
mov ecx, dword [esp + 0x9c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00487555
mov esp, ebp
pop ebp
ret