Function at 0x100102b0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077dfd
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100a900c]
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 al, byte [0x100cac08]
mov byte [0x100cac09], al
test al, al
je 0x1001051c
cmp byte [0x100a909d], 0
mov ebx, dword [0x100cab48]
je 0x10010538
mov esi, 0x100a908c
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10010308
sub esi, ecx
call fcn.100209c0
mov edi, eax
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10010320
push esi
sub edx, ecx
mov ecx, ebx
push 0x100a908c
push edx
push edi
call fcn.100023c0
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010368
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push esi
call ebx
test eax, eax
je 0x10010368
lea eax, [ebp - 0x14]
mov dword [esi], 0x1006de80
push eax
push dword [ebp - 0x14]
push 4
push esi
call ebx
cmp byte [0x100a90dd], 0
mov eax, dword [0x100cab48]
mov dword [ebp - 0x14], eax
je 0x10010566
mov esi, str.i_f_
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10010385
sub esi, ecx
call fcn.100209c0
mov edi, eax
mov edx, edi
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100103a0
push esi
sub edx, ecx
mov ecx, dword [ebp - 0x14]
push str.i_f_
push edx
push edi
call fcn.100023c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100103e3
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push esi
call ebx
test eax, eax
je 0x100103e3
lea eax, [ebp - 0x14]
mov dword [esi], 0x1006e2c0
push eax
push dword [ebp - 0x14]
push 4
push esi
call ebx
cmp byte [0x100b0058], 0
mov eax, dword [0x100cab48]
mov dword [ebp - 0x14], eax
je 0x10010596
mov esi, str.ne._
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10010400
sub esi, ecx
call fcn.100209c0
mov edi, eax
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10010415
push esi
sub edx, ecx
mov ecx, dword [ebp - 0x14]
push str.ne._
push edx
push edi
call fcn.100023c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010458
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push esi
call ebx
test eax, eax
je 0x10010458
lea eax, [ebp - 0x14]
mov dword [esi], 0x1006dd60
push eax
push dword [ebp - 0x14]
push 4
push esi
call ebx
mov esi, dword [0x100cab48]
lea eax, [ebp - 0x18]
push eax
push 0x40
add esi, 0x8a720
mov dword [ebp - 0x1c], 5
push 5
push esi
mov dword [ebp - 0x20], esi
call ebx
mov eax, 0x1006dbc0
mov byte [esi], 0xe9
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call ebx
imul edi, dword [0x100cac0c], 0x3e8
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], vtable.std::_Func_impl_no_alloc_class__public:_void___thiscall_patch::fast::text_t::init_void_::_2::_lambda_1___void___.0
mov dword [ebp - 0x44], 0x100cabd0
mov dword [ebp - 0x24], eax
push 0x10010200
push edi
mov esi, 1
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.USER32.dll_SetTimer]
push esi
push 0
call ebx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x100104f3
nop word [eax + eax]
push 0x10010200
push edi
inc esi
push esi
push 0
call ebx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100104e0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1002a940
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1001051c
mov edx, dword [ecx]
lea eax, [ebp - 0x48]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
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.1007491a
mov esp, ebp
pop ebp
ret
xor esi, esi
xor edi, edi
nop dword [eax]
mov ecx, edi
lea esi, [esi + 1]
and ecx, 7
mov dl, 0x2d
rol dl, cl
add edi, 3
xor byte [esi + 0x100a908b], dl
cmp edi, 0x33
jb 0x10010540
mov byte [0x100a909d], 1
jmp 0x10010300
xor esi, esi
xor edi, edi
nop word [eax + eax]
mov ecx, edi
lea esi, [esi + 1]
and ecx, 7
mov dl, 0x2d
rol dl, cl
add edi, 3
xor byte [esi + 0x100a90cf], dl
cmp edi, 0x27
jb 0x10010570
mov byte [0x100a90dd], 1
jmp 0x1001037d
xor esi, esi
xor edi, edi
nop word [eax + eax]
mov ecx, edi
lea esi, [esi + 1]
and ecx, 7
mov dl, 0x2d
rol dl, cl
add edi, 3
xor byte [esi + 0x100b0043], dl
cmp edi, 0x3c
jb 0x100105a0
mov byte [0x100b0058], 1
jmp 0x100103f8