joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002c50
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.180002a40
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180002d27
mov dword [rsp + 0x20], 0
jmp 0x180002cc4
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180002d27
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180002d25
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.180002820
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002cba
add rsp, 0x30
pop rdi
ret

Function at 0x180002d40
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180002de4
mov dword [rsp + 0x20], 0
jmp 0x180002d7d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180002dcd
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180002dcb
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002d73
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18000b488]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x180002df0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x18000baf0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180002e74
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180002e9d
mov eax, 0xa
jmp 0x180002fd7
cmp dword [rsp + 0x88], 0
je 0x180002f0b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180002f09
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x180002f57
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180002f3b
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x180002f57
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180008580]
call fcn.180005d70
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x140011217
Capabilities:
Terminate process

Disassembly:
jmp 0x140014dd0
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]
nop
add rsp, 0x28
ret

Function at 0x14001129e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016120
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016140
xor al, al
jmp 0x1400161c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016153
xor al, al
jmp 0x1400161c1
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 0x14001617d
xor al, al
jmp 0x1400161c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016191
xor al, al
jmp 0x1400161c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400161a3
xor al, al
jmp 0x1400161c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400161bf
xor al, al
jmp 0x1400161c1
mov al, 1
add rsp, 0x38
ret
Function at 0x140014010
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113ca
movzx eax, al
test eax, eax
jne 0x140014030
mov ecx, 7
call fcn.140011339
nop
mov byte [rsp + 0x20], 0
call fcn.140011352
mov byte [rsp + 0x21], al
cmp dword [0x14001f8b8], 1
jne 0x140014054
mov ecx, 7
call fcn.140011339
nop
jmp 0x1400140ac
cmp dword [0x14001f8b8], 0
jne 0x1400140a7
mov dword [0x14001f8b8], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.1400111b8
test eax, eax
je 0x140014088
mov eax, 0xff
jmp 0x1400141b1
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.140011348
mov dword [0x14001f8b8], 2
jmp 0x1400140ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011325
call fcn.1400112c1
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140014109
mov rcx, qword [rsp + 0x30]
call fcn.140011168
movzx eax, al
test eax, eax
je 0x140014109
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.1400112f3
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001413d
mov rcx, qword [rsp + 0x38]
call fcn.140011168
movzx eax, al
test eax, eax
je 0x14001413d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011389
nop
call fcn.140014260
mov dword [rsp + 0x28], eax
call fcn.14001129e
movzx eax, al
test eax, eax
jne 0x14001415c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001416b
call fcn.140011393
nop
xor edx, edx
mov cl, 1
call fcn.140011154
mov eax, dword [rsp + 0x28]
jmp 0x1400141b1
add rsp, 0x68
ret
Function at 0x14001115e
Capabilities:
Write file on windows

Disassembly:
jmp 0x140028e70
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140047069]
call fcn.140011d4d
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140028ec7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140028fd3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140028f6c
cmp qword [rbp + 0x28], 0
jle 0x140028f6c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140028f0c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011c76
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140028fc2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140028fc2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001178f
Capabilities:
Terminate process

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

