joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400157c0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27b0]
mov eax, 0x28b0
call fcn.140020180
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x28e8], rbx
mov qword [rsp + 0x28f0], rsi
mov rax, qword [0x140041018]
xor rax, rsp
mov qword [rbp + 0x27a0], rax
mov rbx, rcx
xor r12d, r12d
mov esi, r12d
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x7a0]
call sub.VCRUNTIME140.dll_memset
mov eax, 0x22
mov word [rbp + 0x7a0], ax
test rbx, rbx
je 0x140015a2f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x140015a2f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xffa
jge 0x140015a2f
mov rdx, rbx
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x14003207c]
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x140032fa0]
lea rcx, [rsp + 0x30]
call fcn.140001ed4
nop
call fcn.140014280
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140014350
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.140001dd0
test rbx, rbx
je 0x140015a2f
lea rdx, str.ShellExecuteW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x140015a2f
lea rcx, [rsp + 0x60]
call fcn.1400151d0
mov ebx, r12d
lea rdi, [rsp + 0x60]
nop dword [rax]
cmp word [rdi], 0
je 0x14001592e
movsxd r14, ebx
imul rax, r14, 0x210
lea r8, [rsp + 0x60]
add r8, rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x7a0]
lea rdx, str.open
xor ecx, ecx
call r15
cmp rax, 0x20
ja 0x14001593e
inc ebx
add rdi, 0x210
cmp ebx, 3
jge 0x140015961
jmp 0x1400158f0
imul rax, r14, 0x210
mov esi, dword [rbp + rax + 0x16c]
cmp dword [rbp + rax + 0x168], 0
jne 0x140015959
add esi, 0x10
test esi, esi
jne 0x140015a2b
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rbp + 0x7a0]
lea rdx, str.open
xor ecx, ecx
call r15
cmp rax, 0x20
ja 0x140015a26
lea rax, str._programfiles_x86__Internet_Exploreriexplore.exe
mov qword [rsp + 0x30], rax
lea rax, str._programfiles_Internet_Exploreriexplore.exe
mov qword [rsp + 0x38], rax
mov rbx, r12
nop dword [rax]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x590]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x103
lea rdx, [rbp + 0x590]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rbp + 0x590]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140015a1b
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x7a0]
lea r8, [rbp + 0x590]
lea rdx, str.open
xor ecx, ecx
call r15
cmp rax, 0x20
ja 0x140015a26
inc rbx
cmp rbx, 2
jae 0x140015a2b
jmp 0x1400159b0
mov esi, 0x10
mov eax, esi
jmp 0x140015a31
xor eax, eax
mov rcx, qword [rbp + 0x27a0]
xor rcx, rsp
call fcn.14001f5c0
lea r11, [rsp + 0x28b0]
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 0x14001a3f0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140041018]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], 0x114
mov qword [rcx + 8], rax
mov rbx, rcx
mov qword [rcx + 0x10], rax
xor edx, edx
mov qword [rcx + 0x18], rax
mov r8d, pe_nt_image_headers64
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov byte [rcx], al
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x14001a470
cmp dword [rsp + 0x24], 6
jb 0x14001a470
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001f5c0
add rsp, 0x150
pop rbx
ret

