Function at 0x4a5230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x5116c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
mov edi, dword [edx + 0x48]
push 0
mov ecx, dword [ecx + 8]
cmp dword [edx + 0x5c], ecx
lea edi, [edi + 0x1f]
cmovb ecx, dword [edx + 0x5c]
shr edi, 5
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x44]
push edi
mov dword [ebp - 0x10], edi
call fcn.004438f0
mov esi, eax
mov dword [ebp - 0x20], esi
test edi, edi
je 0x4a52a3
lea ecx, [edi - 1]
mov dword [esi], 0
test ecx, ecx
je 0x4a52a3
xor eax, eax
lea edi, [esi + 4]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x48]
sub eax, 1
mov dword [ebp - 0x24], eax
js 0x4a558e
mov ecx, dword [ecx + 0x48]
dec ecx
mov eax, ecx
shr eax, 5
cmp eax, edi
jae 0x4a5418
mov eax, dword [esi + eax*4]
and ecx, 0x1f
shr eax, cl
test eax, 1
je 0x4a5418
xor edx, edx
xor edi, edi
cmp dword [ebp - 0x10], edx
jbe 0x4a5437
mov ecx, dword [esi + edx*4]
lea eax, [ecx + ecx]
or eax, edi
mov edi, ecx
mov dword [esi + edx*4], eax
inc edx
shr edi, 0x1f
cmp edx, dword [ebp - 0x10]
jb 0x4a52e6
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov edi, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x44]
mov eax, ecx
cmp edi, 2
jb 0x4a53f6
lea eax, [edi - 1]
lea eax, [esi + eax*4]
mov dword [ebp - 0x28], eax
lea eax, [edi - 1]
lea eax, [ecx + eax*4]
cmp esi, eax
ja 0x4a5330
mov eax, ecx
cmp dword [ebp - 0x28], ecx
jae 0x4a53f6
mov dword [ebp - 0x1c], ecx
cmp edi, 0x10
jb 0x4a53bc
mov eax, edi
mov dword [ebp - 0x1c], ecx
and eax, 0xf
mov dword [ebp - 0x28], eax
mov eax, edi
sub eax, dword [ebp - 0x28]
mov edi, ecx
mov dword [ebp - 0x34], eax
sub edi, esi
lea eax, [ecx + 0x30]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x10]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x10
lea eax, [eax + 0x40]
lea edi, [edi + 0x40]
movups xmm1, xmmword [edi - 0x70]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [edi - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x34]
jb 0x4a5365
cmp dword [ebp - 0x28], 2
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
jb 0x4a53ef
and edi, 0xfffffffe
lea eax, [esi + edx*4]
sub ecx, esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ecx
mov ecx, edi
mov edi, dword [ebp - 0x30]
nop
movq xmm1, qword [edi + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 2
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp edx, ecx
jb 0x4a53d0
mov edi, dword [ebp - 0x10]
cmp edx, edi
jae 0x4a543a
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x34], edi
lea ecx, [esi + edx*4]
mov dword [ebp - 0x1c], eax
sub edi, edx
mov esi, eax
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edi, 1
jne 0x4a5405
mov esi, dword [ebp - 0x20]
jmp 0x4a5437
xor edx, edx
xor edi, edi
cmp dword [ebp - 0x10], edx
jbe 0x4a5437
mov ecx, dword [esi + edx*4]
lea eax, [ecx + ecx]
or eax, edi
mov edi, ecx
mov dword [esi + edx*4], eax
inc edx
shr edi, 0x1f
cmp edx, dword [ebp - 0x10]
jb 0x4a5421
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov edx, ecx
mov eax, dword [ebp + 0xc]
shr edx, 5
cmp edx, dword [eax + 8]
jae 0x4a5581
mov eax, dword [eax + 0xc]
and ecx, 0x1f
mov eax, dword [eax + edx*4]
shr eax, cl
test al, 1
je 0x4a5581
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4a5581
cmp eax, 2
jb 0x4a5558
dec eax
lea eax, [edx + eax*4]
cmp esi, eax
ja 0x4a5494
mov eax, dword [ebp - 0x14]
dec eax
lea eax, [esi + eax*4]
cmp eax, edx
jae 0x4a5558
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4a551d
mov edi, eax
and edi, 0xf
sub eax, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], eax
mov edi, edx
sub edi, esi
lea eax, [edx + 0x30]
mov dword [ebp - 0x34], eax
lea eax, [esi + 0x10]
mov dword [ebp - 0x30], edi
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x10
lea eax, [eax + 0x40]
lea edi, [edi + 0x40]
movups xmm1, xmmword [edi - 0x70]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [edi - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp - 0x2c]
jb 0x4a54c3
cmp dword [ebp - 0x28], 2
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
jb 0x4a5553
mov eax, dword [ebp - 0x14]
and eax, 0xfffffffe
mov edi, edx
sub edi, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edi
lea eax, [esi + ecx*4]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x34]
movq xmm1, qword [esi + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add ecx, 2
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp ecx, dword [ebp - 0x30]
jb 0x4a5533
mov esi, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x14]
jae 0x4a5581
sub edx, esi
lea eax, [esi + ecx*4]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x34]
sub edx, ecx
nop dword [eax + eax]
mov ecx, dword [edi + eax]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x4a5570
mov edi, dword [ebp - 0x10]
sub dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x18]
jns 0x4a52b5
mov ecx, dword [ecx + 0x48]
and ecx, 0x1f
je 0x4a55a2
mov eax, 1
shl eax, cl
dec eax
and dword [esi + edi*4 - 4], eax
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x5c]
cmp eax, esi
je 0x4a55e8
shl ecx, 2
test ecx, ecx
je 0x4a55e8
test eax, eax
je 0x4a55d6
push ecx
test esi, esi
je 0x4a55cb
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4a55e8
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea eax, [edi + 0x54]
mov dword [ebp - 4], 0
test esi, esi
je 0x4a560e
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [ebp - 0x18]
add esp, 4
add eax, 0x54
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8