Function at 0x102cc4d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
push ebx
mov ebx, ecx
push ebp
push esi
xor esi, esi
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
push edi
mov ebp, dword [eax + 0x10]
mov dword [esp + 0x18], ebp
xor ebp, ebp
cmp dword [esp + 0x18], esi
jle 0x102cc8e1
mov dword [esp + 0x38], 0x18
mov edi, dword [ebx + 0x12b0]
mov eax, edi
mov ecx, dword [ebx + 0x12b4]
sub eax, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
cmp eax, 2
jae 0x102cc56a
push eax
lea edi, [ebx + 0x2b0]
lea eax, [ecx + edi]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebx + 0x20]
add esp, 0xc
mov eax, dword [ecx]
push dword [ebx + 0x12b4]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
add eax, edi
push eax
call edx
mov edi, dword [esp + 0x24]
add edi, eax
mov dword [ebx + 0x12b4], 0
mov dword [ebx + 0x12b0], edi
cmp edi, 2
jb 0x102cc8fd
xor ecx, ecx
mov dl, byte [ebx + ecx + 0x2b0]
lea eax, [ecx + 1]
mov dword [ebx + 0x12b4], eax
mov cl, byte [eax + ebx + 0x2b0]
inc eax
mov byte [esp + 0x12], cl
mov byte [esp + 0x3c], cl
mov dword [esp + 0x20], eax
mov dword [ebx + 0x12b4], eax
test dl, dl
jne 0x102cc7e3
movzx edx, cl
mov eax, edx
mov dword [esp + 0x24], edx
sub eax, 0
je 0x102cc7db
sub eax, 1
je 0x102cc8e1
sub eax, 1
je 0x102cc76e
movzx ecx, word [ebx + 0x290]
cmp ecx, 0x10
jae 0x102cc5ea
xor edx, edx
mov eax, 8
div ecx
xor edx, edx
mov ecx, eax
mov eax, dword [esp + 0x24]
dec eax
add eax, ecx
div ecx
mov edx, dword [esp + 0x24]
mov ecx, eax
jmp 0x102cc5f0
shr ecx, 3
imul ecx, edx
lea eax, [edx + esi]
mov dword [esp + 0x28], ecx
cmp eax, dword [esp + 0x1c]
jg 0x102cc8fd
sub edi, dword [esp + 0x20]
lea eax, [ecx + 1]
and eax, 0xfffffffe
mov dword [esp + 0x24], eax
cmp edi, eax
jae 0x102cc624
mov ecx, ebx
call fcn.102cc2d0
cmp eax, dword [esp + 0x24]
jb 0x102cc8fd
cmp byte [esp + 0x12], 0
jbe 0x102cc751
nop
movzx ecx, word [ebx + 0x290]
mov eax, ecx
cmp eax, 4
je 0x102cc6da
cmp eax, 8
je 0x102cc6bb
cmp ecx, 0x18
jne 0x102cc8fd
mov ecx, dword [ebx + 0x12b4]
mov edi, dword [esp + 0x4c]
movzx eax, byte [ebx + ecx + 0x2b0]
inc ecx
mov dword [ebx + 0x12b4], ecx
mov byte [esp + 0x2c], al
push dword [esp + 0x2c]
movzx eax, byte [ecx + ebx + 0x2b0]
inc ecx
mov byte [esp + 0x34], al
push dword [esp + 0x34]
mov dword [ebx + 0x12b4], ecx
movzx eax, byte [ebx + ecx + 0x2b0]
mov byte [esp + 0x3c], al
lea eax, [ecx + 1]
push dword [esp + 0x3c]
mov dword [ebx + 0x12b4], eax
mov ecx, ebx
push ebp
mov eax, esi
inc esi
push eax
push edi
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call fcn.102ccef0
jmp 0x102cc73f
mov eax, dword [ebx + 0x12b4]
mov cl, byte [ebx + eax + 0x2b0]
inc eax
push ecx
mov dword [ebx + 0x12b4], eax
mov eax, esi
push ebp
push eax
push dword [esp + 0x58]
jmp 0x102cc72f
mov eax, dword [ebx + 0x12b4]
mov ecx, esi
mov edi, dword [esp + 0x4c]
inc esi
mov dl, byte [ebx + eax + 0x2b0]
inc eax
mov dword [ebx + 0x12b4], eax
mov al, dl
shr al, 4
movzx eax, al
push eax
push ebp
push ecx
push edi
push dword [esp + 0x64]
mov ecx, ebx
mov byte [esp + 0x27], dl
push dword [esp + 0x64]
call fcn.102cce00
mov al, byte [esp + 0x12]
add al, 0xff
mov byte [esp + 0x12], al
je 0x102cc749
mov al, byte [esp + 0x13]
mov ecx, esi
and al, 0xf
movzx eax, al
push eax
push ebp
push ecx
push edi
push dword [esp + 0x64]
mov ecx, ebx
inc esi
push dword [esp + 0x64]
call fcn.102cce00
mov al, byte [esp + 0x12]
dec al
mov byte [esp + 0x12], al
test al, al
jne 0x102cc630
mov eax, dword [esp + 0x28]
not al
test al, 1
mov eax, dword [esp + 0x18]
jne 0x102cc8d9
inc dword [ebx + 0x12b4]
jmp 0x102cc8d9
sub edi, dword [esp + 0x20]
cmp edi, 2
jae 0x102cc787
mov ecx, ebx
call fcn.102cc2d0
cmp eax, 2
jb 0x102cc8fd
mov eax, dword [ebx + 0x12b4]
mov dl, byte [ebx + eax + 0x2b0]
inc eax
mov dword [ebx + 0x12b4], eax
mov cl, byte [eax + ebx + 0x2b0]
inc eax
mov dword [ebx + 0x12b4], eax
movzx eax, dl
add esi, eax
movzx eax, cl
add ebp, eax
cmp esi, dword [esp + 0x1c]
jg 0x102cc8ef
mov eax, dword [esp + 0x18]
cmp ebp, eax
jle 0x102cc8d9
pop edi
sub ebp, eax
pop esi
mov dword [ebx + 0x12c0], ebp
pop ebp
pop ebx
add esp, 0x38
ret 0xc
xor esi, esi
inc ebp
jmp 0x102cc8d5
mov eax, dword [esp + 0x1c]
movzx edx, dl
add edx, esi
mov dword [esp + 0x24], edx
cmp eax, edx
jge 0x102cc7fa
mov edx, eax
mov dword [esp + 0x24], edx
movzx eax, word [ebx + 0x290]
cmp word [esp + 0x38], ax
jne 0x102cc881
sub edi, dword [esp + 0x20]
cmp edi, 2
jae 0x102cc821
mov ecx, ebx
call fcn.102cc2d0
cmp eax, 2
jb 0x102cc8fd
mov ecx, dword [ebx + 0x12b4]
mov edi, dword [esp + 0x24]
movzx eax, byte [ebx + ecx + 0x2b0]
inc ecx
mov byte [esp + 0x40], al
mov dword [ebx + 0x12b4], ecx
movzx eax, byte [ecx + ebx + 0x2b0]
mov byte [esp + 0x44], al
lea eax, [ecx + 1]
mov dword [ebx + 0x12b4], eax
cmp esi, edi
jge 0x102cc8d5
push dword [esp + 0x3c]
mov eax, esi
mov ecx, ebx
push dword [esp + 0x44]
inc esi
push dword [esp + 0x4c]
push ebp
push eax
push dword [esp + 0x60]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call fcn.102ccef0
cmp esi, edi
jl 0x102cc857
jmp 0x102cc8d5
mov edi, 4
mov byte [esp + 0x14], cl
mov byte [esp + 0x15], cl
cmp di, ax
jne 0x102cc8a3
mov al, cl
shr al, 4
and cl, 0xf
mov byte [esp + 0x14], al
mov byte [esp + 0x15], cl
xor edi, edi
cmp esi, edx
jge 0x102cc8d5
nop dword [eax]
movzx eax, byte [esp + edi + 0x14]
mov ecx, ebx
push eax
push ebp
push esi
push dword [esp + 0x58]
push dword [esp + 0x64]
push dword [esp + 0x64]
call fcn.102cce00
inc esi
xor edi, 1
cmp esi, dword [esp + 0x24]
jl 0x102cc8b0
mov eax, dword [esp + 0x18]
cmp ebp, eax
jl 0x102cc501
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x38
ret 0xc