joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005f6c
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x1400508e0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rdx, [0x1400087e0]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0xf], 0
lea rax, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
movdqu xmmword [rbp + 0x27], xmm0
mov dword [rbp + 7], 0x30
mov dword [rbp + 0x1f], 0x240
mov rax, cr8
test al, al
jne 0x1400060ee
and dword [rsp + 0x50], 0
lea r9, [rbp - 0x19]
and qword [rsp + 0x48], 0
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp - 0x29]
mov eax, 1
mov edx, 0x80000000
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x14000611e
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x37]
xor eax, eax
mov dword [rsp + 0x20], 5
xorps xmm0, xmm0
mov qword [rbp + 0x47], rax
lea rdx, [rbp - 0x19]
movups xmmword [rbp + 0x37], xmm0
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x140006114
mov eax, dword [rbp + 0x3f]
mov r8d, 0x416c6374
mov edx, eax
mov dword [0x14005f8bc], eax
xor ecx, ecx
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x1400060e7
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140008500
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
xor r9d, r9d
and dword [rbp - 0x1d], 0
xor r8d, r8d
and dword [rbp - 0x21], 0
xor edx, edx
mov qword [rsp + 0x38], rax
mov eax, dword [0x14005f8bc]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
mov qword [0x14005f8c8], rbx
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x14000611e
mov rcx, qword [0x14005f8c8]
mov edx, 0x416c6374
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000611e
mov qword [0x14005f8c8], rbx
mov eax, 0xc0000001
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140008190
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
jmp 0x1400060f3
Function at 0x140006408
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov eax, 0x5a4d
or edi, 0xffffffff
mov ebp, edx
mov rsi, rcx
cmp word [rcx], ax
jne 0x14000657d
movsxd rbx, dword [rcx + 0x3c]
add rbx, rcx
cmp dword [rbx], 0x4550
jne 0x14000657d
mov edx, 0x20b
mov eax, 0x88
cmp word [rbx + 0x18], dx
mov r8d, ebp
lea ecx, [rax - 0x10]
cmovne eax, ecx
mov ecx, dword [rax + rbx]
mov edx, ecx
mov eax, dword [rax + rbx + 4]
mov dword [rsp + 0x70], ecx
mov rcx, rbx
mov dword [rsp + 0x88], eax
call fcn.140006594
cmp eax, edi
je 0x14000657d
mov r13d, eax
mov r8d, ebp
add r13, rsi
mov rcx, rbx
mov edx, dword [r13 + 0x1c]
call fcn.140006594
mov edx, dword [r13 + 0x24]
mov r8d, ebp
mov rcx, rbx
mov r15d, eax
call fcn.140006594
mov edx, dword [r13 + 0x20]
mov r8d, ebp
mov rcx, rbx
mov r14d, eax
call fcn.140006594
cmp r15d, edi
je 0x14000657d
cmp r14d, edi
je 0x14000657d
cmp eax, edi
je 0x14000657d
lea rcx, [rsi + r15]
add r14, rsi
mov r15d, eax
xor r12d, r12d
mov eax, dword [r13 + 0x18]
add r15, rsi
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
test eax, eax
je 0x14000657d
mov r13d, dword [rsp + 0x70]
mov edx, dword [r15]
mov r8d, ebp
mov rcx, rbx
call fcn.140006594
cmp eax, edi
je 0x14000655c
mov rdx, qword [rsp + 0x28]
mov ecx, eax
movzx eax, word [r14]
add rcx, rsi
mov edx, dword [rdx + rax*4]
cmp edx, r13d
jb 0x140006538
mov eax, dword [rsp + 0x88]
add eax, r13d
cmp edx, eax
jb 0x14000655c
mov r9, qword [rsp + 0x80]
sub r9, rcx
movzx eax, byte [rcx]
movzx r8d, byte [rcx + r9]
sub eax, r8d
jne 0x140006558
inc rcx
test r8d, r8d
jne 0x140006543
test eax, eax
je 0x140006570
inc r12d
add r15, 4
add r14, 2
cmp r12d, dword [rsp + 0x20]
jae 0x14000657d
jmp 0x140006502
mov r8d, ebp
mov rcx, rbx
call fcn.140006594
mov edi, eax
mov rbx, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140006594
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
movzx eax, word [rcx + 0x14]
lea r9, [rcx + 0x18]
movzx r11d, word [rcx + 6]
add r9, rax
xor r10d, r10d
mov ebx, r8d
test r11d, r11d
je 0x1400065d4
mov r8d, dword [r9 + 0xc]
cmp r8d, edx
ja 0x1400065c8
mov ecx, dword [r9 + 8]
add ecx, r8d
cmp ecx, edx
ja 0x1400065dd
add r9, 0x28
inc r10d
cmp r10d, r11d
jl 0x1400065b4
or eax, 0xffffffff
mov rbx, qword [rsp + 8]
ret
mov eax, dword [r9 + 0x14]
sub eax, r8d
add edx, eax
or eax, 0xffffffff
cmp edx, ebx
cmovb eax, edx
jmp 0x1400065d7
Function at 0x1400065f0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400508e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x14000664c
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000664c
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
xor edx, edx
or rcx, 0xffffffffffffffff
call fcn.14000629c
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, 1
jmp 0x14000664e
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008190
add rsp, 0x68
ret