Function at 0x14001a490
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rcx
lea rdx, str.wintrust.dll
lea rcx, [rax - 0x50]
call fcn.140001ed4
nop
call fcn.140014280
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.140014350
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.140001dd0
lea rdx, str.crypt32.dll
lea rcx, [rsp + 0x48]
call fcn.140001ed4
nop
call fcn.140014280
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.140014350
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.140001dd0
test rbx, rbx
je 0x14001a5e6
test rdi, rdi
je 0x14001a5e6
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 8], rax
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x10], rax
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x18], rax
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x20], rax
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x28], rax
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.WinVerifyTrust
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
lea rdx, str.CertNameToStrW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x50], rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14001c200
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
movzx r10d, byte [rcx + 0x100]
mov r11, rdx
movzx ebx, byte [rcx + 0x101]
test r8d, r8d
je 0x14001c26d
mov qword [rsp + 0x10], rdi
mov edi, r8d
nop dword [rax]
nop word [rax + rax]
inc r10b
lea r11, [r11 + 1]
movzx r8d, r10b
movzx r9d, byte [r8 + rcx]
add bl, r9b
movzx edx, bl
movzx eax, byte [rdx + rcx]
mov byte [r8 + rcx], al
mov byte [rdx + rcx], r9b
add r9b, byte [r8 + rcx]
movzx eax, r9b
movzx edx, byte [rax + rcx]
xor byte [r11 - 1], dl
sub rdi, 1
jne 0x14001c230
mov rdi, qword [rsp + 0x10]
mov byte [rcx + 0x101], r10b
mov byte [rcx + 0x100], r10b
pop rbx
ret
Function at 0x140026eb0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x140041018]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebp, ebp
mov r15, rcx
mov qword [rcx], rbp
cmp qword [0x140041078], rbp
jne 0x140027085
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rcx, [rsp + 0x30]
mov word [rsp + 0x236], bp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rsi, qword [0x140041080]
mov r14, rax
cmp rax, rsi
ja 0x140026f76
cmp rsi, 8
mov qword [0x140041078], rax
lea rbx, [rax + rax]
lea rdi, [0x140041068]
mov r8, rbx
cmovae rdi, qword [0x140041068]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov word [rbx + rdi], bp
jmp 0x140027085
movabs rbx, 0x7ffffffffffffffe
cmp r14, rbx
ja 0x1400270bc
mov rcx, r14
or rcx, 7
cmp rcx, rbx
ja 0x140026fb4
mov rdx, rsi
mov rax, rbx
shr rdx, 1
sub rax, rdx
cmp rsi, rax
ja 0x140026fb4
lea rax, [rdx + rsi]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rax, [rbx + 1]
movabs rcx, 0x7fffffffffffffff
lea rdx, [rax + rax]
mov r8, 0xffffffffffffffff
cmp rax, rcx
jbe 0x140026fd7
mov rdx, r8
jmp 0x140026fe0
cmp rdx, 0x1000
jb 0x140027007
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.14001f5e4
test rax, rax
je 0x1400270b5
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14002701c
test rdx, rdx
je 0x140027019
mov rcx, rdx
call fcn.14001f5e4
mov rdi, rax
jmp 0x14002701c
mov rdi, rbp
mov qword [0x140041080], rbx
lea rdx, [rsp + 0x30]
lea rbx, [r14 + r14]
mov qword [0x140041078], r14
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov word [rbx + rdi], bp
cmp rsi, 8
jb 0x14002707e
mov rcx, qword [0x140041068]
lea rdx, [rsi*2 + 2]
cmp rdx, 0x1000
jb 0x140027079
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400270b5
mov rcx, r8
call fcn.14001f8d4
mov qword [0x140041068], rdi
mov rax, r15
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001f5c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400024e0
int3
Function at 0x14002a430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x48], 0
jne 0x14002a44a
xor eax, eax
jmp 0x14002a4ad
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14002a46b
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x14002a46f
xor eax, eax
jmp 0x14002a4ad
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.14002a3f0
movzx eax, al
test eax, eax
jne 0x14002a498
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140029e60
xor eax, eax
jmp 0x14002a4ad
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x14002a5d0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140041018]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14002a63e
mov eax, dword [rsp + 0x24]
cmp eax, 5
ja 0x14002a624
jne 0x14002a63e
cmp dword [rsp + 0x28], 0
jbe 0x14002a63e
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001f5c0
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001f5c0
add rsp, 0x158
ret
Function at 0x140011258
Capabilities:
Terminate process

