joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e1e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x14000e228
mov rcx, rbx
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x140142c80], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x14000e20e

Function at 0x140010970
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400fd158], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret

Function at 0x140010990
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140010a92
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140010a6a
add rax, 1
cmp rax, 0x6b
je 0x140010a87
cmp byte [rcx + rax], 0
jne 0x140010a60
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x140010a87
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140010a78
Function at 0x140010ff0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x140142d20], 1
je 0x140011096
lea rdi, [0x1400fd140]
lea rsi, [0x140142d20]
mov rcx, rdi
call sym.pthread_spin_lock
mov rbx, qword [0x140142cd0]
test rbx, rbx
jne 0x140011040
jmp 0x140011233
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x140011200
mov rbx, rax
cmp qword [rbx], rsi
jne 0x140011030
add dword [rbx + 0x10], 1
lea rsi, [rbx + 8]
mov rcx, rdi
call sym.pthread_spin_unlock
mov rcx, rsi
call sym.pthread_mutex_lock
mov edi, dword [0x140142d20]
test edi, edi
jne 0x1400110c0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400fd158], eax
cmp eax, 0xffffffff
je sym.__pthread_self_lite.cold
mov dword [0x140142d20], 1
mov rcx, rsi
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.leaveOnceObject.part.0
mov ecx, dword [0x1400fd158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400110f0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp edi, 1
je 0x140011086
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r9d, edi
lea r8, [0x140142d20]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x140011086
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rsi, rax
je 0x1400110aa
test rax, rax
je 0x1400110aa
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rsi + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x38], 0xffffffffffffffff
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x30], rax
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140011258
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsi + 0x68], 0xffffffffffffffff
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rbx
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rsi + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je sym.__pthread_self_lite.cold
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400fd158]
mov rdx, rsi
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je sym.__pthread_self_lite.cold
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov qword [rax], rsi
mov dword [rax + 0x10], 1
mov qword [rbx + 0x18], rax
mov rbx, rax
lea rsi, [rbx + 8]
xor edx, edx
mov rcx, rsi
call sym.pthread_mutex_init
jmp 0x14001104d
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov qword [rax], rsi
mov rbx, rax
mov dword [rax + 0x10], 1
mov qword [0x140142cd0], rax
jmp 0x140011220
call sym.replace_spin_keys.part.0
nop
nop
Function at 0x1400116e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test edx, edx
jne 0x140011700
test r8, r8
je 0x1400117b0
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
cmp edx, 1
je 0x1400117e0
cmp edx, 3
jne 0x1400116f3
mov ecx, dword [0x1400fd158]
cmp ecx, 0xffffffff
je 0x1400116f3
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400116f3
test byte [rax + 0x40], 0x30
je 0x140011808
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
je 0x140011742
call sym._pthread_cleanup_dest.part.0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140011767
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001175f
call rsi
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400118dc
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x1400118cf
mov ecx, dword [0x1400fd158]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1400116f3
mov rcx, qword [0x140142ce0]
test rcx, rcx
je 0x1400116f3
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x140142ce0], 0
jmp 0x1400116f3
lea rdx, [sym.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x140142ce0], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rax + 0x30]
mov eax, dword [rax + 0xbc]
test eax, eax
jne 0x140011880
test rcx, rcx
je 0x140011821
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x1d8]
mov qword [rbx + 0x30], 0
mov dword [rbx + 0xbc], 1
test rcx, rcx
je 0x140011844
call sym._pthread_cleanup_dest.part.0
test byte [rbx + 0x44], 4
je 0x1400118c0
mov rcx, qword [rbx + 0x28]
mov dword [rbx], 0xdeadbeef
test rcx, rcx
je 0x140011767
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x28], 0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x140011774
test rcx, rcx
je 0x1400118c0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400118dc
mov qword [rbx + 0x68], 0xffffffffffffffff
jmp 0x1400116f3
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x1400118a0
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140011798
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140012b40
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1400fd148]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call sym.pthread_mutex_lock
mov rax, qword [0x140142cf8]
test rax, rax
je 0x140012bb0
mov r9, qword [0x140142d00]
lea r8, [rax - 1]
xor ecx, ecx
cmp rax, 1
jne 0x140012b8e
jmp 0x140012c28
cmp rcx, rax
je 0x140012bb0
lea r8, [rax - 1]
cmp r8, rcx
jb 0x140012bb0
lea rax, [rcx + r8]
shr rax, 1
mov rdx, rax
shl rdx, 4
add rdx, r9
cmp rbx, qword [rdx + 8]
je 0x140012bc8
jb 0x140012b80
lea rcx, [rax + 1]
cmp r8, rcx
jae 0x140012b8e
mov rcx, rdi
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [rdx]
test rax, rax
je 0x140012bb0
cmp qword [rax + 0x1d8], rbx
jne 0x140012bb0
test byte [rax + 0x40], 0xc
jne 0x140012bb0
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140012bb0
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140012bb0
mov rcx, rdi
call sym.pthread_mutex_unlock
test esi, esi
je 0x140012c20
sub esi, 2
cmp esi, 0x15
ja 0x140012c33
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.pthread_cancel
xor eax, eax
jmp 0x140012bbd
cmp rbx, qword [r9 + 8]
jne 0x140012bb0
mov rax, qword [r9]
jmp 0x140012bcb
mov eax, 0x16
jmp 0x140012bbd
Function at 0x140012ee0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov r12, r9
call sym.pop_pthread_mem
mov rbx, rax
test rax, rax
je 0x140013114
test rbp, rbp
je 0x140012f1b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0xbc], 0
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r13
mov qword [rbx + 8], r12
mov r12, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call r12
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140012f90
test esi, esi
jne 0x140012f80
xor ecx, ecx
mov esi, 1
call r14
jmp 0x140012f4f
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x140012f4f
mov qword [rbx + 0x38], 0xffffffffffffffff
lea r12, [rbx + 0x68]
mov rcx, r12
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001313a
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x1400130fd
xor edx, edx
test rdi, rdi
je 0x140012ffd
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
mov dword [rbx + 0x44], eax
test al, 8
jne 0x140013120
mov eax, dword [rdi + 0x18]
mov dword [rbx + 0xc0], eax
mov edx, esi
lea r8, [sym.pthread_create_wrapper]
mov r9, rbx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400130c8
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x1400130a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x140013080
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140013067
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140013041
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x140013041
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400130d7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r12
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001313a
mov qword [rbx + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x14001310a
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x140013130
mov eax, 0xb
jmp 0x140013071
call sym.__pthread_self_lite
mov eax, dword [rax + 0xc0]
jmp 0x140012ff5
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140013114
call sym.replace_spin_keys.part.0
nop
Function at 0x140016720
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x14001674c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x14009aa50
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14009aa98
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14009aa6a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b1ed0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x1400b1ef8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x1400b1f40
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400b1f10
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x1400b1f4c
call rbp
cmp dword [rax], 4
je 0x1400b1f10
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400b2270
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x1400b2298
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x1400b22e0
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400b22b0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x1400b22ec
call rbp
cmp dword [rax], 4
je 0x1400b22b0
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400fc510
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400fd780]
lea rbp, str.obj_count
movabs rsi, 0x2e78786362696c67
movabs rdi, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400fd798], 0
movups xmmword [0x1400fd788], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400fc5c5
jmp 0x1400fc677
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x1400fc628
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rsi
jne 0x1400fc5b0
cmp qword [rbx + 7], rdi
jne 0x1400fc5b0
cmp byte [rbx + 0xf], 0x2e
jne 0x1400fc5b0
movabs rax, 0x657a69735f6a626f
lea r12, [rbx + 0x10]
cmp qword [rbx + 0x10], rax
jne 0x1400fc5ff
cmp byte [rbx + 0x18], 0x3d
je 0x1400fc6ad
mov r8d, 9
mov rdx, r12
mov rcx, rbp
call sym.memcmp
test eax, eax
jne 0x1400fc61e
cmp byte [rbx + 0x19], 0x3d
je 0x1400fc6ef
mov rbx, r12
jmp 0x1400fc5b0
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400fd798], rbx
jne 0x1400fc687
lea rcx, [sym.__tcf_0_3]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.atexit
mov qword [0x1400fd798], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400fd790], rax
test rax, rax
je 0x1400fc6fb
xor edx, edx
mov qword [0x1400fd788], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400fc65f
mov eax, 8
lea r13, [rsp + 0x30]
lea rdx, [rsp + 0x28]
lea rcx, [r12 + rax + 1]
xor r8d, r8d
call sub.msvcrt.dll_strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400fc6de
test dl, dl
jne 0x1400fc5b0
test eax, eax
js 0x1400fc5b0
mov dword [r13 + 0x10], eax
jmp 0x1400fc5b0
mov eax, 9
lea r13, [rsp + 0x48]
jmp 0x1400fc6b7
xor ecx, ecx
mov qword [0x1400fd798], rcx
jmp 0x1400fc65f
Function at 0x140006358
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400040d0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xorps xmm0, xmm0
mov rbx, rdx
mov rsi, rcx
xorps xmm1, xmm1
xor edi, edi
lea rcx, [rbp + 0xa0]
xor edx, edx
mov qword [rsp + 0x20], rdi
mov r8d, 0x100
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm1
movups xmmword [rsp + 0x28], xmm0
call fcn.140001f80
test rbx, rbx
je 0x1400064ca
mov rdx, rbx
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x1400064ca
lea rdx, [0x140006fa0]
lea rcx, [rsp + 0x58]
call qword [reloc.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rcx, qword [rsp + 0x20]
call qword [0x1400031d8]
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x68]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rbx + 0x18]
mov rbx, qword [rax + 0x20]
mov rsi, rbx
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call fcn.140001f80
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400064a1
movzx r8d, word [rbx + 0x48]
lea rcx, [rbp - 0x60]
mov rdx, qword [rbx + 0x50]
call fcn.140001cc0
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x38]
call qword [reloc.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call qword [reloc.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x1400064ab
mov rbx, qword [rbx]
cmp rbx, rsi
je 0x1400064af
jmp 0x14000644a
mov rdi, qword [rbx + 0x20]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rdi
jmp 0x1400064cc
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140001b00
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006528
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor ebx, ebx
lea rcx, [rax - 0x18]
call qword [reloc.ntoskrnl.exe_RtlInitUnicodeString]
lea edi, [rbx + 5]
xor r8d, r8d
mov ecx, edi
lea r9, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp dword [rsp + 0x50], ebx
je 0x1400065da
jmp 0x14000b0fb
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
test rax, rax
je 0x1400065da
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rdx, rax
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x1400065ca
mov rdi, rsi
cmp dword [rsi], ebx
je 0x1400065ca
lea rdx, [rdi + 0x38]
mov r8b, 1
lea rcx, [rsp + 0x20]
call qword [reloc.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x1400065bc
mov eax, dword [rdi]
add rdi, rax
cmp dword [rdi], ebx
jne 0x14000659b
jmp 0x1400065ca
mov rcx, qword [rdi + 0x130]
mov rbx, qword [rdi + 0x50]
mov qword [r14], rcx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbx
jmp 0x1400065dc
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov edx, 0x5000
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
add rax, qword [0x14000b598]
mov rcx, rax
mov qword [0x14000b590], rcx
lea rdx, [fcn.140009000]
mov r8d, 0x2f00
sub rsp, 0x50
call fcn.140006c9c
add rsp, 0x50
mov edx, dword [rsp + 0x50]
xor ecx, ecx
jmp 0x14000656d

Function at 0x140006c9c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, r8
mov r15, rdx
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140006cde
xor al, al
jmp 0x140006dc1
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
movsx edx, word [rbx + 0xa]
lea rcx, [0x140006f90]
call sub.ntoskrnl.exe_DbgPrint
or word [rbx + 0xa], 0x41
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
nop
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140006d37
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
jmp 0x140006cd7
mov rsi, cr8
mov byte [rsp + 0x78], sil
mov eax, 2
mov cr8, rax
mov r8, r14
mov rdx, r15
mov rcx, rdi
call fcn.140001cc0
nop
movzx eax, sil
mov cr8, rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov al, 1
jmp 0x140006dc1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14000ab30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x50
push rbx
push rcx
push rdx
push rdi
push rsi
push r12
push r13
push r15
xor rsi, rsi
mov rcx, rsi
mov rdx, rsi
mov rdi, rsi
mov r12, rsi
mov r13, rsi
mov r15, rsi
mov rbx, qword [0x14000b1e8]
movsxd rax, dword [rbx + 0x3c]
mov esi, dword [rax + rbx + 0x88]
add rsi, rbx
mov r15d, dword [rsi + 0x1c]
add r15, rbx
mov r12d, dword [rsi + 0x24]
add r12, rbx
mov r13d, dword [rsi + 0x20]
add r13, rbx
xor edi, edi
nop
nop
nop
nop
cmp edi, dword [rsi + 0x18]
jae 0x14000abb3
mov edx, dword [r13 + rdi*4]
add rdx, rbx
lea rcx, [0x14000abe0]
call fcn.14000abd3
test eax, eax
jne 0x14000abaf
movzx eax, word [r12 + rdi*2]
mov ecx, dword [r15 + rax*4]
add rcx, rbx
jmp 0x14000abb5
inc edi
jmp 0x14000ab80
xor ecx, ecx
mov rax, rcx
pop r15
pop r13
pop r12
pop rsi
pop rdi
pop rdx
pop rcx
pop rbx
add rsp, 0x50
ret

Function at 0x140001b28
Capabilities:
Parse pe header

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