Function at 0x140006660
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rax + 0x10], 0
lea r9, [rax + 0x10]
mov rsi, rcx
xor ebx, ebx
xor r8d, r8d
xor edx, edx
lea ecx, [rbx + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edi, dword [rsp + 0x48]
test edi, edi
je 0x1400066bb
mov edx, edi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
je 0x1400066f5
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x1400066f5
movups xmm0, xmmword [rbx + 0x38]
mov rcx, qword [rbx + 0x50]
mov rdi, rbx
jmp 0x1400066dd
mov eax, dword [rdi]
test eax, eax
je 0x1400066f5
add rdi, rax
movups xmm0, xmmword [rdi + 0x38]
mov rcx, qword [rdi + 0x50]
lea rdx, [rsp + 0x20]
mov rax, rsi
movdqu xmmword [rsp + 0x20], xmm0
call qword [case.0x140002f1d.0]
test al, al
je 0x1400066cc
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140007138
Capabilities:
Register network filter via wfp api

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1400508e0]
xor rax, rsp
mov qword [rbp + 0xe8], rax
xor edx, edx
lea rcx, [rbp + 0x54]
lea r8d, [rdx + 0x54]
call fcn.140008500
mov eax, dword [0x140008a00]
lea rdx, [rbp + 0x50]
movups xmm0, xmmword [0x140009400]
mov rcx, qword [0x14005fac8]
xor r9d, r9d
and dword [rbp + 0x70], 0
xor r8d, r8d
mov dword [rbp + 0xb0], eax
movzx eax, word [0x140008a04]
mov word [rbp + 0xb4], ax
mov eax, dword [0x140008a10]
mov dword [rbp + 0xb8], eax
movzx eax, word [0x140008a14]
mov word [rbp + 0xbc], ax
lea rax, [rbp + 0xb0]
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0xb8]
movups xmm0, xmmword [0x1400093f0]
mov qword [rbp + 0x68], rax
movdqu xmmword [rbp + 0x90], xmm0
call sub.fwpkclnt.sys_FwpmCalloutAdd0
mov ebx, eax
test eax, eax
je 0x140007205
mov rcx, qword [0x14005fac8]
call sub.fwpkclnt.sys_FwpmTransactionAbort0
mov eax, ebx
jmp 0x140007359
xor edx, edx
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x44]
call fcn.140008500
mov eax, dword [0x140008a20]
lea rdx, [rsp + 0x30]
movups xmm0, xmmword [0x140009410]
mov rcx, qword [0x14005fac8]
xor r8d, r8d
and dword [rsp + 0x50], 0
mov dword [rbp + 0xc0], eax
movzx eax, word [0x140008a24]
mov word [rbp + 0xc4], ax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x40], rax
movabs rax, 0x7200660073
mov qword [rbp + 0xe0], rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x48], rax
mov eax, 0xffff
mov word [rsp + 0x70], ax
movdqu xmmword [rsp + 0x30], xmm0
call sub.fwpkclnt.sys_FwpmSubLayerAdd0
mov ebx, eax
test eax, eax
jne 0x1400071f2
or qword [rsp + 0x20], 0xffffffffffffffff
lea rcx, [rbp - 0x80]
xor edx, edx
mov r8d, 0xc8
call fcn.140008500
movzx eax, word [0x140008a38]
lea r9, [0x14005fad8]
movsd xmm0, qword [0x140008a30]
lea rdx, [rbp - 0x80]
movups xmm1, xmmword [0x140009400]
mov rcx, qword [0x14005fac8]
xor r8d, r8d
and dword [rbp - 0x10], ebx
mov word [rbp + 0xd8], ax
lea rax, [rbp + 0xd0]
mov qword [rbp - 0x70], rax
mov eax, dword [0x140008a10]
mov dword [rbp + 0xc8], eax
movzx eax, word [0x140008a14]
movsd qword [rbp + 0xd0], xmm0
movups xmm0, xmmword [0x140009410]
mov word [rbp + 0xcc], ax
lea rax, [rbp + 0xc8]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x20]
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x18], rax
movups xmm0, xmmword [0x1400093f0]
mov dword [rbp], 0x5003
mov dword [rbp - 0x20], 4
movdqu xmmword [rbp - 0x40], xmm0
movdqu xmmword [rbp + 4], xmm1
call sub.fwpkclnt.sys_FwpmFilterAdd0
mov ebx, eax
test eax, eax
jne 0x1400071f2
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.140008190
mov rbx, qword [rsp + 0x200]
add rsp, 0x1f0
pop rbp
ret
Function at 0x140007440
Capabilities:
Delete network filter via wfp api

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14005fac8]
test rcx, rcx
je 0x140007490
mov rdx, qword [0x14005fad8]
test rdx, rdx
je 0x140007461
call sub.fwpkclnt.sys_FwpmFilterDeleteById0
mov rcx, qword [0x14005fac8]
lea rdx, [0x140009410]
call sub.fwpkclnt.sys_FwpmSubLayerDeleteByKey0
mov ecx, dword [0x14005fad0]
call sub.fwpkclnt.sys_FwpsCalloutUnregisterById0
mov rcx, qword [0x14005fac8]
test rcx, rcx
je 0x140007490
call sub.fwpkclnt.sys_FwpmEngineClose0
add rsp, 0x28
ret

