Function at 0x478560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79d0f9
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push esi
push edi
mov eax, dword [0x831184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00478320
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x3c], 1
call fcn.00478850
mov esi, eax
cmp edi, esi
je 0x4785eb
mov ecx, edi
call fcn.00404490
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x6c]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x5c], 0
push eax
push 0x7cf388
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
call fcn.004044f0
mov dword [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x1c], 0xda00da
mov dword [ebp - 0x18], 0xcf00ce
mov dword [ebp - 0x14], 0xcf00c4
mov dword [ebp - 0x10], 0xb000c3
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x1c], ax
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x478641
xor ecx, ecx
mov word [ebp + eax*2 - 0x1c], cx
xor eax, eax
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x40], 7
lea edx, [ecx + 2]
mov word [ebp - 0x54], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478671
sub ecx, edx
lea eax, [ebp - 0x1c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.004044f0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
mov esi, dword [ebp + 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00438180
lea ecx, [ebp - 0x54]
call fcn.00404490
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0
call fcn.00404490
cmp byte [ebp - 0x34], 0
je 0x4786ca
cmp dword [ebp - 0x38], 0
setne al
jmp 0x4786cc
xor al, al
mov byte [edi + 0x81], al
lea ecx, [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x44], 0
push eax
push 0x7cf388
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
call fcn.004044f0
mov dword [ebp - 4], 3
mov eax, 0xe
mov dword [ebp - 0x30], eax
xor ecx, ecx
mov dword [ebp - 0x2c], 0xcf00de
mov dword [ebp - 0x28], 0xf300c9
mov dword [ebp - 0x24], 0xdb00cf
mov dword [ebp - 0x20], 0xdc00c6
mov dword [ebp - 0x1c], 0xed00d5
mov dword [ebp - 0x18], 0xda00da
mov dword [ebp - 0x14], 0xd900d3
mov dword [ebp - 0x10], 0xb7
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x2c], ax
inc ecx
mov eax, dword [ebp - 0x30]
cmp ecx, eax
jb 0x478740
xor ecx, ecx
mov word [ebp + eax*2 - 0x2c], cx
xor eax, eax
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x58], 7
lea edx, [ecx + 2]
mov word [ebp - 0x6c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478770
sub ecx, edx
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.004044f0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00438180
lea ecx, [ebp - 0x6c]
call fcn.00404490
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00404490
cmp byte [ebp - 0x34], 0
je 0x4787c6
cmp dword [ebp - 0x38], 0
setne al
jmp 0x4787c8
xor al, al
lea ecx, [ebp - 0x78]
mov byte [edi + 0x82], al
call fcn.0060cfd0
push eax
lea ecx, [edi + 0x18]
call fcn.00478400
lea ecx, [ebp - 0x6c]
call fcn.00404490
lea ecx, [ebp - 0x78]
call fcn.00472f50
lea eax, [ebp - 0xd8]
mov dword [ebp + 0xc], esi
push eax
lea ecx, [ebp + 0xc]
call fcn.00478a80
push eax
lea ecx, [edi + 0x8c]
call fcn.00478480
lea ecx, [ebp - 0x90]
call fcn.00404490
lea ecx, [ebp - 0xa8]
call fcn.00404490
lea ecx, [ebp - 0xc0]
call fcn.00404490
lea ecx, [ebp - 0xd8]
call fcn.00404490
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret