Function at 0x10128d40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x74
call fcn.1005d3c0
mov eax, dword [0x101c10e0]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
push ebx
mov ebx, dword [esp + 0x98]
push ebp
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x9c]
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 1
call fcn.100c4460
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
js 0x101290ab
call fcn.100d7bc0
mov ebp, eax
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x101290ab
test esi, esi
jne 0x10128db5
xor ecx, ecx
jmp 0x10128dcf
mov ecx, dword [esp + 0x8c]
cmp ecx, 0xffffffff
jne 0x10128dcf
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10128dc6
sub ecx, edx
push 0
push edi
push ecx
push esi
push ebp
call fcn.100d7da0
add esp, 0x14
test eax, eax
je 0x101290a2
call fcn.100d7bc0
mov ebp, eax
mov dword [esp + 0x38], ebp
test ebp, ebp
je 0x1012909e
mov edx, dword [esp + 0xa0]
test edx, edx
je 0x1012904d
mov ecx, 1
nop dword [eax]
cmp edx, dword [esp + 0x1c]
mov edi, edx
push dword [esp + 0x10]
cmovg edi, dword [esp + 0x20]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x18], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x19], al
mov eax, ecx
shr eax, 8
push ebp
mov dword [esp + 0x44], edi
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], cl
call fcn.100d7aa0
add esp, 8
test eax, eax
je 0x10129077
push dword [esp + 0x94]
push dword [esp + 0x2c]
push ebp
call fcn.100d7fb0
add esp, 0xc
test eax, eax
je 0x10129077
push 4
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.100d7fb0
add esp, 0xc
test eax, eax
je 0x10129077
push 0
lea eax, [esp + 0x44]
push eax
push ebp
call fcn.100d7cf0
add esp, 0xc
test eax, eax
je 0x10129077
push ebp
call fcn.100d7c00
push edi
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.1005ec70
mov esi, 1
add esp, 0x10
mov dword [esp + 0x18], esi
cmp dword [esp + 0x98], esi
jle 0x10129026
nop word [eax + eax]
push dword [esp + 0x10]
push ebp
call fcn.100d7aa0
add esp, 8
test eax, eax
je 0x10129077
push dword [esp + 0x1c]
lea eax, [esp + 0x44]
push eax
push ebp
call fcn.100d7fb0
add esp, 0xc
test eax, eax
je 0x10129077
push 0
lea eax, [esp + 0x44]
push eax
push ebp
call fcn.100d7cf0
add esp, 0xc
test eax, eax
je 0x10129077
push ebp
call fcn.100d7c00
add esp, 4
xor ecx, ecx
test edi, edi
jle 0x10129014
cmp edi, 0x40
jb 0x10128ff1
lea edx, [ebx - 1]
lea eax, [esp + edi + 0x3f]
add edx, edi
cmp ebx, eax
ja 0x10128f4c
lea eax, [esp + 0x40]
cmp edx, eax
jae 0x10128ff1
mov eax, edi
and eax, 0x8000003f
jns 0x10128f5a
dec eax
or eax, 0xffffffc0
inc eax
lea ebp, [esp + 0x50]
mov edx, edi
sub ebp, ebx
lea esi, [esp + 0x40]
mov dword [esp + 0x2c], ebp
sub edx, eax
mov edi, dword [esp + 0x2c]
lea ebp, [esp + 0x60]
sub ebp, ebx
sub esi, ebx
mov dword [esp + 0x30], ebp
mov eax, ebx
lea ebp, [esp + 0x70]
sub ebp, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x34], ebp
nop dword [eax]
movups xmm0, xmmword [eax]
mov ebp, dword [esp + 0x34]
add ecx, 0x40
lea eax, [eax + 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [eax + ebp - 0x40]
mov ebp, dword [esp + 0x38]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x10128f90
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
cmp ecx, edi
jge 0x10129014
lea esi, [esp + 0x40]
mov edx, edi
sub esi, ebx
lea eax, [ecx + ebx]
sub edx, ecx
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x10129002
mov esi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x98]
jl 0x10128ed0
mov edx, dword [esp + 0xa0]
add ebx, edi
mov ecx, dword [esp + 0x20]
sub edx, edi
inc ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
test edx, edx
jne 0x10128e10
push ebp
call fcn.100d7b50
push dword [esp + 0x14]
call fcn.100d7b50
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1005cef4
add esp, 0x74
ret
push ebp
call fcn.100d7b50
push dword [esp + 0x14]
call fcn.100d7b50
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1005cef4
add esp, 0x74
ret
mov ebp, dword [esp + 0x10]
push ebp
call fcn.100d7b50
add esp, 4
mov ecx, dword [esp + 0x80]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005cef4
add esp, 0x74
ret