Function at 0x4a0480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x50dc10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edi
test esi, esi
jne 0x4a04c2
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x52e838]
test ecx, ecx
jne 0x4a04e5
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_SetPropA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
push ebx
push 0x516
push str.LibMain.c
lea eax, [ecx + 0xd84]
push 0
push eax
call fcn.0047efe0
mov ebx, dword [0x52e83c]
add esp, 0x10
test ebx, ebx
jne 0x4a053a
push 0xfcc
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ebx, eax
add esp, 4
mov dword [0x52e83c], ebx
test ebx, ebx
je 0x4a053a
push 0xfcc
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [0x52e83c]
add esp, 0xc
mov eax, 0x3ce4585
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3f1
sub ecx, eax
lea eax, [ecx*4 + 8]
mov ebx, dword [eax + ebx]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x4a0572
cmp dword [ebx], esi
je 0x4a05ae
mov ebx, dword [ebx + 0x34]
test ebx, ebx
jne 0x4a0567
push 0x38
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4a058f
push 0x38
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [0x52e83c]
mov ecx, dword [ebp - 0x10]
inc dword [eax]
mov eax, dword [0x52e83c]
mov eax, dword [ecx + eax]
mov dword [ebx + 0x34], eax
mov eax, dword [0x52e83c]
mov dword [ecx + eax], ebx
mov dword [ebx], esi
mov ecx, dword [ebp - 0xc]
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a05b6
sub esi, edx
mov eax, esi
and eax, 3
je 0x4a05e3
push eax
mov eax, esi
and eax, 0xfc
add eax, ecx
push eax
lea eax, [ebp - 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
sar esi, 2
test esi, esi
je 0x4a05f9
nop word [eax + eax]
xor edi, dword [ecx + esi*4 - 4]
dec esi
test esi, esi
jne 0x4a05f0
mov eax, 0xba2e8ba3
mul edi
shr edx, 3
imul eax, edx, 0xb
sub edi, eax
lea esi, [ebx + edi*4]
mov edi, dword [esi + 8]
test edi, edi
je 0x4a0649
mov eax, ecx
mov ecx, dword [edi]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4a0636
test dl, dl
je 0x4a0632
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4a0636
add ecx, 2
add eax, 2
test dl, dl
jne 0x4a0616
xor eax, eax
jmp 0x4a063b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a0698
mov edi, dword [edi + 0x10]
mov ecx, dword [ebp - 0xc]
test edi, edi
jne 0x4a0612
push 0x14
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov edi, eax
add esp, 4
test edi, edi
je 0x4a0666
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
inc dword [ebx + 4]
mov eax, dword [0x52e83c]
push 0x535
push str.LibMain.c
push sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
inc dword [eax + 4]
mov eax, dword [esi + 8]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xc]
push 0
push eax
push edi
mov dword [esi + 8], edi
call fcn.0047ce40
add esp, 0x18
mov esi, dword [edi + 4]
mov eax, dword [ebp - 0x14]
push 0x53a
push str.LibMain.c
push sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
push 0
push dword [ebp - 0x18]
mov dword [edi + 4], eax
lea eax, [edi + 8]
push eax
call fcn.0047ce40
mov ecx, dword [ebp + 0x18]
mov dword [edi + 0xc], ecx
mov ecx, dword [0x52e838]
add ecx, 0xd84
push ecx
call fcn.00480f30
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov eax, esi
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.004e2538
mov esp, ebp
pop ebp
ret