joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011370
Capabilities:
Terminate process

Disassembly:
jmp 0x1400199f0
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 0x14001144c
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x140013860
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140026018]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x14002c0f4]
call fcn.140011640
mov byte [rbp + 4], 0
mov byte [rbp + 0x24], 0
mov byte [rbp + 0x44], 0
xor eax, eax
cmp eax, 1
je 0x1400139aa
mov dword [rbp + 0x64], 8
jmp 0x1400138c5
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0xff
jg 0x1400139a5
mov ecx, dword [rbp + 0x64]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
cmp eax, 0xffff8001
jne 0x1400139a0
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140013905
mov byte [rbp + 0x174], 1
jmp 0x14001390c
mov byte [rbp + 0x174], 0
movzx eax, byte [rbp + 0x174]
mov byte [rbp + 0x24], al
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
mov byte [rbp + 0x44], al
movzx eax, byte [rbp + 0x24]
test eax, eax
jne 0x140013944
movzx eax, byte [rbp + 0x44]
test eax, eax
jne 0x140013944
mov dword [rbp + 0x174], 0
jmp 0x14001394e
mov dword [rbp + 0x174], 1
movzx eax, byte [rbp + 0x174]
mov byte [rbp + 4], al
movzx r8d, byte [rbp + 4]
mov edx, dword [rbp + 0x64]
lea rcx, [rbp + 0x88]
call fcn.1400116c7
nop
lea rcx, [rbp + 0x88]
call fcn.14001117c
movzx eax, al
test eax, eax
jne 0x140013994
lea rdx, [rbp + 0x88]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400115b4
nop
lea rcx, [rbp + 0x88]
call fcn.14001112c
jmp 0x1400138bd
jmp 0x1400138a9
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140021e00]
call fcn.14001152d
mov eax, edi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.14001130c
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140008710
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x8b70dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x8b70ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x8b70d5
lea eax, [rcx + 1]
jmp 0x8b70fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x8b710e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x8b70f4
sub eax, 3
jb 0x8b712e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x8b717d
sar eax, 1
movsxd rbp, eax
jb 0x8b7164
jmp 0x8b713c
add ebx, ebx
jne 0x8b713a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x8b7164
inc ecx
add ebx, ebx
jne 0x8b714a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x8b7164
call r11
adc ecx, ecx
add ebx, ebx
jne 0x8b715d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x8b714c
add ecx, 2
jmp 0x8b7169
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.008b7092
jmp 0x8b70dd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x235e00
mov dl, 0x37
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x8b71c9
cmp rsi, rcx
jae 0x8b71d1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x8b71b0
cmp al, 0x8f
ja 0x8b71b0
cmp byte [rsi - 2], 0xf
je 0x8b71b6
sub al, 0xe8
cmp al, 1
ja 0x8b719a
cmp rsi, rcx
jae 0x8b71d1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x8b71a0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x8b71d1
lodsb al, byte [rsi]
jmp 0x8b71b0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4ab000]
mov eax, dword [rdi]
or eax, eax
je 0x8b722e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4b7000]
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 0x8b71de
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 0x8b7228
mov qword [rbx], rax
add rbx, 8
jmp 0x8b71fe
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 0x8b7272
cmp al, 0xef
ja 0x8b725a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x8b723a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x8b7249
mov eax, dword [rdi]
add rdi, 4
jmp 0x8b7249
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 + 0x1af]
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 0x8b72c6
sub rsp, 0xffffffffffffff80
jmp 0x46ba20
Function at 0x140031694
Capabilities:
Terminate process

Disassembly:
jmp 0x14008af10
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 0x140031b76
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x14008dc00
jmp 0x14008dc10
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
test rax, rax
je 0x14008dd88
mov ecx, dword [rsp + 0x60]
inc ecx
movsxd rbx, ecx
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x14008dd88
xor edi, edi
mov r14d, edi
cmp dword [rsp + 0x60], edi
jle 0x14008dd1f
sub rax, r12
mov rsi, r12
mov qword [rsp + 0x68], rax
nop
mov rcx, qword [rsi]
call fcn.140031bd5
mov r8, qword [rsi]
lea rdx, str.UTF_16LE
lea rcx, str.UTF_8
lea r9, [rax*2 + 2]
call fcn.1400326de
mov rbp, rax
test rax, rax
je 0x14008dd88
mov rcx, rax
call fcn.140031a9a
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r13 + 1]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rsi], rax
test rax, rax
je 0x14008dd88
mov r8d, r13d
mov rdx, rbp
mov rcx, rax
call fcn.1400316ad
mov rcx, rbp
call fcn.1400301ae
inc r14d
add rsi, 8
cmp r14d, dword [rsp + 0x60]
jl 0x14008dc90
movsxd rax, r14d
mov rcx, r12
mov qword [r15 + rax*8], rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.140030b63
mov ecx, dword [rsp + 0x60]
mov rdx, r15
call fcn.140031c1b
mov esi, eax
cmp dword [rsp + 0x60], edi
jle 0x14008dd70
mov rbx, r15
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbx]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
inc edi
lea rbx, [rbx + 8]
cmp edi, dword [rsp + 0x60]
jl 0x14008dd50
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x14008dda4
xor r9d, r9d
lea r8, str.Out_of_memory___aborting
lea rdx, str.Fatal_Error
lea ecx, [r9 + 0x10]
call fcn.140030fc3
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140031bf8
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008c810
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14008c830
xor al, al
jmp 0x14008c8b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14008c843
xor al, al
jmp 0x14008c8b1
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 0x14008c86d
xor al, al
jmp 0x14008c8b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14008c881
xor al, al
jmp 0x14008c8b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14008c893
xor al, al
jmp 0x14008c8b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14008c8af
xor al, al
jmp 0x14008c8b1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001000
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xb8
mov rax, qword [0x140006450]
xor rax, rsp
mov qword [rbp + 0x17], rax
and qword [rbp - 0x29], 0
xorps xmm0, xmm0
and qword [rbp - 0x21], 0
mov rsi, r9
movups xmmword [rbp - 0x19], xmm0
mov r15, r8
mov r14, rdx
movups xmmword [rbp - 9], xmm0
mov rbx, rcx
movups xmmword [rbp + 7], xmm0
call fcn.1400012dc
mov rdi, rax
test rax, rax
je 0x140001113
lea rdx, [rbp - 0x29]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001113
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x50], 0
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x48], 0x200000
mov ebx, 0x1fffff
mov qword [rsp + 0x40], 0x100000
or r9, 0xffffffffffffffff
and qword [rsp + 0x38], 0
xor r8d, r8d
and dword [rsp + 0x30], 0
mov edx, ebx
mov qword [rsp + 0x28], r15
mov rax, rdi
mov qword [rsp + 0x20], r14
call qword [0x140004180]
test eax, eax
js 0x140001105
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140001105
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
xor r9d, r9d
and qword [rsp + 0x28], 0
mov edx, ebx
mov qword [rsp + 0x20], rsi
mov r8, qword [r8]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, 1
jmp 0x140001115
xor al, al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400027c0
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140001134
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov rax, qword [0x140006450]
xor rax, rsp
mov qword [rbp + 0x3f], rax
movups xmm0, xmmword [rcx]
and qword [rbp - 0x11], 0
lea r9, [rbp - 9]
xor esi, esi
lea r8, [rbp + 7]
and dword [rsp + 0x50], esi
lea rcx, [rbp - 0x11]
and qword [rsp + 0x48], rsi
mov ebx, 0x80
mov dword [rsp + 0x40], 0x20
mov edx, 0xc0000000
mov dword [rsp + 0x38], 1
xor r14d, r14d
movdqu xmmword [rbp + 7], xmm0
mov dword [rsp + 0x30], 7
xor r15d, r15d
xorps xmm0, xmm0
mov dword [rsp + 0x28], ebx
and qword [rsp + 0x20], rsi
movups xmmword [rbp - 9], xmm0
call fcn.140001e30
test eax, eax
jns 0x1400011e2
mov r9d, eax
lea r8, [0x140003220]
xor edx, edx
lea ecx, [rsi + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor eax, eax
jmp 0x1400012b1
xor eax, eax
mov dword [rsp + 0x20], 4
xorps xmm0, xmm0
mov qword [rbp + 0x37], rax
mov dword [rbp + 0x37], ebx
lea r8, [rbp + 0x17]
mov rbx, qword [rbp - 0x11]
lea rdx, [rbp - 9]
mov rcx, rbx
lea r9d, [rax + 0x28]
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
call fcn.140002354
mov edi, eax
test eax, eax
jns 0x14000122f
lea rcx, [0x140003240]
mov edx, edi
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400012af
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x140001259
mov rsi, qword [rax + 0x10]
mov r14, qword [rax]
mov r15, qword [rax + 8]
and qword [rax + 0x10], 0
mov rax, qword [rbx + 0x28]
and qword [rax], 0
mov rax, qword [rbx + 0x28]
and qword [rax + 8], 0
mov r9d, 1
mov byte [rbp - 0x19], 1
lea r8, [rbp - 0x19]
mov dword [rsp + 0x20], 0xd
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.140002354
mov edi, eax
test eax, eax
jns 0x14000128a
lea rcx, [0x140003280]
jmp 0x140001223
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x1400012a6
mov qword [rax + 0x10], rsi
mov rax, qword [rbx + 0x28]
mov qword [rax], r14
mov rax, qword [rbx + 0x28]
mov qword [rax + 8], r15
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400027c0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov r11, rdx
mov r8, rcx
test rcx, rcx
je 0x140001471
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001471
movsxd rax, dword [rcx + 0x3c]
mov ecx, 0x20b
cmp word [rax + r8 + 0x18], cx
jne 0x1400013b7
mov ecx, dword [rax + r8 + 0x88]
jmp 0x1400013bc
mov ecx, dword [rax + r8 + 0x78]
mov r9d, ecx
mov edx, ebx
mov r14d, dword [r9 + r8 + 0x24]
mov r15d, dword [r9 + r8 + 0x20]
add r14, r8
mov edi, dword [r9 + r8 + 0x1c]
add r15, r8
mov r12d, dword [r9 + r8 + 0x14]
add rdi, r8
test r12d, r12d
je 0x14000143a
cmp r11, 0xffff
ja 0x1400013ff
movzx ecx, dx
movzx esi, dx
add ecx, dword [r9 + r8 + 0x10]
movzx eax, r11w
cmp eax, ecx
jmp 0x140001431
cmp edx, dword [r9 + r8 + 0x18]
jae 0x14000145f
mov eax, edx
mov rbp, r11
mov ecx, dword [r15 + rax*4]
movzx esi, word [r14 + rax*2]
add rcx, r8
sub rbp, rcx
movzx eax, byte [rcx]
movzx r10d, byte [rcx + rbp]
sub eax, r10d
jne 0x14000142f
inc rcx
test r10d, r10d
jne 0x14000141a
test eax, eax
je 0x14000143f
inc edx
cmp edx, r12d
jb 0x1400013e3
mov rax, rbx
jmp 0x140001473
movzx eax, si
xor edx, edx
mov ebx, dword [rdi + rax*4]
lea ecx, [rdx + 0x4d]
add rbx, r8
lea r8, [0x140002fa0]
mov r9, rbx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000143a
xor edx, edx
lea r8, [0x140002f90]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001494
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140006450]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov rdi, rdx
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
je 0x1400014d0
cdqe
jmp 0x14000158e
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
setne bl
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x1400014f7
xor eax, eax
jmp 0x14000158e
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov rdx, rdi
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, bl
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call fcn.140001634
mov rbx, rax
test rax, rax
je 0x14000158e
mov r9, rbx
lea r8, [0x140002fb0]
xor edx, edx
lea edi, [rdx + 0x4d]
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov r8, qword [rsp + 0x20]
mov rdx, rsi
mov rcx, rbx
call fcn.140001360
mov rbx, rax
mov qword [rsp + 0x38], rax
mov r9, rax
lea r8, [0x140002fd0]
xor edx, edx
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rbx
jmp 0x14000158e
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400027c0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400015a8
Capabilities:
Check for software breakpoints

