Function at 0x100ff930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1024b8c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1025deb8]
push ebx
push esi
push edi
test al, 1
jne 0x100ffaf3
or eax, 1
mov ecx, 0x1024b268
mov dword [0x1025deb8], eax
lea eax, [ebp - 0x34]
push eax
call fcn.10051490
cmp dword [ebp - 0x20], 0xf
lea edi, [ebp - 0x34]
cmova edi, dword [ebp - 0x34]
cmp byte [0x1024b228], 0
je 0x100ff9da
cmp byte [0x1024b229], 0
jne 0x100ffa25
mov byte [0x1024b229], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1024b264]
xor ebx, dword [0x1024b260]
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 + 0x1024b22a], al
inc esi
cmp esi, 0x30
jb 0x100ff993
jmp 0x100ffa25
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1024b264]
xor ebx, dword [0x1024b260]
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 + 0x1024b22a], al
inc esi
cmp esi, 0x30
jb 0x100ff9e0
lea eax, [ebp - 0xc5]
push eax
push 0x1024b259
push 0x1024b22a
lea ecx, [ebp - 0x1c]
call fcn.1004f960
mov ecx, dword [0x1024c6dc]
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 [0x1025deb4], eax
cmp ecx, 0xf
jbe 0x100ffa94
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ffa8a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ffacc
push ecx
push edx
call fcn.10102d1a
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 0x100ffadc
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ffad2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100ffad2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10102d1a
add esp, 8
mov eax, dword [0x1025deb8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
test al, 2
jne 0x100ffca3
or eax, 2
mov ecx, 0x1024b2c0
mov dword [0x1025deb8], eax
lea eax, [ebp - 0x64]
push eax
call fcn.10051490
cmp dword [ebp - 0x50], 0xf
lea edi, [ebp - 0x64]
cmova edi, dword [ebp - 0x64]
cmp byte [0x1024b288], 0
je 0x100ffb87
cmp byte [0x1024b289], 0
jne 0x100ffbd5
mov byte [0x1024b289], 1
xor esi, esi
nop dword [eax + eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1024b2bc]
xor ebx, dword [0x1024b2b8]
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 + 0x1024b28a], al
inc esi
cmp esi, 0x29
jb 0x100ffb40
jmp 0x100ffbd5
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1024b2bc]
xor ebx, dword [0x1024b2b8]
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 + 0x1024b28a], al
inc esi
cmp esi, 0x29
jb 0x100ffb90
lea eax, [ebp - 0xc5]
push eax
push 0x1024b2b2
push 0x1024b28a
lea ecx, [ebp - 0x4c]
call fcn.1004f960
mov ecx, dword [0x1024c6dc]
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 [0x1025debc], eax
cmp ecx, 0xf
jbe 0x100ffc44
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ffc3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ffc7c
push ecx
push edx
call fcn.10102d1a
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 0x100ffc8c
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ffc82
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100ffc82
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10102d1a
add esp, 8
mov eax, dword [0x1025deb8]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
test al, 4
jne 0x100ffe5c
or eax, 4
mov ecx, 0x1024b320
mov dword [0x1025deb8], eax
lea eax, [ebp - 0x94]
push eax
call fcn.10051490
cmp dword [ebp - 0x80], 0xf
lea edi, [ebp - 0x94]
cmova edi, dword [ebp - 0x94]
cmp byte [0x1024b2e0], 0
je 0x100ffd3b
cmp byte [0x1024b2e1], 0
jne 0x100ffd85
mov byte [0x1024b2e1], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1024b31c]
xor ebx, dword [0x1024b318]
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 + 0x1024b2e2], al
inc esi
cmp esi, 0x34
jb 0x100ffcf4
jmp 0x100ffd85
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1024b31c]
xor ebx, dword [0x1024b318]
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 + 0x1024b2e2], al
inc esi
cmp esi, 0x34
jb 0x100ffd40
lea eax, [ebp - 0xc5]
push eax
push 0x1024b315
push 0x1024b2e2
lea ecx, [ebp - 0x7c]
call fcn.1004f960
mov ecx, dword [0x1024c6dc]
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 [0x1025dec0], eax
cmp ecx, 0xf
jbe 0x100ffdf4
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ffdea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ffe2f
push ecx
push edx
call fcn.10102d1a
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 0x100ffe3f
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ffe35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100ffe35
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10102d1a
add esp, 8
mov eax, dword [0x1025deb8]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
test al, 8
jne 0x10100038
or eax, 8
mov ecx, 0x1024b378
mov dword [0x1025deb8], eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10051490
cmp dword [ebp - 0xb0], 0xf
lea edi, [ebp - 0xc4]
cmova edi, dword [ebp - 0xc4]
cmp byte [0x1024b340], 0
je 0x100ffef7
cmp byte [0x1024b341], 0
jne 0x100fff45
mov byte [0x1024b341], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1024b374]
xor ebx, dword [0x1024b370]
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 + 0x1024b342], al
inc esi
cmp esi, 0x28
jb 0x100ffeb0
jmp 0x100fff45
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1024b374]
xor ebx, dword [0x1024b370]
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 + 0x1024b342], al
inc esi
cmp esi, 0x28
jb 0x100fff00
lea eax, [ebp - 0xc5]
push eax
push 0x1024b369
push 0x1024b342
lea ecx, [ebp - 0xac]
call fcn.1004f960
mov ecx, dword [0x1024c6dc]
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 [0x1025dec4], eax
cmp ecx, 0xf
jbe 0x100fffc6
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100fffbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1010000d
push ecx
push edx
call fcn.10102d1a
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 0x1010001d
mov edx, dword [ebp - 0xc4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10100013
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10100013
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10102d1a
add esp, 8
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
mov eax, dword [0x10254b8c]
mov ecx, dword [0x1025deb4]
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 [0x1025debc]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [0x1025dec0]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [0x1025dec4]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
test byte [0x10254b8c], 8
je 0x1010009a
mov eax, dword [0x1024d004]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10103042
mov esp, ebp
pop ebp
ret