Function at 0x100f8020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1029ad64]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1029a2c0], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
je 0x100f80aa
cmp byte [0x1029a2c1], 0
jne 0x100f80f8
mov byte [0x1029a2c1], 1
xor esi, esi
nop dword [eax + eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a2d4]
xor ebx, dword [0x1029a2d0]
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 - 0x24], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029a2c2]
xor al, bl
mov byte [esi + 0x1029a2c2], al
inc esi
cmp esi, 0xc
jb 0x100f8060
jmp 0x100f80f8
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a2d4]
xor ebx, dword [0x1029a2d0]
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 - 0x24], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029a2c2]
xor al, bl
mov byte [esi + 0x1029a2c2], al
inc esi
cmp esi, 0xc
jb 0x100f80b0
push 0xb
push 0x1029a2c2
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.100464c0
mov eax, dword [edi]
lea esi, [ebp - 0x1c]
mov ebx, dword [ebp - 8]
mov ecx, edi
call dword [eax + 4]
cmp ebx, 0x10
jb 0x100f8187
mov edi, dword [ebp - 0x1c]
mov ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100f8153
test dl, dl
je 0x100f814f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100f8153
add eax, 2
add ecx, 2
test dl, dl
jne 0x100f8133
xor esi, esi
jmp 0x100f8158
sbb esi, esi
or esi, 1
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x100f817b
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100f817b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.10138f1a
add esp, 8
jmp 0x100f81ac
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x100f81a7
test cl, cl
je 0x100f81a3
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x100f81a7
add eax, 2
add esi, 2
test cl, cl
jne 0x100f8187
xor esi, esi
jmp 0x100f81ac
sbb esi, esi
or esi, 1
test esi, esi
jne 0x100f8311
mov edi, dword [ebp - 0x20]
lea eax, [edi + 0x511624]
lea ecx, [eax + 0x1144]
cmp eax, ecx
je 0x100f81e1
nop word [eax + eax]
mov byte [eax], 0
mov dword [eax + 8], 0
add eax, 0x44
cmp eax, ecx
jne 0x100f81d0
add edi, 0x35624
lea eax, [edi + 0x4dc000]
mov dword [ebp - 0x20], eax
cmp edi, eax
je 0x100f8311
add edi, 0x60
nop dword [eax + eax]
push 0
push 0x1019e5cd
lea ecx, [edi - 0x34]
mov word [edi - 0x60], 0
mov byte [edi - 0x5e], 0
mov dword [edi - 0x5c], 0
mov dword [edi - 0x44], 0
mov dword [edi - 0x58], 0
mov dword [edi - 0x54], 0
mov dword [edi - 0x50], 0
mov dword [edi - 0x4c], 0
mov dword [edi - 0x48], 0
mov dword [edi - 0x40], 0
mov dword [edi - 0x3c], 0
mov dword [edi - 0x38], 0
call fcn.100464c0
push 0
push 0x1019e5cd
lea ecx, [edi - 0x1c]
call fcn.100464c0
mov dword [edi + 4], 0
lea esi, [edi + 0x26]
mov dword [edi], 0
mov ebx, 0x14
mov dword [edi - 4], 0
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
nop word [eax + eax]
cmp byte [esi - 0xa], 0
je 0x100f82f7
push 0
mov dword [esi - 6], 0
lea ecx, [esi + 0xa]
mov dword [esi - 2], 0
push 0x1019e5cd
mov dword [esi + 2], 0
mov dword [esi + 6], 0
mov dword [esi + 0x2a], 0x3f800000
call fcn.100464c0
mov dword [esi + 0x22], 0
mov byte [esi - 0xa], 0
mov byte [esi + 0x26], 0
add esi, 0x38
sub ebx, 1
jne 0x100f82b0
add edi, 0x4dc
lea eax, [edi - 0x60]
cmp eax, dword [ebp - 0x20]
jne 0x100f8200
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10139242
mov esp, ebp
pop ebp
ret 4