Function at 0x4af8e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x592830]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov esi, edx
mov edx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], eax
cmp ebx, esi
je 0x4af989
mov eax, edx
mov dword [esp + 0x10], eax
cmp edi, 0x10
jb 0x4af975
mov eax, edi
shr eax, 4
mov dword [esp + 0x1c], eax
nop
push ecx
push esi
push ebx
call dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ecx]
xor dword [esi], eax
mov eax, dword [ecx + 4]
xor dword [esi + 4], eax
mov eax, dword [ecx + 8]
xor dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
xor dword [esi + 0xc], eax
mov ecx, dword [esp + 0x28]
mov eax, ebx
sub edi, 0x10
add ebx, 0x10
add esi, 0x10
dec dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jne 0x4af930
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
movq xmm0, qword [eax]
movq qword [edx], xmm0
movq xmm0, qword [eax + 8]
movq qword [edx + 8], xmm0
jmp 0x4af9fc
cmp edi, 0x10
jb 0x4af9fc
mov eax, edi
shr eax, 4
mov dword [esp + 0x10], eax
push ecx
lea eax, [esp + 0x40]
push eax
push ebx
call dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx]
mov eax, dword [edx]
xor eax, dword [esp + 0x48]
add esp, 0xc
mov dword [esi], eax
mov eax, dword [edx + 4]
xor eax, dword [esp + 0x40]
mov dword [edx], ecx
mov ecx, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
xor eax, dword [esp + 0x44]
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [edx + 0xc]
xor eax, dword [esp + 0x48]
mov dword [edx + 8], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
sub edi, 0x10
add ebx, 0x10
add esi, 0x10
dec dword [esp + 0x10]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x28]
jne 0x4af997
mov dword [esp + 0x18], ebx
test edi, edi
je 0x4afb8b
lea ecx, [esp + 0x3c]
mov eax, edx
sub eax, ecx
mov dword [esp + 0x2c], eax
mov eax, 1
sub eax, ecx
mov dword [esp + 0x38], eax
mov eax, 2
sub eax, ecx
mov dword [esp + 0x30], eax
mov eax, 3
sub eax, ecx
mov dword [esp + 0x34], eax
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x1c], eax
lea eax, [esi + 2]
mov dword [esp + 0x20], eax
mov eax, ecx
sub esi, eax
mov dword [esp + 0x10], esi
jmp 0x4afa50
push dword [esp + 0x28]
lea eax, [esp + 0x40]
push eax
push ebx
call dword [esp + 0x30]
add esp, 0xc
xor eax, eax
cmp eax, edi
jae 0x4afb32
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
lea esi, [esp + 0x3c]
add esi, eax
mov dl, byte [esi + ecx]
mov cl, byte [esi]
xor cl, byte [esi + ebx]
mov ebx, dword [esp + 0x10]
mov byte [esi + ebx], cl
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov byte [esi + ecx], dl
mov ecx, dword [esp + 0x38]
add ecx, esi
cmp ecx, edi
jae 0x4afb31
mov dl, byte [ebx + eax + 1]
mov ebx, dword [esp + 0x14]
mov cl, byte [esi + 1]
xor cl, byte [ebx + eax + 1]
mov ebx, dword [esp + 0x20]
mov byte [ebx + eax - 1], cl
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov byte [ecx + eax + 1], dl
mov ecx, dword [esp + 0x30]
add ecx, esi
cmp ecx, edi
jae 0x4afb2c
mov dl, byte [ebx + eax + 2]
mov ebx, dword [esp + 0x14]
mov cl, byte [esi + 2]
xor cl, byte [ebx + eax + 2]
mov ebx, dword [esp + 0x20]
mov byte [ebx + eax], cl
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov byte [ecx + eax + 2], dl
mov ecx, dword [esp + 0x34]
add ecx, esi
cmp ecx, edi
jae 0x4afb27
mov dl, byte [ebx + eax + 3]
mov cl, byte [esi + 3]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
xor cl, byte [esi + eax + 3]
add eax, 4
mov byte [ebx + eax - 3], cl
mov ebx, dword [esp + 0x18]
mov byte [esi + eax - 1], dl
cmp eax, 0x10
jb 0x4afa63
jmp 0x4afb32
add eax, 3
jmp 0x4afb32
add eax, 2
jmp 0x4afb32
inc eax
cmp edi, 0x10
jbe 0x4afb68
add dword [esp + 0x1c], 0x10
add dword [esp + 0x10], 0x10
add dword [esp + 0x20], 0x10
add ebx, 0x10
mov dword [esp + 0x18], ebx
sub edi, 0x10
jne 0x4afa50
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret
cmp eax, 0x10
jae 0x4afb8b
mov ecx, dword [esp + 0x14]
sub ebx, ecx
lea edx, [ecx + eax]
mov ecx, 0x10
sub ecx, eax
lea ecx, [ecx]
mov al, byte [ebx + edx]
mov byte [edx], al
lea edx, [edx + 1]
dec ecx
jne 0x4afb80
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret