Function at 0x477180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee27c
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x52610c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], ecx
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x88], 0
mov ecx, dword [eax]
mov eax, dword [0x52ea74]
cmp eax, dword [ecx + 4]
jle 0x47721d
push 0x52ea74
call fcn.004a06fc
add esp, 4
cmp dword [0x52ea74], 0xffffffff
jne 0x47721d
push 0x507250
mov ecx, 0x52ea78
mov dword [ebp - 4], 0
call fcn.00409bf0
push 0x4f1180
call fcn.004a0a53
push 0x52ea74
mov dword [ebp - 4], 0xffffffff
call fcn.004a06bd
add esp, 8
cmp dword [0x52ea88], 0
ja 0x4774cc
cmp dword [0x52e320], 0
jbe 0x47724b
push 0xffffffffffffffff
push 0
push 0x52e310
mov ecx, 0x52ea78
call fcn.00409690
jmp 0x4774cc
lea ecx, [ebp - 0x34]
call fcn.00476ea0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x4772e7
movaps xmm0, xmmword [0x50ca70]
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x47084040
mov dword [ebp - 0x54], 0x95656
mov byte [ebp - 4], 2
xor ecx, ecx
mov al, byte [ebp + ecx - 0x67]
xor al, byte [ebp - 0x68]
mov byte [ebp + ecx - 0x50], al
mov al, byte [ebp + ecx - 0x66]
xor al, byte [ebp - 0x68]
mov byte [ebp + ecx - 0x4f], al
add ecx, 2
cmp ecx, 0x16
jb 0x477284
cmp byte [ebp - 0x50], 0
mov byte [ebp - 0x3a], 0
jne 0x4772b0
xor ecx, ecx
jmp 0x4772bf
lea ecx, [ebp - 0x50]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4772b6
sub ecx, edx
lea eax, [ebp - 0x50]
push ecx
push eax
mov ecx, 0x52ea78
call fcn.00409af0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x4774cc
inc eax
jmp 0x4774c0
mov bl, 0x19
mov dword [ebp - 0x1c], 0x6f7c7d19
mov dl, 0x7d
mov byte [ebp - 0x18], 0
mov al, 0x7c
mov byte [ebp - 0x14], 0
mov cl, 0x6f
xor dl, bl
xor al, bl
mov byte [ebp - 0x17], dl
xor cl, bl
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], cl
test dl, dl
jne 0x477315
xor esi, esi
jmp 0x477329
lea esi, [ebp - 0x17]
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x477320
sub esi, ecx
mov ebx, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
cmp ebx, 0x10
mov eax, esi
cmovae ecx, dword [ebp - 0x34]
cmp edi, esi
cmovb eax, edi
push eax
lea eax, [ebp - 0x17]
push eax
push ecx
call fcn.00413f70
add esp, 0xc
test eax, eax
jne 0x4773e2
cmp edi, esi
jb 0x4773e2
ja 0x4773e2
movaps xmm0, xmmword [0x50c9d0]
movups xmmword [ebp - 0x7c], xmm0
mov word [ebp - 0x5c], 0x1b
movaps xmm0, xmmword [0x50cac0]
movups xmmword [ebp - 0x6c], xmm0
mov byte [ebp - 4], 3
xor ecx, ecx
mov al, byte [ebp + ecx - 0x7b]
xor al, byte [ebp - 0x7c]
mov byte [ebp + ecx - 0x5a], al
mov al, byte [ebp + ecx - 0x7a]
xor al, byte [ebp - 0x7c]
mov byte [ebp + ecx - 0x59], al
mov al, byte [ebp + ecx - 0x79]
xor al, byte [ebp - 0x7c]
mov byte [ebp + ecx - 0x58], al
mov al, byte [ebp + ecx - 0x78]
xor al, byte [ebp - 0x7c]
mov byte [ebp + ecx - 0x57], al
add ecx, 4
cmp ecx, 0x20
jb 0x477383
cmp byte [ebp - 0x5a], 0
mov byte [ebp - 0x3a], 0
jne 0x4773cb
xor ecx, ecx
lea eax, [ebp - 0x5a]
jmp 0x4772c2
lea ecx, [ebp - 0x5a]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4773d1
sub ecx, edx
lea eax, [ebp - 0x5a]
jmp 0x4772c2
mov ah, 0x2d
mov dword [ebp - 0x1c], 0x495f5d2d
mov dl, 0x5d
mov byte [ebp - 0x18], 0
mov al, 0x5f
mov byte [ebp - 0x14], 0
mov cl, 0x49
xor dl, ah
xor al, ah
mov byte [ebp - 0x17], dl
xor cl, ah
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], cl
test dl, dl
jne 0x477410
xor esi, esi
jmp 0x47741f
lea esi, [ebp - 0x17]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x477416
sub esi, ecx
cmp ebx, 0x10
lea ecx, [ebp - 0x34]
mov eax, esi
cmovae ecx, dword [ebp - 0x34]
cmp edi, esi
cmovb eax, edi
push eax
lea eax, [ebp - 0x17]
push eax
push ecx
call fcn.00413f70
add esp, 0xc
test eax, eax
jne 0x4774b1
cmp edi, esi
jb 0x4774b1
ja 0x4774b1
movaps xmm0, xmmword [0x50c850]
movups xmmword [ebp - 0x7c], xmm0
mov byte [ebp - 0x5c], al
movaps xmm0, xmmword [0x50ca10]
movups xmmword [ebp - 0x6c], xmm0
mov byte [ebp - 4], 4
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x7b]
xor al, byte [ebp - 0x7c]
mov byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x1f
jb 0x477470
cmp byte [ebp - 0x5b], 0
mov byte [ebp - 0x3c], 0
jne 0x477495
xor ecx, ecx
lea eax, [ebp - 0x5b]
jmp 0x4772c2
lea ecx, [ebp - 0x5b]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4774a0
sub ecx, edx
lea eax, [ebp - 0x5b]
jmp 0x4772c2
mov dword [ebp - 4], 0xffffffff
cmp ebx, 0x10
jb 0x4774cc
lea eax, [ebx + 1]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.004099a0
mov eax, dword [ebp - 0x80]
mov ecx, eax
push 0xffffffffffffffff
push 0
push 0x52ea78
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
call fcn.00409690
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0525
mov esp, ebp
pop ebp
ret