Function at 0x10108bd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x1029ad64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x102adea8]
push ebx
push esi
push edi
test al, 1
jne 0x10108d99
or eax, 1
mov ecx, 0x1029a5c8
mov dword [0x102adea8], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.10050910
cmp dword [ebp - 0x68], 0x10
lea edi, [ebp - 0x7c]
cmovae edi, dword [ebp - 0x7c]
cmp byte [0x1029a588], 0
je 0x10108c7a
cmp byte [0x1029a589], 0
jne 0x10108cc5
mov byte [0x1029a589], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a5c4]
xor ebx, dword [0x1029a5c0]
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 - 0xc8], edx
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x1029a58a], al
inc esi
cmp esi, 0x30
jb 0x10108c33
jmp 0x10108cc5
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a5c4]
xor ebx, dword [0x1029a5c0]
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 - 0xc8], edx
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x1029a58a], al
inc esi
cmp esi, 0x30
jb 0x10108c80
push 0x2f
push 0x1029a58a
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.100464c0
mov ecx, dword [0x1029bb5c]
lea edx, [ebp - 0x1c]
cmp dword [ebp - 8], 0x10
push 0
cmovae edx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push 1
push edi
push edx
mov eax, dword [eax + 0x150]
call eax
mov edx, dword [ebp - 8]
mov dword [0x102adea4], eax
cmp edx, 0x10
jb 0x10108d3f
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10108d35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10108d77
push edx
push ecx
call fcn.10138f1a
add esp, 8
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x10108d87
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10108d7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10108d7d
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 dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
mov eax, dword [0x102adeb0]
test al, 1
jne 0x10108f68
or eax, 1
mov ecx, 0x1029a620
mov dword [0x102adeb0], eax
lea eax, [ebp - 0x94]
push eax
call fcn.10050910
cmp dword [ebp - 0x80], 0x10
lea edi, [ebp - 0x94]
cmovae edi, dword [ebp - 0x94]
cmp byte [0x1029a5e8], 0
je 0x10108e3d
cmp byte [0x1029a5e9], 0
jne 0x10108e8b
mov byte [0x1029a5e9], 1
xor esi, esi
nop
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a61c]
xor ebx, dword [0x1029a618]
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 - 0xc8], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029a5ea]
xor al, bl
mov byte [esi + 0x1029a5ea], al
inc esi
cmp esi, 0x29
jb 0x10108df0
jmp 0x10108e8b
xor esi, esi
nop
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a61c]
xor ebx, dword [0x1029a618]
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 - 0xc8], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029a5ea]
xor al, bl
mov byte [esi + 0x1029a5ea], al
inc esi
cmp esi, 0x29
jb 0x10108e40
push 0x28
push 0x1029a5ea
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
call fcn.100464c0
mov ecx, dword [0x1029bb5c]
lea edx, [ebp - 0x34]
cmp dword [ebp - 0x20], 0x10
push 0
cmovae edx, dword [ebp - 0x34]
mov eax, dword [ecx]
push 1
push edi
push edx
mov eax, dword [eax + 0x150]
call eax
mov edx, dword [ebp - 0x20]
mov dword [0x102adeac], eax
cmp edx, 0x10
jb 0x10108f05
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10108efb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10108f40
push edx
push ecx
call fcn.10138f1a
add esp, 8
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 0x10
jb 0x10108f50
mov ecx, dword [ebp - 0x94]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10108f46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10108f46
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 dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
mov eax, dword [0x102adeb8]
test al, 1
jne 0x1010913e
or eax, 1
mov ecx, 0x1029a680
mov dword [0x102adeb8], eax
lea eax, [ebp - 0xac]
push eax
call fcn.10050910
cmp dword [ebp - 0x98], 0x10
lea edi, [ebp - 0xac]
cmovae edi, dword [ebp - 0xac]
cmp byte [0x1029a640], 0
je 0x1010900e
cmp byte [0x1029a641], 0
jne 0x1010905b
mov byte [0x1029a641], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a67c]
xor ebx, dword [0x1029a678]
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 - 0xc8], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029a642]
xor al, bl
mov byte [esi + 0x1029a642], al
inc esi
cmp esi, 0x34
jb 0x10108fc1
jmp 0x1010905b
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a67c]
xor ebx, dword [0x1029a678]
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 - 0xc8], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029a642]
xor al, bl
mov byte [esi + 0x1029a642], al
inc esi
cmp esi, 0x34
jb 0x10109010
push 0x33
push 0x1029a642
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
call fcn.100464c0
mov ecx, dword [0x1029bb5c]
lea edx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0x10
push 0
cmovae edx, dword [ebp - 0x4c]
mov eax, dword [ecx]
push 1
push edi
push edx
mov eax, dword [eax + 0x150]
call eax
mov edx, dword [ebp - 0x38]
mov dword [0x102adeb4], eax
cmp edx, 0x10
jb 0x101090d5
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x101090cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10109113
push edx
push ecx
call fcn.10138f1a
add esp, 8
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp edx, 0x10
jb 0x10109123
mov ecx, dword [ebp - 0xac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10109119
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10109119
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 dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
mov eax, dword [0x102adec0]
test al, 1
jne 0x1010931e
or eax, 1
mov ecx, 0x1029a6d8
mov dword [0x102adec0], eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10050910
cmp dword [ebp - 0xb0], 0x10
lea edi, [ebp - 0xc4]
cmovae edi, dword [ebp - 0xc4]
cmp byte [0x1029a6a0], 0
je 0x101091ed
cmp byte [0x1029a6a1], 0
jne 0x1010923b
mov byte [0x1029a6a1], 1
xor esi, esi
nop word [eax + eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a6d4]
xor ebx, dword [0x1029a6d0]
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 - 0xc8], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029a6a2]
xor al, bl
mov byte [esi + 0x1029a6a2], al
inc esi
cmp esi, 0x28
jb 0x101091a0
jmp 0x1010923b
xor esi, esi
nop
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a6d4]
xor ebx, dword [0x1029a6d0]
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 - 0xc8], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029a6a2]
xor al, bl
mov byte [esi + 0x1029a6a2], al
inc esi
cmp esi, 0x28
jb 0x101091f0
push 0x27
push 0x1029a6a2
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
call fcn.100464c0
mov ecx, dword [0x1029bb5c]
lea edx, [ebp - 0x64]
cmp dword [ebp - 0x50], 0x10
push 0
cmovae edx, dword [ebp - 0x64]
mov eax, dword [ecx]
push 1
push edi
push edx
mov eax, dword [eax + 0x150]
call eax
mov edx, dword [ebp - 0x50]
mov dword [0x102adebc], eax
cmp edx, 0x10
jb 0x101092b5
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x101092ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101092f3
push edx
push ecx
call fcn.10138f1a
add esp, 8
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
cmp edx, 0x10
jb 0x10109303
mov ecx, dword [ebp - 0xc4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x101092f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x101092f9
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 dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
mov eax, dword [0x1028ea4c]
mov ecx, dword [0x102adea4]
shr eax, 3
and al, 1
mov byte [ebp - 0xc8], al
mov eax, dword [ecx]
mov esi, dword [ebp - 0xc8]
push esi
push 4
call dword [eax + 0x74]
mov ecx, dword [0x102adeac]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [0x102adeb4]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [0x102adebc]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
test byte [0x1028ea4c], 8
pop edi
pop esi
pop ebx
je 0x10109383
mov eax, dword [0x1029ffa4]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10139242
mov esp, ebp
pop ebp
ret