Function at 0x4a4910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0aa0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x5116c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x4c]
sub eax, dword [esi + 0x50]
cmp eax, 0x20
jae 0x4a4962
push dword [ebp + 8]
call fcn.004843b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x40]
lea ecx, [ebp - 0x50]
shl eax, 2
push 0
push eax
mov dword [ebp - 0x40], eax
call fcn.004438f0
mov edi, dword [esi + 0x40]
mov edx, eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 1
lea ecx, [edi + edi*2]
mov dword [ebp - 0x24], 0
lea eax, [edx + edi*4]
lea esi, [edx + edi*8]
mov dword [ebp - 0x28], eax
lea edx, [edx + ecx*4]
mov dword [ebp - 0x18], esi
lea ecx, [edi + edi*2]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x4a49b5
mov edi, dword [ebp - 0x30]
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
mov dword [eax], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp esi, eax
je 0x4a4a07
shl ecx, 2
test ecx, ecx
je 0x4a4a07
test esi, esi
je 0x4a49f2
push ecx
test eax, eax
je 0x4a49e7
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4a4a04
push 0
push esi
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]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x40]
mov eax, dword [eax + 0x44]
cmp edx, eax
je 0x4a4a4d
shl ecx, 2
test ecx, ecx
je 0x4a4a4d
test edx, edx
je 0x4a4a3b
push ecx
test eax, eax
je 0x4a4a30
push eax
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4a4a4d
push 0
push edx
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]
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], eax
mov eax, dword [esi]
test eax, eax
jne 0x4a4b10
mov esi, 1
cmp edi, esi
cmovb esi, edi
mov dword [ebp - 0x34], esi
nop word [eax + eax]
test esi, esi
je 0x4a4aa7
cmp esi, edi
jae 0x4a4a95
mov eax, dword [ebp - 0x18]
mov ecx, esi
mov edx, eax
lea esi, [eax + esi*4]
mov eax, dword [esi]
lea edx, [edx + 4]
inc ecx
mov dword [edx - 4], eax
lea esi, [esi + 4]
cmp ecx, edi
jb 0x4a4a82
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
sub edi, esi
lea edi, [ecx + edi*4]
test esi, esi
je 0x4a4aa7
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x10]
mov esi, 1
mov edi, dword [ebp - 0x28]
lea edx, [ecx + 1]
cmp dword [edi + ecx*4 - 4], 0
cmove edx, ecx
cmp edx, esi
mov dword [ebp - 0x10], edx
cmovb esi, edx
test esi, esi
je 0x4a4af1
lea eax, [edx - 1]
cmp eax, esi
jb 0x4a4ae7
mov ecx, eax
sub ecx, esi
lea edx, [edi + ecx*4]
mov ecx, dword [edx]
lea edx, [edx - 4]
mov dword [edi + eax*4], ecx
dec eax
cmp eax, esi
jae 0x4a4ad7
mov edx, dword [ebp - 0x10]
test esi, esi
je 0x4a4af1
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x24], 0x20
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x34]
mov eax, dword [eax]
test eax, eax
je 0x4a4a70
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
jmp 0x4a4b13
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
test al, 1
jne 0x4a4b2a
nop dword [eax]
shr eax, 1
inc ecx
test al, 1
je 0x4a4b20
mov dword [ebp - 0x2c], ecx
add dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x14]
cmp eax, 1
jne 0x4a4b57
mov eax, edi
test edi, edi
je 0x4a4b4e
lea esi, [esi + edi*4]
add esi, 0xfffffffc
cmp dword [esi], 0
jne 0x4a4b4e
sub esi, 4
sub eax, 1
jne 0x4a4b41
cmp eax, 1
je 0x4a4f0f
cmp ecx, 1
jne 0x4a4bd3
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x4a4b94
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x34]
sub eax, 4
lea esi, [eax + edi*4]
mov ecx, dword [esi]
lea esi, [esi - 4]
mov eax, ecx
shr eax, 1
or eax, edx
mov edx, ecx
shl edx, 0x1f
mov dword [esi + 4], eax
sub edi, 1
jne 0x4a4b76
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
xor eax, eax
xor esi, esi
mov dword [ebp - 0x2c], eax
test edx, edx
je 0x4a4c6a
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
nop dword [eax]
mov ecx, dword [edx + eax*4]
lea eax, [ecx + ecx]
or eax, esi
mov esi, dword [ebp - 0x2c]
mov dword [edx + esi*4], eax
mov esi, ecx
mov eax, dword [ebp - 0x2c]
inc eax
shr esi, 0x1f
mov dword [ebp - 0x2c], eax
cmp eax, edi
jb 0x4a4bb0
jmp 0x4a4c67
mov dword [ebp - 0x38], 0
test ecx, ecx
je 0x4a4c25
mov dword [ebp - 0x34], edi
test edi, edi
je 0x4a4c25
mov eax, 0x20
sub eax, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
sub eax, 4
lea esi, [eax + edi*4]
mov edi, dword [ebp - 0x38]
nop dword [eax + eax]
mov edx, dword [esi]
lea esi, [esi - 4]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x3c]
or eax, edi
mov edi, edx
mov dword [esi + 4], eax
shl edi, cl
sub dword [ebp - 0x34], 1
mov ecx, dword [ebp - 0x2c]
jne 0x4a4c00
mov edi, dword [ebp - 0x14]
xor esi, esi
jmp 0x4a4c2b
xor esi, esi
test ecx, ecx
je 0x4a4c6a
xor eax, eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x10], eax
jbe 0x4a4c6a
mov edi, dword [ebp - 0x28]
mov edx, 0x20
sub edx, ecx
mov dword [ebp - 0x3c], edx
mov edx, dword [edi + eax*4]
mov eax, edx
shl eax, cl
mov ecx, dword [ebp - 0x34]
or eax, esi
mov esi, edx
mov dword [edi + ecx*4], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
inc eax
shr esi, cl
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x10]
jb 0x4a4c42
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
test esi, esi
je 0x4a4c7a
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dword [ecx + eax*4], esi
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp dword [eax + edi*4 - 4], 0
jne 0x4a4c92
cmp dword [edx + edi*4 - 4], 0
jne 0x4a4c92
dec edi
mov dword [ebp - 0x14], edi
mov eax, dword [eax + edi*4 - 4]
mov edx, dword [edx + edi*4 - 4]
mov dword [ebp - 0x3c], eax
cmp eax, edx
jae 0x4a4cb0
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp + 8]
cmp eax, edx
cmovae esi, ecx
cmovae ecx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp + 8], eax
test edi, edi
je 0x4a4dee
mov eax, dword [ebp - 0x1c]
cmp edi, 2
jb 0x4a4dc6
mov ecx, dword [ebp - 0x18]
lea eax, [eax + edi*4]
add ecx, 0xfffffffc
add eax, 0xfffffffc
lea ecx, [ecx + edi*4]
cmp dword [ebp - 0x18], eax
ja 0x4a4cfc
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
jae 0x4a4dc6
cmp edi, 0x10
jb 0x4a4d84
mov esi, dword [ebp - 0x1c]
mov ecx, edi
and ecx, 0xf
mov eax, edi
mov edi, dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 0x34], ecx
lea ecx, [esi + 0x30]
mov dword [ebp - 0x38], eax
sub esi, edi
mov dword [ebp - 0x3c], esi
lea eax, [edi + 0x10]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x3c]
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x10
lea eax, [eax + 0x40]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx - 0x70]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [ecx - 0x40]
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x38]
jb 0x4a4d30
cmp dword [ebp - 0x34], 2
mov edi, dword [ebp - 0x14]
jb 0x4a4dbf
mov esi, dword [ebp - 0x1c]
mov ecx, edi
mov edi, dword [ebp - 0x18]
and ecx, 0xfffffffe
sub esi, edi
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x10]
lea eax, [edi + edx*4]
mov edi, dword [ebp - 0x3c]
nop dword [eax]
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 0x4a4da0
mov edi, dword [ebp - 0x14]
cmp edx, edi
jae 0x4a4deb
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
sub eax, esi
mov dword [ebp - 0x3c], eax
lea ecx, [esi + edx*4]
mov esi, edi
sub esi, edx
mov edi, eax
mov eax, dword [edi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub esi, 1
jne 0x4a4dd7
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
xor edx, edx
test esi, esi
je 0x4a4f01
cmp esi, 2
jb 0x4a4ee3
lea ecx, [eax - 4]
mov eax, dword [ebp - 0x28]
lea ecx, [ecx + esi*4]
lea eax, [eax + esi*4]
add eax, 0xfffffffc
cmp dword [ebp + 8], eax
ja 0x4a4e1e
cmp ecx, dword [ebp - 0x28]
jae 0x4a4ee3
cmp esi, 0x10
jb 0x4a4ea4
mov edi, dword [ebp - 0x14]
mov ecx, esi
and ecx, 0xf
mov eax, esi
mov esi, dword [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
add eax, 0x10
lea ecx, [esi + 0x30]
sub esi, dword [ebp + 8]
mov dword [ebp - 0x3c], esi
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x10
lea eax, [eax + 0x40]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx - 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 [ecx - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x38]
jb 0x4a4e50
cmp dword [ebp - 0x34], 2
mov esi, dword [ebp - 0x10]
jb 0x4a4edf
mov edi, dword [ebp - 0x28]
mov ecx, esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffe
sub edi, esi
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x14]
lea eax, [esi + edx*4]
mov esi, dword [ebp - 0x3c]
nop dword [eax]
movq xmm1, qword [esi + 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 0x4a4ec0
mov esi, dword [ebp - 0x10]
cmp edx, esi
jae 0x4a4f01
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x28]
sub edi, eax
sub esi, edx
lea ecx, [eax + edx*4]
mov eax, dword [edi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub esi, 1
jne 0x4a4ef0
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
jmp 0x4a4a53
mov eax, dword [ebp - 0x24]
mov edi, 0x20
cmp eax, edi
jb 0x4a505d
mov ecx, dword [ebp + 8]
shr eax, 5
mov dword [ebp - 0x34], eax
mov esi, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], esi
mov ecx, dword [ecx + 0x48]
lea eax, [ecx + 0x1f]
and eax, 0xffffffe0
cmp eax, 0x20
jbe 0x4a4f6f
mov edi, dword [ebp + 8]
mov edx, 1
mov esi, dword [ebp - 0x20]
nop dword [eax]
mov eax, dword [edi + 4]
lea edi, [edi + 4]
mov dword [edi - 4], eax
inc edx
mov ecx, dword [esi + 0x48]
lea eax, [ecx + 0x1f]
shr eax, 5
cmp edx, eax
jb 0x4a4f50
mov esi, dword [ebp - 0x3c]
mov edi, 0x20
lea eax, [ecx + 0x1f]
mov ecx, dword [ebp + 8]
shr eax, 5
mov dword [ecx + eax*4 - 4], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x3c], ecx
cmp ecx, 0x20
jae 0x4a5026
mov eax, edi
mov edx, 0
sub eax, ecx
mov dword [ebp - 0x38], eax
je 0x4a4fc4
lea edi, [ecx + edx]
cmp edi, 0x20
jae 0x4a4fba
mov ecx, edx
mov eax, esi
shr eax, cl
mov ecx, edi
and eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x3c]
jmp 0x4a4fbc
xor eax, eax
inc edx
xor esi, eax
cmp edx, dword [ebp - 0x38]
jb 0x4a4fa0
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x50]
mov eax, edx
and eax, 0x1f
je 0x4a4fe5
mov ecx, 0x20
shr edx, 5
sub ecx, eax
mov eax, esi
shr eax, cl
xor dword [edi + edx*4], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x4c]
mov ecx, eax
shr eax, 5
mov edx, dword [edi + eax*4 - 4]
lea edi, [edi + eax*4]
and ecx, 0x1f
je 0x4a503d
mov eax, esi
shl eax, cl
xor eax, edx
mov dword [edi - 4], eax
mov edi, 0x20
mov eax, dword [ebp - 0x20]
mov ecx, edi
mov edx, dword [eax + 0x4c]
mov eax, edx
and edx, 0x1f
shr eax, 5
sub ecx, edx
shr esi, cl
mov ecx, dword [ebp + 8]
xor dword [ecx + eax*4], esi
jmp 0x4a504a
mov edi, dword [ebp + 8]
mov eax, ecx
shr eax, 5
and ecx, 0x1f
lea edx, [edi + eax*4]
mov eax, esi
shl eax, cl
xor dword [edx - 4], eax
jmp 0x4a4fc7
mov ecx, dword [ebp + 8]
xor edx, esi
mov dword [edi - 4], edx
mov edi, 0x20
mov eax, dword [ebp - 0x24]
sub eax, 0x20
sub dword [ebp - 0x34], 1
mov dword [ebp - 0x24], eax
jne 0x4a4f28
mov edx, dword [ebp + 8]
test eax, eax
je 0x4a514a
mov esi, dword [edx]
mov ecx, edi
push eax
sub ecx, eax
mov eax, dword [ebp - 0x20]
shl esi, cl
mov eax, dword [eax + 0x48]
add eax, 0x1f
shr eax, 5
push eax
push edx
call fcn.0043d310
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x3c], ecx
cmp ecx, 0x20
jae 0x4a50ce
mov eax, edi
mov edx, 0
sub eax, ecx
mov dword [ebp - 0x38], eax
je 0x4a50e3
lea edi, [ecx + edx]
cmp edi, 0x20
jae 0x4a50bd
mov ecx, edx
mov eax, esi
shr eax, cl
mov ecx, edi
and eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x3c]
jmp 0x4a50bf
xor eax, eax
inc edx
xor esi, eax
cmp edx, dword [ebp - 0x38]
jb 0x4a50a3
mov edi, 0x20
jmp 0x4a50e3
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 5
and ecx, 0x1f
lea edx, [edx + eax*4]
mov eax, esi
shl eax, cl
xor dword [edx - 4], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x50]
mov eax, edx
and eax, 0x1f
je 0x4a5101
mov ecx, edi
shr edx, 5
sub ecx, eax
mov eax, esi
shr eax, cl
mov ecx, dword [ebp + 8]
xor dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x4c]
mov ecx, eax
shr eax, 5
lea edi, [edx + eax*4]
mov edx, dword [edi - 4]
and ecx, 0x1f
je 0x4a5142
mov eax, esi
shl eax, cl
mov ecx, 0x20
xor eax, edx
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x4c]
mov eax, edx
and edx, 0x1f
shr eax, 5
sub ecx, edx
mov edx, dword [ebp + 8]
shr esi, cl
xor dword [edx + eax*4], esi
jmp 0x4a514a
xor edx, esi
mov dword [edi - 4], edx
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x5c]
cmp eax, edx
je 0x4a5190
shl ecx, 2
test ecx, ecx
je 0x4a5190
test eax, eax
je 0x4a517e
push ecx
test edx, edx
je 0x4a5173
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4a5190
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]
mov ecx, dword [ebp - 0x40]
mov eax, 0x3fffffff
mov edx, dword [ebp - 0x30]
cmp ecx, eax
mov dword [ebp - 4], 0
cmova ecx, eax
test edx, edx
je 0x4a51ba
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
lea eax, [esi + 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4