Function at 0x10106ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1029ad64]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1029a6f8], 0
push esi
je 0x10106c69
lea eax, [ebp - 0x1c]
mov byte [0x1029a6f8], 0
push eax
mov ecx, 0x1029a700
call fcn.1004f700
mov ecx, dword [0x1029bb6c]
lea edx, [ebp - 0x1c]
cmp dword [ebp - 8], 0x10
cmovae edx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x40]
call eax
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 0x40]
call eax
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x10106b3d
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10106b33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10106b33
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, 0x1029a718
push eax
call fcn.100564c0
mov ecx, dword [0x1029bb6c]
lea edx, [ebp - 0x1c]
cmp dword [ebp - 8], 0x10
cmovae edx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x40]
call eax
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 0x40]
call eax
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x10106ba5
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10106b9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10106b9b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, 0x1029a738
push eax
call fcn.1004fb10
mov ecx, dword [0x1029bb6c]
lea edx, [ebp - 0x34]
cmp dword [ebp - 0x20], 0x10
cmovae edx, dword [ebp - 0x34]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x40]
call eax
mov esi, eax
mov ecx, 0x1029a758
lea eax, [ebp - 0x1c]
push eax
call fcn.100861b0
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
mov eax, dword [esi]
cmovae ecx, dword [ebp - 0x1c]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x38]
call eax
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x10106c21
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10106c17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10106c59
push edx
push ecx
call fcn.10138f1a
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x10106c69
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10106c5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10106c5f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
add esp, 8
mov al, byte [0x1028e5e5]
cmp byte [0x1029a768], al
je 0x10106e53
mov byte [0x1029a768], al
test al, al
jne 0x10106cee
lea eax, [ebp - 0x1c]
mov ecx, 0x1029a770
push eax
call fcn.1004fb10
mov ecx, dword [0x1029bb6c]
lea edx, [ebp - 0x1c]
cmp dword [ebp - 8], 0x10
cmovae edx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x40]
call eax
mov esi, eax
mov ecx, 0x1029a790
lea eax, [ebp - 0x34]
push eax
call fcn.100861b0
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
mov eax, dword [esi]
cmovae ecx, dword [ebp - 0x34]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x38]
call eax
lea ecx, [ebp - 0x34]
call fcn.10044260
lea ecx, [ebp - 0x1c]
call fcn.10044260
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10139242
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [ebp - 0x34]
mov ecx, 0x1029a7a0
push eax
call fcn.1004fb10
mov ecx, dword [0x1029bb6c]
lea edx, [ebp - 0x34]
cmp dword [ebp - 0x20], 0x10
cmovae edx, dword [ebp - 0x34]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x40]
call eax
cmp byte [0x1029a7c0], 0
mov edi, eax
je 0x10106d84
cmp byte [0x1029a7c1], 0
jne 0x10106dc8
mov byte [0x1029a7c1], 1
xor esi, esi
nop dword [eax + eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a7fc]
xor ebx, dword [0x1029a7f8]
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 - 0x38], edx
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x1029a7c2], al
inc esi
cmp esi, 0x32
jb 0x10106d40
jmp 0x10106dc8
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a7fc]
xor ebx, dword [0x1029a7f8]
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 - 0x38], edx
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x1029a7c2], al
inc esi
cmp esi, 0x32
jb 0x10106d86
push 0x31
push 0x1029a7c2
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.100464c0
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
mov eax, dword [edi]
cmovae ecx, dword [ebp - 0x1c]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x38]
call eax
mov edx, dword [ebp - 8]
pop edi
pop ebx
cmp edx, 0x10
jb 0x10106e39
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10106e2f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10106e2f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
add esp, 8
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.10044260
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10139242
mov esp, ebp
pop ebp
ret