Function at 0x10109740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1030cb40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1030c628], 0
push esi
je 0x101098f9
lea eax, [ebp - 0x1c]
mov byte [0x1030c628], 0
push eax
mov ecx, 0x1030c630
call fcn.1004e070
mov ecx, dword [0x1030d96c]
lea edx, [ebp - 0x1c]
cmp dword [ebp - 8], 0xf
cmova 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 ecx, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x101097cd
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101097c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x101097c3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010f1fa
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, 0x1030c648
push eax
call fcn.10054520
mov ecx, dword [0x1030d96c]
lea edx, [ebp - 0x1c]
cmp dword [ebp - 8], 0xf
cmova 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 ecx, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x10109835
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010982b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1010982b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010f1fa
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, 0x1030c668
push eax
call fcn.1004e470
mov ecx, dword [0x1030d96c]
lea edx, [ebp - 0x34]
cmp dword [ebp - 0x20], 0xf
cmova edx, dword [ebp - 0x34]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x40]
call eax
mov esi, eax
mov ecx, 0x1030c688
lea eax, [ebp - 0x1c]
push eax
call fcn.10086b50
cmp dword [ebp - 8], 0xf
lea ecx, [ebp - 0x1c]
mov eax, dword [esi]
cmova ecx, dword [ebp - 0x1c]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x38]
call eax
mov ecx, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x101098b1
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101098a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101098e9
push ecx
push edx
call fcn.1010f1fa
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 0x101098f9
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101098ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x101098ef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010f1fa
add esp, 8
mov al, byte [0x102ff395]
cmp byte [0x1030c698], al
je 0x10109a92
mov byte [0x1030c698], al
test al, al
lea eax, [ebp - 0x1c]
jne 0x1010997e
push eax
mov ecx, 0x1030c6a0
call fcn.1004e470
mov ecx, dword [0x1030d96c]
lea edx, [ebp - 0x1c]
cmp dword [ebp - 8], 0xf
cmova edx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x40]
call eax
mov esi, eax
mov ecx, 0x1030c6c0
lea eax, [ebp - 0x34]
push eax
call fcn.10086b50
cmp dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x34]
mov eax, dword [esi]
cmova ecx, dword [ebp - 0x34]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x38]
call eax
lea ecx, [ebp - 0x34]
call fcn.10042fe0
lea ecx, [ebp - 0x1c]
call fcn.10042fe0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f522
mov esp, ebp
pop ebp
ret
push ebx
push edi
push eax
mov ecx, 0x1030c6d0
call fcn.1004e470
mov ecx, dword [0x1030d96c]
lea edx, [ebp - 0x1c]
cmp dword [ebp - 8], 0xf
cmova edx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x40]
call eax
cmp byte [0x1030c6f0], 0
mov edi, eax
je 0x10109a06
cmp byte [0x1030c6f1], 0
jne 0x10109a55
mov byte [0x1030c6f1], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1030c72c]
xor ebx, dword [0x1030c728]
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 eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x1030c6f2], al
inc esi
cmp esi, 0x32
jb 0x101099c5
jmp 0x10109a55
xor esi, esi
nop dword [eax + eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1030c72c]
xor ebx, dword [0x1030c728]
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 eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1030c6f2]
xor al, bl
mov byte [esi + 0x1030c6f2], al
inc esi
cmp esi, 0x32
jb 0x10109a10
lea eax, [ebp - 0x35]
push eax
push 0x1030c723
push 0x1030c6f2
lea ecx, [ebp - 0x34]
call fcn.1004d640
cmp dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x34]
mov eax, dword [edi]
cmova ecx, dword [ebp - 0x34]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x38]
call eax
lea ecx, [ebp - 0x34]
call fcn.10042fe0
lea ecx, [ebp - 0x1c]
call fcn.10042fe0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1010f522
mov esp, ebp
pop ebp
ret