joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003270
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x11], 0
mov rbx, rcx
je 0x140003296
xor eax, eax
lea r8d, [rax - 0x1a]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0x10
jb 0x140003281
mov byte [rdx + 0x11], 0
call fcn.140003010
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400032b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x41], 0
mov rbx, rcx
je 0x1400032d6
xor eax, eax
lea r8d, [rax - 0x1a]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0x40
jb 0x1400032c1
mov byte [rdx + 0x41], 0
call fcn.140003010
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400032f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x6c], 0
mov rbx, rcx
je 0x140003316
xor eax, eax
lea r8d, [rax - 0x1a]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0x6b
jb 0x140003301
mov byte [rdx + 0x6c], 0
call fcn.140003010
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140003330
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0xb], 0
mov rbx, rcx
je 0x140003356
xor eax, eax
lea r8d, [rax - 0x1a]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0xa
jb 0x140003341
mov byte [rdx + 0xb], 0
call fcn.140003010
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400062a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x3a0
mov rax, qword [0x1400940a8]
xor rax, rsp
mov qword [rsp + 0x390], rax
xor bpl, bpl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
lea rcx, [rsp + 0x154]
mov r8d, 0x234
mov ebx, eax
mov edi, 0xffffffff
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x150], 0x238
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x150]
mov rcx, rax
mov rsi, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140006346
nop word [rax + rax]
cmp dword [rsp + 0x158], ebx
je 0x14000633f
lea rdx, [rsp + 0x150]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140006320
jmp 0x140006346
mov edi, dword [rsp + 0x170]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, Ordinal_301
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400063b8
cmp dword [rsp + 0x28], edi
jne 0x1400063a2
lea rdx, [0x140078178]
lea rcx, [rsp + 0x4c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400063b5
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140006387
jmp 0x1400063b8
mov bpl, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bpl
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140072c30
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140006530
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x1400940a8]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
mov qword [rsp + 0x38], rsp
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400066c2
lea rdx, [0x140078ca0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400066c2
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x1400066c2
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400066c2
mov byte [rsp + 0x30], 0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x2a0], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x34], eax
mov r8d, dword [rsp + 0x68]
cmp eax, r8d
jne 0x1400065fe
lea rdx, [0x140006688]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140006629
lea rdx, [0x140006688]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
mov qword [rsp + 0x20], rsi
mov r9d, 4
lea r8, [rsp + 0x2a0]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14000665d
lea rdx, [0x140006688]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
mov eax, dword [rbx]
cmp dword [rsp + 0x2a0], eax
je 0x14000667f
mov byte [rsp + 0x30], 1
lea rdx, [0x1400066ab]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x1400066ab
xor esi, esi
mov rbx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x34]
jmp 0x1400065e3
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400066bb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x30]
jmp 0x1400066c4
xor al, al
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.140072c30
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140006750
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x1400940a8]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov r14, rcx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
mov r15, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140006948
movabs r12, 0x7ffffffffffffffe
xor r13d, r13d
xorps xmm0, xmm0
lea rax, [rsp + 0x6c]
movups xmmword [rsp + 0x20], xmm0
mov ecx, 0xa
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r13w
jne 0x1400067d4
cmp rbx, r12
ja 0x14000698b
cmp rbx, 8
jae 0x140006827
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x6c]
add rbx, rbx
mov qword [rsp + 0x38], 7
mov r8, rbx
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x20], r13w
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x20]
jmp 0x140006879
mov rsi, rbx
or rsi, 7
cmp rsi, r12
jbe 0x140006838
mov rsi, r12
jmp 0x140006840
cmp rsi, 0xa
cmovb rsi, rcx
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x20]
call fcn.140007150
lea rdi, [rbx + rbx]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x6c]
mov qword [rsp + 0x38], rsi
mov rcx, rax
mov rbp, rax
call sub.VCRUNTIME140.dll_memcpy
mov word [rdi + rbp], r13w
cmp qword [r14 + 0x18], 8
mov rcx, r14
jb 0x140006886
mov rcx, qword [r14]
cmp rsi, 8
lea rdx, [rsp + 0x20]
cmovae rdx, rbp
cmp rbx, qword [r14 + 0x10]
jne 0x1400068fc
test rbx, rbx
je 0x1400068b4
sub rdx, rcx
movzx eax, word [rcx]
cmp word [rdx + rcx], ax
jne 0x1400068fc
add rcx, 2
sub rbx, 1
jne 0x1400068a1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 8
jb 0x1400068f8
lea rdx, [rsi*2 + 2]
mov rax, rbp
cmp rdx, 0x1000
jb 0x1400068f0
mov rbp, qword [rbp - 8]
add rdx, 0x27
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006984
mov rcx, rbp
call fcn.1400727dc
mov al, 1
jmp 0x140006953
cmp rsi, 8
jb 0x140006933
lea rdx, [rsi*2 + 2]
mov rax, rbp
cmp rdx, 0x1000
jb 0x14000692b
mov rbp, qword [rbp - 8]
add rdx, 0x27
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006984
mov rcx, rbp
call fcn.1400727dc
lea rdx, [rsp + 0x40]
mov rcx, r15
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400067bb
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140072c30
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400070c0
int3
Function at 0x140006da0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400940a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006e73
cmp byte [rcx + 0x71], 0
je 0x140006e73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140006e6f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006e34
sub eax, 1
je 0x140006e38
cmp eax, 2
jne 0x140006e6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140072c30
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006e66
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140006e6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140006e1c
xor al, al
jmp 0x140006e1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140072c30
add rsp, 0x60
pop rbx
ret

