Function at 0x4afbf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xd8
call fcn.0052e070
mov eax, dword [0x6c0924]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xdc]
push ebx
mov ebx, dword [esp + 0xf0]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xf8]
push ebp
push esi
mov esi, dword [esp + 0xf0]
xor ebp, ebp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x108]
shr esi, 3
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x40], 2
push edi
mov edi, dword [esp + 0xf8]
mov dword [esp + 0x3c], edi
cmp esi, 0x14
je 0x4afc8c
cmp esi, 0x1c
je 0x4afc8c
cmp esi, 0x20
jne 0x4afcc8
test edi, edi
jne 0x4afc9b
call fcn.0048c700
mov edi, eax
mov dword [esp + 0x3c], eax
mov eax, 0x200
cmp dword [esp + 0xf0], eax
cmovae eax, dword [esp + 0xf0]
add eax, 0x3f
and eax, 0xffffffc0
mov dword [esp + 0x34], eax
test ebx, ebx
je 0x4afce4
mov eax, dword [esp + 0x100]
cmp eax, esi
jae 0x4afccf
xor eax, eax
jmp 0x4b0336
cmova eax, esi
push eax
lea eax, [esp + 0xc8]
push ebx
push eax
call fcn.005b0670
add esp, 0xc
call fcn.004abe50
mov dword [esp + 0x28], eax
test eax, eax
je 0x4b0320
call fcn.004cbf80
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x4b0320
push ebp
call fcn.004cbff0
push ebp
call fcn.004cbe40
mov ebx, dword [esp + 0x20]
mov ebp, eax
push ebx
call fcn.004cbe40
push ebx
mov dword [esp + 0x34], eax
call fcn.004cbe40
push ebx
mov dword [esp + 0x4c], eax
call fcn.004cbe40
push ebx
mov dword [esp + 0x38], eax
call fcn.004cbe40
push ebx
mov dword [esp + 0x6c], eax
call fcn.004cbe40
push ebx
mov dword [esp + 0x6c], eax
call fcn.004cbe40
push ebx
mov dword [esp + 0x38], eax
call fcn.004cbe40
mov ebx, eax
add esp, 0x24
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x10], ebx
push eax
call fcn.0049a5d0
push eax
push ebx
call fcn.0049af20
add esp, 0xc
test eax, eax
je 0x4b0313
push dword [esp + 0x2c]
xor ebx, ebx
cmp dword [esp + 0x34], ebx
push 0
push dword [esp + 0x24]
sete bl
call fcn.004cf070
inc dword [esp + 0x38]
add esp, 0xc
test eax, eax
je 0x4b0313
cmp dword [esp + 0x30], 0
jne 0x4afdcb
lea eax, [esp + 0xc4]
push esi
push eax
call fcn.004a2810
add esp, 8
test eax, eax
jle 0x4b0313
jmp 0x4afdd3
mov dword [esp + 0x30], 0
push esi
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.005b0670
push esi
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.005b0670
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x4afe1f
nop dword [eax]
add byte [esp + eax + 0xa4], 1
jne 0x4afe1f
sub eax, 1
jns 0x4afe10
push 0
push edi
push 0
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xd4]
push esi
push eax
call fcn.00491850
add esp, 0x18
test eax, eax
je 0x4b0313
push 0
push edi
push 0
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0xb4]
push esi
push eax
call fcn.00491850
add esp, 0x18
test eax, eax
je 0x4b0313
xor ecx, ecx
test esi, esi
je 0x4afefb
cmp esi, 0x40
jb 0x4afefb
mov eax, esi
and eax, 0x8000003f
jns 0x4afe89
dec eax
or eax, 0xffffffc0
inc eax
mov edx, esi
sub edx, eax
nop dword [eax]
movups xmm0, xmmword [esp + ecx + 0x64]
movups xmm1, xmmword [esp + ecx + 0x84]
pxor xmm1, xmm0
movups xmmword [esp + ecx + 0x64], xmm1
movups xmm0, xmmword [esp + ecx + 0x74]
movups xmm1, xmmword [esp + ecx + 0x94]
pxor xmm1, xmm0
movups xmmword [esp + ecx + 0x74], xmm1
movups xmm0, xmmword [esp + ecx + 0x84]
movups xmm1, xmmword [esp + ecx + 0xa4]
pxor xmm1, xmm0
movups xmmword [esp + ecx + 0x84], xmm1
movups xmm0, xmmword [esp + ecx + 0x94]
movups xmm1, xmmword [esp + ecx + 0xb4]
pxor xmm1, xmm0
movups xmmword [esp + ecx + 0x94], xmm1
add ecx, 0x40
cmp ecx, edx
jl 0x4afe90
cmp ecx, esi
jge 0x4aff10
nop
mov al, byte [esp + ecx + 0x84]
xor byte [esp + ecx + 0x64], al
inc ecx
cmp ecx, esi
jl 0x4aff00
push dword [esp + 0x20]
or byte [esp + 0x68], 0x80
lea eax, [esp + 0x68]
or byte [esp + esi + 0x67], 1
push esi
push eax
call fcn.00499a00
add esp, 0xc
test eax, eax
je 0x4b0313
push dword [esp + 0x1c]
push ebx
push dword [esp + 0x20]
push 0x32
push dword [esp + 0x30]
call fcn.004cf5d0
add esp, 0x14
test eax, eax
jg 0x4aff5a
je 0x4afd82
jmp 0x4b0313
mov ebx, dword [esp + 0x1c]
push 0
push 2
push ebx
call fcn.004cf070
add esp, 0xc
test eax, eax
je 0x4b0313
push 0
push 3
push ebx
call fcn.004cf070
add esp, 0xc
test eax, eax
je 0x4b0313
mov ecx, dword [esp + 0x34]
mov eax, 0xcccccccd
xor edi, edi
mov dword [esp + 0x40], edi
lea ecx, [ecx - 1]
mul ecx
mov ebx, edx
shr ebx, 7
test edi, edi
je 0x4affbc
push edi
push 0
push dword [esp + 0x24]
call fcn.004cf070
add esp, 0xc
test eax, eax
je 0x4b0313
push 0
push dword [esp + 0x3c]
call fcn.0049a520
add esp, 8
xor edi, edi
test ebx, ebx
js 0x4b0069
lea eax, [esi - 1]
test eax, eax
js 0x4affef
nop dword [eax + eax]
add byte [esp + eax + 0xa4], 1
jne 0x4affef
sub eax, 1
jns 0x4affe0
push 0
push dword [esp + 0x40]
lea eax, [esp + 0x6c]
push 0
push eax
lea eax, [esp + 0xb4]
push esi
push eax
call fcn.00491850
add esp, 0x18
test eax, eax
je 0x4b0313
push ebp
lea eax, [esp + 0x68]
push esi
push eax
call fcn.00499a00
add esp, 0xc
test eax, eax
je 0x4b0313
lea eax, [esi*8]
imul eax, edi
push eax
push ebp
push ebp
call fcn.0049af20
add esp, 0xc
test eax, eax
je 0x4b0313
mov eax, dword [esp + 0x38]
push ebp
push eax
push eax
call fcn.004d1cf0
add esp, 0xc
test eax, eax
je 0x4b0313
inc edi
cmp edi, ebx
jle 0x4affd4
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
dec eax
push eax
push edi
call fcn.0049a240
add esp, 8
test eax, eax
je 0x4b0313
push edi
mov edi, dword [esp + 0x54]
push edi
call fcn.00499ee0
add esp, 8
test eax, eax
je 0x4b0313
push dword [esp + 0x10]
push edi
push edi
call fcn.004d1cf0
add esp, 0xc
test eax, eax
je 0x4b0313
push dword [esp + 0x20]
push ebp
call fcn.0049b060
add esp, 8
test eax, eax
je 0x4b0313
push dword [esp + 0x18]
push ebp
push edi
push dword [esp + 0x58]
push 0
call fcn.004cd270
add esp, 0x14
test eax, eax
je 0x4b0313
call fcn.0049a5d0
push eax
push dword [esp + 0x50]
push ebp
call fcn.004d1d80
add esp, 0xc
test eax, eax
je 0x4b0313
push ebp
push edi
mov edi, dword [esp + 0x1c]
push edi
call fcn.004d1d80
add esp, 0xc
test eax, eax
je 0x4b0313
push dword [esp + 0x10]
push edi
call fcn.00499bd0
add esp, 8
test eax, eax
js 0x4b0147
mov edi, dword [esp + 0x1c]
push edi
push 1
push dword [esp + 0x20]
push 0x32
push dword [esp + 0x24]
call fcn.004cf5d0
add esp, 0x14
test eax, eax
jg 0x4b0165
jne 0x4b0313
mov edi, dword [esp + 0x40]
inc edi
mov dword [esp + 0x40], edi
cmp edi, 0x1000
jl 0x4affa1
mov edi, dword [esp + 0x3c]
jmp 0x4afd82
push 1
push 2
push edi
call fcn.004cf070
add esp, 0xc
test eax, eax
je 0x4b0313
call fcn.0049a5d0
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.004d1d80
add esp, 0xc
test eax, eax
je 0x4b0313
mov ebx, dword [esp + 0x18]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x18]
push 0
push ebp
call fcn.004cd270
add esp, 0x14
test eax, eax
je 0x4b0313
push 2
push dword [esp + 0x14]
call fcn.0049a520
add esp, 8
test eax, eax
je 0x4b0313
push ebx
push dword [esp + 0x18]
push dword [esp + 0x30]
call fcn.004abeb0
add esp, 0xc
test eax, eax
je 0x4b0313
push dword [esp + 0x28]
push ebx
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x20]
push dword [esp + 0x38]
call fcn.004d0250
add esp, 0x18
test eax, eax
je 0x4b0313
nop dword [eax]
push dword [esp + 0x24]
call fcn.0049a1e0
add esp, 4
test eax, eax
je 0x4b0263
call fcn.0049a5d0
push eax
mov eax, dword [esp + 0x14]
push eax
push eax
call fcn.004d1cf0
add esp, 0xc
test eax, eax
je 0x4b0313
push dword [esp + 0x28]
inc dword [esp + 0x48]
push ebx
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x20]
push dword [esp + 0x38]
call fcn.004d0250
add esp, 0x18
test eax, eax
jne 0x4b0210
jmp 0x4b0313
push 1
push 3
push edi
call fcn.004cf070
add esp, 0xc
test eax, eax
je 0x4b0313
mov dword [esp + 0x48], 1
mov ebx, dword [esp + 0x54]
push dword [ebx + 8]
call fcn.0049a0d0
push dword [ebx + 0xc]
call fcn.0049a0d0
push dword [ebx + 0x10]
call fcn.0049a0d0
push dword [esp + 0x20]
call fcn.00499fa0
push dword [esp + 0x30]
mov dword [ebx + 8], eax
call fcn.00499fa0
push dword [esp + 0x38]
mov dword [ebx + 0xc], eax
call fcn.00499fa0
add esp, 0x18
mov dword [ebx + 0x10], eax
cmp dword [ebx + 8], 0
je 0x4b030b
cmp dword [ebx + 0xc], 0
je 0x4b030b
test eax, eax
je 0x4b030b
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x4b02e1
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x4b02ef
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4b0313
push esi
lea ecx, [esp + 0xc8]
push ecx
push eax
call fcn.005b0670
add esp, 0xc
jmp 0x4b0313
mov dword [esp + 0x48], 0
mov ebp, dword [esp + 0x18]
push ebp
call fcn.004cbd40
add esp, 4
push ebp
call fcn.004cbdb0
push dword [esp + 0x2c]
call fcn.004abe00
mov eax, dword [esp + 0x50]
add esp, 8
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052e057
add esp, 0xd8
ret