Function at 0x1400076dc
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1400508e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x114
xor ebx, ebx
call fcn.140008500
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov eax, dword [rsp + 0x24]
cmp eax, 5
jne 0x14000772b
cmp dword [rsp + 0x28], 1
jne 0x140007763
lea ebx, [rax + 0x2e]
jmp 0x140007763
cmp eax, 6
jne 0x140007752
mov eax, dword [rsp + 0x28]
cmp eax, 1
jne 0x14000773e
lea ebx, [rax + 0x3c]
jmp 0x140007763
cmp eax, 2
jne 0x140007748
lea ebx, [rax + 0x3c]
jmp 0x140007763
cmp eax, 3
jne 0x140007763
lea ebx, [rax + 0x3c]
jmp 0x140007763
cmp eax, 0xa
jne 0x140007763
cmp dword [rsp + 0x28], ebx
mov eax, 0x64
cmove ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140008190
add rsp, 0x150
pop rbx
ret
Function at 0x14000799c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov r13d, 0x400
mov edx, r13d
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov edx, r13d
mov ecx, 1
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor r15d, r15d
mov rbx, rax
test rdi, rdi
je 0x140007b46
test rax, rax
je 0x140007b3b
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140007ce4
test eax, eax
js 0x140007b3b
mov esi, r15d
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov edx, esi
mov dword [rsp + 0x68], r15d
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140007b1a
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbp, rax
test rax, rax
je 0x140007b0f
mov ecx, dword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9, rbp
mov dword [rsp + 0x20], ecx
xor r8d, r8d
mov rcx, qword [rsp + 0x70]
mov edx, esi
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
test eax, eax
js 0x140007b04
mov r8, r13
xor edx, edx
mov rcx, rdi
call fcn.140008500
mov r8, r13
xor edx, edx
mov rcx, rbx
call fcn.140008500
mov rdx, rdi
mov rcx, r14
sub rdx, r14
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140007aa6
lea rcx, [rdi - 2]
lea rcx, [rcx + 2]
cmp word [rcx], r15w
jne 0x140007aba
mov eax, dword [0x140008610]
lea rdx, [rbp + 0x10]
mov dword [rcx], eax
mov rcx, rbx
mov r8d, dword [rbp + 0xc]
call fcn.140008240
lea rcx, [rdi - 2]
lea rcx, [rcx + 2]
cmp word [rcx], r15w
jne 0x140007ae0
xor edx, edx
movzx eax, word [rbx + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x140007aec
mov rcx, rdi
call fcn.14000799c
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
inc esi
cmp esi, 0x64
jl 0x140007a0a
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
je 0x140007b56
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x140007b70
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
and qword [rsp + 0x78], 0
mov r15, rdx
lea rdx, [rsp + 0x78]
mov r14, rcx
call fcn.140007ce4
mov esi, eax
test eax, eax
js 0x140007c51
xor edi, edi
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
and dword [rsp + 0x70], 0
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
and dword [rsp + 0x20], 0
mov edx, edi
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov esi, eax
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140007c3b
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbp, rax
test rax, rax
je 0x140007c30
mov ecx, dword [rsp + 0x70]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9, rbp
mov dword [rsp + 0x20], ecx
xor r8d, r8d
mov rcx, qword [rsp + 0x78]
mov edx, edi
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov rdx, rbp
mov rcx, r14
mov esi, eax
mov rax, r15
call qword [case.0x140002f1d.0]
xor edx, edx
mov rcx, rbp
mov bl, al
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp bl, 1
je 0x140007c3b
inc edi
cmp edi, 0x64
jl 0x140007ba2
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140007d40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rbx, rcx
xor edi, edi
lea rcx, [rbp - 0x18]
mov dword [rbp + 0x28], edi
mov qword [rbp - 0x20], rdi
mov rsi, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140007ce4
test eax, eax
js 0x140007e12
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 2]
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rdx, [rbp - 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000034
je 0x140007e01
cmp dword [rbp + 0x28], edi
je 0x140007e01
mov edx, dword [rbp + 0x28]
lea ecx, [rdi + 1]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
je 0x140007e01
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140007e01
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 2]
mov eax, dword [rbp + 0x28]
lea rdx, [rbp - 0x18]
mov r9, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140007e01
mov qword [rsi], rbx
jmp 0x140007e06
mov edi, 0xc0000001
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
Function at 0x140001360
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
lea r8, [0x140001070]
xor r9d, r9d
mov dword [rsp + 0x20], 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x1400013c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateThread_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x14000143c
mov edx, dword [rsp + 0x30]
lea rcx, str._i__Hijacking_Thread_Of_Id_:__d_...
call fcn.140001010
mov rcx, rbx
call fcn.140001080
test eax, eax
jne 0x1400013f5
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001470
add rsp, 0x40
pop rbx
ret
lea rcx, str.___DONE__n
call fcn.140001010
lea rcx, str.___Press__Enter__To_Run_The_Payload_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001470
add rsp, 0x40
pop rbx
ret

