Function at 0x10023be0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002e338
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1004a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [0x1802898], 0x4e3
je 0x10023c34
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x1802898
push 1
call esi
cmp dword [edi], 0x4e3
jne 0x10023c28
mov ecx, dword [ebp + 0x1c]
lea esi, [ebp + 8]
mov edx, dword [ebp + 8]
cmp ecx, 0x10
mov edi, dword [ebp + 0x18]
cmovae esi, edx
cmp edi, 2
jne 0x10023c7f
movzx eax, byte [esi]
cmp al, 0x45
jne 0x10023c5e
movzx eax, byte [esi + 1]
cmp al, 0x4e
jne 0x10023c5e
xor eax, eax
jmp 0x10023c63
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10023c7f
push 2
push 0x100422d8
lea ecx, [ebp + 8]
call fcn.10020c80
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 8]
cmp ecx, 0x10
cmovae eax, edx
mov dword [ebp - 0x14], eax
cmp edi, 2
jne 0x10023ce7
movzx eax, byte [eax]
cmp al, 0x4b
jne 0x10023cac
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 1]
cmp al, 0x52
jne 0x10023cac
xor eax, eax
jmp 0x10023cb1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10023ce7
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x1802898
call esi
mov ecx, 0x1802898
mov eax, 0x1802884
mov eax, dword [eax]
mov dword [ecx], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 4
push ecx
call esi
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
cmp ecx, 0x10
lea eax, [ebp + 8]
cmovae eax, edx
mov dword [ebp - 0x14], eax
cmp edi, 2
jne 0x10023d49
movzx eax, byte [eax]
cmp al, 0x43
jne 0x10023d0e
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 1]
cmp al, 0x4e
jne 0x10023d0e
xor eax, eax
jmp 0x10023d13
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10023d49
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x1802898
call esi
mov ecx, 0x1802898
mov eax, 0x180288c
mov eax, dword [eax]
mov dword [ecx], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 4
push ecx
call esi
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
cmp ecx, 0x10
push eax
push 0x40
push edi
lea esi, [ebp + 8]
push 0x17a7ee5
cmovae esi, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push esi
push 0x17a7ee5
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push 0x17a7ee5
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x14]
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
push eax
cmovae esi, dword [ebp + 8]
push 0x40
push edi
push 0x17a7efb
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push esi
push 0x17a7efb
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push 0x17a7efb
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x14]
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
push eax
cmovae esi, dword [ebp + 8]
push 0x40
push edi
push 0x177d8b1
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push esi
push 0x177d8b1
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push 0x177d8b1
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x14]
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
push eax
cmovae esi, dword [ebp + 8]
push 0x40
push edi
push 0x177d8a5
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push esi
push 0x177d8a5
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push 0x177d8a5
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x14]
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
push eax
cmovae esi, dword [ebp + 8]
push 0x40
push edi
push 0x177d899
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push esi
push 0x177d899
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
add esp, 0xc
push eax
push dword [ebp - 0x14]
push edi
push 0x177d899
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x520daf
call esi
mov eax, 0x520daf
mov dword [eax], 0xb8
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 4
push 0x520daf
call esi
lea eax, [ebp - 0x68]
mov dword [ebp - 0x58], 0x44
push eax
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.r2discord.exe
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x68], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x68]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x64]
call esi
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x10023f57
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10023f4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10023f4d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100252ab
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002529a
mov esp, ebp
pop ebp
ret