Disassembly:
jmp 0x14002c990
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002c9b0
xor al, al
jmp 0x14002ca31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002c9c3
xor al, al
jmp 0x14002ca31
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 0x14002c9ed
xor al, al
jmp 0x14002ca31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14002ca01
xor al, al
jmp 0x14002ca31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14002ca13
xor al, al
jmp 0x14002ca31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002ca2f
xor al, al
jmp 0x14002ca31
mov al, 1
add rsp, 0x38
ret
Function at 0x140011d20
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001f5b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x14003f040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x140047069]
call fcn.140011d4d
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001f616
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001f61d
mov al, 1
jmp 0x14001f76d
call fcn.1400113d4
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.1400113d4
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011a96
movzx eax, al
test eax, eax
je 0x14001f66e
xor al, al
jmp 0x14001f76d
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001f6d3
cmp dword [rbp + 0x154], 1
je 0x14001f6de
cmp dword [rbp + 0x154], 3
je 0x14001f75c
jmp 0x14001f76b
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001f72e
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001f72e
xor al, al
jmp 0x14001f76d
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001f749
mov dword [rbp + 0x154], 1
jmp 0x14001f753
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001f76d
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001f76d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140036470]
call fcn.140011b18
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140011668
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140001000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov eax, 0x43
lea rcx, [rbp + 6]
xor ebx, ebx
mov word [rbp - 0x48], ax
mov eax, 0x6e
xor edx, edx
mov word [rbp - 0x3e], ax
mov eax, 0x6d
mov r8d, 0x1aa
mov word [rbp - 0x28], ax
mov eax, 0x33
mov dword [rbp - 0x50], 0x3f005c
mov dword [rbp - 0x4c], 0x5c003f
mov dword [rbp - 0x46], 0x5c003a
mov dword [rbp - 0x42], 0x690057
mov word [rbp - 0x26], ax
mov dword [rbp - 0x3c], 0x6f0064
mov dword [rbp - 0x38], 0x730077
mov dword [rbp - 0x34], 0x73005c
mov dword [rbp - 0x30], 0x730079
mov dword [rbp - 0x2c], 0x650074
mov dword [rbp - 0x24], 0x5c0032
mov dword [rbp - 0x20], 0x720044
mov dword [rbp - 0x1c], 0x760069
mov dword [rbp - 0x18], 0x720065
mov dword [rbp - 0x14], 0x5c0073
mov dword [rbp - 0x10], 0x740065
mov dword [rbp - 0xc], 0x5c0063
mov dword [rbp - 8], 0x6f0068
mov dword [rbp - 4], 0x740073
mov dword [rbp], 0x73
mov word [rbp + 4], bx
call fcn.140002040
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 0x40
mov dword [rsp + 0x38], 4
lea rax, [rbp - 0x70]
mov dword [rsp + 0x30], 7
lea r9, [rbp - 0x60]
lea r8, [rsp + 0x60]
lea rcx, [rbp + 0x1c0]
mov edx, 0x100002
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x78], 0x240
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x50]
lea rdx, [rbp - 0x50]
repne scasw ax, word [rdi]
mov rax, qword [str..ics]
lea rcx, [rbp - 0x70]
mov qword [rdi - 2], rax
movzx eax, word [0x1400030e8]
mov word [rdi + 6], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 0x40
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], 7
lea rax, [rbp - 0x70]
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x78], 0x240
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
lea r9, [rbp - 0x60]
lea r8, [rsp + 0x60]
lea rcx, [rbp + 0x1c0]
mov edx, 0x100002
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 0x40
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x30], 7
lea r9, [rbp - 0x60]
lea r8, [rsp + 0x60]
lea rcx, [rbp + 0x1c0]
mov edx, 0x100002
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140001260
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0xc0
mov rdx, rcx
lea rcx, [rsp + 0x58]
mov edi, r9d
mov rsi, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor ebp, ebp
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x88]
lea rcx, [rsp + 0x50]
mov edx, 0x100001
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], rbp
mov dword [rsp + 0xa0], 0x240
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], rbp
mov dword [rsp + 0x20], 7
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
js 0x14000136d
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0xd8]
mov qword [rsp + 0xd0], rbx
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov dword [rsp + 0x30], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
js 0x140001350
test rbx, rbx
je 0x14000134e
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
mov rbx, qword [rsp + 0xd0]
lea r11, [rsp + 0xc0]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov eax, 0xc0000001
jmp 0x140001358
Function at 0x140001750
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x40
mov rsi, rcx
mov edx, 0x200
mov r8d, 0x69706744
mov ecx, 1
mov word [rsp + 0x22], dx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, 4
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x28], rax
nop word [rax + rax]
lea rdx, [rsp + 0x58]
mov ecx, ebx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001842
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.140001630
test eax, eax
js 0x140001842
mov r9, qword [rsp + 0x28]
xor r10d, r10d
xor edx, edx
movzx eax, word [r9]
test ax, ax
je 0x140001812
lea ecx, [rdx + 1]
cmp ax, 0x5c
jne 0x1400017de
mov eax, ecx
lea r10, [r9 + rax*2]
movzx eax, word [r9 + rdx*2 + 2]
inc rdx
inc ecx
test ax, ax
jne 0x1400017d2
test r10, r10
je 0x140001812
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r10
repne scasw ax, word [rdi]
mov rdx, r10
not rcx
lea r8, [rcx + rcx - 1]
mov rcx, r9
call fcn.140001cf0
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, str._wZ_r_n
movdqa xmmword [rsp + 0x30], xmm0
call qword [sym.imp.ntoskrnl.exe_DbgPrint]
mov rdx, qword [rsi + 8]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe__wcsicmp]
test eax, eax
je 0x140001873
add ebx, 4
cmp ebx, 0x2710
jb 0x140001790
mov rcx, qword [rsp + 0x28]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000229
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov rcx, qword [rsp + 0x28]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rsi
ret
Function at 0x140001930
Capabilities:
Create device object
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rbx, rcx
mov qword [0x140004018], rcx
lea rdx, str.DeviceKiSafe0
lea rcx, [rbp + 7]
xor edi, edi
mov qword [rbp + 0x67], rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, str.DosDevicesKiSafe0
lea rcx, [rbp + 0x17]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140001b50]
lea rax, [rbx + 0x70]
lea ecx, [rdi + 3]
nop word [rax + rax]
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
add rax, 0x40
dec rcx
mov qword [rax - 0x28], rdx
mov qword [rax - 0x20], rdx
mov qword [rax - 0x18], rdx
mov qword [rax - 0x10], rdx
mov qword [rax - 8], rdx
jne 0x140001990
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
lea rax, [0x140001b20]
lea r9d, [rcx + 0x22]
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x80], rax
lea rax, [0x140001ae0]
mov qword [rbx + 0x68], rax
lea rax, [rbp + 0x67]
lea r8, [rbp + 7]
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, rbx
mov byte [rsp + 0x28], dil
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x140001ac1
mov rax, qword [rbp + 0x67]
test rax, rax
jne 0x140001a24
mov eax, 0xc00000e9
jmp 0x140001ac1
or dword [rax + 0x30], 0x10
mov rax, qword [rbp + 0x67]
lea rdx, [rbp + 7]
lea rcx, [rbp + 0x17]
mov dword [rax + 0x98], 1
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov r11, qword [rbp + 0x67]
xor eax, eax
and dword [r11 + 0x30], 0xffffff7f
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x37], rax
mov qword [rbp + 0x3f], rax
mov qword [rbp + 0x47], rax
mov qword [rbp + 0x4f], rax
lea rax, [0x1400018a0]
mov qword [rsp + 0x30], rdi
lea r8, [rbp + 0x27]
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x77]
xor r9d, r9d
mov edx, 0x1f03ff
mov qword [rsp + 0x20], rdi
mov dword [rbp + 0x27], 0x30
mov qword [rbp + 0x2f], rdi
mov dword [rbp + 0x3f], 0x200
mov qword [rbp + 0x37], rdi
mov qword [rbp + 0x47], rdi
mov qword [rbp + 0x4f], rdi
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x140001abf
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret