Function at 0x4af8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x50dc10]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x198], edx
test edi, edi
je 0x4afd0f
mov eax, dword [edi]
test eax, eax
je 0x4afd0f
cmp byte [eax], dl
je 0x4afd0f
mov ecx, dword [edi + 0x78]
push ebx
xor ebx, ebx
mov dword [ebp - 0x19c], ebx
test ecx, ecx
jle 0x4af952
lea eax, [edi + 0x7c]
nop dword [eax]
cmp dword [eax], edx
je 0x4af94c
inc ebx
add eax, 4
cmp ebx, ecx
jl 0x4af940
mov dword [ebp - 0x19c], ebx
push esi
lea eax, [ebp - 0x194]
push eax
push ebx
push 0x103b
push dword [edi + 0x54c8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi]
mov esi, edx
mov dword [ebp - 0x1a0], eax
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4af980
sub esi, ecx
mov eax, esi
and eax, 3
je 0x4af9b4
push eax
mov eax, esi
and eax, 0xfc
add eax, edx
push eax
lea eax, [ebp - 0x198]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x198]
add esp, 0xc
mov edx, dword [edi]
jmp 0x4af9b6
xor ecx, ecx
sar esi, 2
test esi, esi
jle 0x4af9cb
lea eax, [edx + esi*4]
xor ecx, dword [eax - 4]
lea eax, [eax - 4]
dec esi
test esi, esi
jg 0x4af9c0
mov eax, 0x446f8657
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x65
sub ecx, eax
mov dword [ebp - 0x1a4], ecx
mov esi, dword [ecx*4 + 0x595944]
test esi, esi
je 0x4afa0b
push dword [esi + 4]
push dword [edi]
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp
add esp, 8
test eax, eax
je 0x4afa36
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x4af9f3
push 0x20
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ebx, eax
add esp, 4
mov dword [ebp - 0x198], ebx
test ebx, ebx
je 0x4afbe7
xorps xmm0, xmm0
xor eax, eax
movups xmmword [ebx], xmm0
movups xmmword [ebx + 0x10], xmm0
jmp 0x4afbe9
mov eax, dword [esi + 0x10]
cmp eax, dword [edi + 0x5770]
jne 0x4afafd
movzx eax, byte [esi + 8]
cmp eax, dword [edi + 0x78]
jne 0x4afafd
mov eax, dword [esi + 0x14]
cmp eax, dword [edi + 0x5808]
jne 0x4afafd
mov eax, dword [esi + 0x1c]
cmp eax, dword [edi + 0x6918]
jne 0x4afafd
xor ecx, ecx
lea edx, [edi + 0x21c]
cmp ecx, dword [edi + 0x78]
jge 0x4afabb
mov eax, dword [esi + 0xc]
movzx eax, word [eax + ecx*8 + 2]
cmp eax, dword [edx - 4]
jne 0x4afafd
mov eax, dword [esi + 0xc]
movzx eax, byte [eax + ecx*8 + 1]
cmp eax, dword [edx]
jne 0x4afafd
mov eax, dword [esi + 0xc]
movss xmm0, dword [eax + ecx*8 + 4]
ucomiss xmm0, dword [edx + 4]
lahf
test ah, 0x44
jp 0x4afafd
mov eax, dword [esi + 0xc]
cmp byte [eax + ecx*8], 0
jne 0x4afafd
inc ecx
add edx, 0xd0
jmp 0x4afa78
xor eax, eax
xor edx, edx
nop
mov dword [ebp - 0x198], eax
cmp edx, ebx
jge 0x4afbd1
cmp dword [ebp - 0x1a0], 0
je 0x4afae0
mov ecx, dword [ebp + edx*4 - 0x194]
jmp 0x4afae2
mov ecx, edx
mov ecx, dword [edi + ecx*4 + 0x7c]
inc edx
mov eax, dword [esi + 0xc]
movsx eax, byte [eax + ecx*8 - 8]
cmp eax, edx
jne 0x4afafd
mov eax, dword [ebp - 0x198]
test eax, eax
je 0x4afac0
or dword [0x595940], 1
mov edx, 8
or dword [esi], 1
mov eax, dword [edi + 0x5770]
mov dword [esi + 0x10], eax
mov cl, byte [edi + 0x78]
mov byte [esi + 8], cl
mov eax, dword [edi + 0x5808]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x6918]
mov dword [esi + 0x1c], eax
movzx eax, cl
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [esi + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
xor edx, edx
mov dword [esi + 0xc], eax
add esp, 8
cmp dword [edi + 0x78], edx
jle 0x4afb9c
lea ebx, [edi + 0x21c]
nop word [eax + eax]
mov ecx, dword [esi + 0xc]
lea ebx, [ebx + 0xd0]
mov ax, word [ebx - 0xd4]
mov word [ecx + edx*8 + 2], ax
mov ecx, dword [esi + 0xc]
mov al, byte [ebx - 0xd0]
mov byte [ecx + edx*8 + 1], al
mov ecx, dword [esi + 0xc]
mov eax, dword [ebx - 0xcc]
mov dword [ecx + edx*8 + 4], eax
mov eax, dword [esi + 0xc]
mov byte [eax + edx*8], 0
inc edx
cmp edx, dword [edi + 0x78]
jl 0x4afb60
xor ebx, ebx
cmp dword [ebp - 0x19c], ebx
jle 0x4afbd1
cmp dword [ebp - 0x1a0], 0
je 0x4afbb8
mov ecx, dword [ebp + ebx*4 - 0x194]
jmp 0x4afbba
mov ecx, ebx
mov ecx, dword [edi + ecx*4 + 0x7c]
lea edx, [ebx + 1]
mov eax, dword [esi + 0xc]
inc ebx
mov byte [eax + ecx*8 - 8], dl
cmp ebx, dword [ebp - 0x19c]
jl 0x4afba6
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
push 0xb66
push str.Listview.c
or eax, 1
push sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov dword [ebx], eax
lea eax, [ebx + 4]
or dword [0x595940], 1
push 0
push dword [edi]
push eax
call fcn.0047ce40
mov eax, dword [edi + 0x5770]
mov edx, 8
mov dword [ebx + 0x10], eax
mov cl, byte [edi + 0x78]
mov byte [ebx + 8], cl
mov eax, dword [edi + 0x5808]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x6918]
mov dword [ebx + 0x1c], eax
movzx eax, cl
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [ebx + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
xor edx, edx
mov dword [ebx + 0xc], eax
add esp, 0x20
cmp dword [edi + 0x78], edx
jle 0x4afcac
lea esi, [edi + 0x21c]
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [ebx + 0xc]
lea esi, [esi + 0xd0]
mov ax, word [esi - 0xd4]
mov word [ecx + edx*8 + 2], ax
mov ecx, dword [ebx + 0xc]
mov al, byte [esi - 0xd0]
mov byte [ecx + edx*8 + 1], al
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi - 0xcc]
mov dword [ecx + edx*8 + 4], eax
mov eax, dword [ebx + 0xc]
mov byte [eax + edx*8], 0
inc edx
cmp edx, dword [edi + 0x78]
jl 0x4afc70
mov esi, dword [ebp - 0x19c]
xor ebx, ebx
test esi, esi
jle 0x4afced
nop dword [eax + eax]
cmp dword [ebp - 0x1a0], 0
je 0x4afcd2
mov ecx, dword [ebp + ebx*4 - 0x194]
jmp 0x4afcd4
mov ecx, ebx
mov eax, dword [ebp - 0x198]
lea edx, [ebx + 1]
mov ecx, dword [edi + ecx*4 + 0x7c]
inc ebx
mov eax, dword [eax + 0xc]
mov byte [eax + ecx*8 - 8], dl
cmp ebx, esi
jl 0x4afcc0
mov edx, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0x198]
mov eax, dword [edx*4 + 0x595944]
mov dword [ecx + 0x18], eax
mov dword [edx*4 + 0x595944], ecx
jmp 0x4afbd1
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.004e2538
mov esp, ebp
pop ebp
ret