Function at 0x1002b8de
Capabilities:
Encode data using xor

Disassembly:
push 0x98
mov eax, 0x1003be1d
call fcn.10039131
mov esi, ecx
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x6f
xor ebx, ebx
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 0x2b], bl
call fcn.1000409e
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x44]
mov ecx, dword [esi + 0x3c]
call fcn.1000b8a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
push ebx
push 1
call fcn.10003f4a
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x2d
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x2b], bl
call fcn.1000409e
xor edi, edi
lea edx, [ebp - 0x44]
inc edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x40]
call fcn.1000b8a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
push ebx
push edi
call fcn.10003f4a
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x3d
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x2b], bl
call fcn.1000409e
mov dword [ebp - 4], 2
lea edx, [ebp - 0x44]
mov ecx, dword [esi + 0x44]
call fcn.1000b51f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
push ebx
push edi
call fcn.10003f4a
mov ecx, dword [esi + 0x34]
mov dl, 2
call fcn.1000b117
mov ecx, dword [0x100500a0]
test ecx, ecx
je 0x1002b9c5
cmp dword [esi + 0x30], edi
jne 0x1002b9ad
mov eax, dword [ecx + 0x4c]
cmp eax, dword [esi + 0x2c]
jb 0x1002b9bb
cmp dword [esi + 0x30], 2
jne 0x1002b9c5
mov eax, dword [ecx + 0x50]
cmp eax, dword [esi + 0x2c]
jae 0x1002b9c5
mov ecx, dword [esi + 0x34]
mov dl, 7
call fcn.1000b117
mov ecx, dword [esi + 0x24]
call fcn.100065c9
mov edi, eax
test edi, edi
je 0x1002bc02
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.100065e9
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1002ba0b
cmp dword [eax + 0x3c], 0
je 0x1002ba0b
push dword [esi + 0x24]
xor edx, edx
push eax
jmp 0x1002ba12
push dword [esi + 0x24]
mov edx, edi
push 0
lea ecx, [ebp - 0x44]
call fcn.100066ad
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10006e3f
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.10003f4a
mov ecx, dword [esi + 0x44]
lea edx, [ebp - 0x28]
call fcn.1000b51f
push dword [ebp - 0x2c]
mov edx, edi
lea ecx, [ebp - 0x44]
call fcn.10006912
pop ecx
mov byte [ebp - 4], 4
mov edx, eax
mov ecx, dword [esi + 0x38]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.10003f4a
cmp dword [esi + 0x30], 1
push 0x10
pop edi
jne 0x1002bafb
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.10009513
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], edi
jb 0x1002ba8d
mov eax, dword [eax]
movaps xmm0, xmmword [0x10048220]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
mov al, byte [ebp + ecx - 0x3f]
xor al, byte [ebp - 0x40]
mov byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, ebx
jb 0x1002ba9f
sub esp, 0x18
lea eax, [ebp - 0x3f]
mov ecx, esp
xor ebx, ebx
mov byte [ebp - 0x30], bl
push eax
call fcn.1000409e
lea eax, [ebp - 0x74]
push eax
call fcn.10003b83
add esp, 0x20
mov byte [ebp - 4], 6
mov edx, eax
mov ecx, dword [esi + 0x3c]
call fcn.1000b8a4
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.10003f4a
lea ecx, [ebp - 0x5c]
push ebx
push 1
mov byte [ebp - 4], 3
call fcn.10003f4a
jmp 0x1002bb7d
cmp dword [esi + 0x30], 2
jne 0x1002bb7b
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x74]
call fcn.10009513
pop ecx
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], edi
jb 0x1002bb19
mov eax, dword [eax]
movaps xmm0, xmmword [0x10048240]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
mov al, byte [ebp + ecx - 0x3f]
xor al, byte [ebp - 0x40]
mov byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, ebx
jb 0x1002bb2b
sub esp, 0x18
lea eax, [ebp - 0x3f]
mov ecx, esp
xor ebx, ebx
mov byte [ebp - 0x30], bl
push eax
call fcn.1000409e
lea eax, [ebp - 0x5c]
push eax
call fcn.10003b83
add esp, 0x20
mov byte [ebp - 4], 8
mov edx, eax
mov ecx, dword [esi + 0x3c]
call fcn.1000b8a4
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.10003f4a
lea ecx, [ebp - 0x74]
jmp 0x1002baea
xor ebx, ebx
mov edx, dword [esi + 0x28]
push ecx
lea ecx, [ebp - 0x74]
call fcn.10009513
pop ecx
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], edi
jb 0x1002bb95
mov eax, dword [eax]
movaps xmm0, xmmword [0x100477b0]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x30], 0x58
mov al, byte [ebp + ecx - 0x3f]
xor al, byte [ebp - 0x40]
mov byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, edi
jb 0x1002bba9
sub esp, 0x18
mov byte [ebp - 0x2f], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0x5c]
push eax
call fcn.10003b83
add esp, 0x20
mov byte [ebp - 4], 0xa
mov edx, eax
mov ecx, dword [esi + 0x40]
call fcn.1000b8a4
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.10003f4a
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.10003f4a
lea ecx, [ebp - 0x28]
jmp 0x1002be30
cmp dword [esi + 0x24], 0
jbe 0x1002be3c
cmp dword [esi + 0x24], 0x5f5e100
jae 0x1002be3c
mov edx, dword [esi + 0x54]
sub edx, dword [esi + 0x50]
sar edx, 2
call fcn.100091af
mov ecx, dword [esi + 0x50]
push 0xf
pop ebx
mov edi, dword [ecx + eax*4 - 4]
test edi, edi
je 0x1002bcae
mov ecx, edi
call fcn.100065c9
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1002bcae
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.100065e9
test eax, eax
je 0x1002bc6e
cmp dword [eax + 0x3c], 0
je 0x1002bc6e
push edi
push eax
xor edx, edx
jmp 0x1002bc74
mov edx, dword [ebp - 0x2c]
push edi
push 0
lea ecx, [ebp - 0x5c]
call fcn.100066ad
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10006e3f
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.10003f4a
mov ecx, dword [esi + 0x44]
lea edx, [ebp - 0x28]
call fcn.1000b51f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.10003f4a
cmp dword [esi + 0x30], 1
push 0x10
pop edi
jne 0x1002bd41
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x74]
call fcn.10009513
pop ecx
mov dword [ebp - 4], 0xc
cmp dword [eax + 0x14], edi
jb 0x1002bcd6
mov eax, dword [eax]
movaps xmm0, xmmword [0x10047ea0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
mov al, byte [ebp + ecx - 0x3f]
xor al, byte [ebp - 0x40]
mov byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, ebx
jb 0x1002bce8
sub esp, 0x18
lea eax, [ebp - 0x3f]
mov ecx, esp
xor ebx, ebx
mov byte [ebp - 0x30], bl
push eax
call fcn.1000409e
lea eax, [ebp - 0x5c]
push eax
call fcn.10003b83
add esp, 0x20
mov byte [ebp - 4], 0xd
mov edx, eax
mov ecx, dword [esi + 0x3c]
call fcn.1000b8a4
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.10003f4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
push ebx
push 1
call fcn.10003f4a
jmp 0x1002bdb4
cmp dword [esi + 0x30], 2
jne 0x1002bdb2
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x74]
call fcn.10009513
pop ecx
mov dword [ebp - 4], 0xe
cmp dword [eax + 0x14], edi
jb 0x1002bd62
mov eax, dword [eax]
movaps xmm0, xmmword [0x10047d80]
xor edx, edx
push eax
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
mov cl, byte [ebp - 0x40]
xor byte [ebp + edx - 0x3f], cl
inc edx
cmp edx, ebx
jb 0x1002bd74
sub esp, 0x18
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0x5c]
push eax
call fcn.10003b83
add esp, 0x20
mov byte [ebp - 4], bl
mov edx, eax
mov ecx, dword [esi + 0x3c]
call fcn.1000b8a4
xor ebx, ebx
jmp 0x1002bd25
xor ebx, ebx
mov edx, dword [esi + 0x28]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.10009513
pop ecx
mov dword [ebp - 4], edi
cmp dword [eax + 0x14], edi
jb 0x1002bdce
mov eax, dword [eax]
movaps xmm0, xmmword [0x100482f0]
mov edx, ebx
push eax
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x3d
mov cl, byte [ebp - 0x24]
xor byte [ebp + edx - 0x23], cl
inc edx
cmp edx, edi
jb 0x1002bde2
sub esp, 0x18
mov byte [ebp - 0x13], bl
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0x8c]
push eax
call fcn.10003b83
add esp, 0x20
mov byte [ebp - 4], 0x11
mov edx, eax
mov ecx, dword [esi + 0x40]
call fcn.1000b8a4
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.10003f4a
lea ecx, [ebp - 0xa4]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
call fcn.10003f4a
mov ecx, dword [esi + 0xfc]
call fcn.1000b184
test al, al
je 0x1002be58
mov ecx, dword [esi + 0xfc]
xor dl, dl
call fcn.1000b043
mov ecx, dword [esi + 0x34]
mov dl, 1
call fcn.1000b043
call fcn.100390db
ret