Function at 0x484d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x485040
lea eax, [ebp - 0x18]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword fs:[0]
lea edi, [edx + 4]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, edi
mov dword [ebp - 0x3c], edi
not eax
shr eax, 0x1f
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
add eax, 0x10
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
jmp 0x484dce
push 1
push edi
push dword [ebp - 0x58]
call fcn.00452e30
add esp, 0xc
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 0xc]
jae 0x484f9c
test edi, edi
je 0x484fc2
js 0x484ff2
push dword [ebp - 0x40]
push edi
call fcn.00452e70
add esp, 8
test eax, eax
je 0x484fad
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x10], 0
cmp ecx, 0xfffffffc
jae 0x484fe1
push ecx
push dword [ebp + 0x18]
push eax
mov ebx, eax
call fcn.005885b0
add esp, 0xc
movzx eax, byte [ebp - 0x30]
movzx ecx, byte [ebp - 0x20]
movzx edx, byte [ebp - 0x28]
shl eax, 0x18
shl ecx, 0x10
or ecx, eax
movzx eax, byte [ebp - 0x2c]
shl eax, 8
or eax, ecx
or edx, eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + eax], edx
push edi
mov dword [ebp - 0x58], ebx
push ebx
mov eax, dword [ebp + 0x10]
push eax
call dword [esi + 0xc]
add esp, 0xc
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
call dword [eax + 0x10]
add esp, 4
test edx, edx
mov dword [ebp - 0x34], edx
je 0x484ee0
mov ecx, dword [ebp - 0x24]
lea edi, [edx - 1]
mov esi, edi
mov ebx, ecx
not ebx
add ebx, dword [ebp + 0xc]
cmp ebx, edi
cmovb esi, ebx
xor edx, edx
inc esi
cmp esi, 0x20
jb 0x484eb2
mov dword [ebp - 0x38], esi
mov esi, dword [ebp + 8]
cmp ebx, edi
cmovb edi, ebx
lea ebx, [eax + edi + 1]
add esi, ecx
cmp esi, ebx
jae 0x484f42
mov esi, dword [ebp - 0x54]
add edi, esi
add edi, ecx
cmp eax, edi
jae 0x484f42
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
inc edx
nop dword [eax]
movzx ebx, byte [eax + edx - 1]
xor byte [edi + ecx], bl
inc ecx
cmp edx, dword [ebp - 0x34]
jae 0x484ee3
inc edx
cmp ecx, esi
jb 0x484ec0
jmp 0x484ee3
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x30]
inc cl
mov dword [ebp - 0x30], ecx
jne 0x484f20
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x34]
inc cl
mov dword [ebp - 0x20], ecx
jne 0x484f29
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], 0
add cl, 1
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x28]
adc cl, 0
mov dword [ebp - 0x28], ecx
jmp 0x484f29
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x484dc0
push 1
push edx
push eax
call fcn.00452e30
add esp, 0xc
jmp 0x484dc0
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x50]
xor ebx, ebx
and edx, 0xffffffe0
lea edi, [esi + ecx]
add ecx, edx
nop word cs:[eax + eax]
nop dword [eax]
movups xmm0, xmmword [eax + ebx]
movups xmm2, xmmword [edi + ebx - 0x10]
movups xmm1, xmmword [eax + ebx + 0x10]
movups xmm3, xmmword [edi + ebx]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [edi + ebx - 0x10], xmm2
movups xmmword [edi + ebx], xmm3
add ebx, 0x20
cmp edx, ebx
jne 0x484f60
cmp dword [ebp - 0x38], edx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jne 0x484eb8
jmp 0x484ee3
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0xffffffff
push edi
push dword [ebp - 0x40]
call fcn.005b14d0
add esp, 8
ud2
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x10], 0
push 0x5fab44
push edi
push ecx
call fcn.005b1b20
add esp, 0xc
ud2
mov dword [ebp - 0x10], 0xffffffff
call fcn.00538200
ud2