joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015a60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001c960
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001c960
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140016712
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140034208]
test eax, eax
je 0x1400167aa
lea rax, [0x1400341e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140034210]
mov qword [rbp - 8], rax
jmp 0x14001678e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140016782
cmp qword [rbp - 0x10], 0
je 0x140016782
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140016748
lea rax, [0x1400341e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400167ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400168b0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400168d8
mov eax, 0
jmp 0x140016926
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140016901
mov eax, 0
jmp 0x140016926
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140016921
mov eax, 0
jmp 0x140016926
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001692c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400169aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400169a1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400169a1
mov rax, qword [rbp - 8]
jmp 0x1400169bf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140016974
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140055f50
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140055f5d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140055f6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140055f55
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140055f85
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140055f72
sub eax, 3
jb 0x140055f9f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140055fd6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140055fc6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140055fc4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140055fb3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140055f12
jmp 0x140055f5d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x28a00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140056022
cmp rsi, rcx
jae 0x14005602a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140056009
cmp al, 0x8f
ja 0x140056009
cmp byte [rsi - 2], 0xf
je 0x14005600f
sub al, 0xe8
cmp al, 1
ja 0x140055ff3
cmp rsi, rcx
jae 0x14005602a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140055ff9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005602a
lodsb al, byte [rsi]
jmp 0x140056009
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x53000]
mov eax, dword [rdi]
or eax, eax
je 0x140056087
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x565ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140056037
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140056081
mov qword [rbx], rax
add rbx, 8
jmp 0x140056057
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400560c1
cmp al, 0xef
ja 0x1400560b3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140056093
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400560a2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140056115
sub rsp, 0xffffffffffffff80
jmp 0x14000a6a0
Function at 0x1800014a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x18
mov byte [rsp], 0
jmp 0x1800014b7
movzx eax, byte [rsp]
add al, 1
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x18000153e
mov byte [rsp + 1], 0
jmp 0x1800014d2
movzx eax, byte [rsp + 1]
add al, 1
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x180001539
movzx ecx, byte [rsp]
mov rax, qword [0x1800122d8]
lea r8, [rax + rcx*4]
movzx edx, byte [rsp + 1]
movzx ecx, byte [rsp + 0x20]
shl ecx, 2
movzx eax, byte [rsp]
shl eax, 2
lea eax, [rax + rcx*4]
movzx ecx, byte [rsp + 1]
add eax, ecx
movsxd rcx, eax
lea rax, [0x180012220]
movzx eax, byte [rax + rcx]
movzx r8d, byte [r8 + rdx]
xor r8d, eax
movzx edx, byte [rsp + 1]
movzx ecx, byte [rsp]
mov rax, qword [0x1800122d8]
lea rax, [rax + rcx*4]
mov byte [rax + rdx], r8b
jmp 0x1800014c7
jmp 0x1800014ae
add rsp, 0x18
ret
Function at 0x180004390
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2f8
mov dword [rsp + 0xd0], 0xc0000001
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x88], rax
xor eax, eax
mov word [rsp + 0x80], ax
mov eax, 0x208
mov word [rsp + 0x82], ax
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.18000ece0
mov r8d, 6
lea rdx, str.system
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntoskrnl.exe_RtlCompareMemory]
cmp rax, 6
jne 0x180004430
lea rdx, str.DosDevicesc:windows_
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov dword [rsp + 0xd0], eax
jmp 0x18000444c
lea rdx, [0x180010600]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov dword [rsp + 0xd0], eax
mov rdx, qword [rsp + 0x300]
mov rdx, qword [rdx + 8]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov dword [rsp + 0xd0], eax
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0x40
lea rax, [rsp + 0x80]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x90]
mov edx, 0x80000000
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
jl 0x180004621
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
jl 0x180004621
mov rcx, qword [rsp + 0x310]
mov eax, dword [rsp + 0x68]
mov dword [rcx], eax
mov rax, qword [rsp + 0x310]
mov edx, dword [rax]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r11, rax
mov rax, qword [rsp + 0x308]
mov qword [rax], r11
mov rax, qword [rsp + 0x310]
mov r8d, dword [rax]
xor edx, edx
mov rcx, qword [rsp + 0x308]
mov rcx, qword [rcx]
call fcn.18000ece0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x310]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x308]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
jl 0x180004621
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0xd0]
jmp 0x180004628
mov eax, dword [rsp + 0xd0]
add rsp, 0x2f8
ret
Function at 0x1800048e0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov dword [rsp + 0xb8], 0xc0000001
lea rdx, str.__C:WINDOWS_system32drivers_acpi.sys
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], 0
mov dword [rsp + 0xa0], 0x40
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x88]
mov edx, 0x40000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xb8], 0
jl 0x180004a0b
mov dword [rsp + 0x20], 4
mov r9d, 0x28
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xb8], 0
jl 0x180004a0b
mov rcx, qword [rsp + 0x100]
mov eax, dword [rsp + 0xc4]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0xb8]
add rsp, 0xf8
ret

