Function at 0x2a947bc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x3c
call fcn.2a8b8f90
push edi
mov edi, dword [esp + 0x50]
push edi
mov dword [esp + 0x3c], 0
call fcn.2a8ff9f0
push edi
call fcn.2a8ff920
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x2a948071
push esi
mov esi, dword [esp + 0x54]
push esi
call fcn.2a8ff920
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x2a948070
push ebp
push esi
call fcn.2a8ff920
mov ebp, eax
add esp, 4
mov dword [esp + 0x3c], ebp
test ebp, ebp
je 0x2a94806f
push esi
call fcn.2a8ff920
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
test esi, esi
je 0x2a94806f
push ebx
mov ebx, dword [esp + 0x58]
push ebx
push dword [esp + 0x58]
push ebp
call fcn.2a947780
add esp, 0xc
test eax, eax
je 0x2a94806e
push ebp
call fcn.2a8cea70
add esp, 4
test eax, eax
jne 0x2a94806e
push ebx
push esi
call fcn.2a8ce7a0
add esp, 8
test eax, eax
je 0x2a94806e
push ebp
call fcn.2a8ceb30
push esi
mov dword [esp + 0x24], eax
call fcn.2a8ceb30
mov ebx, dword [ebx + 4]
push ebx
push ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ebx
call fcn.2a8cf1c0
add esp, 0x10
test eax, eax
je 0x2a94806e
mov eax, dword [ebp + 4]
mov esi, dword [ebp]
mov dword [esp + 0x3c], esi
cmp eax, ebx
jge 0x2a947cc5
mov ecx, ebx
lea edi, [esi + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
push ebx
push edi
mov dword [ebp + 4], ebx
call fcn.2a8cf1c0
add esp, 8
test eax, eax
je 0x2a94806e
mov ebp, dword [edi]
mov dword [esp + 0x18], ebp
mov dword [ebp], 1
cmp ebx, 1
jle 0x2a947cfa
lea ecx, [ebx - 1]
xor eax, eax
lea edi, [ebp + 4]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov dword [edi + 4], ebx
push ebx
mov ebx, dword [esp + 0x2c]
push ebx
call fcn.2a8cf1c0
add esp, 8
test eax, eax
je 0x2a94806e
mov edx, dword [esp + 0x20]
mov ebx, dword [ebx]
mov dword [esp + 0x10], ebx
test edx, edx
jle 0x2a947d29
mov ecx, edx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x38]
mov edi, dword [eax]
mov dword [esp + 0x14], edi
mov edi, edi
test ecx, ecx
je 0x2a947e15
jmp 0x2a947d50
mov ebx, dword [esi]
test bl, 1
jne 0x2a947e0d
mov ecx, dword [esp + 0x58]
dec edx
mov eax, dword [ebp]
mov ebp, eax
and ebp, 1
neg ebp
mov ecx, dword [ecx]
mov ecx, dword [ecx]
and ecx, ebp
xor eax, ecx
xor ecx, ecx
mov dword [esp + 0x34], ecx
test edx, edx
jle 0x2a947deb
mov ecx, dword [esp + 0x18]
mov edx, esi
sub edx, ecx
mov dword [esp + 0x30], 0xfffffffc
sub dword [esp + 0x30], ecx
mov dword [esp + 0x48], edx
lea edi, [ecx + 4]
mov edx, dword [edx + edi]
mov ecx, edx
shl ecx, 0x1f
shr ebx, 1
or ecx, ebx
shr eax, 1
mov ebx, dword [esp + 0x34]
mov dword [esi + ebx*4], ecx
mov ebx, edx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x3c]
mov ecx, dword [ecx]
add ecx, edi
mov edx, dword [ecx + edx + 4]
and edx, ebp
xor edx, dword [edi]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov eax, edx
mov edx, dword [esp + 0x20]
mov dword [edi - 4], ecx
dec edx
mov ecx, dword [esp + 0x34]
add edi, 4
inc ecx
cmp ecx, edx
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x48]
jl 0x2a947d97
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
shr ebx, 1
mov dword [esi + ecx*4], ebx
shr eax, 1
mov dword [ebp + ecx*4], eax
mov ecx, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x2a947d50
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp ecx, 0x20
jg 0x2a947e2d
mov eax, dword [esi]
test eax, eax
je 0x2a94806e
cmp eax, 1
je 0x2a948047
cmp ecx, dword [esp + 0x2c]
jge 0x2a947e7c
mov ebp, dword [esp + 0x40]
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x38], ebp
mov ebp, dword [ebp]
mov dword [esp + 0x24], esi
mov esi, edi
mov dword [esp + 0x14], ebp
mov ebp, ebx
mov dword [esp + 0x28], eax
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], eax
jmp 0x2a947e80
mov eax, dword [esp + 0x10]
xor edi, edi
test edx, edx
jle 0x2a947ff0
cmp edx, 4
jb 0x2a947faf
lea eax, [eax + edx*4]
lea ebx, [edx*4 - 4]
add eax, 0xfffffffc
add ebx, ebp
cmp ebp, eax
ja 0x2a947eb2
mov eax, dword [esp + 0x10]
cmp ebx, eax
jae 0x2a947fb3
lea eax, [edx - 1]
lea ebx, [edx*4 - 4]
lea eax, [esi + eax*4]
add ebx, ebp
cmp ebp, eax
ja 0x2a947ecd
cmp ebx, esi
jae 0x2a947faf
mov eax, dword [esp + 0x14]
lea ebx, [edx*4 - 4]
add ebx, ebp
lea eax, [eax + edx*4]
add eax, 0xfffffffc
cmp ebp, eax
ja 0x2a947eee
cmp ebx, dword [esp + 0x14]
jae 0x2a947faf
mov eax, dword [esp + 0x10]
lea ebx, [edx - 1]
lea ebx, [esi + ebx*4]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
cmp esi, eax
ja 0x2a947f0e
mov eax, dword [esp + 0x10]
cmp ebx, eax
jae 0x2a947fb3
mov eax, dword [esp + 0x14]
lea ebx, [edx - 1]
lea ebx, [esi + ebx*4]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
cmp esi, eax
ja 0x2a947f2c
cmp ebx, dword [esp + 0x14]
jae 0x2a947faf
mov eax, edx
and eax, 0x80000003
jns 0x2a947f3a
dec eax
or eax, 0xfffffffc
inc eax
mov ebp, dword [esp + 0x14]
mov ebx, edx
mov edx, dword [esp + 0x18]
sub ebp, esi
mov dword [esp + 0x48], ebp
sub ebx, eax
mov ebp, dword [esp + 0x10]
mov eax, esi
sub ebp, esi
sub edx, esi
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
lea ebx, [ebx]
movdqu xmm0, xmmword [eax]
add edi, 4
lea eax, [eax + 0x10]
movdqu xmm1, xmmword [eax + ebp - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
movdqu xmm1, xmmword [edx + eax - 0x10]
movdqu xmm0, xmmword [esi + eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [esi + eax - 0x10], xmm1
cmp edi, ebx
jl 0x2a947f70
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp edi, edx
jge 0x2a947ff0
mov ebx, dword [esp + 0x14]
lea ecx, [esi + edi*4]
sub eax, esi
sub ebp, esi
sub ebx, esi
mov dword [esp + 0x48], eax
sub edx, edi
mov dword [esp + 0x34], ebp
mov edi, eax
mov eax, dword [ebx + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [edi + ecx - 4]
xor dword [ecx + ebp - 4], eax
dec edx
jne 0x2a947fd0
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp ecx, dword [esp + 0x2c]
jne 0x2a947d40
lea eax, [ecx - 1]
cdq
and edx, 0x1f
lea edi, [edx + eax]
sar edi, 5
mov eax, dword [esi + edi*4]
test eax, eax
jne 0x2a948023
test edi, edi
je 0x2a948023
mov eax, dword [esi + edi*4 - 4]
dec edi
test eax, eax
je 0x2a948016
push eax
call fcn.2a8ceba0
mov edx, dword [esp + 0x24]
add esp, 4
mov ebx, dword [esp + 0x10]
shl edi, 5
lea ecx, [edi + eax]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
jmp 0x2a947d40
mov esi, dword [esp + 0x24]
push esi
call fcn.2a8cefd0
push esi
push dword [esp + 0x58]
call fcn.2a8ce7a0
xor ecx, ecx
add esp, 0xc
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [esp + 0x44], ecx
pop ebx
pop ebp
pop esi
push dword [esp + 0x50]
call fcn.2a8ff8a0
mov eax, dword [esp + 0x3c]
add esp, 4
pop edi
add esp, 0x3c
ret