Function at 0x10108a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x10266a40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10275678]
push ebx
push esi
push edi
test al, 1
jne 0x10108c16
or eax, 1
mov ecx, 0x102663f8
mov dword [0x10275678], eax
lea eax, [ebp - 0x34]
push eax
call fcn.10050a50
cmp dword [ebp - 0x20], 0xf
lea edi, [ebp - 0x34]
cmova edi, dword [ebp - 0x34]
cmp byte [0x102663b8], 0
je 0x10108b00
cmp byte [0x102663b9], 0
jne 0x10108b4d
mov byte [0x102663b9], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x102663f4]
xor ebx, dword [0x102663f0]
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 + 0x102663ba]
xor al, bl
mov byte [esi + 0x102663ba], al
inc esi
cmp esi, 0x30
jb 0x10108ab3
jmp 0x10108b4d
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x102663f4]
xor ebx, dword [0x102663f0]
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 + 0x102663ba]
xor al, bl
mov byte [esi + 0x102663ba], al
inc esi
cmp esi, 0x30
jb 0x10108b02
lea eax, [ebp - 0xc5]
push eax
push 0x102663e9
push 0x102663ba
lea ecx, [ebp - 0x1c]
call fcn.1004ef20
mov ecx, dword [0x10267a0c]
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 [0x10275674], eax
cmp ecx, 0xf
jbe 0x10108bbc
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10108bb2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10108bf4
push ecx
push edx
call fcn.1010be7a
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 0x10108c04
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10108bfa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10108bfa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010be7a
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov eax, dword [0x10275680]
test al, 1
jne 0x10108dc6
or eax, 1
mov ecx, 0x10266450
mov dword [0x10275680], eax
lea eax, [ebp - 0x64]
push eax
call fcn.10050a50
cmp dword [ebp - 0x50], 0xf
lea edi, [ebp - 0x64]
cmova edi, dword [ebp - 0x64]
cmp byte [0x10266418], 0
je 0x10108cb0
cmp byte [0x10266419], 0
jne 0x10108cfd
mov byte [0x10266419], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1026644c]
xor ebx, dword [0x10266448]
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 + 0x1026641a]
xor al, bl
mov byte [esi + 0x1026641a], al
inc esi
cmp esi, 0x29
jb 0x10108c63
jmp 0x10108cfd
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1026644c]
xor ebx, dword [0x10266448]
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 + 0x1026641a]
xor al, bl
mov byte [esi + 0x1026641a], al
inc esi
cmp esi, 0x29
jb 0x10108cb2
lea eax, [ebp - 0xc5]
push eax
push 0x10266442
push 0x1026641a
lea ecx, [ebp - 0x4c]
call fcn.1004ef20
mov ecx, dword [0x10267a0c]
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 [0x1027567c], eax
cmp ecx, 0xf
jbe 0x10108d6c
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10108d62
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10108da4
push ecx
push edx
call fcn.1010be7a
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 0x10108db4
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10108daa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10108daa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010be7a
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov eax, dword [0x10275688]
test al, 1
jne 0x10108f87
or eax, 1
mov ecx, 0x102664b0
mov dword [0x10275688], eax
lea eax, [ebp - 0x94]
push eax
call fcn.10050a50
cmp dword [ebp - 0x80], 0xf
lea edi, [ebp - 0x94]
cmova edi, dword [ebp - 0x94]
cmp byte [0x10266470], 0
je 0x10108e67
cmp byte [0x10266471], 0
jne 0x10108eb5
mov byte [0x10266471], 1
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x102664ac]
xor ebx, dword [0x102664a8]
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 + 0x10266472], al
inc esi
cmp esi, 0x34
jb 0x10108e20
jmp 0x10108eb5
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x102664ac]
xor ebx, dword [0x102664a8]
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 + 0x10266472], al
inc esi
cmp esi, 0x34
jb 0x10108e70
lea eax, [ebp - 0xc5]
push eax
push 0x102664a5
push 0x10266472
lea ecx, [ebp - 0x7c]
call fcn.1004ef20
mov ecx, dword [0x10267a0c]
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 [0x10275684], eax
cmp ecx, 0xf
jbe 0x10108f24
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10108f1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10108f5f
push ecx
push edx
call fcn.1010be7a
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 0x10108f6f
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10108f65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10108f65
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010be7a
add esp, 8
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
mov eax, dword [0x10275690]
test al, 1
jne 0x1010916e
or eax, 1
mov ecx, 0x10266508
mov dword [0x10275690], eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10050a50
cmp dword [ebp - 0xb0], 0xf
lea edi, [ebp - 0xc4]
cmova edi, dword [ebp - 0xc4]
cmp byte [0x102664d0], 0
je 0x1010902d
cmp byte [0x102664d1], 0
jne 0x1010907b
mov byte [0x102664d1], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x10266504]
xor ebx, dword [0x10266500]
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 + 0x102664d2]
xor al, bl
mov byte [esi + 0x102664d2], al
inc esi
cmp esi, 0x28
jb 0x10108fe0
jmp 0x1010907b
xor esi, esi
nop
xor edx, edx
mov ebx, esi
xor edx, dword [0x10266504]
xor ebx, dword [0x10266500]
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 + 0x102664d2]
xor al, bl
mov byte [esi + 0x102664d2], al
inc esi
cmp esi, 0x28
jb 0x10109030
lea eax, [ebp - 0xc5]
push eax
push 0x102664f9
push 0x102664d2
lea ecx, [ebp - 0xac]
call fcn.1004ef20
mov ecx, dword [0x10267a0c]
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 [0x1027568c], eax
cmp ecx, 0xf
jbe 0x101090fc
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101090f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10109143
push ecx
push edx
call fcn.1010be7a
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 0x10109153
mov edx, dword [ebp - 0xc4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10109149
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10109149
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010be7a
add esp, 8
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
mov eax, dword [0x1025a030]
mov ecx, dword [0x10275674]
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 [0x1027567c]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [0x10275684]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [0x1027568c]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
test byte [0x1025a030], 8
je 0x101091d0
mov eax, dword [0x10268334]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010c1a2
mov esp, ebp
pop ebp
ret