Function at 0x180007c60
Capabilities:
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0xb8], 0xffffffffffffffff
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], 0
mov dword [rsp + 0xa0], 0x40
lea rax, [rsp + 0x70]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x68], 0x100
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x4021
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x88]
mov edx, 0x100001
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jne 0x180007df7
cmp qword [rsp + 0xb8], 0xffffffffffffffff
je 0x180007df7
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x40], 1
mov dword [rsp + 0x38], 3
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
je 0x180007df7
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0xb8], 0xffffffffffffffff
mov rax, qword [rsp + 0xb8]
add rsp, 0xd8
ret
Function at 0x180007e10
Capabilities:
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x38], 3
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x180007e8a
mov al, 1
jmp 0x180007e8c
xor al, al
add rsp, 0x88
ret
Function at 0x180008940
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x38]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xc0000034
je 0x1800089a3
cmp dword [rsp + 0x38], 0
jne 0x1800089aa
xor al, al
jmp 0x180008a50
mov edx, dword [rsp + 0x38]
mov r8d, 0x6b6f6b6f
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x30]
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1800089fd
xor al, al
jmp 0x180008a50
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 4
jne 0x180008a3a
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
cmp rax, 4
jne 0x180008a3a
mov rax, qword [rsp + 0x30]
add rax, 0xc
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x80]
cmp dword [rcx], eax
je 0x180008a38
xor al, al
jmp 0x180008a50
jmp 0x180008a3e
xor al, al
jmp 0x180008a50
mov edx, 0x6b6f6b6f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, 1
add rsp, 0x68
ret
Function at 0x18000b180
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0x30
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [0x18000b220]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x48]
mov edx, 0x1fffff
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
add rsp, 0x88
ret
Function at 0x18000ba10
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x6b6f6b6f
mov edx, 0x104
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [0x180012450], rax
xor eax, eax
mov word [0x180012448], ax
mov eax, 0x104
mov word [0x18001244a], ax
mov r8d, 0x104
xor edx, edx
mov rcx, qword [0x180012450]
call fcn.18000ece0
mov r8d, 0x6b6f6b6f
mov edx, 0x104
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x50], rax
xor eax, eax
mov word [rsp + 0x48], ax
mov eax, 0x104
mov word [rsp + 0x4a], ax
mov r8d, 0x104
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.18000ece0
lea rdx, [0x180010b64]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [0x180012448]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x48]
call fcn.18000c810
lea rdx, [rsp + 0x48]
lea rcx, [0x180012448]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea r11, [0x180012410]
mov qword [rsp + 0x30], r11
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [0x180012448]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jge 0x18000bb25
mov eax, dword [rsp + 0x68]
jmp 0x18000bb75
mov rax, qword [0x180012410]
mov ecx, dword [rax + 0x30]
or ecx, 4
mov rax, qword [0x180012410]
mov dword [rax + 0x30], ecx
mov dword [rsp + 0x40], 0
jmp 0x18000bb51
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x1b
jge 0x18000bb73
movsxd rdx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
lea rax, [0x18000bd40]
mov qword [rcx + rdx*8 + 0x70], rax
jmp 0x18000bb46
xor eax, eax
add rsp, 0x78
ret
Function at 0x18000d280
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
lea rdx, str.__C:log.txt
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], 0
mov dword [rsp + 0xa0], 0x40
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x88]
mov edx, 0x40000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xb8], 0
jl 0x18000d3b3
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0xd8
ret
Function at 0x18000e9d0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x18000ea19
xor al, al
jmp 0x18000eadb
cmp qword [rsp + 0x20], 0
je 0x18000ea33
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x18000ea3a
xor al, al
jmp 0x18000eadb
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r11, rax
mov rax, qword [sym.imp.ntoskrnl.exe_PsInitialSystemProcess]
cmp r11, qword [rax]
jne 0x18000ea87
mov rax, qword [rsp + 0x28]
or rax, 0xffffffff80000000
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x88], rax
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0
xor r8d, r8d
lea rdx, [rsp + 0x64]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObSetHandleAttributes]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x18000ead3
xor al, al
jmp 0x18000eadb
jmp 0x18000ead9
mov al, 1
add rsp, 0x78
ret

Function at 0x180027790
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800277b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800277b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x180028250
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, rax
call fcn.180001ba0
movzx eax, al
test eax, eax
jne 0x180028297
mov rax, qword [rsp + 0x30]
mov rcx, rax
call fcn.180001c50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x30]
lea rdx, [0x180036f7c]
mov rcx, rax
call fcn.180001da0
add rsp, 0x28
ret
Function at 0x1400021e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
movzx edi, dl
mov rbx, rcx
cmp rax, qword [rcx + 0x10]
jb 0x140002230
mov rcx, qword [rcx + 8]
cmp rax, rcx
je 0x14000221e
mov r9, qword [rbx]
sub rax, rcx
mov r8, rax
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], dil
inc qword [rbx + 0x18]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov byte [rax], dil
inc qword [rcx + 0x18]
add rsp, 0x20
pop rdi
ret
Function at 0x140004830
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx]
mov rdi, rcx
mov r8, qword [rbx + 0x18]
mov rax, r8
test dl, dl
je 0x1400048ee
cmp r8, qword [rbx + 0x10]
jb 0x140004876
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140004876
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], reloc.WS2_32.dll_WSACleanup
inc qword [rbx + 0x18]
mov rbx, qword [rdi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400048ae
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400048ae
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], WSAStartup
inc qword [rbx + 0x18]
mov rbx, qword [rdi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400048e6
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400048e6
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x75
jmp 0x1400049c0
cmp r8, qword [rbx + 0x10]
jb 0x140004915
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140004915
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x66
inc qword [rbx + 0x18]
mov rbx, qword [rdi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x14000494d
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x14000494d
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x61
inc qword [rbx + 0x18]
mov rbx, qword [rdi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x140004985
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140004985
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x6c
inc qword [rbx + 0x18]
mov rbx, qword [rdi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400049bd
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400049bd
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], reloc.WS2_32.dll_WSAStartup
inc qword [rbx + 0x18]
mov rbx, qword [rdi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400049f5
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400049f5
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140191600
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x65
mov al, 1
inc qword [rbx + 0x18]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret