Function at 0x477860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79b9b9
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push esi
push edi
mov eax, dword [0x82f184]
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.00477620
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.00477b50
mov esi, eax
cmp edi, esi
je 0x4778eb
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 0x7cd378
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], 0xc900cb
mov dword [ebp - 0x18], 0xd800df
mov dword [ebp - 0x14], 0xdc00d5
mov dword [ebp - 0x10], 0xbf00d2
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x1c], ax
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x477941
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 0x477971
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.00438190
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 0x4779ca
cmp dword [ebp - 0x38], 0
setne al
jmp 0x4779cc
xor al, al
mov byte [edi + 0x81], al
lea ecx, [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x44], 0
push eax
push 0x7cd378
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], 0xdc00cf
mov dword [ebp - 0x28], 0xe400d8
mov dword [ebp - 0x24], 0xc800de
mov dword [ebp - 0x20], 0xd300d7
mov dword [ebp - 0x1c], 0x9e00a4
mov dword [ebp - 0x18], 0xad00ab
mov dword [ebp - 0x14], 0xaa00a2
mov dword [ebp - 0x10], 0xc6
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x2c], ax
inc ecx
mov eax, dword [ebp - 0x30]
cmp ecx, eax
jb 0x477a40
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 0x477a70
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.00438190
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 0x477ac6
cmp dword [ebp - 0x38], 0
setne al
jmp 0x477ac8
xor al, al
lea ecx, [ebp - 0x78]
mov byte [edi + 0x82], al
call fcn.0060bf40
push eax
lea ecx, [edi + 0x18]
call fcn.00477700
lea ecx, [ebp - 0x6c]
call fcn.00404490
lea ecx, [ebp - 0x78]
call fcn.00472240
lea eax, [ebp - 0xd8]
mov dword [ebp + 0xc], esi
push eax
lea ecx, [ebp + 0xc]
call fcn.00477d80
push eax
lea ecx, [edi + 0x8c]
call fcn.00477780
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