Function at 0x1002c6e4
Capabilities:
Encode data using xor

Disassembly:
push 0x9c
mov eax, 0x1004038f
call fcn.1003d3d1
mov esi, ecx
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x4d
xor ebx, ebx
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 0x2b], bl
call fcn.10003da0
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x28]
mov ecx, dword [esi + 0x3c]
call fcn.1000d0e0
or edi, 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.10003b9e
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x23
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x2b], bl
call fcn.10003da0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x28]
mov ecx, dword [esi + 0x40]
call fcn.1000d0e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.10003b9e
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x15
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x2b], bl
call fcn.10003da0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, dword [esi + 0x44]
call fcn.1000cd56
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.10003b9e
mov ecx, dword [esi + 0x34]
mov dl, 2
call fcn.1000c953
mov eax, dword [0x10056840]
test eax, eax
je 0x1002c7c2
cmp dword [esi + 0x30], 1
jne 0x1002c7aa
mov eax, dword [eax + 0x4c]
jmp 0x1002c7b3
cmp dword [esi + 0x30], 2
jne 0x1002c7c2
mov eax, dword [eax + 0x50]
cmp eax, dword [esi + 0x2c]
jae 0x1002c7c2
mov ecx, dword [esi + 0x34]
mov dl, 7
call fcn.1000c953
mov ecx, dword [esi + 0x24]
call fcn.100083e6
mov edx, dword [esi + 0x24]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x1002ca0a
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 0xf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x18], ebx
pop ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 3
call fcn.10008406
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1002c82f
cmp dword [eax + 0x3c], 0
je 0x1002c82f
push dword [esi + 0x24]
xor edx, edx
lea ecx, [ebp - 0x48]
push eax
call fcn.100084ca
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10008af4
lea ecx, [ebp - 0x48]
call fcn.10003b9e
mov edi, dword [ebp - 0x2c]
jmp 0x1002c854
push dword [esi + 0x24]
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x48]
push 0
mov edx, edi
call fcn.100084ca
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10008af4
lea ecx, [ebp - 0x48]
call fcn.10003b9e
mov ecx, dword [esi + 0x44]
lea edx, [ebp - 0x28]
call fcn.1000cd56
push dword [ebp - 0x30]
mov edx, edi
lea ecx, [ebp - 0x48]
call fcn.100086eb
pop ecx
mov byte [ebp - 4], 4
mov edx, eax
mov ecx, dword [esi + 0x38]
call fcn.1000d0e0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.10003b9e
cmp dword [esi + 0x30], 1
jne 0x1002c8fc
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x60]
call fcn.1000aeba
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], ebx
jbe 0x1002c8a5
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004c260]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x44], xmm0
mov byte [ebp - 0x34], 0
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, ebx
jb 0x1002c8b7
sub esp, 0x18
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.10003da0
lea eax, [ebp - 0x78]
push eax
call fcn.100039e5
add esp, 0x20
mov byte [ebp - 4], 6
mov edx, eax
mov ecx, dword [esi + 0x3c]
call fcn.1000d0e0
lea ecx, [ebp - 0x78]
call fcn.10003b9e
lea ecx, [ebp - 0x60]
jmp 0x1002c96f
cmp dword [esi + 0x30], 2
jne 0x1002c978
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x78]
call fcn.1000aeba
pop ecx
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], ebx
jbe 0x1002c91a
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004c6e0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x44], xmm0
mov byte [ebp - 0x34], 0
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, ebx
jb 0x1002c92c
sub esp, 0x18
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.10003da0
lea eax, [ebp - 0x60]
push eax
call fcn.100039e5
add esp, 0x20
mov byte [ebp - 4], 8
mov edx, eax
mov ecx, dword [esi + 0x3c]
call fcn.1000d0e0
lea ecx, [ebp - 0x60]
call fcn.10003b9e
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.10003b9e
mov edx, dword [esi + 0x28]
push ecx
lea ecx, [ebp - 0x78]
call fcn.1000aeba
pop ecx
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], ebx
jbe 0x1002c990
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004c5c0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x34], 0xb
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x10
jb 0x1002c9a4
sub esp, 0x18
mov byte [ebp - 0x33], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.10003da0
lea eax, [ebp - 0x60]
push eax
call fcn.100039e5
add esp, 0x20
mov byte [ebp - 4], 0xa
mov edx, eax
mov ecx, dword [esi + 0x40]
call fcn.1000d0e0
lea ecx, [ebp - 0x60]
call fcn.10003b9e
lea ecx, [ebp - 0x78]
call fcn.10003b9e
or dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, ebx
jbe 0x1002cc1d
mov ecx, dword [ebp - 0x28]
inc edx
call fcn.10003b71
jmp 0x1002cc1d
lea eax, [edx - 1]
cmp eax, 0x5f5e0fe
ja 0x1002cc1d
mov edx, dword [esi + 0x54]
sub edx, dword [esi + 0x50]
sar edx, 2
call fcn.1000ab8f
mov ecx, dword [esi + 0x50]
push 0xf
pop ebx
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1002cab6
mov ecx, eax
call fcn.100083e6
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x1002cab6
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
mov edi, dword [ebp - 0x30]
mov edx, edi
mov dword [ebp - 4], 0xb
call fcn.10008406
test eax, eax
je 0x1002ca7c
cmp dword [eax + 0x3c], 0
je 0x1002ca7c
push edi
push eax
xor edx, edx
jmp 0x1002ca82
mov edx, dword [ebp - 0x2c]
push edi
push 0
lea ecx, [ebp - 0x60]
call fcn.100084ca
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10008af4
lea ecx, [ebp - 0x60]
call fcn.10003b9e
mov ecx, dword [esi + 0x44]
lea edx, [ebp - 0x28]
call fcn.1000cd56
or edi, 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.10003b9e
cmp dword [esi + 0x30], 1
jne 0x1002cb19
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x78]
call fcn.1000aeba
pop ecx
mov dword [ebp - 4], 0xc
cmp dword [eax + 0x14], ebx
jbe 0x1002cad7
mov eax, dword [eax]
movaps xmm0, xmmword [str.nNCN__N_]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x44], xmm0
mov byte [ebp - 0x34], 0
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, ebx
jb 0x1002cae9
sub esp, 0x18
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.10003da0
lea eax, [ebp - 0x60]
push eax
call fcn.100039e5
add esp, 0x20
mov byte [ebp - 4], 0xd
jmp 0x1002cb79
cmp dword [esi + 0x30], 2
jne 0x1002cb96
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x78]
call fcn.1000aeba
pop ecx
mov dword [ebp - 4], 0xe
cmp dword [eax + 0x14], ebx
jbe 0x1002cb3a
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004c5a0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x44], xmm0
mov byte [ebp - 0x34], 0
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, ebx
jb 0x1002cb4c
sub esp, 0x18
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.10003da0
lea eax, [ebp - 0x60]
push eax
call fcn.100039e5
add esp, 0x20
mov byte [ebp - 4], bl
mov ecx, dword [esi + 0x3c]
mov edx, eax
call fcn.1000d0e0
lea ecx, [ebp - 0x60]
call fcn.10003b9e
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], edi
call fcn.10003b9e
mov edx, dword [esi + 0x28]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.1000aeba
pop ecx
mov dword [ebp - 4], 0x10
cmp dword [eax + 0x14], ebx
jbe 0x1002cbb4
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004bac0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x34], 0x57
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x10
jb 0x1002cbc8
sub esp, 0x18
mov byte [ebp - 0x33], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.10003da0
lea eax, [ebp - 0x90]
push eax
call fcn.100039e5
add esp, 0x20
mov byte [ebp - 4], 0x11
mov edx, eax
mov ecx, dword [esi + 0x40]
call fcn.1000d0e0
lea ecx, [ebp - 0x90]
call fcn.10003b9e
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], edi
call fcn.10003b9e
mov ecx, dword [esi + 0xfc]
call fcn.1000c9c0
test al, al
je 0x1002cc39
mov ecx, dword [esi + 0xfc]
xor dl, dl
call fcn.1000c87f
mov ecx, dword [esi + 0x34]
mov dl, 1
call fcn.1000c87f
call fcn.1003d38f
ret