joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100442500
Capabilities:
Encode data using base64

Disassembly:
mov r9d, dword [0x100473f84]
jmp fcn.100441870

Function at 0x1004457a0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1004457c8
lea rdx, [0x100467b03]
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x1004457c8
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x100455250
jmp qword [sym.imp.msys_2.0.dll_remove]

Function at 0x100445930
Capabilities:
Get file attributes

Disassembly:
push rsi
push rbx
sub rsp, 0xa8
mov rbx, rdx
mov rsi, rcx
mov edx, 0x2e
mov rcx, rbx
call sub.msys_2.0.dll_strchr
test rax, rax
je 0x1004459f0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.msys_2.0.dll_stat
test eax, eax
jne 0x1004459f8
mov r9d, dword [rsp + 0x30]
lea rcx, [0x100467e64]
xor eax, eax
xor r8d, r8d
nop dword [rax + rax]
movzx edx, byte [rbx + rax]
test dl, dl
je 0x1004459a5
cmp byte [rcx - 4], dl
je 0x1004459c0
cmp dl, 0x2e
je 0x1004459c8
cmp dl, 0x2d
jne 0x1004459a5
add rax, 1
add rcx, 8
cmp rax, 0xa
jne 0x100445980
mov edx, r8d
mov rcx, rsi
add rsp, 0xa8
pop rbx
pop rsi
jmp 0x100454e00
or r8d, dword [rcx]
jmp 0x100445997
test rax, rax
je 0x1004459e0
mov edx, dword [rcx]
and edx, r9d
or r8d, edx
jmp 0x100445997
add rcx, 8
mov eax, 1
jmp 0x100445980
xor r9d, r9d
jmp 0x10044596f
mov eax, 0xffffffff
add rsp, 0xa8
pop rbx
pop rsi
ret
jmp qword [sym.imp.msys_2.0.dll_chmod]
Function at 0x100446ae0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, str.GNUPGHOME
lea rsi, str._.gnupg
call sub.msys_2.0.dll_getenv
mov rbx, rax
test rax, rax
je 0x100446b08
cmp byte [rax], 0
jne 0x100446b18
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rax
call fcn.100446a60
test rax, rax
mov rsi, rax
cmove rsi, rbx
xor edx, edx
mov rcx, rsi
call fcn.1004403f0
xor edx, edx
lea rcx, str._.gnupg
mov rbx, rax
call fcn.1004403f0
mov rcx, rbx
mov rdi, rax
mov rdx, rax
call fcn.100440450
mov rcx, rdi
mov ebp, eax
call sub.msys_gcrypt_20.dll_gcry_free
mov rcx, rbx
call sub.msys_gcrypt_20.dll_gcry_free
test ebp, ebp
je 0x100446b08
mov rax, rsi
mov byte [0x1004740b0], 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1004486d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
cmp byte [rcx], 0
lea rdx, [rcx + 8]
jne 0x1004486eb
jmp 0x100448750
mov rcx, rax
movzx eax, byte [rcx]
sub eax, 0x30
cmp al, 9
ja 0x100448760
lea rax, [rcx + 1]
cmp rax, rdx
jne 0x1004486e8
xor eax, eax
cmp byte [rcx + 1], 0x54
jne 0x100448750
lea rdx, [rcx + 2]
add rcx, 8
jmp 0x100448713
mov rdx, rbx
movzx eax, byte [rdx]
sub eax, 0x30
cmp al, 9
ja 0x100448760
lea rbx, [rdx + 1]
cmp rbx, rcx
jne 0x100448710
movzx ecx, byte [rcx]
cmp cl, 0x5a
jne 0x100448736
movzx ecx, byte [rdx + 2]
lea rbx, [rdx + 2]
test cl, cl
je 0x10044877b
jns 0x100448768
cmp cl, 0x2c
setne al
cmp cl, 0x3a
setne dl
and eax, edx
xor eax, 1
movzx eax, al
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
call sub.msys_2.0.dll___locale_ctype_ptr
movsx rdx, byte [rbx]
mov rcx, rdx
test byte [rdx + rax + 1], 8
je 0x10044873c
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x10044b7b0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov rsi, r8
test rcx, rcx
jne 0x10044b7dc
jmp 0x10044b950
add rbx, 1
movzx eax, byte [rbx]
cmp al, 0x20
je 0x10044b7d8
cmp al, 9
je 0x10044b7d8
cmp byte [rbx], 0x3f
je 0x10044b860
lea rdx, str.help
mov rcx, rbx
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x10044b880
lea rcx, str.available_compatibility_flags:_n
call sub.msys_gpg_error_0.dll_gpgrt_log_info
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x10044b840
lea rbx, [rsi + 0x18]
lea rbp, str.__s_n
nop dword [rax + rax]
mov rsi, rbx
mov rcx, rbp
add rbx, 0x18
call sub.msys_gpg_error_0.dll_gpgrt_log_info
mov rdx, qword [rbx - 0x10]
test rdx, rdx
jne 0x10044b828
xor r12d, r12d
cmp dword [rsi], 0x4d
jne 0x10044b870
or dword [rdi], r12d
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rbx + 1], 0
je 0x10044b803
jmp 0x10044b7ec
xor ecx, ecx
call sub.msys_2.0.dll_exit
nop word [rax + rax]
lea rdx, [0x10046893f]
mov rcx, rbx
call fcn.100440c60
mov r13, rax
test rax, rax
je 0x10044b9f3
mov r15, qword [rax]
test r15, r15
je 0x10044b9eb
lea rbp, [rax + 8]
xor r12d, r12d
lea r14, str.none
jmp 0x10044b8cd
mov r15, qword [rbp]
add rbp, 8
test r15, r15
je 0x10044b918
cmp byte [r15], 0
je 0x10044b8c0
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x10044b930
mov rbx, rsi
jmp 0x10044b8f5
mov rdx, qword [rbx + 0x20]
add rbx, 0x18
test rdx, rdx
je 0x10044b930
mov rcx, r15
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x10044b8e8
mov eax, dword [rbx]
mov r15, qword [rbp]
add rbp, 8
or r12, rax
test r15, r15
jne 0x10044b8cd
nop dword [rax + rax]
mov rcx, r13
call sub.msys_gcrypt_20.dll_gcry_free
or dword [rdi], r12d
jmp 0x10044b84b
mov rdx, r14
mov rcx, r15
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x10044b9b8
mov dword [rdi], 0
xor r12d, r12d
jmp 0x10044b8c0
test rdx, rdx
je 0x10044b84b
lea rcx, str.enabled_compatibility_flags:
lea rbx, [0x100468915]
call sub.msys_gpg_error_0.dll_gpgrt_log_info
mov rdx, qword [rsi + 8]
test rdx, rdx
jne 0x10044b98d
jmp 0x10044b9a0
mov rdx, qword [rsi + 0x20]
add rsi, 0x18
test rdx, rdx
je 0x10044b9a0
mov eax, dword [rdi]
and eax, dword [rsi]
je 0x10044b980
mov rcx, rbx
call sub.msys_gpg_error_0.dll_gpgrt_log_printf
jmp 0x10044b980
lea rcx, [0x100468913]
call sub.msys_gpg_error_0.dll_gpgrt_log_printf
jmp 0x10044b84b
lea rdx, [0x100468946]
mov rcx, r15
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x10044b9d7
mov r12, 0xffffffffffffffff
jmp 0x10044b8c0
mov rdx, r15
lea rcx, str.unknown_compatibility_flag__s_ignored_n
call sub.msys_gpg_error_0.dll_gpgrt_log_info
jmp 0x10044b8c0
xor r12d, r12d
jmp 0x10044b918
or eax, 0xffffffff
jmp 0x10044b84d
Function at 0x10044c1f0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.ASSUAN_DEBUG
mov rsi, rdx
call sub.msys_2.0.dll_getenv
mov rcx, rax
mov eax, pe_nt_image_headers64
test rcx, rcx
je 0x10044c21a
call sub.msys_2.0.dll_atoi
mov rdx, rbx
lea rcx, [0x10044c0d0]
mov dword [0x1004741f8], eax
mov qword [0x1004741f0], rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x100454b78
jmp qword [sym.imp.msys_assuan_0.dll_assuan_set_log_cb]

Function at 0x10044e110
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r14, rcx
mov rdi, rdx
mov r12, r8
test r8, r8
je 0x10044e133
mov dword [r8], 0
test r14, r14
je 0x10044e1fb
test rdi, rdi
je 0x10044e1fb
cmp byte [rdi], 0
je 0x10044e1fb
mov rbp, qword [r14 + 8]
test rbp, rbp
je 0x10044e187
mov r13, qword [r14 + 0x10]
xor ebx, ebx
nop dword [rax]
mov rsi, qword [r13 + rbx*8]
test rsi, rsi
je 0x10044e17e
lea rcx, [rsi + 0xc]
mov rdx, rdi
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x10044e210
add rbx, 1
cmp rbx, rbp
jne 0x10044e160
mov rcx, rdi
call sub.msys_2.0.dll_getenv
mov rbx, rax
test rax, rax
je 0x10044e280
cmp byte [rax], 0
je 0x10044e240
mov rcx, rdi
call sub.msys_2.0.dll_strlen
mov r9, rbx
mov rdx, rdi
mov rcx, r14
mov dword [rsp + 0x20], 1
mov r8, rax
call fcn.10044db50
mov rbp, qword [r14 + 8]
test rbp, rbp
je 0x10044e1fb
mov r13, qword [r14 + 0x10]
xor ebx, ebx
nop dword [rax]
mov rsi, qword [r13 + rbx*8]
test rsi, rsi
je 0x10044e1f2
lea rcx, [rsi + 0xc]
mov rdx, rdi
call sub.msys_2.0.dll_strcmp
test eax, eax
je 0x10044e210
add rbx, 1
cmp rbx, rbp
jne 0x10044e1d8
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
test r12, r12
je 0x10044e224
mov eax, dword [rsi + 8]
test eax, eax
je 0x10044e224
mov dword [r12], 1
mov rax, qword [rsi]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rdx, str.GPG_TTY
mov rcx, rdi
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x10044e1a4
xor ecx, ecx
call sub.msys_2.0.dll_ttyname
test rax, rax
je 0x10044e1a4
xor ecx, ecx
call sub.msys_2.0.dll_ttyname
mov rbx, rax
test rax, rax
jne 0x10044e1a4
jmp 0x10044e1fb
lea rdx, str.GPG_TTY
mov rcx, rdi
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x10044e1fb
xor ecx, ecx
call sub.msys_2.0.dll_ttyname
test rax, rax
jne 0x10044e267
jmp 0x10044e1fb
Function at 0x100451e20
Capabilities:
Set current directory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rbp, rdx
mov rdi, r8
call sub.msys_2.0.dll_getuid
mov ebx, eax
call sub.msys_2.0.dll_geteuid
cmp ebx, eax
je 0x100451e68
mov rax, qword [0x10046ad00]
mov ebx, dword [rax]
shl ebx, 0x18
and ebx, 0x7f000000
or ebx, 0x3b
mov eax, ebx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 1
mov rcx, rsi
call fcn.100445c50
mov ebx, eax
test eax, eax
je 0x100451ea0
mov rax, qword [0x10046ad00]
movzx ebx, bx
mov eax, dword [rax]
shl eax, 0x18
and eax, 0x7f000000
or ebx, eax
mov eax, ebx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msys_2.0.dll_fork
cmp eax, 0xffffffff
je 0x100451f38
test eax, eax
jne 0x100451f00
mov ecx, 0x19
call sub.msys_gcrypt_20.dll_gcry_control
call sub.msys_2.0.dll_setsid
cmp eax, 0xffffffff
je 0x100451f89
lea rcx, [0x100469a89]
call sub.msys_2.0.dll_chdir
test eax, eax
jne 0x100451f89
call sub.msys_2.0.dll_fork
cmp eax, 0xffffffff
je 0x100451f89
test eax, eax
je 0x100451f93
xor ecx, ecx
call sub.msys_2.0.dll__exit
nop dword [rax + rax]
xor r8d, r8d
xor edx, edx
mov ecx, eax
call sub.msys_2.0.dll_waitpid
cmp eax, 0xffffffff
jne 0x100451e56
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
lea rcx, str.waitpid_failed_in_gnupg_spawn_process_detached:__s
mov rdx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
jmp 0x100451e56
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
lea rcx, str.error_forking_process:__s_n
mov rsi, rax
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, rsi
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
mov rdx, qword [0x10046ad00]
mov edx, dword [rdx]
test eax, eax
je 0x100451e56
shl edx, 0x18
movzx eax, ax
and edx, 0x7f000000
or edx, eax
mov ebx, edx
jmp 0x100451e56
mov ecx, 1
call sub.msys_2.0.dll__exit
test rdi, rdi
jne 0x100451fa7
jmp 0x100451fb3
call sub.msys_gcrypt_20.dll_gcry_xstrdup
mov rcx, rax
call sub.msys_2.0.dll_putenv
mov rcx, qword [rdi]
add rdi, 8
test rcx, rcx
jne 0x100451f9a
xor edx, edx
xor eax, eax
mov dword [rsp + 0x20], 0xffffffff
or r9d, 0xffffffff
mov qword [rsp + 0x28], rdx
or r8d, 0xffffffff
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x30], eax
call fcn.100450f70
nop
nop dword [rax]
cmp ecx, 0xffffffff
jne 0x100451ff0
ret
mov edx, 0xf
jmp sub.msys_2.0.dll_kill
Function at 0x140001000
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x40], 0
mov bl, dl
lea rdx, [rsp + 0x40]
movsxd rcx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
je 0x140001048
cmp eax, 0xc000000d
jne 0x140001030
lea rcx, [0x140002fa0]
jmp 0x14000103e
cmp eax, 0xc000000b
jne 0x140001043
lea rcx, [0x140002fc0]
call sub.ntoskrnl.exe_DbgPrint
or eax, 0xffffffff
jmp 0x140001069
mov eax, dword [0x140005318]
add rax, qword [rsp + 0x40]
cmp byte [rax], bl
jne 0x140001065
lea rcx, [0x140003360]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001067
mov byte [rax], bl
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140001070
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rcx, [0x140003940]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [0x140005590]
call sub.ntoskrnl.exe_ExInitializePushLock
lea rdi, [rbx + 8]
mov r9d, 0x22
mov qword [rsp + 0x30], rdi
lea r8, section..data
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jns 0x1400010d6
movsxd rcx, eax
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140001160
lea rdx, section..data
lea rcx, [0x140005010]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
test eax, eax
jns 0x140001101
movsxd rcx, eax
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rdi]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x1400010cc
call fcn.14000187c
test eax, eax
je 0x140001120
lea rcx, [0x140003960]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, rbx
call fcn.1400024a0
jmp 0x1400010cc
lea rcx, [0x140003980]
call sub.ntoskrnl.exe_DbgPrint
lea rax, [fcn.1400024a0]
mov qword [rbx + 0x68], rax
lea rax, [0x140001ee0]
mov qword [rbx + 0xe0], rax
lea rax, [0x140001870]
mov qword [rbx + 0x70], rax
lea rax, [0x140001860]
mov qword [rbx + 0x80], rax
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000173c
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
movsxd rcx, ecx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
je 0x14000178b
cmp eax, 0xc000000d
jne 0x14000176f
lea rcx, [0x1400034d0]
call sub.ntoskrnl.exe_DbgPrint
cmp ebx, 0xc000000b
jne 0x140001783
lea rcx, [0x1400034f0]
call sub.ntoskrnl.exe_DbgPrint
or eax, 0xffffffff
jmp 0x140001850
mov ebx, dword [0x140005314]
add rbx, qword [rsp + 0x38]
xor edx, edx
lea rcx, [0x140005590]
call qword [sym.imp.ntoskrnl.exe_ExAcquirePushLockExclusiveEx]
mov rdx, qword [rbx]
test rdx, rdx
je 0x140001822
mov rax, qword [rbx + 8]
test rax, rax
je 0x140001822
cmp qword [rdx + 8], rbx
jne 0x140001802
cmp qword [rax], rbx
jne 0x140001802
mov qword [rdx + 8], rax
mov rdx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rdx], rax
and qword [rbx], 0
and qword [rbx + 8], 0
xor edx, edx
lea rcx, [0x140005590]
call qword [sym.imp.ntoskrnl.exe_ExReleasePushLockExclusiveEx]
mov rcx, qword [rsp + 0x38]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
mov rdx, rax
lea rcx, [0x140003550]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001832
xor edx, edx
lea rcx, [0x140005590]
call qword [sym.imp.ntoskrnl.exe_ExReleasePushLockExclusiveEx]
lea rcx, [0x140003520]
call sub.ntoskrnl.exe_DbgPrint
or eax, 0xffffffff
jmp 0x140001850
xor edx, edx
lea rcx, [0x140005590]
call qword [sym.imp.ntoskrnl.exe_ExReleasePushLockExclusiveEx]
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x140001850
add rsp, 0x20
pop rbx
ret
Function at 0x14000187c
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140005030]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov edx, dword [rsp + 0x2c]
mov r10d, 0x47ba
mov r9d, 0x4a65
mov r11d, 0x3839
cmp edx, 0x4563
jne 0x1400018cd
mov r8d, 0x358
mov dword [0x140005310], r8d
jmp 0x140001936
cmp edx, r10d
jne 0x1400018ef
mov ecx, 0x360
mov r8d, ecx
mov dword [0x140005310], ecx
lea ecx, [r8 - 0x70]
mov dword [0x140005314], ecx
jmp 0x140001979
cmp edx, r9d
jne 0x14000190d
mov r8d, 0x4b8
mov dword [0x140005310], r8d
lea ecx, [r8 - 0x70]
mov dword [0x140005314], ecx
jmp 0x140001985
xor r8d, r8d
mov dword [0x140005310], r8d
cmp edx, r11d
jne 0x140001929
mov ecx, 0x2f0
mov dword [0x140005314], ecx
jmp 0x140001959
lea eax, [rdx - 0x3ad7]
cmp eax, 0xa8c
ja 0x14000193d
mov ecx, 0x360
jmp 0x14000193f
xor ecx, ecx
mov dword [0x140005314], ecx
cmp edx, 0x295a
jne 0x140001954
mov eax, 0x6b2
jmp 0x14000198e
cmp edx, r11d
jne 0x140001960
mov eax, 0x6c2
jmp 0x14000198e
lea eax, [rdx - 0x3ad7]
cmp eax, 0xa8c
ja 0x140001974
mov eax, 0x6ca
jmp 0x14000198e
cmp edx, r10d
jne 0x140001980
mov eax, 0x6fa
jmp 0x14000198e
cmp edx, r9d
jne 0x14000198c
mov eax, 0x87a
jmp 0x14000198e
xor eax, eax
mov dword [0x140005318], eax
test ecx, ecx
je 0x1400019a5
test r8d, r8d
je 0x1400019a5
test eax, eax
je 0x1400019a5
xor eax, eax
jmp 0x1400019b6
lea rcx, [0x1400038f0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400025d0
add rsp, 0x158
ret
Function at 0x1400019d0
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
and qword [rax + 0x10], 0
and qword [rax + 0x18], 0
movsxd rcx, ecx
lea rdx, [rax + 0x10]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
je 0x140001a30
cmp eax, 0xc000000d
jne 0x140001a14
lea rcx, [0x140002fa0]
call sub.ntoskrnl.exe_DbgPrint
cmp ebx, 0xc000000b
jne 0x140001a28
lea rcx, [0x140002fc0]
call sub.ntoskrnl.exe_DbgPrint
or eax, 0xffffffff
jmp 0x140001be1
lea rdx, [rsp + 0x70]
mov ecx, 4
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
je 0x140001a80
cmp eax, 0xc000000d
jne 0x140001a59
lea rcx, [0x140003390]
call sub.ntoskrnl.exe_DbgPrint
cmp ebx, 0xc000000b
jne 0x140001a6d
lea rcx, [0x1400033c0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
or eax, 0xffffffff
jmp 0x140001be1
mov rcx, qword [rsp + 0x68]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
mov r14, rax
mov rdx, rax
lea rcx, [0x1400033e0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x140001ad2
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
or eax, 0xffffffff
jmp 0x140001be1
mov r8, rdi
mov rdx, r14
lea rcx, [0x140003410]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140001b23
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
or eax, 0xffffffff
jmp 0x140001be1
mov rdx, rsi
lea rcx, [0x140003420]
call sub.ntoskrnl.exe_DbgPrint
mov r15d, dword [0x140005310]
add r15, qword [rsp + 0x68]
mov r8, r15
mov rdx, r14
lea rcx, [0x140003440]
call sub.ntoskrnl.exe_DbgPrint
mov ebx, dword [0x140005310]
add rbx, qword [rsp + 0x70]
mov rdx, rbx
lea rcx, [0x140003460]
call sub.ntoskrnl.exe_DbgPrint
mov r8, qword [rbx]
mov qword [r15], r8
mov rdx, r14
lea rcx, [0x140003480]
call sub.ntoskrnl.exe_DbgPrint
mov ebx, 1
mov dword [rsp + 0x20], ebx
cmp ebx, 8
jge 0x140001ba5
movsxd rax, ebx
movzx edx, byte [rax + r15]
lea rcx, [0x1400034b0]
call sub.ntoskrnl.exe_DbgPrint
inc ebx
jmp 0x140001b84
lea rcx, [0x1400034c0]
call sub.ntoskrnl.exe_DbgPrint
nop
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x140001be1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140001bf8
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov ecx, 4
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x140001c4a
cmp eax, 0xc000000d
jne 0x140001c2d
lea rcx, [0x140002fa0]
call sub.ntoskrnl.exe_DbgPrint
cmp ebx, 0xc000000b
jne 0x140001c41
lea rcx, [0x140002fc0]
call sub.ntoskrnl.exe_DbgPrint
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov ebx, dword [0x140005314]
mov rcx, qword [rsp + 0x30]
add rbx, rcx
mov r8, qword [rbx]
mov eax, dword [0x140005314]
add rax, rcx
cmp r8, rax
je 0x140001c98
mov rdx, qword [rbx + 8]
lea rcx, [0x140003340]
call sub.ntoskrnl.exe_DbgPrint
mov ecx, dword [0x140005318]
mov eax, dword [0x140005314]
sub rcx, rax
add rcx, qword [rbx]
mov byte [rcx], 0
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x30]
jmp 0x140001c58
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140001c44
Function at 0x140001ca0
Capabilities:
Print debug messages

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 r13
push r14
sub rsp, 0x40
mov esi, r8d
mov rbx, rcx
test rcx, rcx
je 0x140001ea6
lea rdi, [rdx + 4]
test rdi, rdi
je 0x140001ea6
mov ebp, dword [rdx]
test ebp, ebp
jne 0x140001ce9
cmp r8d, 1
je 0x140001ea6
mov rax, qword [rcx + 0x40]
lea r12, [0x140001170]
cmp rax, r12
jne 0x140001d0a
cmp esi, 1
jne 0x140001d0a
lea rcx, [0x140003190]
jmp 0x140001ead
lea r13, [0x140001400]
cmp rax, r13
jne 0x140001d27
cmp esi, 2
jne 0x140001d27
lea rcx, [0x1400031c0]
jmp 0x140001ead
lea rax, [0x1400031f0]
mov dword [rsp + 0x20], 0x1a0018
mov qword [rsp + 0x28], rax
lea rdx, [0x140003230]
lea rax, [0x140003210]
mov dword [rsp + 0x30], 0x160014
add rcx, 0x260
mov qword [rsp + 0x38], rax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x140001d83
lea rcx, [0x140003280]
jmp 0x140001ead
and qword [rbx + 0x2a], 0
lea rcx, [0x1400032a0]
mov word [rbx + 0x28], 0xb848
mov word [rbx + 0x32], 0xe0ff
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x140001dc0
lea rcx, [0x1400032c0]
jmp 0x140001ead
and qword [rbx + 2], 0
lea rcx, [0x1400032e0]
mov word [rbx], 0xb848
mov word [rbx + 0xa], 0xe0ff
call sub.ntoskrnl.exe_DbgPrint
cmp esi, 1
jne 0x140001de7
mov qword [rbx + 0x48], r12
jmp 0x140001df0
cmp esi, 2
jne 0x140001df0
mov qword [rbx + 0x48], r13
cmp dword [rbx + 0x50], 0
mov rax, qword [rbx + 0x48]
mov qword [rbx + 0x2a], rax
jne 0x140001e24
lea rcx, [0x140003300]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rbx + 0x40]
movsd xmm0, qword [rax]
movsd qword [rbx + 0x34], xmm0
mov eax, dword [rax + 8]
mov dword [rbx + 0x3c], eax
mov dword [rbx + 0x50], 0x45
mov eax, 4
mov dword [rbx + 0x54], ebp
lea rcx, [rbx + 0x58]
lea edx, [rax + 0x7c]
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdi + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdi + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rdi + 0x70]
add rdi, rdx
movups xmmword [rcx + 0x60], xmm0
add rcx, rdx
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x140001e33
mov rax, qword [rdi]
lea rdx, [rbx + 0x28]
mov qword [rcx], rax
mov r8d, 0xc
mov rcx, qword [rbx + 0x40]
call fcn.1400024f0
lea rcx, [0x140003320]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140001eb5
lea rcx, [0x140003170]
call sub.ntoskrnl.exe_DbgPrint
or eax, 0xffffffff
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret