joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140073ac0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140073b93
cmp byte [rcx + 0x71], 0
je 0x140073b93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140073b8f
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 0x140073b54
sub eax, 1
je 0x140073b58
cmp eax, 2
jne 0x140073b8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140076a10
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140073b86
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 0x140073b8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140073b3c
xor al, al
jmp 0x140073b3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140076a10
add rsp, 0x60
pop rbx
ret

Function at 0x140076230
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edi, edi
mov rbp, rcx
xor edx, edx
mov ebx, edi
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140076278
xor eax, eax
jmp 0x1400762cf
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400762c4
mov rdx, rbp
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400762b2
mov eax, dword [rsp + 0x3c]
cmp eax, ebx
jbe 0x1400762b2
mov edi, dword [rsp + 0x28]
mov ebx, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140076292
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140076a10
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140077730
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400136d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011299
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014a20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014a40
xor al, al
jmp 0x140014ac1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014a53
xor al, al
jmp 0x140014ac1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014a7d
xor al, al
jmp 0x140014ac1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014a91
xor al, al
jmp 0x140014ac1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014aa3
xor al, al
jmp 0x140014ac1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014abf
xor al, al
jmp 0x140014ac1
mov al, 1
add rsp, 0x38
ret
Function at 0x180007fa0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x180122008]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [0x180124b80], 0
jne 0x180008011
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x24]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov qword [0x180124b70], rax
mov eax, dword [rsp + 0x48]
mov qword [0x180124b78], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x180124b80], rax
lea rax, [0x180124b70]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800124f0
add rsp, 0x68
ret

Function at 0x1800088b0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x180122008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rcx
lea rsi, [rdx + 0x1f]
and rsi, 0xffffffffffffffe0
lea rbx, [rcx + 8]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rdi, qword [r14 + 0x78]
test rdi, rdi
je 0x180008919
nop word [rax + rax]
mov rax, qword [rdi + 0x10]
sub rax, qword [rdi + 0x18]
cmp rsi, rax
jbe 0x180008a19
mov rdi, qword [rdi]
test rdi, rdi
jne 0x180008900
mov r15d, 0x8000
cmp rsi, r15
cmova r15, rsi
mov ecx, 0x20
call fcn.1800176a8
mov rdi, rax
xor ebp, ebp
test rax, rax
je 0x180008a30
lea r12, [rax + 0x10]
mov r13, qword [r14]
test r15, r15
je 0x1800089ec
mov rax, qword [0x180124b80]
test rax, rax
jne 0x1800089ae
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x3c]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or ecx, eax
inc ecx
mov qword [0x180124b70], rcx
mov eax, dword [rsp + 0x60]
mov qword [0x180124b78], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x180124b80], rax
test r13, r13
cmove r13, rax
mov rax, qword [0x180124b70]
dec r15
add r15, rax
dec rax
not rax
and r15, rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, r15
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x1800089fd
mov rax, rbp
mov qword [rdi + 8], rax
mov rcx, rdi
call fcn.180017694
jmp 0x180008a30
test r12, r12
je 0x180008a06
mov qword [r12], r15
mov qword [rdi + 8], rax
mov qword [rdi + 0x18], rbp
mov rax, qword [r14 + 0x78]
mov qword [rdi], rax
mov qword [r14 + 0x78], rdi
mov rcx, qword [rdi + 0x18]
mov rbp, qword [rdi + 8]
add rbp, rcx
lea rax, [rcx + rsi]
mov qword [rdi + 0x18], rax
add qword [r14 + 0x50], rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rbp
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800124f0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180009010
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
cmp r8d, 1
je fcn.1800088b0
jmp fcn.180008a70

Function at 0x180011310
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x180122008]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800124f0
add rsp, 0x68
ret
Function at 0x180011c7c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180011d00
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180029490]
cmp byte [rcx + rax], 0
je 0x180011d00
dec r8
sub rdx, 1
jne 0x180011ce6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140004a3c
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, 0x5c
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.14028bc50
mov rax, qword [rsp + 0x30]
mov dword [rax], 0x67452301
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 0xefcdab89
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 0x98badcfe
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 0x10325476
mov eax, 1
add rsp, 0x28
ret
Function at 0x140012530
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x44], 0x800
mov dword [rsp + 0x38], 0x800
mov edx, 0x800
mov rcx, qword [rsp + 0xa8]
call fcn.140046190
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [rsp + 0x40], eax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xa8]
call fcn.1400457fc
cmp dword [rsp + 0x40], 0
jne 0x1400125fb
mov dword [rsp + 0x34], 1
jmp 0x140012603
mov dword [rsp + 0x34], 0
mov al, byte [rsp + 0x34]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
sub rax, 0x18
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140045ed4
nop
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
sub rax, 0x18
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.140045ed4
mov al, byte [rsp + 0x30]
add rsp, 0x88
ret

