Function at 0x140138283
Capabilities:
Allocate or change rwx memory
Generate random numbers via winapi

Disassembly:
jmp 0x14028afc0
push rbp
push rdi
sub rsp, 0x7c8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x156
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140488840]
xor rax, rbp
mov qword [rbp + 0x788], rax
lea rcx, [0x1404ae3f1]
call fcn.14013c063
nop
mov qword [rbp + 8], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14028b049
mov r9d, 0x40
lea r8, str.Success
lea rdx, str.Executable_modified_in_memory.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
jmp 0x14028b225
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14028b08b
mov r9d, 0x40
lea r8, str.Success
lea rdx, str.Executable_modified_in_memory.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
jmp 0x14028b225
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x68], 0x400
mov rax, qword [rbp + 0x48]
add rax, 0x1000
mov qword [rbp + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 0xa8], rax
mov r8d, 0x30
lea rdx, [rbp + 0xc8]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x14028b107
mov r9d, 0x40
lea r8, str.Success
lea rdx, str.Executable_modified_in_memory.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
jmp 0x14028b225
lea r9, [rbp + 0x114]
mov r8d, 0x40
mov edx, 0x400
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14028b159
mov r9d, 0x40
lea r8, str.Success
lea rdx, str.Executable_modified_in_memory.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
jmp 0x14028b225
lea r8, [rbp + 0x140]
mov edx, 0x400
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x14028b1c0
mov r9d, 0x40
lea r8, str.Success
lea rdx, str.Executable_modified_in_memory.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea r9, [rbp + 0x114]
mov r8d, dword [rbp + 0x114]
mov edx, 0x400
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
jmp 0x14028b225
mov r8d, 0x400
lea rdx, [rbp + 0x140]
mov rcx, qword [rbp + 0x88]
call fcn.140138e1d
nop
lea r9, [rbp + 0x114]
mov r8d, dword [rbp + 0x114]
mov edx, 0x400
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov r9d, 0x40
lea r8, str.Success
lea rdx, str.Executable_modified_in_memory.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x140408840]
call fcn.14013af5b
mov rcx, qword [rbp + 0x788]
xor rcx, rbp
call fcn.140138e0e
lea rsp, [rbp + 0x798]
pop rdi
pop rbp
ret