Function at 0x1002f407
Capabilities:
Encode data using xor

Disassembly:
push 0x98
mov eax, 0x1007a41b
call fcn.10040a5d
mov esi, ecx
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x41
xor ebx, ebx
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 0x2b], bl
call fcn.10004181
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x44]
mov ecx, dword [esi + 0x3c]
call fcn.1000ff04
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
push ebx
push 1
call fcn.10004036
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x70
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x2b], bl
call fcn.10004181
xor edi, edi
lea edx, [ebp - 0x44]
inc edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x40]
call fcn.1000ff04
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
push ebx
push edi
call fcn.10004036
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0xa
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x2b], bl
call fcn.10004181
mov dword [ebp - 4], 2
lea edx, [ebp - 0x44]
mov ecx, dword [esi + 0x44]
call fcn.1000fb7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
push ebx
push edi
call fcn.10004036
mov ecx, dword [esi + 0x34]
mov dl, 2
call fcn.1000f778
mov ecx, dword [0x100a6048]
test ecx, ecx
je 0x1002f4ee
cmp dword [esi + 0x30], edi
jne 0x1002f4d6
mov eax, dword [ecx + 0x4c]
cmp eax, dword [esi + 0x2c]
jb 0x1002f4e4
cmp dword [esi + 0x30], 2
jne 0x1002f4ee
mov eax, dword [ecx + 0x50]
cmp eax, dword [esi + 0x2c]
jae 0x1002f4ee
mov ecx, dword [esi + 0x34]
mov dl, 7
call fcn.1000f778
mov ecx, dword [esi + 0x24]
call fcn.1000ad11
mov edi, eax
test edi, edi
je 0x1002f718
and dword [ebp - 0x18], 0
push 0xf
pop ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 3
mov ecx, edi
mov edx, dword [esi + 0x24]
call fcn.1000ad31
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1002f534
cmp dword [eax + 0x3c], 0
je 0x1002f534
push dword [esi + 0x24]
xor edx, edx
push eax
jmp 0x1002f53b
push dword [esi + 0x24]
mov edx, edi
push 0
lea ecx, [ebp - 0x44]
call fcn.1000adf5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10007a5b
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.10004036
mov ecx, dword [esi + 0x44]
lea edx, [ebp - 0x28]
call fcn.1000fb7f
push dword [ebp - 0x2c]
mov edx, edi
lea ecx, [ebp - 0x44]
call fcn.1000b05a
pop ecx
mov byte [ebp - 4], 4
mov edx, eax
mov ecx, dword [esi + 0x38]
call fcn.1000ff04
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.10004036
cmp dword [esi + 0x30], 1
push 0x10
pop edi
jne 0x1002f619
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.1000dc46
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], edi
jb 0x1002f5b2
mov eax, dword [eax]
movaps xmm0, xmmword [str._P_6___]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, ebx
jb 0x1002f5c4
sub esp, 0x18
lea eax, [ebp - 0x3f]
mov ecx, esp
xor ebx, ebx
mov byte [ebp - 0x30], bl
push eax
call fcn.10004181
lea eax, [ebp - 0x74]
push eax
call fcn.10003c4b
add esp, 0x20
mov byte [ebp - 4], 6
mov edx, eax
mov ecx, dword [esi + 0x3c]
call fcn.1000ff04
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.10004036
lea ecx, [ebp - 0x5c]
push ebx
push 1
mov byte [ebp - 4], 3
call fcn.10004036
jmp 0x1002f697
cmp dword [esi + 0x30], 2
jne 0x1002f695
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x74]
call fcn.1000dc46
pop ecx
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], edi
jb 0x1002f637
mov eax, dword [eax]
movaps xmm0, xmmword [0x10095830]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, ebx
jb 0x1002f649
sub esp, 0x18
lea eax, [ebp - 0x3f]
mov ecx, esp
xor ebx, ebx
mov byte [ebp - 0x30], bl
push eax
call fcn.10004181
lea eax, [ebp - 0x5c]
push eax
call fcn.10003c4b
add esp, 0x20
mov byte [ebp - 4], 8
mov edx, eax
mov ecx, dword [esi + 0x3c]
call fcn.1000ff04
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.10004036
lea ecx, [ebp - 0x74]
jmp 0x1002f60b
xor ebx, ebx
mov edx, dword [esi + 0x28]
push ecx
lea ecx, [ebp - 0x74]
call fcn.1000dc46
pop ecx
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], edi
jb 0x1002f6af
mov eax, dword [eax]
movaps xmm0, xmmword [0x100955a0]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x30], 0x4f
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, edi
jb 0x1002f6c3
sub esp, 0x18
mov byte [ebp - 0x2f], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.10004181
lea eax, [ebp - 0x5c]
push eax
call fcn.10003c4b
add esp, 0x20
mov byte [ebp - 4], 0xa
mov edx, eax
mov ecx, dword [esi + 0x40]
call fcn.1000ff04
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.10004036
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.10004036
lea ecx, [ebp - 0x28]
jmp 0x1002f942
cmp dword [esi + 0x24], 0
jbe 0x1002f94e
cmp dword [esi + 0x24], 0x5f5e100
jae 0x1002f94e
mov edx, dword [esi + 0x54]
sub edx, dword [esi + 0x50]
sar edx, 2
call fcn.1000d8ad
mov ecx, dword [esi + 0x50]
push 0xf
pop ebx
mov edi, dword [ecx + eax*4 - 4]
test edi, edi
je 0x1002f7c4
mov ecx, edi
call fcn.1000ad11
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1002f7c4
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
mov edx, edi
mov dword [ebp - 4], 0xb
mov ecx, eax
call fcn.1000ad31
test eax, eax
je 0x1002f784
cmp dword [eax + 0x3c], 0
je 0x1002f784
push edi
push eax
xor edx, edx
jmp 0x1002f78a
mov edx, dword [ebp - 0x2c]
push edi
push 0
lea ecx, [ebp - 0x5c]
call fcn.1000adf5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10007a5b
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.10004036
mov ecx, dword [esi + 0x44]
lea edx, [ebp - 0x28]
call fcn.1000fb7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.10004036
cmp dword [esi + 0x30], 1
push 0x10
pop edi
jne 0x1002f853
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x74]
call fcn.1000dc46
pop ecx
mov dword [ebp - 4], 0xc
cmp dword [eax + 0x14], edi
jb 0x1002f7ec
mov eax, dword [eax]
movaps xmm0, xmmword [0x10096070]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, ebx
jb 0x1002f7fe
sub esp, 0x18
lea eax, [ebp - 0x3f]
mov ecx, esp
xor ebx, ebx
mov byte [ebp - 0x30], bl
push eax
call fcn.10004181
lea eax, [ebp - 0x5c]
push eax
call fcn.10003c4b
add esp, 0x20
mov byte [ebp - 4], 0xd
mov edx, eax
mov ecx, dword [esi + 0x3c]
call fcn.1000ff04
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.10004036
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
push ebx
push 1
call fcn.10004036
jmp 0x1002f8c6
cmp dword [esi + 0x30], 2
jne 0x1002f8c4
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x74]
call fcn.1000dc46
pop ecx
mov dword [ebp - 4], 0xe
cmp dword [eax + 0x14], edi
jb 0x1002f874
mov eax, dword [eax]
movaps xmm0, xmmword [0x100958e0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, ebx
jb 0x1002f886
sub esp, 0x18
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.10004181
lea eax, [ebp - 0x5c]
push eax
call fcn.10003c4b
add esp, 0x20
mov byte [ebp - 4], bl
mov edx, eax
mov ecx, dword [esi + 0x3c]
call fcn.1000ff04
xor ebx, ebx
jmp 0x1002f837
xor ebx, ebx
mov edx, dword [esi + 0x28]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.1000dc46
pop ecx
mov dword [ebp - 4], edi
cmp dword [eax + 0x14], edi
jb 0x1002f8e0
mov eax, dword [eax]
movaps xmm0, xmmword [0x100960b0]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x2d
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, edi
jb 0x1002f8f4
sub esp, 0x18
mov byte [ebp - 0x13], bl
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.10004181
lea eax, [ebp - 0x8c]
push eax
call fcn.10003c4b
add esp, 0x20
mov byte [ebp - 4], 0x11
mov edx, eax
mov ecx, dword [esi + 0x40]
call fcn.1000ff04
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.10004036
lea ecx, [ebp - 0xa4]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
call fcn.10004036
mov ecx, dword [esi + 0xfc]
call fcn.1000f7e5
test al, al
je 0x1002f96a
mov ecx, dword [esi + 0xfc]
xor dl, dl
call fcn.1000f6a4
mov ecx, dword [esi + 0x34]
mov dl, 1
call fcn.1000f6a4
call fcn.10040a07
ret