Function at 0x140012654
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001275a
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x50], 0x800
mov dword [rsp + 0x3c], 0x800
mov edx, 0x800
mov rcx, qword [rsp + 0xb8]
call fcn.140046190
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x68]
lea rdx, [0x140363c76]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [rsp + 0x34], eax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xb8]
call fcn.1400457fc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x34], 0
jne 0x14001276b
mov dword [rsp + 0x38], 1
jmp 0x140012773
mov dword [rsp + 0x38], 0
mov al, byte [rsp + 0x38]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
sub rax, 0x18
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140045ed4
nop
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
sub rax, 0x18
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140045ed4
mov al, byte [rsp + 0x30]
add rsp, 0x98
ret
Function at 0x1400127c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140012889
mov dword [rsp + 0x40], 4
mov dword [rsp + 0x3c], 4
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x58]
lea rdx, [0x140363c77]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x34], 0
jne 0x14001289a
mov dword [rsp + 0x38], 1
jmp 0x1400128a2
mov dword [rsp + 0x38], 0
mov al, byte [rsp + 0x38]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
sub rax, 0x18
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140045ed4
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
sub rax, 0x18
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.140045ed4
mov al, byte [rsp + 0x30]
add rsp, 0x78
ret

Function at 0x1400128f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov dword [rsp + 0x20], 0
call fcn.1400eef44
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140045dc4
nop
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14001296d
cmp qword [rsp + 0x28], 0
je 0x14001296d
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140027c20
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.140045d78
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
sub rax, 0x18
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140045ed4
mov rax, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x1400129ac
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rax, qword [0x1403c86e8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rsp + 0x40], eax
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14028bc50
lea rdx, [rsp + 0x38]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x140012a55
cmp qword [rsp + 0x38], 0
je 0x140012a55
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov edx, Ordinal_32
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x30], 1
mov al, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140286010
add rsp, 0x170
pop rdi
ret
Function at 0x140014c8c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov qword [rsp + 0x100], 0xfffffffffffffffe
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x18], 0x10
jb 0x140014ced
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
jmp 0x140014cf7
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140014edf
mov dword [rsp + 0x50], 0
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0xe8]
call fcn.140026f44
nop
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx]
mov byte [rax + rcx], 0
lea rax, [rsp + 0xe8]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0xe8]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
movsx eax, byte [rax]
test eax, eax
jne 0x140014ea6
mov qword [rsp + 0x70], 0
jmp 0x140014eb5
mov rcx, qword [rsp + 0x68]
call fcn.1402958f0
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x128]
call fcn.140011dd4
mov byte [rsp + 0x40], 1
lea rcx, [rsp + 0xe8]
call fcn.1400288b4
nop
mov al, byte [rsp + 0x40]
mov byte [rsp + 0x41], al
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0x120]
call fcn.14001196c
nop
mov al, byte [rsp + 0x41]
add rsp, 0x118
ret
Function at 0x14001cda4
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x198
mov rax, qword [0x1403c86e8]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x40], 4
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x50], 0x130
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x14001cf36
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x14001cf2b
lea rdx, [rsp + 0x7c]
lea rcx, str.explorer.exe
call fcn.14029a850
test eax, eax
jne 0x14001cf12
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14001cf12
mov r8, qword [rsp + 0x1a8]
mov edx, 0xa
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14001cec8
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
lea r8, [rsp + 0x44]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rax, qword [rsp + 0x1a8]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14001cec8
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x1a0], eax
jne 0x14001cec8
mov byte [rsp + 0x30], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
jmp 0x14001cf2b
mov rax, qword [rsp + 0x1a8]
cmp qword [rax], 0
je 0x14001cef6
mov rax, qword [rsp + 0x1a8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x1a8]
mov qword [rax], 0
cmp qword [rsp + 0x38], 0
je 0x14001cf12
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x14001ce1a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140286010
add rsp, 0x198
ret
Function at 0x14001f65c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x1403c86e8]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x28], 0xffffffffffffffff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x40], 0x130
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x14001f73a
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x14001f72f
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x190]
call fcn.14029ac68
test eax, eax
jne 0x14001f71a
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [rsp + 0x20], 0x3e8
ja 0x14001f712
mov eax, dword [0x1403c92f0]
cmp dword [rsp + 0x20], eax
jne 0x14001f71a
mov dword [rsp + 0x24], 1
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x14001f6cf
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140286010
add rsp, 0x188
ret