Function at 0x140007250
Capabilities:
Encode data using xor
Execute command

Disassembly:
sub rsp, 0x58
movdqa xmm0, xmmword [0x140079530]
xor eax, eax
movdqa xmm1, xmmword [0x140078fa0]
movdqu xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x40], 1
movdqu xmmword [rsp + 0x30], xmm1
nop word [rax + rax]
lea ecx, [rax - 0x1a]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp rax, 0x1f
jb 0x140007280
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x40], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0x58
ret
Function at 0x1400072b0
Capabilities:
Execute command
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1400940a8]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [0x140078050]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edx, 0x108
lea rcx, [rsp + 0x40]
call fcn.1400070e0
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rdx, str.C:WindowsINFSecure.axt
lea rcx, [rsp + 0x40]
call fcn.140004280
nop
lea rdx, str.0xE0PD01_n0xB866E7_n0x1337B1
lea rcx, [rsp + 0x40]
call fcn.140003010
mov rcx, rax
lea rdx, [0x140003e70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [rsp + 0x40]
call fcn.140007730
lea rcx, [0x140077e58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.RtlAdjustPrivilege
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtRaiseHardError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0x13]
call rbx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc00002b4
call rdi
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140007860
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
lea rax, str..kdstinker
xor edi, edi
mov qword [rsp + 0x40], rax
mov ebx, edi
lea rax, str.._
mov qword [rsp + 0x48], rax
lea rax, str..KsDumper
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + rbx*8 + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1400078d1
lea rcx, str.start_cmd__c_START_CMD__C__COLOR_C__TITLE_Protection__ECHO_KsDumper_Detected.__TIMEOUT_10__nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
inc rbx
cmp rbx, 3
jl 0x140007892
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000abd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
lea ecx, [rbx + 8]
call fcn.1400727a0
test rax, rax
je 0x14000abf8
lea rcx, [0x14000a660]
mov qword [rax], rcx
jmp 0x14000abfb
mov rax, rbx
mov qword [rbp + 0x10], rax
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140003950]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14000ad4f
cmp dword [rbp - 0x18], 0
je 0x14000ad44
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x14000ad44
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
lea ecx, [rax + 8]
call fcn.1400727a0
test rax, rax
je 0x14000ac72
lea rcx, [0x1400078f0]
mov qword [rax], rcx
jmp 0x14000ac75
mov rax, rbx
mov qword [rbp + 0x10], rax
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140003950]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14000ad81
cmp dword [rbp - 0x18], 0
je 0x14000ad76
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x14000ad76
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
lea ecx, [rax + 8]
call fcn.1400727a0
test rax, rax
je 0x14000acec
lea rcx, [0x140005910]
mov qword [rax], rcx
jmp 0x14000acef
mov rax, rbx
mov qword [rbp + 0x10], rax
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140003950]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14000ad68
cmp dword [rbp - 0x18], 0
je 0x14000ad5d
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x14000ad5d
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rbp - 0x18], ebx
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rbp - 0x18], ebx
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rbp - 0x18], ebx
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x14000adc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400940a8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14000aded
xor eax, eax
jmp 0x14000af56
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14000ae2d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14000ae2d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14000af4e
cmp qword [rdi + 0x80], 0
je 0x14000af49
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x14000ae67
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14000ae92
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000af4e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000af01
sub eax, 1
je 0x14000af01
cmp eax, 2
jne 0x14000af49
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000af4e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14000af2f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14000af49
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14000af4e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140072c30
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000b0a0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1400940a8]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000b11f
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14000b116
nop word [rax + rax]
lea rdx, str.ProcessHacker.exe
lea rcx, [rsp + 0x4c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov rcx, rbx
test eax, eax
je 0x14000b13a
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14000b0f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140072c30
add rsp, 0x160
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000b121
Function at 0x14000b150
Capabilities:
Enumerate files on windows

Disassembly:
push r12
push r14
push r15
sub rsp, 0x1a0
mov rax, qword [0x1400940a8]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r15, rdx
mov r14, rcx
lea rdx, [rsp + 0x40]
lea rcx, [0x140077fb4]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14000b197
xor al, al
jmp 0x14000b33d
mov qword [rsp + 0x1c0], rbx
mov qword [rsp + 0x1d0], rbp
mov rbp, 0xffffffffffffffff
mov qword [rsp + 0x190], r13
movabs r13, 0x7fffffffffffffff
mov qword [rsp + 0x1d8], rsi
mov qword [rsp + 0x198], rdi
test byte [rsp + 0x40], 0x10
mov ecx, reloc.WLDAP32.dll_Ordinal_22
jne 0x14000b2f4
xorps xmm0, xmm0
lea rax, [rsp + 0x6c]
movups xmmword [rsp + 0x20], xmm0
mov rbx, rbp
inc rbx
cmp byte [rax + rbx], 0
jne 0x14000b1f0
cmp rbx, r13
ja 0x14000b3be
cmp rbx, 0x10
jae 0x14000b23e
mov r8, rbx
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x6c]
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x20], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x20]
jmp 0x14000b28b
mov rdi, rbx
or rdi, 0xf
cmp rdi, r13
jbe 0x14000b24f
mov rdi, r13
jmp 0x14000b257
cmp rdi, 0x16
cmovb rdi, rcx
lea rdx, [rdi + 1]
lea rcx, [rsp + 0x20]
call fcn.1400070f0
mov r8, rbx
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x6c]
mov qword [rsp + 0x30], rbx
mov rcx, rax
mov qword [rsp + 0x38], rdi
mov rsi, rax
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
jb 0x14000b298
mov rdx, qword [r14]
cmp rdi, 0x10
lea rcx, [rsp + 0x20]
cmovae rcx, rsi
cmp rbx, qword [r14 + 0x10]
jne 0x14000b2bb
mov r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000b2bb
mov bl, 1
jmp 0x14000b2bd
xor bl, bl
cmp rdi, 0x10
jb 0x14000b2f0
lea rdx, [rdi + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000b2e8
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b35b
mov rcx, rsi
call fcn.1400727dc
test bl, bl
jne 0x14000b362
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000b1d0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
mov rdi, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x1d8]
mov rbp, qword [rsp + 0x1d0]
mov rbx, qword [rsp + 0x1c0]
mov r13, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140072c30
add rsp, 0x1a0
pop r15
pop r14
pop r12
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rax, [rsp + 0x6c]
inc rbp
cmp byte [rax + rbp], 0
jne 0x14000b367
mov rax, qword [r15 + 0x18]
cmp rbp, rax
ja 0x14000b3a4
mov rbx, r15
cmp rax, 0x10
jb 0x14000b385
mov rbx, qword [r15]
mov r8, rbp
mov qword [r15 + 0x10], rbp
lea rdx, [rsp + 0x6c]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov al, 1
mov byte [rbx + rbp], 0
jmp 0x14000b315
lea r9, [rsp + 0x6c]
xor r8d, r8d
mov rdx, rbp
mov rcx, r15
call fcn.140003980
mov al, 1
jmp 0x14000b315
call fcn.1400070c0
int3