joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010890
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x1400109b8
cmp eax, 1
je 0x1400108eb
call fcn.14000f810
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14000f190
mov r12d, dword [rbx]
test r12d, r12d
je 0x140010900
cmp r12d, 1
jne 0x140010990
mov rcx, rbp
call fcn.14000f480
test rdi, rdi
je 0x1400108eb
mov rcx, rdi
call fcn.14000fbb0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x14000fc90]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x1400109f8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
call r12
test rax, rax
je 0x1400109e0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
call r12
test rax, rax
je 0x1400109d0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400108d6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14000ec70
jmp 0x1400108d6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14000ffc0
test rax, rax
jne 0x140010979
jmp 0x140014a25
call fcn.14000ffc0
test rax, rax
jne 0x140010955
jmp 0x140014a3e
call fcn.14000ffc0
test rax, rax
jne 0x14001092f
jmp 0x140014a34
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140010c80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140010cf8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140013290
cmp esi, dword [rbx + 0x48]
jae 0x140010cd3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140010cd3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400132d0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14000ffc0
mov rbx, rax
jmp 0x140010cad
Function at 0x140010d10
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140010e20
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.140013290
cmp esi, dword [rbx + 0x48]
jae 0x140010da0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.1400132d0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
mov rdi, rax
je 0x140010e2d
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x140010e2d
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x140010d64
call fcn.14000ffc0
mov rbx, rax
jmp 0x140010d4f
mov rcx, r14
call fcn.1400132d0
mov eax, 0xc
jmp 0x140010d82

Function at 0x140010eb0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010ed8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14000ffc0
test rax, rax
jne 0x140010eca
add rsp, 0x28
ret

Function at 0x140010f40
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010f68
add rax, 0x18
add rsp, 0x28
ret
call fcn.14000ffc0
test rax, rax
jne 0x140010f5a
jmp 0x140010f5e

Function at 0x140011080
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14003fc98]
test eax, eax
jne 0x140011098
xor eax, eax
add rsp, 0x28
ret
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400110c8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001108e
test byte [rax + 0x40], 3
je 0x14001108e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140011090
call fcn.14000ffc0
test rax, rax
jne 0x1400110ae
jmp 0x14001108e
Function at 0x1400110e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011120
test ebx, ebx
jle 0x140011110
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14000ffc0
test rax, rax
jne 0x1400110fd
add rsp, 0x20
pop rbx
ret

Function at 0x140011210
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140011288
test byte [rbx + 0x40], 0xc
jne 0x14001123f
mov eax, dword [0x14003fc98]
test eax, eax
jne 0x140011250
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000f190
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140011273
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140011273
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001129c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000f480
call fcn.14000ffc0
test rax, rax
mov rbx, rax
jne 0x14001122f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400112ba
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14000f480
call fcn.140011130
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140011340
call fcn.140012420
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140011378
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400113d0
test esi, esi
je 0x140011356
call fcn.140011210
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400113b0
mov edx, edi
call fcn.1400124d0
call fcn.140011210
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400113c0
call fcn.140011210
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140011210
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140011315
call fcn.14000ffc0
mov rbx, rax
jmp 0x140011315
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001132e
call fcn.14000ffc0
jmp 0x140011356
call fcn.14000ffc0
mov rbx, rax
jmp 0x140011311
Function at 0x1400112d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140011288
test byte [rbx + 0x40], 0xc
jne 0x14001123f
mov eax, dword [0x14003fc98]
test eax, eax
jne 0x140011250
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000f190
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140011273
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140011273
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001129c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000f480
call fcn.14000ffc0
test rax, rax
mov rbx, rax
jne 0x14001122f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400112ba
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14000f480
call fcn.140011130
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140011340
call fcn.140012420
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140011378
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400113d0
test esi, esi
je 0x140011356
call fcn.140011210
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400113b0
mov edx, edi
call fcn.1400124d0
call fcn.140011210
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400113c0
call fcn.140011210
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140011210
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140011315
call fcn.14000ffc0
mov rbx, rax
jmp 0x140011315
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001132e
call fcn.14000ffc0
jmp 0x140011356
call fcn.14000ffc0
mov rbx, rax
jmp 0x140011311

Function at 0x1400113e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14000ff10
mov ecx, dword [0x1400164e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140011450
test esi, esi
je 0x140011430
call fcn.140011210
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140011460
mov edx, esi
call fcn.1400124d0
call fcn.140011210
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140011210
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140011210
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14000ffc0
mov rbx, rax
jmp 0x140011401
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001141a
Function at 0x13db0
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r14, rcx
and qword [rax + 0x20], 0
and dword [rax + 0x18], 0
xor r9d, r9d
lea r8, [rax + 0x18]
lea edx, [r9 + 0x10]
xor ecx, ecx
call fcn.0001517c
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x13f2d
xor esi, esi
mov dword [rsp + 0x20], esi
cmp esi, dword [rbx]
jae 0x13f19
lea r13, [rsi + rsi*2]
mov r12, qword [rbx + r13*8 + 0x10]
test r12, r12
je 0x13f0d
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x13f0d
cmp word [r12], 5
jne 0x13f0d
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ObfReferenceObject]
cmp qword [r12 + 0x60], 0
je 0x13f04
mov rcx, qword [r12 + 0x60]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x13f04
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x13f04
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
sub ecx, 7
movzx eax, word [r12 + 0x58]
shr eax, 1
cmp eax, ecx
jne 0x13f04
mov r8d, ecx
lea rdx, [r14 + 0xc]
mov rcx, qword [r12 + 0x60]
call qword [sym.imp.ntoskrnl.exe__wcsnicmp]
test eax, eax
jne 0x13f04
lea rdx, [rsp + 0x78]
mov ecx, dword [rbx + r13*8 + 8]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [0x0001ce3c], eax
test eax, eax
jne 0x13f04
mov rcx, qword [rsp + 0x78]
cmp rcx, qword [0x0001c678]
je 0x13eed
call fcn.00011008
mov dword [0x0001ce3c], eax
test eax, eax
jne 0x13ef9
movzx ecx, word [rbx + r13*8 + 0xe]
call qword [sym.imp.ntoskrnl.exe_NtClose]
mov dword [0x0001ce3c], eax
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
jmp 0x13ef9
movzx ecx, word [rbx + r13*8 + 0xe]
call qword [sym.imp.ntoskrnl.exe_NtClose]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add esi, 1
mov dword [rsp + 0x20], esi
jmp 0x13df8
jmp 0x13f20
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14ec8
Capabilities:
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 r12
push r13
push r14
sub rsp, 0x40
mov r12, rdx
mov r14, rcx
xor edi, edi
and qword [rax - 0x28], rdi
and dword [rax + 0x18], edi
lea r9, [rax + 0x18]
xor r8d, r8d
lea rdx, [rax + 0x18]
lea esi, [rdi + 0xb]
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x70]
test eax, eax
jne 0x14f15
xor eax, eax
jmp 0x1501c
lea edx, [rax + rax]
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1501c
mov eax, dword [rsp + 0x70]
lea r8d, [rax + rax]
xor edx, edx
mov rcx, rbx
call fcn.0001a360
mov r8d, dword [rsp + 0x70]
add r8d, r8d
lea r9, [rsp + 0x70]
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14ffb
xor esi, esi
mov dword [rsp + 0x20], esi
cmp esi, dword [rbx]
jae 0x14ffb
test r14, r14
jne 0x14fa6
mov eax, esi
imul rax, rax, 0x128
mov rdi, qword [rax + rbx + 0x18]
mov qword [rsp + 0x28], rdi
test r12, r12
je 0x14ffb
mov rcx, r12
lea rdx, [rax + rbx + 8]
mov r8d, 0x128
call fcn.0001a500
jmp 0x14ffb
mov r13d, esi
imul r13, r13, 0x128
movzx eax, word [r13 + rbx + 0x2e]
add rax, r13
lea rcx, [rax + rbx + 0x30]
mov rdx, r14
call qword [sym.imp.ntoskrnl.exe__stricmp]
test eax, eax
jne 0x14fef
test r12, r12
je 0x14fe3
mov rcx, r12
lea rdx, [r13 + rbx + 8]
mov r8d, 0x128
call fcn.0001a500
mov rdi, qword [r13 + rbx + 0x18]
mov qword [rsp + 0x28], rdi
jmp 0x14ffb
add esi, 1
mov dword [rsp + 0x20], esi
jmp 0x14f6c
jmp 0x15009
test rbx, rbx
je 0x15019
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x1503c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x10
mov rdi, rdx
mov r9, rcx
xor r8d, r8d
cmp rcx, r8
je 0x15164
cmp rdx, r8
je 0x15164
cmp word [rcx], 0x5a4d
jne 0x15155
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x15155
cmp word [rdx + 4], 0x8664
sete cl
lea rax, [rdx + 0x88]
add rdx, 0x78
cmp cl, r8b
cmovne rdx, rax
mov r11d, dword [rdx + 4]
mov dword [rsp + 0x50], r11d
mov esi, dword [rdx]
lea rax, [r9 + rsi]
mov r14d, dword [rax + 0x1c]
lea r15, [r9 + r14]
mov r13d, dword [rax + 0x24]
add r13, r9
mov r12d, dword [rax + 0x20]
lea rbx, [r9 + r12]
mov qword [rsp + 0x68], rbx
mov edx, dword [rax + 0x18]
mov dword [rsp + 0x60], edx
mov ecx, r8d
mov dword [rsp], ecx
cmp ecx, r12d
jae 0x15155
mov r10d, ecx
movsx eax, word [r13 + r10*2]
cmp ecx, edx
jae 0x15151
cmp eax, r14d
jae 0x15151
mov edx, dword [r15 + rax*4]
cmp edx, esi
jb 0x150ff
lea eax, [rsi + r11]
cmp edx, eax
jb 0x1513d
mov eax, dword [rbx + r10*4]
add rax, r9
mov rbx, rdi
sub rbx, rax
movzx r10d, byte [rax]
movzx r11d, byte [rax + rbx]
sub r10d, r11d
jne 0x15123
add rax, 1
test r11d, r11d
jne 0x1510c
cmp r10d, r8d
jne 0x15133
lea r8, [r9 + rdx]
mov qword [rsp + 8], r8
jmp 0x15155
mov r11d, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
cmp ecx, 0x2710
ja 0x15155
add ecx, 1
mov dword [rsp], ecx
mov edx, dword [rsp + 0x60]
jmp 0x150d8
xor eax, eax
jmp 0x15166
jmp 0x1515f
mov rax, r8
jmp 0x15166
xor eax, eax
add rsp, 0x10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1517c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 0x10], edx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r13, r8
xor ebx, ebx
mov r15d, 0xc0000001
mov qword [rax - 0x38], rbx
mov edi, 0x1000
mov r12d, ebx
mov dword [rax - 0x3c], ebx
mov r14d, edi
mov edx, edi
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
mov qword [rsp + 0x40], rax
cmp rax, rbx
jne 0x151d5
xor eax, eax
jmp 0x152ef
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.0001a360
cmp r13, rbx
je 0x151f4
cmp dword [r13], ebx
cmovne edi, dword [r13]
mov dword [rsp + 0x38], edi
mov ecx, ebx
cmp ebx, ebx
je 0x15256
sub ecx, 1
je 0x1522d
cmp ecx, 1
jne 0x15275
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, rsi
mov edx, dword [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationThread]
mov r15d, eax
mov dword [rsp + 0x34], eax
jmp 0x15275
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, rsi
mov edx, dword [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
mov r15d, eax
mov dword [rsp + 0x34], eax
jmp 0x15275
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rsi
mov ecx, dword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov r15d, eax
mov dword [rsp + 0x34], eax
cmp r15d, ebx
jne 0x15288
cmp r13, rbx
je 0x15283
mov dword [r13], edi
mov rax, rsi
jmp 0x152ef
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rbx
mov qword [rsp + 0x40], rbx
cmp r15d, 0xc0000004
je 0x152a8
xor eax, eax
jmp 0x152ef
cmp r12d, ebx
jne 0x152bd
cmp dword [rsp + 0x30], ebx
je 0x152bd
mov edi, dword [rsp + 0x30]
mov dword [rsp + 0x38], edi
jmp 0x152c3
add edi, edi
mov dword [rsp + 0x38], edi
cmp edi, 0xa00000
ja 0x152e0
add r12d, 1
mov dword [rsp + 0x3c], r12d
jmp 0x151b1
cmp rcx, rbx
je 0x152ed
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x164c0
Capabilities:
Attach user process memory

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xa0
and qword [r11 - 0x70], 0
mov dword [rsp + 0x40], 0x30
and qword [r11 - 0x60], 0
and dword [rsp + 0x58], 0
and qword [r11 - 0x58], 0
and qword [r11 - 0x48], 0
and qword [r11 - 0x40], 0
mov eax, ecx
mov rcx, qword [0x0001c678]
lea rdx, [r11 - 0x38]
mov qword [r11 - 0x78], rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
mov edx, 1
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
xor ebx, ebx
test eax, eax
sete bl
test ebx, ebx
je 0x1660e
mov rcx, qword [rsp + 0xc0]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0xb8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
jne 0x165ee
mov eax, dword [0x0001ce40]
sub eax, 0x501
je 0x165d0
sub eax, 1
je 0x165be
sub eax, 0xfe
je 0x165ac
sub eax, 1
je 0x1659a
cmp eax, 1
jne 0x165e0
mov rax, qword [rsp + 0xb8]
btr dword [rax + 0x268], 0xd
jmp 0x165e0
mov rax, qword [rsp + 0xb8]
btr dword [rax + 0x270], 0xd
jmp 0x165e0
mov rax, qword [rsp + 0xb8]
btr dword [rax + 0x228], 0xd
jmp 0x165e0
mov rax, qword [rsp + 0xb8]
btr dword [rax + 0x240], 0xd
jmp 0x165e0
mov rax, qword [rsp + 0xb8]
btr dword [rax + 0x248], 0xd
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0xc0]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwTerminateProcess]
mov rcx, qword [rsp + 0xc0]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, ebx
add rsp, 0xa0
pop rbx
ret
Function at 0x16658
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0xb0
and qword [rax + 0x20], 0
cmp qword [0x0001c328], 0
mov ebx, edx
mov edi, ecx
je 0x1681b
mov rcx, qword [0x0001c678]
lea rdx, [rax - 0x50]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x50], 0
and dword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x68], 0
and qword [rsp + 0x70], 0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0xe0]
mov edx, 2
mov dword [rsp + 0x48], 0x30
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenThread]
test eax, eax
mov edi, eax
jne 0x16802
mov rcx, qword [rsp + 0xe0]
xor edx, edx
call qword [0x0001c328]
test eax, eax
mov edi, eax
je 0x167f4
mov rcx, qword [rsp + 0xe0]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
jne 0x167a4
mov rbx, qword [0x0001c688]
test rbx, rbx
jne 0x16799
mov rsi, qword [0x0001c328]
xor ebp, ebp
cmp byte [rsi], 0xe8
jne 0x1677e
cmp byte [rsi - 3], 0xff
jne 0x1677e
lea rcx, [rsi + 1]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1677e
mov rax, qword [rsi + 1]
lea rbx, [rax + rsi + 5]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1677e
cmp byte [rbx], 0x6a
jne 0x1677e
cmp byte [rbx + 1], 0x18
je 0x1680f
add ebp, 1
add rsi, 1
cmp ebp, 0xff
jb 0x16740
mov rbx, qword [0x0001c688]
test rbx, rbx
je 0x167a4
mov rcx, qword [rsp + 0x30]
xor edx, edx
call rbx
mov edi, eax
test edi, edi
je 0x167f4
mov rbx, qword [rsp + 0xe0]
mov edx, 0x50
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
test rax, rax
je 0x167f4
lea r9, [rsp + 0xe8]
lea r8, [0x0001662c]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.00019510
test eax, eax
jne 0x167f4
mov rcx, qword [rsp + 0xe8]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x16820
mov qword [0x0001c688], rbx
jmp 0x16794
mov edi, 0xc0000001
mov eax, edi
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret