Function at 0x1010cc90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1029e280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x102ada08]
push ebx
push esi
push edi
test al, 1
jne 0x1010ce56
or eax, 1
mov ecx, 0x1029c850
mov dword [0x102ada08], eax
lea eax, [ebp - 0x34]
push eax
call fcn.10050fc0
cmp dword [ebp - 0x20], 0xf
lea edi, [ebp - 0x34]
cmova edi, dword [ebp - 0x34]
cmp byte [0x1029c810], 0
je 0x1010cd40
cmp byte [0x1029c811], 0
jne 0x1010cd8d
mov byte [0x1029c811], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029c84c]
xor ebx, dword [0x1029c848]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029c812]
xor al, bl
mov byte [esi + 0x1029c812], al
inc esi
cmp esi, 0x30
jb 0x1010ccf3
jmp 0x1010cd8d
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029c84c]
xor ebx, dword [0x1029c848]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029c812]
xor al, bl
mov byte [esi + 0x1029c812], al
inc esi
cmp esi, 0x30
jb 0x1010cd42
lea eax, [ebp - 0xc5]
push eax
push 0x1029c841
push 0x1029c812
lea ecx, [ebp - 0x1c]
call fcn.1004f490
mov ecx, dword [0x1029f24c]
lea edx, [ebp - 0x1c]
cmp dword [ebp - 8], 0xf
push 0
cmova edx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push 1
push edi
push edx
mov eax, dword [eax + 0x150]
call eax
mov ecx, dword [ebp - 8]
mov dword [0x102ada04], eax
cmp ecx, 0xf
jbe 0x1010cdfc
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010cdf2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010ce34
push ecx
push edx
call fcn.101169da
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp ecx, 0xf
jbe 0x1010ce44
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010ce3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1010ce3a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101169da
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov eax, dword [0x102ada10]
test al, 1
jne 0x1010d006
or eax, 1
mov ecx, 0x1029c8a8
mov dword [0x102ada10], eax
lea eax, [ebp - 0x64]
push eax
call fcn.10050fc0
cmp dword [ebp - 0x50], 0xf
lea edi, [ebp - 0x64]
cmova edi, dword [ebp - 0x64]
cmp byte [0x1029c870], 0
je 0x1010cef0
cmp byte [0x1029c871], 0
jne 0x1010cf3d
mov byte [0x1029c871], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029c8a4]
xor ebx, dword [0x1029c8a0]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029c872]
xor al, bl
mov byte [esi + 0x1029c872], al
inc esi
cmp esi, 0x29
jb 0x1010cea3
jmp 0x1010cf3d
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029c8a4]
xor ebx, dword [0x1029c8a0]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029c872]
xor al, bl
mov byte [esi + 0x1029c872], al
inc esi
cmp esi, 0x29
jb 0x1010cef2
lea eax, [ebp - 0xc5]
push eax
push 0x1029c89a
push 0x1029c872
lea ecx, [ebp - 0x4c]
call fcn.1004f490
mov ecx, dword [0x1029f24c]
lea edx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0xf
push 0
cmova edx, dword [ebp - 0x4c]
mov eax, dword [ecx]
push 1
push edi
push edx
mov eax, dword [eax + 0x150]
call eax
mov ecx, dword [ebp - 0x38]
mov dword [0x102ada0c], eax
cmp ecx, 0xf
jbe 0x1010cfac
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010cfa2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010cfe4
push ecx
push edx
call fcn.101169da
add esp, 8
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0xf
jbe 0x1010cff4
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010cfea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1010cfea
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101169da
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov eax, dword [0x102ada18]
test al, 1
jne 0x1010d1c7
or eax, 1
mov ecx, 0x1029c908
mov dword [0x102ada18], eax
lea eax, [ebp - 0x94]
push eax
call fcn.10050fc0
cmp dword [ebp - 0x80], 0xf
lea edi, [ebp - 0x94]
cmova edi, dword [ebp - 0x94]
cmp byte [0x1029c8c8], 0
je 0x1010d0a7
cmp byte [0x1029c8c9], 0
jne 0x1010d0f5
mov byte [0x1029c8c9], 1
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029c904]
xor ebx, dword [0x1029c900]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x1029c8ca], al
inc esi
cmp esi, 0x34
jb 0x1010d060
jmp 0x1010d0f5
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029c904]
xor ebx, dword [0x1029c900]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x1029c8ca], al
inc esi
cmp esi, 0x34
jb 0x1010d0b0
lea eax, [ebp - 0xc5]
push eax
push 0x1029c8fd
push 0x1029c8ca
lea ecx, [ebp - 0x7c]
call fcn.1004f490
mov ecx, dword [0x1029f24c]
lea edx, [ebp - 0x7c]
cmp dword [ebp - 0x68], 0xf
push 0
cmova edx, dword [ebp - 0x7c]
mov eax, dword [ecx]
push 1
push edi
push edx
mov eax, dword [eax + 0x150]
call eax
mov ecx, dword [ebp - 0x68]
mov dword [0x102ada14], eax
cmp ecx, 0xf
jbe 0x1010d164
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d15a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010d19f
push ecx
push edx
call fcn.101169da
add esp, 8
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
cmp ecx, 0xf
jbe 0x1010d1af
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d1a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1010d1a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101169da
add esp, 8
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
mov eax, dword [0x102ada20]
test al, 1
jne 0x1010d3ae
or eax, 1
mov ecx, 0x1029c960
mov dword [0x102ada20], eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10050fc0
cmp dword [ebp - 0xb0], 0xf
lea edi, [ebp - 0xc4]
cmova edi, dword [ebp - 0xc4]
cmp byte [0x1029c928], 0
je 0x1010d26d
cmp byte [0x1029c929], 0
jne 0x1010d2bb
mov byte [0x1029c929], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029c95c]
xor ebx, dword [0x1029c958]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029c92a]
xor al, bl
mov byte [esi + 0x1029c92a], al
inc esi
cmp esi, 0x28
jb 0x1010d220
jmp 0x1010d2bb
xor esi, esi
nop
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029c95c]
xor ebx, dword [0x1029c958]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029c92a]
xor al, bl
mov byte [esi + 0x1029c92a], al
inc esi
cmp esi, 0x28
jb 0x1010d270
lea eax, [ebp - 0xc5]
push eax
push 0x1029c951
push 0x1029c92a
lea ecx, [ebp - 0xac]
call fcn.1004f490
mov ecx, dword [0x1029f24c]
lea edx, [ebp - 0xac]
cmp dword [ebp - 0x98], 0xf
push 0
cmova edx, dword [ebp - 0xac]
mov eax, dword [ecx]
push 1
push edi
push edx
mov eax, dword [eax + 0x150]
call eax
mov ecx, dword [ebp - 0x98]
mov dword [0x102ada1c], eax
cmp ecx, 0xf
jbe 0x1010d33c
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d332
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010d383
push ecx
push edx
call fcn.101169da
add esp, 8
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
cmp ecx, 0xf
jbe 0x1010d393
mov edx, dword [ebp - 0xc4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010d389
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1010d389
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101169da
add esp, 8
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
mov eax, dword [0x1028f7b8]
mov ecx, dword [0x102ada04]
shr eax, 3
and al, 1
mov byte [ebp - 0xcc], al
mov eax, dword [ecx]
mov esi, dword [ebp - 0xcc]
push esi
push 4
call dword [eax + 0x74]
mov ecx, dword [0x102ada0c]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [0x102ada14]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [0x102ada1c]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
test byte [0x1028f7b8], 8
je 0x1010d410
mov eax, dword [0x1029fb74]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10116d02
mov esp, ebp
pop ebp
ret