Disassembly:
jmp 0x140013b90
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 0x1400112f3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014ee0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014f00
xor al, al
jmp 0x140014f81
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014f13
xor al, al
jmp 0x140014f81
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 0x140014f3d
xor al, al
jmp 0x140014f81
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014f51
xor al, al
jmp 0x140014f81
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014f63
xor al, al
jmp 0x140014f81
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014f7f
xor al, al
jmp 0x140014f81
mov al, 1
add rsp, 0x38
ret
Function at 0x118c8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor ebx, ebx
mov ebp, r8d
mov r12, rdx
mov rdi, rcx
cmp qword [rcx], rbx
jne 0x11939
mov esi, 0x42464c
lea edx, [rbx + 0x48]
lea ecx, [rbx + 1]
mov r8d, esi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rdi], rax
cmp rax, rbx
jne 0x1190d
xor al, al
jmp 0x11a6f
mov r8d, esi
mov edx, 0x1000
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rdi + 8], rax
cmp rax, rbx
jne 0x11939
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rdi], rbx
jmp 0x11906
mov dword [rdi + 0x10], ebx
mov rdx, rbx
lea r9, [0x00010000]
mov esi, 4
mov eax, dword [rdx + r9 + 0x1b210]
mov rcx, qword [rdi]
mov dword [rdx + rcx], eax
add rdx, rsi
cmp rdx, 0x48
jl 0x1194b
mov rdx, rbx
mov r8d, 0x100
mov eax, dword [rdx + r9 + 0x1b260]
mov rcx, qword [rdi + 8]
mov dword [rdx + rcx], eax
add rdx, rsi
sub r8, 1
jne 0x1196b
cmp rdx, 0x1000
jl 0x11965
mov r9d, ebx
mov r8, rbx
movsxd rax, r9d
mov cl, byte [rax + r12]
lea eax, [r9 + 1]
cdq
mov byte [rsp + 0x53], cl
idiv ebp
movsxd rax, edx
mov cl, byte [rax + r12]
lea eax, [r9 + 2]
cdq
mov byte [rsp + 0x52], cl
idiv ebp
movsxd rax, edx
mov cl, byte [rax + r12]
lea eax, [r9 + 3]
cdq
mov byte [rsp + 0x51], cl
idiv ebp
movsxd rax, edx
mov cl, byte [rax + r12]
mov byte [rsp + 0x50], cl
mov eax, dword [rsp + 0x50]
mov rcx, qword [rdi]
xor dword [r8 + rcx], eax
lea eax, [r9 + 4]
add r8, rsi
cdq
idiv ebp
cmp r8, 0x48
mov r9d, edx
jl 0x11992
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x50], ebx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.00011008
mov r11, qword [rdi]
mov eax, dword [rsp + 0x50]
mov dword [rbx + r11], eax
mov rcx, qword [rdi]
mov eax, dword [rsp + 0x20]
mov dword [rbx + rcx + 4], eax
add rbx, 8
cmp rbx, 0x48
jl 0x119f9
mov ebx, pe_nt_image_headers64
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.00011008
mov r11, qword [rdi + 8]
mov ecx, dword [rsp + 0x50]
mov dword [r11 + rsi - 4], ecx
mov rdx, qword [rdi + 8]
mov ecx, dword [rsp + 0x20]
mov dword [rsi + rdx], ecx
add rsi, 8
sub rbx, 1
jne 0x11a30
cmp rsi, 0x1004
jl 0x11a2b
mov al, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x12310
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jl 0x12345
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessImageFileName]
mov rcx, qword [rsp + 0x38]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14d5c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x70
mov eax, 0x1e
mov rsi, rcx
lea rcx, [r11 - 0x48]
mov word [rsp + 0x30], ax
mov eax, 0x20
mov ebp, edx
mov word [rsp + 0x32], ax
lea rax, [0x00025e70]
mov qword [r11 - 0x40], rax
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
xor ebx, ebx
mov rdi, rax
cmp rax, rbx
jne 0x14daf
xor al, al
jmp 0x14e86
lea rdx, [rsp + 0x90]
mov rcx, rsi
mov qword [rsp + 0x90], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jl 0x14da8
xor edx, edx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rbx
lea r8d, [rdx + 0x28]
call fcn.00025100
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rsp + 0x90]
call rdi
cmp rax, rbx
jne 0x14e1e
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x14da8
mov rax, qword [rax + 0x20]
cmp rax, rbx
je 0x14e6b
mov rdx, qword [rax + 0x78]
cmp rdx, rbx
je 0x14e69
lea rdi, [rax + 0x70]
cmp word [rdi], bx
jbe 0x14e69
movzx r8d, word [rdi]
mov ecx, ebp
shr r8d, 1
call fcn.00014908
cmp al, bl
je 0x14e69
mov rcx, qword [rsp + 0x90]
mov r9, rdi
mov r8d, ebp
mov rdx, rsi
mov byte [rsp + 0x28], bl
mov byte [rsp + 0x20], bl
call fcn.00014a24
mov bl, 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14ea4
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x70
mov eax, 0x30
mov rsi, rcx
lea rcx, [r11 - 0x48]
mov word [rsp + 0x30], ax
mov eax, 0x32
mov ebp, edx
mov word [rsp + 0x32], ax
lea rax, [0x00025e90]
mov qword [r11 - 0x40], rax
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
xor ebx, ebx
mov rdi, rax
cmp rax, rbx
jne 0x14ef7
xor al, al
jmp 0x14fce
lea rdx, [rsp + 0x90]
mov rcx, rsi
mov qword [rsp + 0x90], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jl 0x14ef0
xor edx, edx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rbx
lea r8d, [rdx + 0x28]
call fcn.00025100
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rsp + 0x90]
call rdi
cmp rax, rbx
jne 0x14f66
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x14ef0
mov eax, dword [rax + 0x10]
cmp rax, rbx
je 0x14fb3
cmp dword [rax + 0x44], ebx
je 0x14fb1
lea rdi, [rax + 0x40]
cmp word [rdi], bx
jbe 0x14fb1
movzx r8d, word [rdi]
movsxd rdx, dword [rax + 0x44]
mov ecx, ebp
shr r8d, 1
call fcn.00014908
cmp al, bl
je 0x14fb1
mov rcx, qword [rsp + 0x90]
mov r9, rdi
mov r8d, ebp
mov rdx, rsi
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], bl
call fcn.00014a24
mov bl, 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x15ca4
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x40
mov rdx, rcx
lea rdi, [rcx + 0x70]
lea rax, [0x00015ba0]
mov ecx, 0x1c
rep stosq qword [rdi], rax
xor edi, edi
mov qword [rdx + 0x68], rdi
cmp byte [0x0186d1ae], dil
jne 0x15d10
mov qword [r11 - 0x18], rdi
lea rax, [0x000137fc]
lea rcx, [r11 + 8]
mov qword [r11 - 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov byte [0x0002b258], dil
mov qword [r11 + 8], rdi
mov qword [r11 - 0x28], rdi
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp eax, edi
jl 0x15d10
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [0x0186d1b8]
call qword [sym.imp.ntoskrnl.exe_IoRegisterShutdownNotification]
mov byte [0x0186d1c2], 1
cmp byte [0x0186d1ad], dil
jne 0x15d48
cmp byte [0x0186d18e], dil
jne 0x15d48
cmp byte [0x0186d18d], dil
jne 0x15d48
cmp byte [0x0186d1ae], dil
je 0x15d87
lea rcx, [0x00014fec]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_PsSetCreateProcessNotifyRoutine]
mov byte [0x0186d1c1], 1
cmp byte [0x0186d1ad], dil
jne 0x15d82
cmp byte [0x0186d18e], dil
jne 0x15d82
cmp byte [0x0186d18d], dil
jne 0x15d82
cmp byte [0x0186d1ae], dil
je 0x15d87
call fcn.0001657c
mov byte [0x0002c2db], dil
mov byte [0x0002c2fe], dil
mov byte [0x0002c2ff], dil
mov byte [0x0002b132], 1
mov byte [0x0186cb4a], dil
mov byte [0x0002b133], 1
mov byte [0x0002c2da], 1
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x17eb0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbx
sub rsp, 0x80
mov ebx, 1
mov ecx, ebx
call fcn.00017278
test al, al
je 0x17ed0
xor eax, eax
jmp 0x17fb7
call fcn.00016b38
test rax, rax
jne 0x17ee4
mov eax, 0xc0000001
jmp 0x17fb7
and qword [rsp + 0x90], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x70], 0
and qword [rsp + 0x78], 0
mov eax, 0x7e
lea r8, [rsp + 0x50]
mov word [rsp + 0x30], ax
mov eax, pe_nt_image_headers64
lea rcx, [rsp + 0x90]
mov word [rsp + 0x32], ax
lea rax, [0x000278a0]
mov edx, 0x20006
mov qword [rsp + 0x38], rax
mov eax, 0x1c
mov dword [rsp + 0x50], 0x30
mov word [rsp + 0x40], ax
mov eax, 0x1e
mov dword [rsp + 0x68], 0x240
mov word [rsp + 0x42], ax
lea rax, [0x00027920]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x17fb7
movzx eax, word [0x0186ff10]
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rax, qword [0x0186ff18]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x90]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x80
pop rbx
ret

Function at 0x17fc8
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbx
sub rsp, 0x80
mov ecx, 2
call fcn.00017278
test al, al
jne 0x180e0
mov ecx, 5
call fcn.00017278
test al, al
jne 0x180e0
call fcn.00016c40
test al, al
jne 0x18008
mov eax, 0xc0000001
jmp 0x180e2
and qword [rsp + 0x90], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x70], 0
and qword [rsp + 0x78], 0
mov eax, 0x7e
lea r8, [rsp + 0x50]
mov word [rsp + 0x30], ax
mov eax, pe_nt_image_headers64
lea rcx, [rsp + 0x90]
mov word [rsp + 0x32], ax
lea rax, [0x000278a0]
mov edx, 0x20006
mov qword [rsp + 0x38], rax
mov eax, 0xa
mov dword [rsp + 0x50], 0x30
mov word [rsp + 0x40], ax
mov eax, 0xc
mov dword [rsp + 0x68], 0x240
mov word [rsp + 0x42], ax
lea rax, [0x00027940]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x180e2
movzx eax, word [0x0186ff40]
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rax, qword [0x0186ff48]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x90]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
jmp 0x180e2
xor eax, eax
add rsp, 0x80
pop rbx
ret