Function at 0x4a0240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x50dc10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x52e838]
push edi
xor edi, edi
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x74], esi
test esi, esi
jne 0x4a0281
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10000
jge 0x4a02e6
mov edi, dword [ebp + 0x10]
mov eax, ebx
shl eax, 6
xor edx, edx
xor eax, edi
mov dword [ebp - 0x6c], 0x3f1
shl eax, 3
xor eax, ecx
xor eax, dword [ebp + 0x14]
div dword [ebp - 0x6c]
lea eax, [esi + 0xe1c]
mov esi, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [ebp - 0x6c], eax
test esi, esi
je 0x4a03c2
nop
cmp dword [esi], ecx
jne 0x4a02da
cmp dword [esi + 8], edi
jne 0x4a02da
cmp dword [esi + 4], ebx
jne 0x4a02da
mov eax, dword [ebp + 0x14]
cmp dword [esi + 0x10], eax
je 0x4a041f
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4a02c0
jmp 0x4a03c2
push str._08X_s_d
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push ebx
push ecx
push 0x297
push str.LibMain.c
push str._08X_s_d
push 0x64
push eax
call fcn.00482bc0
lea esi, [ebp - 0x68]
add esp, 0x24
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a0313
sub esi, ecx
mov eax, esi
and eax, 3
je 0x4a0340
push eax
mov eax, esi
lea ecx, [ebp - 0x68]
and eax, 0xfc
add eax, ecx
push eax
lea eax, [ebp - 0x6c]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp - 0x6c]
add esp, 0xc
sar esi, 2
test esi, esi
je 0x4a0350
xor edi, dword [ebp + esi*4 - 0x6c]
dec esi
test esi, esi
jne 0x4a0347
mov eax, 0x3ce4585
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3f1
sub edi, eax
mov eax, dword [ebp - 0x74]
lea eax, [eax + edi*4]
add eax, 0xe1c
mov dword [ebp - 0x6c], eax
mov esi, dword [eax]
test esi, esi
je 0x4a03bf
mov eax, dword [ebp - 0x70]
mov edi, dword [ebp + 0x10]
cmp dword [esi], eax
jne 0x4a03b0
cmp dword [esi + 8], edi
jne 0x4a03b0
mov ecx, dword [ebp + 0x14]
cmp dword [esi + 0x10], ecx
jne 0x4a03b0
mov eax, dword [esi + 4]
cmp eax, 0x10000
jl 0x4a03ad
push ebx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll__stricmp
add esp, 8
test eax, eax
je 0x4a041f
mov eax, dword [ebp - 0x70]
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4a0381
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x6c], eax
jmp 0x4a03c2
mov edi, dword [ebp + 0x10]
push 0x18
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov esi, eax
add esp, 4
test esi, esi
je 0x4a03dd
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx]
mov dword [esi + 0x14], eax
lea eax, [esi + 4]
mov dword [ecx], esi
cmp ebx, 0x10000
jge 0x4a03f6
mov dword [eax], ebx
jmp 0x4a0411
push 0x2aa
push str.LibMain.c
push sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
push 0
push ebx
push eax
call fcn.0047ce40
add esp, 0x18
mov eax, dword [ebp - 0x70]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 8], edi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [esi + 0xc], eax
xor ecx, ebp
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.004e2538
mov esp, ebp
pop ebp
ret