Function at 0x477240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79b952
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x50], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x88], edi
lea esi, [edi + 0x18]
mov dword [ebp - 0x48], 0
xor edx, edx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], cx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], cx
mov dword [edi + 0x40], ecx
mov dword [edi + 0x44], 7
mov word [edi + 0x30], dx
mov dword [edi + 0x58], ecx
mov dword [edi + 0x5c], 7
mov word [edi + 0x48], dx
mov dword [ebp - 4], edx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
xor eax, eax
push eax
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x44]
push 0x7cd378
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.004044f0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x6c]
push 3
xor eax, eax
mov dword [ebp - 0x5c], 0
push 0x7d7c2c
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
call fcn.004044f0
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00438730
lea ecx, [ebp - 0x6c]
call fcn.00404490
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.00404490
cmp byte [ebp - 0x14], 0
lea ecx, [ebp - 0x44]
je 0x47737d
lea eax, [ebp - 0x2c]
push eax
call fcn.00404120
mov byte [ebp - 4], 0
cmp byte [ebp - 0x14], 0
mov dword [ebp - 0x48], 3
je 0x477423
lea ecx, [ebp - 0x2c]
call fcn.00404490
jmp 0x477423
xor eax, eax
mov dword [ebp - 0x34], 0
push eax
push 0x7cd378
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.004044f0
mov esi, dword [ebp - 0x54]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 6
xor eax, eax
push 3
push 0x7d7c2c
add esi, 0x18
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
call fcn.004044f0
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
push eax
push esi
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 7
push eax
call fcn.00439050
lea ecx, [ebp - 0x84]
call fcn.00404490
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.00404490
push esi
lea ecx, [ebp - 0x44]
call fcn.00404120
mov byte [ebp - 4], 0
cmp byte [ebp - 0x14], 0
mov dword [ebp - 0x48], 3
je 0x477420
lea ecx, [ebp - 0x2c]
call fcn.00404490
lea esi, [edi + 0x18]
lea eax, [ebp - 0x44]
cmp esi, eax
je 0x477456
mov ecx, esi
call fcn.00404490
movups xmm0, xmmword [ebp - 0x44]
xor eax, eax
mov word [ebp - 0x44], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea ecx, [ebp - 0x44]
call fcn.00404490
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x6c]
xor eax, eax
mov dword [ebp - 0x5c], 0
push eax
push 0x7cd378
mov esi, dword [esi]
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
call fcn.004044f0
mov dword [ebp - 4], 8
mov eax, 4
mov dword [ebp - 0x3c], eax
xor ecx, ecx
mov dword [ebp - 0x38], 0xd500db
mov dword [ebp - 0x34], 0xdf00d3
mov dword [ebp - 0x30], 0xbc
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x38], ax
inc ecx
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
jb 0x4774b0
xor ecx, ecx
mov word [ebp + eax*2 - 0x38], cx
xor eax, eax
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x70], 7
lea edx, [ecx + 2]
mov word [ebp - 0x84], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4774e3
sub ecx, edx
lea eax, [ebp - 0x38]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.004044f0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00438730
lea ecx, [ebp - 0x84]
call fcn.00404490
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xc
call fcn.00404490
cmp byte [ebp - 0x14], 0
je 0x477560
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00404120
mov byte [ebp - 4], 0
cmp byte [ebp - 0x14], 0
mov dword [ebp - 0x48], 7
je 0x47757e
lea ecx, [ebp - 0x2c]
call fcn.00404490
jmp 0x47757e
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 0x48], 7
mov byte [ebp - 4], al
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x4775b1
mov ecx, edi
call fcn.00404490
movups xmm0, xmmword [ebp - 0x44]
xor eax, eax
mov word [ebp - 0x44], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea ecx, [ebp - 0x44]
call fcn.00404490
mov esi, dword [ebp - 0x50]
lea ecx, [edi + 0x48]
mov eax, dword [esi + 4]
cmp ecx, eax
je 0x4775db
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x4775d1
mov eax, dword [eax]
push edx
push eax
call fcn.004044f0
mov eax, dword [esi + 4]
add eax, 0x48
lea ecx, [edi + 0x30]
cmp ecx, eax
je 0x4775f7
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x4775f0
mov eax, dword [eax]
push edx
push eax
call fcn.004044f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 4