Function at 0x477d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79ba7c
mov eax, dword fs:[0]
push eax
sub esp, 0x78
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 dword [ebp - 0x68], ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x84], edi
xor edx, edx
mov dword [ebp - 0x64], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 7
mov word [edi + 0x18], dx
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], 7
mov word [edi + 0x30], ax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], 7
mov word [edi + 0x48], ax
mov dword [ebp - 4], edx
mov esi, dword [ecx]
lea ecx, [ebp - 0x60]
push edx
push 0x7cd378
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
call fcn.004044f0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x80]
push 3
xor eax, eax
mov dword [ebp - 0x70], 0
push 0x7d7c2c
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
call fcn.004044f0
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00438730
lea ecx, [ebp - 0x80]
call fcn.00404490
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.00404490
cmp byte [ebp - 0x14], 0
je 0x477ea6
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x60]
call fcn.00404120
mov byte [ebp - 4], 0
cmp byte [ebp - 0x14], 0
mov dword [ebp - 0x64], 3
je 0x477ec5
lea ecx, [ebp - 0x2c]
call fcn.00404490
jmp 0x477ec5
mov byte [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov dword [ebp - 0x64], 3
lea eax, [ebp - 0x60]
lea esi, [edi + 0x18]
cmp esi, eax
je 0x477efb
mov ecx, esi
call fcn.00404490
movups xmm0, xmmword [ebp - 0x60]
xor eax, eax
mov word [ebp - 0x60], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
lea ecx, [ebp - 0x60]
call fcn.00404490
mov esi, dword [ebp - 0x68]
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x18], 0
push eax
push 0x7cd378
mov esi, dword [esi]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004044f0
mov dword [ebp - 4], 6
mov eax, 4
mov dword [ebp - 0x58], eax
xor ecx, ecx
mov dword [ebp - 0x54], 0xd500db
mov dword [ebp - 0x50], 0xdf00d3
mov dword [ebp - 0x4c], 0xbc
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x54], ax
inc ecx
mov eax, dword [ebp - 0x58]
cmp ecx, eax
jb 0x477f50
xor ecx, ecx
mov word [ebp + eax*2 - 0x54], cx
xor eax, eax
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x6c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x80], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477f80
sub ecx, edx
lea eax, [ebp - 0x54]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x80]
call fcn.004044f0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00438730
lea ecx, [ebp - 0x80]
call fcn.00404490
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.00404490
cmp byte [ebp - 0x30], 0
je 0x477fe9
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x60]
call fcn.00404120
cmp byte [ebp - 0x30], 0
je 0x477ffd
lea ecx, [ebp - 0x48]
call fcn.00404490
jmp 0x477ffd
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x60]
cmp edi, eax
je 0x478030
mov ecx, edi
call fcn.00404490
movups xmm0, xmmword [ebp - 0x60]
xor eax, eax
mov word [ebp - 0x60], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
lea ecx, [ebp - 0x60]
call fcn.00404490
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