Function at 0x4af6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x180]
push esi
mov esi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x144], ebx
call fcn.004aa710
lea eax, [ebp - 0x168]
push eax
call fcn.004aa710
lea eax, [ebx + 0x4c]
push 0
push eax
mov dword [ebp - 0x148], eax
call fcn.004aa660
add esp, 0x10
cmp eax, 1
je 0x4af73b
pop esi
mov eax, 0xffffb080
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call fcn.004aa660
test eax, eax
lea eax, [ebp - 0x180]
push esi
push eax
sete byte [ebp - 0x154]
call fcn.004a8400
mov edi, dword [ebp + 0x20]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4af8cc
push esi
push dword [ebp - 0x148]
lea eax, [ebp - 0x168]
push eax
call fcn.004abfe0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4af8cc
push dword [ebp - 0x154]
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.004b7640
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x174], ebx
test ebx, ebx
jne 0x4af8cc
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x10c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x148], ecx
test edi, edi
je 0x4af84e
movzx eax, byte [ebp + 0x1c]
mov dword [ebp - 0x16c], eax
xor esi, esi
test eax, eax
je 0x4af83d
lea eax, [ebp - 0x10c]
mov ebx, ecx
add eax, ecx
mov dword [ebp - 0x170], eax
mov al, byte [eax]
mov byte [ebp - 0x13d], al
nop
lea eax, [ebp - 0x180]
push ebx
push eax
call fcn.004aa660
mov ecx, esi
add esp, 8
shl al, cl
inc esi
mov cl, byte [ebp - 0x13d]
add ebx, edi
or cl, al
mov eax, dword [ebp - 0x16c]
mov byte [ebp - 0x13d], cl
cmp esi, eax
jb 0x4af800
mov edx, dword [ebp - 0x170]
mov byte [edx], cl
mov ecx, dword [ebp - 0x148]
inc ecx
mov dword [ebp - 0x148], ecx
cmp ecx, edi
jb 0x4af7e0
mov ebx, dword [ebp - 0x174]
xor al, al
mov esi, 1
mov byte [ebp - 0x13d], al
cmp edi, esi
jb 0x4af8cc
nop
mov bl, byte [ebp + esi - 0x10c]
mov bh, 1
mov dl, byte [ebp + esi - 0x10d]
mov dh, bl
and bl, byte [ebp - 0x13d]
xor dh, al
mov al, dh
movzx ecx, dl
and al, 1
sub bh, al
movzx eax, bh
imul ecx, eax
shl bh, 7
or bh, dl
mov byte [ebp + esi - 0x10d], bh
mov al, cl
xor cl, dh
and al, dh
mov byte [ebp + esi - 0x10c], cl
or al, bl
inc esi
mov byte [ebp - 0x13d], al
cmp esi, edi
jbe 0x4af860
lea eax, [ebp - 0x168]
push eax
call fcn.004aa1e0
lea eax, [ebp - 0x180]
push eax
call fcn.004aa1e0
add esp, 8
jmp 0x4af8ef
lea eax, [ebp - 0x168]
push eax
call fcn.004aa1e0
lea eax, [ebp - 0x180]
push eax
call fcn.004aa1e0
add esp, 8
test ebx, ebx
jne 0x4afb37
lea eax, [ebp - 0x1a4]
push eax
call fcn.004aa710
lea eax, [ebp - 0x198]
push eax
call fcn.004aa710
lea eax, [ebp - 0x18c]
push eax
call fcn.004aa710
add esp, 0xc
lea esi, [ebp - 0x13c]
mov ebx, 4
push esi
call fcn.004aa710
add esp, 4
add esi, 0xc
sub ebx, 1
jne 0x4af921
movzx eax, byte [ebp + edi - 0x10c]
mov ebx, dword [ebp - 0x150]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x14c]
push ebx
push dword [ebp - 0x144]
call fcn.004b1280
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4afa08
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x4af98d
push dword [ebp - 0x15c]
push eax
push ebx
push dword [ebp - 0x144]
call fcn.004b0d00
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4afa08
test edi, edi
je 0x4afa08
lea eax, [ebp - 0x13c]
dec edi
push eax
push ebx
push ebx
push dword [ebp - 0x144]
call fcn.004aef10
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4afa08
movzx eax, byte [ebp + edi - 0x10c]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x1a4]
push dword [ebp - 0x14c]
push eax
push dword [ebp - 0x144]
call fcn.004b1280
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4afa08
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x1a4]
push eax
push ebx
push ebx
push dword [ebp - 0x144]
call fcn.004ae7b0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4afa08
test edi, edi
jne 0x4af995
lea eax, [ebp - 0x1a4]
push eax
call fcn.004aa1e0
lea eax, [ebp - 0x198]
push eax
call fcn.004aa1e0
lea eax, [ebp - 0x18c]
push eax
call fcn.004aa1e0
add esp, 0xc
lea edi, [ebp - 0x13c]
mov ebx, 4
nop word [eax + eax]
push edi
call fcn.004aa1e0
add esp, 4
add edi, 0xc
sub ebx, 1
jne 0x4afa40
mov ebx, dword [ebp - 0x150]
test esi, esi
jne 0x4afb24
lea eax, [ebp - 0x168]
push eax
call fcn.004aa710
lea esi, [ebx + 0xc]
push 0
push esi
call fcn.004a82f0
push esi
mov esi, dword [ebp - 0x144]
test eax, eax
setne byte [ebp - 0x13d]
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.004abfe0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4afac4
mov al, byte [ebp - 0x13d]
and al, byte [ebp - 0x154]
movzx eax, al
push eax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.004b7640
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x168]
push eax
call fcn.004aa1e0
add esp, 4
test edi, edi
jne 0x4afb11
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x4afaf6
push dword [ebp - 0x15c]
push eax
push ebx
push esi
call fcn.004b0d00
add esp, 0x10
test eax, eax
jne 0x4afb39
push ebx
push esi
call fcn.004affa0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
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
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret