Function at 0x1008ea3b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c845d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100ec084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ebx, eax
xor esi, esi
cmp dword [edi + 0x1c], 3
mov ecx, ebx
push edi
push dword [ebp - 0x2c]
mov eax, dword [ebx]
jne 0x1008e8c8
call dword [eax + 0x14]
mov esi, eax
mov dword [ebp - 0x30], eax
jmp 0x1008e8da
mov eax, dword [eax + 0x10]
call eax
test al, al
mov ecx, 1
cmovne esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp - 0x38]
xor edi, edi
mov eax, dword [ecx + 0x18]
dec eax
cmp eax, 0x11
ja case.default.0x1008e8e8
jmp dword [eax*4 + 0x1008eda0]
cmp dword [ecx + 0x1c], 3
jne 0x1008e943
xor edx, edx
mov dword [ebp - 0x34], edx
test esi, esi
jle case.default.0x1008e8e8
nop
mov eax, dword [ebx]
push edx
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [eax + 0x88]
test eax, eax
jns 0x1008e91a
mov eax, 0xa
jmp 0x1008e931
cmp eax, 0x80
jae 0x1008e928
mov eax, 1
jmp 0x1008e931
push eax
call fcn.1007b6c0
add esp, 4
mov edx, dword [ebp - 0x34]
add edi, eax
mov ecx, dword [ebp - 0x38]
inc edx
mov dword [ebp - 0x34], edx
cmp edx, esi
jl 0x1008e900
jmp case.default.0x1008e8e8
mov eax, dword [ebx]
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [eax + 0x30]
push eax
call fcn.100561e0
add esp, 4
mov edi, eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c30b8
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x1c], 3
jne 0x1008e9b3
xor edx, edx
mov dword [ebp - 0x34], edx
test esi, esi
jle case.default.0x1008e8e8
mov eax, dword [ebx]
push edx
push ecx
push dword [ebp - 0x2c]
mov eax, dword [eax + 0x8c]
mov ecx, ebx
call eax
push edx
push eax
call fcn.1007b700
mov edx, dword [ebp - 0x34]
add esp, 8
mov ecx, dword [ebp - 0x38]
inc edx
add edi, eax
mov dword [ebp - 0x34], edx
cmp edx, esi
jl 0x1008e986
jmp case.default.0x1008e8e8
mov eax, dword [ebx]
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
mov eax, dword [eax + 0x34]
call eax
push edx
push eax
call fcn.1007b700
add esp, 8
jmp 0x1008e957
cmp dword [ecx + 0x1c], 3
jne 0x1008ea25
xor edx, edx
mov dword [ebp - 0x34], edx
test esi, esi
jle case.default.0x1008e8e8
nop
mov eax, dword [ebx]
push edx
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [eax + 0x88]
mov ecx, eax
add eax, eax
sar ecx, 0x1f
xor ecx, eax
cmp ecx, 0x80
jae 0x1008ea07
mov eax, 1
jmp 0x1008ea10
push ecx
call fcn.1007b6c0
add esp, 4
mov edx, dword [ebp - 0x34]
add edi, eax
mov ecx, dword [ebp - 0x38]
inc edx
mov dword [ebp - 0x34], edx
cmp edx, esi
jl 0x1008e9e0
jmp case.default.0x1008e8e8
mov eax, dword [ebx]
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [eax + 0x30]
push eax
call fcn.10056210
jmp 0x1008e954
cmp dword [ecx + 0x1c], 3
jne 0x1008ea95
xor edx, edx
mov dword [ebp - 0x34], edx
test esi, esi
jle case.default.0x1008e8e8
nop
mov eax, dword [ebx]
push edx
push ecx
push dword [ebp - 0x2c]
mov eax, dword [eax + 0x8c]
mov ecx, ebx
call eax
mov esi, edx
mov ecx, edx
shld edx, eax, 1
sar ecx, 0x1f
add eax, eax
sar esi, 0x1f
xor ecx, edx
xor esi, eax
push ecx
push esi
call fcn.1007b700
mov edx, dword [ebp - 0x34]
add esp, 8
mov ecx, dword [ebp - 0x38]
inc edx
add edi, eax
mov dword [ebp - 0x34], edx
cmp edx, dword [ebp - 0x30]
jl 0x1008ea50
jmp case.default.0x1008e8e8
mov eax, dword [ebx]
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
mov eax, dword [eax + 0x34]
call eax
push edx
push eax
call fcn.1008ff40
add esp, 8
jmp 0x1008e957
cmp dword [ecx + 0x1c], 3
jne 0x1008eaff
xor edx, edx
mov dword [ebp - 0x30], edx
test esi, esi
jle case.default.0x1008e8e8
mov eax, dword [ebx]
push edx
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [eax + 0x90]
cmp eax, 0x80
jae 0x1008eae1
mov eax, 1
jmp 0x1008eaea
push eax
call fcn.1007b6c0
add esp, 4
mov edx, dword [ebp - 0x30]
add edi, eax
mov ecx, dword [ebp - 0x38]
inc edx
mov dword [ebp - 0x30], edx
cmp edx, esi
jl 0x1008eac4
jmp case.default.0x1008e8e8
mov eax, dword [ebx]
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [eax + 0x38]
push eax
call fcn.10055a10
jmp 0x1008e954
cmp dword [ecx + 0x1c], 3
jne 0x1008eb58
xor edx, edx
mov dword [ebp - 0x30], edx
test esi, esi
jle case.default.0x1008e8e8
mov eax, dword [ebx]
push edx
push ecx
push dword [ebp - 0x2c]
mov eax, dword [eax + 0x94]
mov ecx, ebx
call eax
push edx
push eax
call fcn.1007b700
mov edx, dword [ebp - 0x30]
add esp, 8
mov ecx, dword [ebp - 0x38]
inc edx
add edi, eax
mov dword [ebp - 0x30], edx
cmp edx, esi
jl 0x1008eb28
jmp case.default.0x1008e8e8
mov eax, dword [ebx]
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
mov eax, dword [eax + 0x3c]
call eax
push edx
push eax
call fcn.1007b700
add esp, 8
jmp 0x1008e957
lea edi, [esi*4]
jmp case.default.0x1008e8e8
lea edi, [esi*8]
jmp case.default.0x1008e8e8
mov edi, esi
jmp case.default.0x1008e8e8
cmp dword [ecx + 0x1c], 3
jne 0x1008ebd1
xor edx, edx
mov dword [ebp - 0x30], edx
test esi, esi
jle case.default.0x1008e8e8
mov eax, dword [ebx]
push edx
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [eax + 0xac]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 0x30]
add edi, eax
mov ecx, dword [ebp - 0x38]
inc edx
mov dword [ebp - 0x30], edx
cmp edx, esi
jl 0x1008eba6
jmp case.default.0x1008e8e8
mov eax, dword [ebx]
push 0
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [eax + 0x54]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x20]
jmp 0x1008e957
cmp dword [ecx + 0x1c], 3
jne 0x1008ec48
xor edx, edx
mov dword [ebp - 0x30], edx
test esi, esi
jle case.default.0x1008e8e8
nop dword [eax]
mov eax, dword [ebx]
push edx
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [eax + 0xac]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x34], eax
cmp eax, 0x80
jae 0x1008ec27
mov eax, 1
jmp 0x1008ec30
push eax
call fcn.1007b6c0
add esp, 4
mov edx, dword [ebp - 0x30]
add eax, dword [ebp - 0x34]
inc edx
mov ecx, dword [ebp - 0x38]
add edi, eax
mov dword [ebp - 0x30], edx
cmp edx, esi
jl 0x1008ec00
jmp case.default.0x1008e8e8
mov eax, dword [ebx]
push 0
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [eax + 0x54]
push eax
call fcn.1008edf0
jmp 0x1008e954
cmp dword [ecx + 0x1c], 3
jne 0x1008ecbc
xor edx, edx
mov dword [ebp - 0x30], edx
test esi, esi
jle case.default.0x1008e8e8
mov eax, dword [ebx]
push edx
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [eax + 0xa8]
mov eax, dword [eax + 8]
test eax, eax
jns 0x1008ec90
mov eax, 0xa
jmp 0x1008eca7
cmp eax, 0x80
jae 0x1008ec9e
mov eax, 1
jmp 0x1008eca7
push eax
call fcn.1007b6c0
add esp, 4
mov edx, dword [ebp - 0x30]
add edi, eax
mov ecx, dword [ebp - 0x38]
inc edx
mov dword [ebp - 0x30], edx
cmp edx, esi
jl 0x1008ec73
jmp case.default.0x1008e8e8
mov eax, dword [ebx]
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [eax + 0x50]
mov eax, dword [eax + 8]
push eax
call fcn.100561e0
jmp 0x1008e954
xor eax, eax
mov dword [ebp - 0x34], eax
test esi, esi
jle case.default.0x1008e8e8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp dword [ecx + 0x1c], 3
lea eax, [ebp - 0x28]
mov edx, dword [ebx]
mov dword [ebp - 4], 0
push eax
jne 0x1008ed19
mov eax, dword [ebp - 0x34]
push eax
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [edx + 0xb0]
jmp 0x1008ed22
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call dword [edx + 0x58]
mov dword [ebp - 0x30], eax
mov eax, dword [eax + 0x10]
cmp eax, 0x80
jae 0x1008ed36
mov ecx, 1
jmp 0x1008ed47
push eax
call fcn.1007b6c0
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
add eax, ecx
add edi, eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x1008ed82
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1008ed78
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008ed99
push edx
push ecx
call fcn.100c2c4d
add esp, 8
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, esi
jge case.default.0x1008e8e8
mov ecx, dword [ebp - 0x38]
jmp 0x1008ece2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
sub bl, 8
adc byte [ebx + ebp*8 + 8], dh
adc byte [edi - 0x17], dh
or byte [eax], dl
adc eax, 0xef1008eb
jmp 0x1008edaf
adc bh, ch
call 0xfb88fdbe
or byte [eax], dl
je 0x1008eda5
or byte [eax], dl
mov ebx, gs
or byte [eax], dl
aad 0xec
or byte [eax], dl
xchg ebx, eax
jmp 0x1008edcf
adc byte [ecx + 0x601008ea], dh
in al, dx
or byte [eax], dl
je 0x1008edc5
or byte [eax], dl
sub bl, 8
adc ah, cl
jmp 0xfa43fdee