Function at 0x140001d44
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
nop
sub rsp, 0x25d560c2
add rsp, 0x25d56092
mov dword [rcx + 8], 0x65ca171e
sub dword [rcx + 8], 0x390bfd41
sub dword [rcx + 8], 0x2cbe19dc
lea rsi, [rcx + 0x298]
xorps xmm0, xmm0
lea rax, [0x140001ab8]
mov qword [rcx], rax
mov r14, rdx
lea rax, [rsi + 8]
mov rdi, rcx
mov qword [rsi], rax
xor ebp, ebp
mov qword [rcx + 0x290], rbp
mov rbx, r8
movups xmmword [rax], xmm0
mov rcx, rsi
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov rdx, qword [r8 + 0x38]
mov qword [rsi + 0x38], rdx
call fcn.1400110e0
mov r8d, ebp
cmp qword [rsi + 0x38], rbp
jbe 0x140030387
nop word [rax + rax]
mov rcx, qword [rbx]
movzx edx, word [rcx + r8*2]
mov word [rax + r8*2], dx
inc r8
cmp r8, qword [rsi + 0x38]
jb 0x14003036d
mov ecx, dword [rbx + 0x40]
mov esi, 0x1436fd93
add esi, 0x54df9dd1
sub esi, 0x69159b65
mov qword [rdi + 0x2e0], rbp
bts ecx, 0xe
mov dword [rdi + 0x2d8], ecx
mov edx, 0x512080c
add edx, 0x4c13911c
sub edx, 0x1342987a
xor edx, 0x3de300be
mov eax, dword [rbx + 0x54]
xor eax, 0x270d2d02
mov dword [rdi + 0x2e8], eax
mov eax, dword [rbx + 0x58]
xor eax, 0x270d2d02
mov dword [rdi + 0x2ec], eax
mov eax, dword [rbx + 0x44]
xor eax, 0x270d2d02
mov dword [rdi + 0x2f0], eax
mov eax, dword [rbx + 0x48]
xor eax, 0x270d2d02
mov dword [rdi + 0x2f4], eax
mov rax, qword [rbx + 0x60]
mov qword [rdi + 0x2f8], rax
mov eax, dword [rbx + 0x4c]
xor eax, 0x5cf647fe
mov dword [rdi + 0x308], eax
mov eax, dword [rbx + 0x50]
xor eax, 0x270d2d02
mov byte [rdi + 0x310], bpl
bt ecx, 0xd
mov dword [rdi + 0x30c], eax
pushf
mov eax, 0x213e121b
sub eax, 0x1ea73ff9
add eax, 0x125642d7
sub eax, 0x14ed13fa
popf
mov qword [rdi + 0x318], r14
cmovb esi, eax
mov ecx, esi
shl rcx, 4
call fcn.1400bb770
mov rcx, rax
mov edx, esi
nop dword [rax]
movaps xmm0, xmmword [0x1404e3570]
movups xmmword [rcx], xmm0
lea rcx, [rcx + 0x10]
sub rdx, 1
jne 0x140030462
mov qword [rdi + 0x300], rax
mov rdx, rbp
nop
mov rax, qword [rbx + 0x68]
lea rdx, [rdx + 0x10]
inc rbp
mov ecx, dword [rdx + rax - 0x10]
xor ecx, 0x5cf647fe
mov dword [rsp + 0x50], ecx
movss xmm3, dword [rsp + 0x50]
mov rax, qword [rbx + 0x68]
shufps xmm3, xmm3, 0xe1
mov ecx, dword [rdx + rax - 0xc]
xor ecx, 0x5cf647fe
mov dword [rsp + 0x50], ecx
movss xmm0, dword [rsp + 0x50]
mov rax, qword [rbx + 0x68]
movss xmm3, xmm0
shufps xmm3, xmm3, 0xc6
mov ecx, dword [rdx + rax - 8]
xor ecx, 0x5cf647fe
mov dword [rsp + 0x50], ecx
movss xmm1, dword [rsp + 0x50]
mov rax, qword [rbx + 0x68]
movss xmm3, xmm1
shufps xmm3, xmm3, 0x27
mov ecx, dword [rdx + rax - 4]
xor ecx, 0x5cf647fe
mov dword [rsp + 0x50], ecx
movss xmm2, dword [rsp + 0x50]
mov rax, qword [rdi + 0x300]
movss xmm3, xmm2
shufps xmm3, xmm3, 0x39
xorps xmm3, xmmword [0x1404e3570]
movups xmmword [rdx + rax - 0x10], xmm3
cmp rbp, rsi
jl 0x140030486
lea rcx, [r14 + 0xa8]
mov qword [rsp + 0x50], rdi
lea rdx, [rsp + 0x50]
call fcn.14002fd90
mov rbx, qword [rsp + 0x58]
mov rax, rdi
mov rbp, qword [rsp + 0x60]
sub rsp, 0xffffffffffffffd0
pop r14
pop rdi
pop rsi
ret
Function at 0x140030a2e
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
add rsp, 0xffffffffffffffa0
lea rax, [rcx + 8]
mov qword [rsp + 0x70], rbx
mov qword [rcx], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rsi, rcx
mov qword [rsp + 0x78], rbp
movups xmmword [rax + 0x10], xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
mov rbp, qword [rdx + 0x38]
lea rax, [rsp + 0x28]
mov rbx, qword [rdx]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
lea rdx, [rbp + 1]
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.1400110e0
mov edx, 0x4774ba44
sub edx, 0x44c24170
xor edx, 0xbb66900
test rbp, rbp
je 0x140030aef
mov rdi, rax
sub rbx, rax
mov r9, rbp
mov r8d, 0x2b276bcc
add r8d, 0x2bd8089e
sub r8d, 0x56ff736b
nop word [rax + rax]
movzx ecx, dx
lea rdi, [rdi + 2]
and cx, r8w
ror edx, 8
xor cx, word [rdi + rbx - 2]
mov word [rdi - 2], cx
sub r9, 1
jne 0x140030ace
xor ecx, ecx
mov r8, rbp
mov word [rax + rbp*2], cx
mov rcx, rsi
mov rdx, qword [rsp + 0x20]
call fcn.1400a3810
mov rcx, qword [rsp + 0x20]
lea rax, [rsp + 0x28]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
cmp rcx, rax
jne 0x140030b58
xor eax, eax
lea rdi, [rsp + 0x28]
mov ecx, 0x549d6a4a
xor ecx, 0x1b171a77
xor ecx, 0x4f8a700d
rep stosb byte [rdi], al
mov rax, rsi
mov rsi, qword [rsp + 0x80]
nop
sub rsp, 0x540a246c
add rsp, 0x540a24cc
pop rdi
ret
call fcn.1400bb8f0
mov rax, rsi
mov rsi, qword [rsp + 0x80]
sub rsp, 0xffffffffffffffa0
pop rdi
ret