Function at 0x4bf450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x458], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x460], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x468], eax
cmp dword [esi + 0xa4], 1
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x24]
push edi
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x46c], eax
jne 0x4bf798
mov edi, dword [esi + 4]
mov dword [ebp - 0x454], edi
lea eax, [edi - 0x10]
cmp eax, 0x3f0
ja 0x4bf798
push dword [esi + 0xa8]
call fcn.004b7ee0
add esp, 4
movzx ebx, al
test al, al
je 0x4bf798
lea eax, [ebx + ebx]
mov dword [ebp - 0x45c], eax
add eax, 2
cmp eax, edi
ja 0x4bf798
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x450]
push dword [ebp - 0x460]
push dword [ebp - 0x458]
push esi
call fcn.004bef30
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4bf766
mov eax, dword [ebp - 0x44c]
lea esi, [ebp - 0x443]
mov ecx, dword [ebp - 0x454]
add esi, ebx
sub ecx, ebx
dec ecx
push dword [eax + 0xa8]
lea eax, [ebp - 0x443]
mov dword [ebp - 0x458], ecx
push ecx
push esi
push ebx
push eax
call fcn.004bfa20
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4bf766
mov eax, dword [ebp - 0x44c]
push dword [eax + 0xa8]
lea eax, [ebp - 0x443]
push ebx
push eax
push dword [ebp - 0x458]
push esi
call fcn.004bfa20
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4bf766
mov eax, dword [ebp - 0x44c]
push dword [eax + 0xa8]
call fcn.004a7880
add esp, 4
test eax, eax
jne 0x4bf5b0
mov edi, 0xffffbf80
jmp 0x4bf766
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp + 0x18]
push dword [ebp - 0x464]
push eax
call fcn.004a7220
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bf766
mov dl, byte [ebp - 0x444]
xor ecx, ecx
mov byte [ebp - 0x445], dl
test ebx, ebx
je 0x4bf684
cmp ebx, 0x20
jb 0x4bf670
mov eax, ebx
xorps xmm3, xmm3
and eax, 0xffffffe0
xorps xmm2, xmm2
nop word [eax + eax]
movups xmm0, xmmword [esi]
movups xmm1, xmmword [ebp + ecx - 0x44]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x10]
add esi, 0x20
por xmm3, xmm1
movups xmm1, xmmword [ebp + ecx - 0x34]
add ecx, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, eax
jb 0x4bf600
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
mov byte [ebp - 0x445], dl
cmp ecx, ebx
jae 0x4bf684
nop
mov al, byte [ebp + ecx - 0x44]
inc ecx
xor al, byte [esi]
inc esi
or dl, al
cmp ecx, ebx
jb 0x4bf670
mov byte [ebp - 0x445], dl
mov eax, dword [ebp - 0x454]
xor ebx, ebx
sub eax, dword [ebp - 0x45c]
xor edi, edi
add eax, 0xfffffffe
mov dword [ebp - 0x450], ebx
xor cl, cl
mov dword [ebp - 0x44c], eax
xor edx, edx
cmp eax, 2
jb 0x4bf6f1
nop dword [eax]
or cl, byte [edx + esi]
mov al, cl
neg al
or al, cl
or cl, byte [edx + esi + 1]
not al
add edx, 2
movzx eax, al
shr eax, 7
add edi, eax
mov al, cl
neg al
mov dword [ebp - 0x45c], edi
or al, cl
not al
movzx eax, al
shr eax, 7
add ebx, eax
mov eax, dword [ebp - 0x44c]
dec eax
cmp edx, eax
jb 0x4bf6b0
mov eax, dword [ebp - 0x44c]
cmp edx, eax
jae 0x4bf70c
or cl, byte [edx + esi]
mov al, cl
neg al
or al, cl
not al
movzx eax, al
shr eax, 7
mov dword [ebp - 0x450], eax
mov cl, byte [ebp - 0x445]
lea eax, [ebx + edi]
add eax, dword [ebp - 0x450]
add esi, eax
mov al, byte [esi]
inc esi
xor al, 1
or cl, al
je 0x4bf72d
mov edi, 0xffffbf00
jmp 0x4bf766
mov eax, dword [ebp - 0x454]
sub eax, esi
lea eax, [ebp + eax - 0x444]
cmp eax, dword [ebp + 0x28]
jbe 0x4bf748
mov edi, 0xffffbc00
jmp 0x4bf766
mov ecx, dword [ebp - 0x468]
mov dword [ecx], eax
test eax, eax
je 0x4bf764
push eax
push esi
push dword [ebp - 0x46c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x444]
push 0x400
push eax
call fcn.004ae790
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004ae790
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffbf80
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret