joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002d30
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rsi, qword [rcx + 0x18]
xor r12d, r12d
mov dword [rbp + 0x3b0], r12d
mov r14, r8
mov qword [rsp + 0x40], r12
mov r15, rdx
mov qword [rbp + 0x3c8], r12
mov rdi, rcx
mov qword [rbp + 0x3c0], r12
mov ebx, r12d
mov qword [r8], r12
test rsi, rsi
jne 0x140002d95
lea rdx, str.____Cannot_query_ntoskrnl_loaded_base__abort_r_n
mov ecx, 1
call fcn.14000f6cc
jmp 0x140002efa
mov rdx, rsi
lea rcx, str.___Loaded_ntoskrnl_base_0x_llX_r_n
call fcn.140002270
mov ecx, 0x7ffe0030
lea rax, [rsp + 0x60]
cmp rax, rcx
je 0x140002ddc
movzx edx, word [rcx]
lea rax, [rsp + 0x60]
test dx, dx
je 0x140002dd8
lea r8, [rsp + 0x60]
sub rcx, r8
mov word [rax], dx
add rax, 2
movzx edx, word [rcx + rax]
test dx, dx
jne 0x140002dc8
mov word [rax], r12w
lea rdx, str._system32_ntoskrnl.exe
lea rcx, [rsp + 0x60]
call fcn.140001400
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9, [rbp + 0x3c0]
xor edx, edx
lea r8, [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrLoadDll]
test eax, eax
js 0x140002eec
mov rdx, qword [rbp + 0x3c0]
test rdx, rdx
je 0x140002eec
lea rcx, str.___Ntoskrnl.exe_mapped_at_0x_llX_r_n
call fcn.140002270
mov rax, qword [rbp + 0x3c0]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
lea rdx, [rbp + 0x3c8]
mov r9, r15
mov qword [rdi + 0x20], rax
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400026b0
test eax, eax
jne 0x140002e73
lea rdx, str.____Error_while_mapping_payload__abort_r_n
jmp 0x140002d86
mov rdx, qword [rbp + 0x3c8]
lea rax, [rbp + 0x3b0]
mov r9, qword [rbp + 0x3c0]
mov r8, qword [rsp + 0x40]
mov ecx, dword [rdi + 8]
mov qword [rsp + 0x30], rax
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov qword [r14], rdx
call fcn.14000deb8
mov rbx, rax
test rax, rax
je 0x140002efa
mov edx, dword [rbp + 0x3b0]
test edx, edx
jne 0x140002ede
lea rdx, str.____Unexpected_shellcode_procedure_size__abort_r_n
mov ecx, 1
call fcn.14000f6cc
mov edx, 0x800
mov rcx, rbx
call fcn.14000e158
mov rbx, r12
jmp 0x140002efa
lea rcx, str.___Bootstrap_code_size__0x_lX_r_n
call fcn.140002270
jmp 0x140002efa
mov edx, eax
lea rcx, str.____Error_while_loading_ntoskrnl.exe
call fcn.14001055c
mov rax, rbx
add rsp, 0x470
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400037e8
Capabilities:
Disable driver code integrity
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x430
xor ebx, ebx
lea rdi, str.ntoskrnl.exe
mov qword [rax + 0x10], rbx
cmp ecx, 0x23f0
lea rax, str.CI.dll
mov ebp, ecx
cmovae rdi, rax
call fcn.140011bc8
test eax, eax
je 0x14000393d
mov edx, 0x104
mov word [rsp + 0x20], bx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000393d
lea rdx, [0x14003555c]
lea rcx, [rsp + 0x20]
call fcn.140001400
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140001400
xor edx, edx
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
je 0x14000391b
mov rdx, rdi
lea rcx, str.___Module___ws__loaded_for_symbols_lookup_r_n
call fcn.140002270
call fcn.14000f0f8
mov rdx, rsi
mov rcx, rdi
mov r14, rax
call fcn.140011a74
test eax, eax
je 0x1400038ff
lea rax, str.g_CiOptions
cmp ebp, 0x23f0
lea rcx, str.g_CiEnabled
cmovae rcx, rax
lea rdx, [rsp + 0x458]
call fcn.140011af8
test eax, eax
je 0x1400038f6
mov rbx, r14
lea rdx, str.___Symbol_resolved_to_0x_llX_address_r_n
sub rbx, rsi
mov ecx, 2
add rbx, qword [rsp + 0x458]
mov r8, rbx
call fcn.14000f6cc
jmp 0x140003910
lea rdx, str.____Unable_to_find_specified_symbol_r_n
jmp 0x140003906
lea rdx, str.____Unable_to_load_symbols_for_file_r_n
mov ecx, 1
call fcn.14000f6cc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140003938
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rdi
lea rdx, str.____Could_not_load___ws___GetLastError__lu_r_n
mov r9d, eax
mov ecx, 1
call fcn.14000f6cc
mov rax, rbx
jmp 0x14000393f
xor eax, eax
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000611c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x28], 0
mov edi, r9d
and dword [rax + 0x20], 0
mov rsi, r8
mov dword [rax - 0x10], r9d
mov r9d, 0x10
mov dword [rax - 0x30], r9d
lea r8, [rsp + 0x40]
mov qword [rax - 0x18], rdx
lea rax, [rax - 0x18]
mov edx, 0x22e400
mov qword [rsp + 0x20], rax
mov rbx, rcx
call fcn.14000e190
test eax, eax
jns 0x140006180
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400061bd
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
cmp dword [rsp + 0x80], 0
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
je 0x1400061b7
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400061bd
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140009734
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r9d, r9d
mov r8, rcx
mov qword [rcx], r9
mov r11, rdx
mov r10d, r9d
mov ecx, r9d
lea ebx, [r9 + 0x69]
movzx eax, r11b
mov edx, 0xaa
cmp al, bl
cmovne rdx, rbx
shr r11, 8
xor rax, rdx
inc r9d
shl rax, cl
add qword [r8], rax
shl rdx, cl
add ecx, 8
add r10, rdx
cmp r9d, 8
jb 0x14000974f
mov rbx, qword [rsp + 8]
mov rax, r8
mov qword [r8 + 8], r10
ret
Function at 0x14000a254
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [rcx + 0x40]
xor ebx, ebx
mov rsi, rcx
mov dword [rbp + 0x630], ebx
mov rdx, qword [rax]
mov eax, dword [rdx + 8]
sub eax, 0x8c
je 0x14000a2a6
cmp eax, 1
jne 0x14000a2a6
lea r15, str.RegExp.exe
lea r12, [0x1400363e8]
jmp 0x14000a2b4
lea r12, [0x1400363ec]
lea r15, [0x1400363f0]
xor eax, eax
lea rdi, [rbp - 0x20]
mov ecx, 0x20a
lea rdx, [rbp - 0x20]
rep stosb byte [rdi], al
lea rcx, [0x140035ab8]
call fcn.140001bb8
dec eax
cmp eax, 0x103
ja 0x14000a48c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [rbp + 0x630]
mov byte [rsp + 0x20], 1
mov rdx, rax
mov ecx, 0x7d1
call fcn.1400022c4
mov r14, rax
test rax, rax
jne 0x14000a31b
lea rdx, str.____Failed_to_load_helper_dll_r_n
lea ecx, [rax + 1]
call fcn.14000f6cc
jmp 0x14000a497
mov edx, dword [rbp + 0x630]
lea r8, str.RegisterForProvider2
mov r9d, 1
mov rcx, r14
call fcn.14000fb14
test eax, eax
je 0x14000a45b
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], r15
lea r8, [0x140035b50]
mov edx, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.14000254c
mov r8d, dword [rbp + 0x630]
lea rax, [rbp + 0x630]
mov rdx, r14
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x1f0]
call fcn.140001538
test rax, rax
je 0x14000a447
xor eax, eax
lea rdi, [rsp + 0x70]
lea edx, [rax + 0x68]
mov ecx, edx
rep stosb byte [rdi], al
lea ecx, [rax + 0x18]
mov dword [rsp + 0x70], edx
lea rdi, [rsp + 0x50]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x1f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, r12
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000a428
mov qword [rsp + 0x20], rsi
call fcn.14000ab0c
mov rcx, qword [rsp + 0x58]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test rdi, rdi
je 0x14000a428
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x28], rbx
setne bl
jmp 0x14000a46c
mov edx, dword [rbp + 0x630]
lea rcx, str.____Failed_to_write_help_dll_on_disk
call fcn.14001055c
jmp 0x14000a46c
lea rdx, str.____Error_while_configuring_helper_dll_r_n
mov ecx, 1
call fcn.14000f6cc
mov rcx, qword gs:[0x30]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x14000a499
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000a6d4
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov rsi, rcx
mov word [rbp + 0x73], 0x500
xor r15d, r15d
mov dword [rbp - 0x69], 0x101
lea rcx, [rbp - 0x59]
mov dword [rbp + 0x6f], r15d
mov r8b, 2
mov qword [rbp - 0x65], 0x1000000
lea rdx, [rbp + 0x6f]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x59]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea edx, [r15 + 1]
lea rcx, [rbp - 0x59]
mov dword [rax], 0x20
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea rcx, [rbp - 0x59]
mov dword [rax], 0x220
call qword [sym.imp.ntdll.dll_RtlLengthSid]
lea rcx, [rbp - 0x69]
mov r14d, eax
call qword [sym.imp.ntdll.dll_RtlLengthSid]
add eax, 0x48
lea edx, [r15 + 8]
add r14d, eax
mov rax, qword gs:[0x30]
mov r8d, r14d
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000a7eb
lea edx, [r15 + 1]
mov rcx, rax
lea rdi, [rax + 0x28]
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
lea edx, [r14 - 0x28]
mov rcx, rdi
lea r8d, [r15 + 2]
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
lea r9, [rbp - 0x59]
mov r8d, 0x1f0001
lea edx, [r15 + 2]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
lea r9, [rbp - 0x69]
mov rcx, rdi
lea edx, [r15 + 2]
lea r8d, [r15 + 1]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
xor r9d, r9d
mov r8, rdi
mov dl, 1
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
lea rdx, str.KduPort
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x19]
mov dword [rbp - 0x49], 0x30
mov qword [rbp - 0x39], rax
lea rdi, [rbp - 9]
xor eax, eax
mov qword [rbp - 0x41], r15
lea r8, [rbp - 9]
mov dword [rbp - 0x31], 0x40
lea rdx, [rbp - 0x49]
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], r15
lea ecx, [rax + 0x48]
rep stosb byte [rdi], al
mov rcx, rsi
mov qword [rbp + 7], 0xa8
call qword [sym.imp.ntdll.dll_NtAlpcCreatePort]
mov edi, eax
test rbx, rbx
je 0x14000a865
mov rcx, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0xd0]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000ab0c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x30
and dword [rsp + 0x58], 0
mov edx, 8
mov rax, qword gs:[0x30]
lea r8d, [rdx + 0x28]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000abad
mov rcx, qword [rsp + 0x60]
lea rax, [0x1400106d4]
mov qword [rbx], rax
lea r8, [0x14000a884]
lea rax, [0x1400106c0]
mov qword [rbx + 0x20], rcx
mov qword [rbx + 8], rax
mov r9, rbx
lea rax, [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000ab8f
mov qword [rbx + 0x28], rax
jmp 0x14000abad
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14000abb8
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 8], ecx
push r12
push r13
push r15
sub rsp, 0x50
mov rdi, qword [rsp + 0x90]
mov r15d, r9d
mov rcx, rdi
mov r12d, r8d
mov r13d, edx
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
test al, al
jne 0x14000ac0a
lea rdx, str.____Input_file_cannot_be_found__abort._r_n
mov ecx, 1
call fcn.14000f6cc
jmp 0x14000acd3
mov edx, r15d
lea rcx, str.___Driver_mapping_using_shellcode_version:__lu_r_n
call fcn.140002270
cmp r15d, 3
jne 0x14000ac72
cmp qword [rsp + 0x98], rbx
jne 0x14000ac32
lea rdx, str.____Driver_object_name_is_required_when_working_with_this_shellcode_r_n____Use_the_following_commands_to_supply_object_name_and_optionally_registry_key_name_r_n_t_drvn__ObjectName__and_or_r_n_t_drvr__ObjectKeyName__r_n_te.g._kdu__scv_3__drvn_MyName__map_MyDriver.sys_r_n
jmp 0x14000abfb
mov rdx, qword [rsp + 0x98]
lea rcx, str.___Driver_object_name:___ws__r_n
call fcn.140002270
cmp qword [rsp + 0xa0], rbx
je 0x14000ac66
mov rdx, qword [rsp + 0xa0]
lea rcx, str.___Registry_key_name:___ws__r_n
call fcn.140002270
jmp 0x14000ac72
lea rcx, str.___No_driver_registry_key_name_specified__driver_object_name_will_be_used_instead_r_n
call fcn.140002270
mov rdx, rdi
mov dword [rsp + 0x30], 2
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
mov rsi, rbx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9, [rsp + 0x38]
xor ecx, ecx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_LdrLoadDll]
test eax, eax
js 0x14000acc5
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000acf9
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
jne 0x14000acf0
mov eax, 0xc000007b
mov edx, eax
lea rcx, str.____Error_while_loading_input_driver_file
call fcn.14001055c
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
ret
mov rsi, qword [rsp + 0x38]
mov eax, ebx
jmp 0x14000acfd
test eax, eax
js 0x14000acc5
test rsi, rsi
je 0x14000acc5
mov r8, rsi
lea rcx, str.___Input_driver_file___ws__loaded_at_0x_p_r_n
mov rdx, rdi
call fcn.140002270
mov edx, dword [rsp + 0x70]
mov r9d, r15d
mov r8d, r13d
mov dword [rsp + 0x20], ebx
mov ecx, r12d
call fcn.14000bf18
mov rdi, rax
test rax, rax
je 0x14000ad88
cmp r15d, 3
jne 0x14000ad71
cmp qword [rsp + 0x98], rbx
je 0x14000ad53
mov rdx, qword [rsp + 0x98]
lea rcx, [rax + 0x54]
call fcn.14000e050
cmp qword [rsp + 0xa0], rbx
je 0x14000ad71
mov rdx, qword [rsp + 0xa0]
lea rcx, [rdi + 0x260]
call fcn.14000e050
mov rax, qword [rdi + 0x40]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0x38]
mov rcx, rdi
mov ebx, eax
call fcn.14000c618
mov rcx, rsi
call qword [sym.imp.ntdll.dll_LdrUnloadDll]
mov eax, ebx
jmp 0x14000acd5
Function at 0x14000b65c
Capabilities:
Access pe header
Check for peb beingdebugged flag

Disassembly:
push rdi
sub rsp, 0x3e0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, dword [rax + 0x58]
mov dword [rsp + 0x30], ecx
lea rax, str.Thu_Jun_22_20:05:57_2023
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x902
mov edx, 1
lea r9d, [rdx + 1]
lea r8d, [rdx + 2]
lea rcx, str.___Kernel_Driver_Utility_v_lu._lu._lu__build__lu__started___c_2020___2023_KDU_Project_r_n___Built_at__s__header_checksum_0x_lX_r_n___Supported_x64_OS_:_Windows_7_and_above_r_n
call fcn.140002270
lea rdi, [rsp + 0xd0]
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rdi, [rsp + 0x1d0]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [rsp + 0x3f0], 0x1030202
movzx ecx, word [rax + 0x58]
or ecx, 0x23060000
mov dword [rsp + 0x3f4], ecx
lea r10, [rsp + 0xd0]
mov r11, qword [rsp + 0x3f0]
mov word [rsp + 0xce], 0x5f2d
xor edi, edi
mov r8b, dil
lea r9, [rsp + 0xc4]
movzx ecx, r8b
lea edx, [r8 + 0x61]
lea eax, [rdx - 0x20]
mov byte [r9 - 0x34], al
mov byte [rsp + rcx + 0xaa], dl
cmp cl, 0xa
jae 0x14000b75d
sub dl, 0x31
mov byte [r9], dl
inc r8b
inc r9
cmp r8b, 0x1a
jl 0x14000b73c
mov ecx, 0xd
mov rax, r11
shr r11, 5
and eax, 0x3f
movsx eax, byte [rsp + rax + 0x90]
mov word [r10], ax
lea r10, [r10 + 2]
sub rcx, 1
jne 0x14000b76e
mov word [r10], di
lea r9, [rsp + 0xd0]
lea r8, str.BaseNamedObjects_ws
mov edx, 0x104
lea rcx, [rsp + 0x1d0]
call fcn.14000254c
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x58], 0x30
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x70], 0x40
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xor r9d, r9d
lea r8, [rsp + 0x58]
mov edx, 0x1f0001
lea rcx, [rsp + 0x3f8]
call qword [sym.imp.ntdll.dll_NtCreateMutant]
mov ecx, 0xb7
cmp eax, 0xc0000035
cmove edi, ecx
cmp edi, ecx
je 0x14000b83a
call fcn.14000b1bc
mov edi, eax
mov dword [rsp + 0x40], eax
jmp 0x14000b84b
lea rdx, str.____Another_instance_is_running__close_it_before_r_n
mov ecx, 1
call fcn.14000f6cc
mov edx, edi
lea rcx, str.___Return_value:__d._Bye_bye__r_n
call fcn.140002270
mov eax, edi
add rsp, 0x3e0
pop rdi
ret
Function at 0x14000c8ec
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp - 0x15]
lea r8d, [rdx + 0x64]
call fcn.1400135c0
xorps xmm0, xmm0
mov dword [rbp - 0x19], 0x68
xor eax, eax
lea rcx, str.___Creating_Process__s_r_n
mov rdx, rbx
mov qword [rbp - 0x29], rax
movups xmmword [rbp - 0x39], xmm0
call fcn.14000c7c8
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x19]
mov rdx, rbx
mov qword [rsp + 0x40], rax
xor ecx, ecx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000c996
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_create_process:_0x_lX_n
call fcn.14000c81c
xor eax, eax
jmp 0x14000ca23
mov edx, dword [rbp - 0x29]
lea rcx, str.___Created_Process_with_PID__lu_r_n
call fcn.140002270
mov edx, dword [rbp - 0x29]
mov r9d, 1
mov rcx, rdi
lea r8d, [r9 + 2]
call fcn.14000ca38
mov ebx, eax
test eax, eax
jne 0x14000c9d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_set_process_as_PPL:_0x_lX_n
call fcn.140002270
jmp 0x14000c98f
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, eax
cmp eax, 1
je 0x14000ca00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
lea rcx, str.____Failed_to_resume_process:__lu__0x_lX_n
mov r8d, eax
call fcn.140002270
jmp 0x14000ca21
mov rcx, qword [rbp - 0x39]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x14000e258
Capabilities:
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 + 0x10], 0
mov r10, rdx
and r10, 0xfffffffffffff000
mov eax, r8d
sub rax, r10
mov qword [r11 - 0x10], r10
add rax, rdx
lea r8, [r11 + 0x10]
mov qword [r11 - 0x18], rax
neg r9d
sbb eax, eax
xor r9d, r9d
and eax, 2
or rdx, 0xffffffffffffffff
add eax, 2
mov dword [rsp + 0x48], eax
lea rax, [r11 - 0x18]
and dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x38], rax
lea rax, [r11 - 0x10]
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], 0
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jns 0x14000e2d9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000e2de
mov rax, qword [rsp + 0x78]
add rsp, 0x68
ret
Function at 0x14000e904
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, edx
xor ebp, ebp
mov r14, r8
mov rsi, r9
mov r8, rcx
mov rdx, rcx
mov r10d, ebp
lea r11d, [rdi + 1]
shr r11d, 1
je 0x14000e956
movzx eax, word [rdx]
lea rdx, [rdx + 2]
add r10d, eax
mov ecx, r10d
movzx r10d, r10w
shr ecx, 0x10
add r10d, ecx
add r11d, 0xffffffff
jne 0x14000e939
mov ebx, r10d
mov rcx, r8
shr ebx, 0x10
add bx, r10w
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x14000e98d
movzx ecx, word [rax + 0x58]
cmp bx, cx
adc cx, bp
sub bx, cx
movzx ecx, word [rax + 0x5a]
cmp bx, cx
adc cx, bp
sub bx, cx
mov ecx, dword [rax + 0x58]
jmp 0x14000e992
mov ecx, edi
movzx ebx, bp
movzx eax, bx
add eax, edi
test r14, r14
je 0x14000e99f
mov dword [r14], ecx
test rsi, rsi
je 0x14000e9a6
mov dword [rsi], eax
mov rbx, qword [rsp + 0x30]
cmp eax, ecx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
sete al
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000e9c8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov r14, 0xffffffff80000002
mov rdi, rdx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor esi, esi
test eax, eax
je 0x14000ea2f
lea rax, [rbp + 0x190]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000ea4b
cmp eax, 2
jne 0x14000eb0b
mov eax, 1
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdi
test rdi, rdi
jne 0x14000ea58
mov rbx, rsi
jmp 0x14000ea66
cmp word [rdi], si
je 0x14000ea66
add rbx, 2
cmp word [rbx], si
jne 0x14000ea5d
mov eax, 0x5c
cmp word [rbx - 2], ax
je 0x14000ea7b
mov word [rbx], ax
add rbx, 2
mov word [rbx], si
mov r15d, 0x104
jmp 0x14000eaa5
mov r9, r15
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rbx
call fcn.1400014a4
mov rdx, rdi
mov rcx, r14
call fcn.14000e9c8
test eax, eax
je 0x14000eae6
mov rcx, qword [rbp + 0x190]
lea rax, [rbp + 0x198]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x180]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x180], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000ea83
mov rcx, qword [rbp + 0x190]
mov word [rbx - 2], si
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14000ea2f
xor eax, eax
jmp 0x14000ea34