Disassembly:
sub rsp, 0x38
mov eax, dword [0x140006498]
test eax, eax
jne 0x140001617
xorps xmm0, xmm0
lea rdx, [0x140002f40]
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
xor edx, edx
mov r8, rax
lea rcx, [rax + 2]
lea r9, [rdx - 2]
sub r9, rax
cmp byte [rcx - 2], 0xc3
jne 0x140001606
mov al, byte [rcx - 1]
cmp al, 0xcc
je 0x1400015fc
cmp al, 0x90
jne 0x140001606
mov al, byte [rcx]
cmp al, 0xcc
je 0x14000161c
cmp al, 0x90
je 0x14000161c
inc rcx
inc edx
lea rax, [r9 + rcx]
cmp rax, 0x64
jl 0x1400015eb
xor eax, eax
add rsp, 0x38
ret
movsxd rax, edx
mov eax, dword [rax + r8 - 4]
test eax, eax
je 0x140001615
add eax, 0xffffffd0
mov dword [0x140006498], eax
jmp 0x140001617
Function at 0x14000176c
Capabilities:
Check for software breakpoints

Disassembly:
sub rsp, 0x168
mov rax, qword [0x140006450]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14000649c]
test eax, eax
jne 0x1400017fb
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
xorps xmm0, xmm0
lea rdx, [0x140002f40]
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
xor edx, edx
mov r8, rax
lea rcx, [rax + 2]
lea r9, [rdx - 2]
sub r9, rax
cmp byte [rcx - 2], 0xc3
jne 0x1400017ea
mov al, byte [rcx - 1]
cmp al, 0xcc
je 0x1400017e0
cmp al, 0x90
jne 0x1400017ea
mov al, byte [rcx]
cmp al, 0xcc
je 0x140001813
cmp al, 0x90
je 0x140001813
inc rcx
inc edx
lea rax, [r9 + rcx]
cmp rax, 0x64
jl 0x1400017cf
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400027c0
add rsp, 0x168
ret
movsxd rax, edx
mov edx, dword [rax + r8 - 4]
test edx, edx
je 0x1400017f9
mov eax, dword [rsp + 0x3c]
mov ecx, 0x58
add eax, 0xffffe250
cmp eax, 1
lea r8d, [rcx - 8]
cmova ecx, r8d
lea eax, [rdx + rcx]
mov dword [0x14000649c], eax
jmp 0x1400017fb
Function at 0x140002654
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
lea rax, [0x140002760]
mov rdi, rcx
mov qword [rcx + 0x68], rax
lea rdx, [0x140003310]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x1400032b0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x70]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 1
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ebx, eax
test eax, eax
jns 0x1400026d9
xor edx, edx
lea r8, [0x140003340]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
jmp 0x14000274d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
xor edx, edx
mov ebx, eax
lea ecx, [rdx + 0x4d]
test eax, eax
jns 0x14000270e
lea r8, [0x140003360]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x1400026d5
mov rax, qword [rsp + 0x70]
lea r8, [0x140003380]
or dword [rax + 0x30], 4
lea rax, [0x140002530]
mov qword [rdi + 0x70], rax
lea rax, [0x1400024f0]
mov qword [rdi + 0x80], rax
lea rax, [0x140002570]
mov qword [rdi + 0xe0], rax
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
add ah, byte [rdx]
push rsp
adc eax, 0xbf65f5e9
or edi, ecx
invalid
invalid
or byte [rcx + 0x50], cl
adc dword [rcx - 0x33], edx
mov ch, 0x5f
out dx, eax
and esp, ecx
push rsi
sbb byte [rsi], ah
add dword [rsi - 0xc], ecx
adc byte [rcx], bh
invalid
pop qword [rdi + rcx - 0xacf1a13]
jl 0x14003f676
jb 0x14003f6b5
invalid
invalid
push rsi
xor esi, dword [rbx + 0x49f605d5]
and al, 0x14
adc al, 0x4f
cmp dword [rdi], esp
adc al, 0x4f
cmp dword [rdi], esp
scasb al, byte [rdi]
or al, 6
push rcx
invalid
mov ch, 0x56
xor eax, 0x909a199c
jrcxz 0x14003f700
jrcxz 0x14003f700
jrcxz 0x14003f700
invalid
invalid
Function at 0x140001550
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x848
mov rax, qword [0x14000a160]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, 0x400
lea r9, [rbx + 8]
lea r8, str.__ls___lu_:
lea rcx, [rsp + 0x30]
mov edx, edi
mov dword [rsp + 0x20], eax
call qword [sym.imp.MSVCR110.dll_swprintf_s]
or rbx, 0xffffffffffffffff
lea r9, [rsp + 0x870]
mov rax, rbx
lea rcx, [rsp + 0x30]
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400015c0
mov r8, qword [rsp + 0x868]
lea rcx, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rcx + rax*2]
sub rdx, rax
call qword [sym.imp.MSVCR110.dll_vswprintf_s]
lea rax, [rsp + 0x30]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400015f0
sub rdi, rbx
lea r8, [0x140007334]
lea rcx, [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.MSVCR110.dll_wcscat_s]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140004420
add rsp, 0x848
pop rdi
pop rbx
ret