Function at 0x1002e5c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.100bf140
mov eax, dword [0x10116cb0]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov dl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x24], esi
mov byte [esp + 0xb], dl
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
push edi
test dl, 0x40
jne 0x1002e624
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
mov dl, byte [esp + 0x1b]
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, dl
xor ecx, ecx
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov dword [esp + 0x24], edx
cmp edx, 0xf
jae 0x1002e653
mov edi, edi
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x1002e640
movzx eax, byte [esi + 0xf]
mov edi, dword [esp + 0x50]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x1002e67a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100bf100
add esp, 0x34
ret
lea eax, [edi + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x1002e6b2
ja 0x1002e69b
cmp dword [esi + 0x20], 0
jbe 0x1002e6b2
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100bf100
add esp, 0x34
ret
push ebp
mov ebp, edi
shr ebp, 4
test ebp, ebp
je 0x1002e6f4
lea eax, [esi + 0x10]
push eax
push esi
push dword [esp + 0x20]
push ebp
push dword [esp + 0x24]
push ebx
call dword [esp + 0x34]
shl ebp, 4
add esp, 0x18
add dword [esp + 0x14], ebp
add ebx, ebp
sub edi, ebp
mov dword [esp + 0x54], edi
je 0x1002e7d5
shr ebp, 4
push ebp
push esi
call fcn.1002e950
add esp, 8
test edi, edi
je 0x1002e7d5
xor ecx, ecx
test edi, edi
je 0x1002e70e
mov al, byte [ebx + ecx]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, edi
jb 0x1002e702
mov ebp, dword [esp + 0x18]
lea eax, [esi + 0x10]
push ebp
push eax
push eax
call dword [esp + 0x2c]
push ebp
lea eax, [esp + 0x40]
push eax
push esi
call dword [esp + 0x38]
add esp, 0x18
xor edx, edx
test edi, edi
je 0x1002e7d9
mov ebp, dword [esp + 0x14]
cmp edi, 0x10
jb 0x1002e7b6
lea ecx, [ebp - 1]
lea eax, [esp + edi + 0x2f]
add ecx, edi
cmp ebp, eax
ja 0x1002e752
lea eax, [esp + 0x30]
cmp ecx, eax
jae 0x1002e7b6
lea eax, [ebx - 1]
add eax, edi
cmp ebp, eax
ja 0x1002e75f
cmp ecx, ebx
jae 0x1002e7b6
mov eax, edi
mov esi, ebp
and eax, 0xf
lea ebp, [esp + 0x30]
mov ecx, edi
sub esi, ebx
sub ecx, eax
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x2c]
sub ebp, ebx
mov dword [esp + 0x24], ebp
mov eax, ebx
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
jmp 0x1002e790
movdqu xmm0, xmmword [eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm1, xmmword [edi + eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax + ebp - 0x10], xmm1
cmp edx, ecx
jb 0x1002e790
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x14]
cmp edx, edi
jae 0x1002e7d5
lea eax, [esp + 0x30]
sub ebx, eax
sub ebp, eax
lea ecx, [esp + 0x30]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor al, byte [ecx]
mov byte [ecx + ebp], al
cmp edx, edi
jb 0x1002e7c2
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp eax, 0x10
jae 0x1002e7fc
mov ecx, 0x10
lea edi, [esi + eax]
sub ecx, eax
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x34]
push eax
push esi
call dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [esp + 0x34]
xor dword [esi + 0x14], eax
mov eax, dword [esp + 0x38]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x3c]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x40]
pop ebp
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.100bf100
add esp, 0x34
ret