Function at 0x10108df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x10277534]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x102861b8]
push ebx
push esi
push edi
test al, 1
jne 0x10108fb6
or eax, 1
mov ecx, 0x10276ed0
mov dword [0x102861b8], eax
lea eax, [ebp - 0x34]
push eax
call fcn.10050250
cmp dword [ebp - 0x20], 0x10
lea edi, [ebp - 0x34]
cmovae edi, dword [ebp - 0x34]
cmp byte [0x10276e90], 0
je 0x10108ea0
cmp byte [0x10276e91], 0
jne 0x10108eed
mov byte [0x10276e91], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x10276ecc]
xor ebx, dword [0x10276ec8]
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 + 0x10276e92]
xor al, bl
mov byte [esi + 0x10276e92], al
inc esi
cmp esi, 0x30
jb 0x10108e53
jmp 0x10108eed
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x10276ecc]
xor ebx, dword [0x10276ec8]
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 + 0x10276e92]
xor al, bl
mov byte [esi + 0x10276e92], al
inc esi
cmp esi, 0x30
jb 0x10108ea2
lea eax, [ebp - 0xc5]
push eax
push 0x10276ec1
push 0x10276e92
lea ecx, [ebp - 0x1c]
call fcn.1004e6f0
mov ecx, dword [0x102784bc]
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 ecx, dword [ebp - 8]
mov dword [0x102861b4], eax
cmp ecx, 0x10
jb 0x10108f5c
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10108f52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10108f94
push ecx
push edx
call fcn.1010c1fa
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, 0x10
jb 0x10108fa4
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10108f9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10108f9a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010c1fa
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov eax, dword [0x102861c0]
test al, 1
jne 0x10109166
or eax, 1
mov ecx, 0x10276f28
mov dword [0x102861c0], eax
lea eax, [ebp - 0x64]
push eax
call fcn.10050250
cmp dword [ebp - 0x50], 0x10
lea edi, [ebp - 0x64]
cmovae edi, dword [ebp - 0x64]
cmp byte [0x10276ef0], 0
je 0x10109050
cmp byte [0x10276ef1], 0
jne 0x1010909d
mov byte [0x10276ef1], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x10276f24]
xor ebx, dword [0x10276f20]
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 + 0x10276ef2]
xor al, bl
mov byte [esi + 0x10276ef2], al
inc esi
cmp esi, 0x29
jb 0x10109003
jmp 0x1010909d
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x10276f24]
xor ebx, dword [0x10276f20]
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 + 0x10276ef2]
xor al, bl
mov byte [esi + 0x10276ef2], al
inc esi
cmp esi, 0x29
jb 0x10109052
lea eax, [ebp - 0xc5]
push eax
push 0x10276f1a
push 0x10276ef2
lea ecx, [ebp - 0x4c]
call fcn.1004e6f0
mov ecx, dword [0x102784bc]
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 ecx, dword [ebp - 0x38]
mov dword [0x102861bc], eax
cmp ecx, 0x10
jb 0x1010910c
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10109102
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10109144
push ecx
push edx
call fcn.1010c1fa
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, 0x10
jb 0x10109154
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010914a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1010914a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010c1fa
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov eax, dword [0x102861c8]
test al, 1
jne 0x10109327
or eax, 1
mov ecx, 0x10276f88
mov dword [0x102861c8], eax
lea eax, [ebp - 0x94]
push eax
call fcn.10050250
cmp dword [ebp - 0x80], 0x10
lea edi, [ebp - 0x94]
cmovae edi, dword [ebp - 0x94]
cmp byte [0x10276f48], 0
je 0x10109207
cmp byte [0x10276f49], 0
jne 0x10109255
mov byte [0x10276f49], 1
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x10276f84]
xor ebx, dword [0x10276f80]
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 + 0x10276f4a], al
inc esi
cmp esi, 0x34
jb 0x101091c0
jmp 0x10109255
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x10276f84]
xor ebx, dword [0x10276f80]
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 + 0x10276f4a], al
inc esi
cmp esi, 0x34
jb 0x10109210
lea eax, [ebp - 0xc5]
push eax
push 0x10276f7d
push 0x10276f4a
lea ecx, [ebp - 0x7c]
call fcn.1004e6f0
mov ecx, dword [0x102784bc]
lea edx, [ebp - 0x7c]
cmp dword [ebp - 0x68], 0x10
push 0
cmovae 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 [0x102861c4], eax
cmp ecx, 0x10
jb 0x101092c4
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101092ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101092ff
push ecx
push edx
call fcn.1010c1fa
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, 0x10
jb 0x1010930f
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10109305
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10109305
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010c1fa
add esp, 8
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
mov eax, dword [0x102861d0]
test al, 1
jne 0x1010950e
or eax, 1
mov ecx, 0x10276fe0
mov dword [0x102861d0], eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10050250
cmp dword [ebp - 0xb0], 0x10
lea edi, [ebp - 0xc4]
cmovae edi, dword [ebp - 0xc4]
cmp byte [0x10276fa8], 0
je 0x101093cd
cmp byte [0x10276fa9], 0
jne 0x1010941b
mov byte [0x10276fa9], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x10276fdc]
xor ebx, dword [0x10276fd8]
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 + 0x10276faa]
xor al, bl
mov byte [esi + 0x10276faa], al
inc esi
cmp esi, 0x28
jb 0x10109380
jmp 0x1010941b
xor esi, esi
nop
xor edx, edx
mov ebx, esi
xor edx, dword [0x10276fdc]
xor ebx, dword [0x10276fd8]
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 + 0x10276faa]
xor al, bl
mov byte [esi + 0x10276faa], al
inc esi
cmp esi, 0x28
jb 0x101093d0
lea eax, [ebp - 0xc5]
push eax
push 0x10276fd1
push 0x10276faa
lea ecx, [ebp - 0xac]
call fcn.1004e6f0
mov ecx, dword [0x102784bc]
lea edx, [ebp - 0xac]
cmp dword [ebp - 0x98], 0x10
push 0
cmovae 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 [0x102861cc], eax
cmp ecx, 0x10
jb 0x1010949c
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10109492
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101094e3
push ecx
push edx
call fcn.1010c1fa
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, 0x10
jb 0x101094f3
mov edx, dword [ebp - 0xc4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101094e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x101094e9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010c1fa
add esp, 8
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
mov eax, dword [0x1026a9c4]
mov ecx, dword [0x102861b4]
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 [0x102861bc]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [0x102861c4]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [0x102861cc]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
test byte [0x1026a9c4], 8
je 0x10109570
mov eax, dword [0x10278dd4]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010c522
mov esp, ebp
pop ebp
ret