joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028a5c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001bef8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001bef8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028bac
cmp rax, 0xffffffffffffffff
je 0x140028bac
xor edi, edi
test rbp, rbp
jle 0x140028b57
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb84
mov rbx, rax
test rax, rax
jne 0x140028ae4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028b4d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400197a0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cbe0
cmp eax, 0xffffffff
je 0x140028b2d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028af4
mov edx, r15d
mov ecx, r14d
call fcn.1400197a0
jmp 0x140028b4d
cmp byte [rsi + 0x38], dil
je 0x140028b44
cmp dword [rsi + 0x34], 5
jne 0x140028b44
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028b4d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a0e4
jmp 0x140028bc0
jns 0x140028bc0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001bef8
cmp rax, 0xffffffffffffffff
jne 0x140028b78
cmp byte [rsi + 0x30], dil
je 0x140028bc0
mov edi, dword [rsi + 0x2c]
jmp 0x140028bc0
mov ecx, r14d
call fcn.1400182d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028bc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028bc0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028bb9
mov eax, dword [rsi + 0x2c]
jmp 0x140028bbe
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001bef8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029cb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029cd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029cd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14000173c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140228980]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x14000c1c4
xor eax, eax
jmp 0x14000c3ba
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x14000c1f5
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.14000e940
jmp 0x14000c3ba
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call fcn.140013810
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x14000c2a3
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14000a300
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.1400139d0
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.140014cc0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.140014040
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x14000c3aa
mov rcx, qword [rsp + 0x80]
call fcn.140012b80
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x14000c358
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14016e490
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x14000c353
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14000c3ba
jmp 0x14000c2cf
cmp qword [rsp + 0x50], 0
jbe 0x14000c3aa
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14016e490
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14015f5d0
add rsp, 0x78
ret
Function at 0x140024cc0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1c8
mov rax, qword [0x140228980]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov dword [rsp + 0x80], pe_nt_image_headers64
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x140024d50
lea rdx, str.Failed_to_create_process_snapshot._Error:
lea rcx, [0x140261190]
call fcn.140019b10
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.14000ecc0
mov qword [rsp + 0x40], rax
lea rdx, [0x140019ee0]
mov rcx, qword [rsp + 0x40]
call fcn.14000e100
xor eax, eax
jmp 0x140024e36
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x140024dbc
lea rdx, str.Failed_to_retrieve_process_information._Error:
lea rcx, [0x140261190]
call fcn.140019b10
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
call fcn.14000ecc0
mov qword [rsp + 0x50], rax
lea rdx, [0x140019ee0]
mov rcx, qword [rsp + 0x50]
call fcn.14000e100
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140024e36
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0xac]
lea rcx, [rsp + 0x58]
call fcn.140010210
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x1d0]
call fcn.140023360
movzx eax, al
test eax, eax
je 0x140024e06
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x58]
call fcn.140010110
jmp 0x140024e27
lea rcx, [rsp + 0x58]
call fcn.140010110
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140024dc4
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14015f5d0
add rsp, 0x1c8
ret
Function at 0x140025160
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x2f8
mov rax, qword [0x140228980]
xor rax, rsp
mov qword [rsp + 0x2e8], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 8
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x1400252ea
xor r8d, r8d
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x60]
call fcn.140019130
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xc0]
call fcn.1400090d0
nop
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x60]
call fcn.140007eb0
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0xa0]
call fcn.140003eb0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.140009f10
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xa0]
call fcn.140009320
nop
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0xb0]
call fcn.140003eb0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.140009f10
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.1400093c0
nop
jmp 0x14002527c
lea rcx, [rsp + 0xa0]
call fcn.1400091d0
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
call fcn.140009260
movzx eax, al
test eax, eax
jne 0x1400252c1
lea rcx, [rsp + 0xa0]
call fcn.140009190
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.140008970
mov rcx, rax
call fcn.140009850
nop
jmp 0x1400252bf
jmp 0x14002526f
lea rcx, [rsp + 0xb0]
call fcn.140009360
nop
lea rcx, [rsp + 0xa0]
call fcn.140009360
nop
lea rcx, [rsp + 0xc0]
call fcn.140009360
mov rcx, qword [rsp + 0x2e8]
xor rcx, rsp
call fcn.14015f5d0
add rsp, 0x2f8
ret

Function at 0x140025310
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub rsp, 0x288
mov rax, qword [0x140228980]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, [0x1401cdb70]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400253f9
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x60], 0x100
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1400253c3
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x60], 0x100
jmp 0x140025368
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x1401cdbe8]
lea rcx, [0x140261070]
call fcn.140019180
mov qword [rsp + 0x48], rax
lea rdx, [0x140019560]
mov rcx, qword [rsp + 0x48]
call fcn.14000e100
jmp 0x140025422
lea rdx, [0x1401cdc20]
lea rcx, [0x140261320]
call fcn.140019180
mov qword [rsp + 0x50], rax
lea rdx, [0x140019560]
mov rcx, qword [rsp + 0x50]
call fcn.14000e100
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14015f5d0
add rsp, 0x288
ret
Function at 0x1400255f0
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rax, qword [0x140228980]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov edx, 0x18
lea rcx, [rsp + 0x140]
call fcn.140003eb0
lea rcx, [rsp + 0x20]
call fcn.140006f00
mov qword [rsp + 0x40], rax
lea rdx, str.Application
lea rcx, [rsp + 0x90]
call fcn.140009f50
nop
lea rdx, str.Security
lea rcx, [rsp + 0xb0]
call fcn.140009f50
nop
lea rdx, str.Setup
lea rcx, [rsp + 0xd0]
call fcn.140009f50
nop
lea rdx, str.System
lea rcx, [rsp + 0xf0]
call fcn.140009f50
nop
lea rdx, str.ForwardedEvents
lea rcx, [rsp + 0x110]
call fcn.140009f50
nop
lea rax, [rsp + 0x130]
mov r8, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x80]
call fcn.140007da0
lea rcx, [rsp + 0x58]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x58]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x140]
call fcn.14000e070
nop
lea r9, [fcn.14000fb20]
mov r8d, 5
mov edx, 0x20
lea rcx, [rsp + 0x90]
call fcn.14015f63c
lea rax, [rsp + 0x140]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140006030
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x38]
call fcn.140002a00
mov qword [rsp + 0x48], rax
jmp 0x140025751
mov rax, qword [rsp + 0x28]
add rax, 0x20
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x28], rax
je 0x1400257a3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.140006320
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400257a1
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ClearEventLogW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
jmp 0x140025743
lea rcx, [rsp + 0x140]
call fcn.14000e050
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14015f5d0
add rsp, 0x168
pop rdi
pop rsi
ret
Function at 0x1400257d0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x2e8
mov rax, qword [0x140228980]
xor rax, rsp
mov qword [rsp + 0x2d8], rax
lea rdx, [rsp + 0xc0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14002594a
xor r8d, r8d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x50]
call fcn.140019130
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.1400090d0
nop
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
call fcn.140007eb0
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x90]
call fcn.140003eb0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call fcn.140009f10
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.140009320
nop
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0xa0]
call fcn.140003eb0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
call fcn.140009f10
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xa0]
call fcn.1400093c0
nop
jmp 0x1400258dc
lea rcx, [rsp + 0x90]
call fcn.1400091d0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x90]
call fcn.140009260
movzx eax, al
test eax, eax
jne 0x140025921
lea rcx, [rsp + 0x90]
call fcn.140009190
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140008970
mov rcx, rax
call fcn.140009ca0
nop
jmp 0x14002591f
jmp 0x1400258cf
lea rcx, [rsp + 0xa0]
call fcn.140009360
nop
lea rcx, [rsp + 0x90]
call fcn.140009360
nop
lea rcx, [rsp + 0xb0]
call fcn.140009360
mov rcx, qword [rsp + 0x2d8]
xor rcx, rsp
call fcn.14015f5d0
add rsp, 0x2e8
ret

Function at 0x140025970
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x140228980]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.Software
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140025a96
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0x100
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140025a8b
lea rdx, str.Software_
lea rcx, [rsp + 0x58]
call fcn.140009f50
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.14000fa20
xor r8d, r8d
mov rdx, qword [rsp + 0x2a0]
lea rcx, [rsp + 0x58]
call fcn.14000f3b0
cmp rax, 0xffffffffffffffff
je 0x140025a6a
lea rcx, [rsp + 0x58]
call fcn.140006320
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x50], 0x100
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x58]
call fcn.14000fb20
jmp 0x1400259cd
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14015f5d0
add rsp, 0x298
ret
Function at 0x140026ab0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x140228980]
xor rax, rsp
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x70]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140026b31
lea rdx, str.OpenProcessToken_error:
lea rcx, [0x140261190]
call fcn.140019b10
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.14000ecc0
mov qword [rsp + 0x48], rax
lea rdx, [0x140019ee0]
mov rcx, qword [rsp + 0x48]
call fcn.14000e100
jmp 0x140026c56
lea r8, [rsp + 0x78]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x140026b9f
lea rdx, str.LookupPrivilegeValue_error:
lea rcx, [0x140261190]
call fcn.140019b10
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
call fcn.14000ecc0
mov qword [rsp + 0x58], rax
lea rdx, [0x140019ee0]
mov rcx, qword [rsp + 0x58]
call fcn.14000e100
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140026c56
mov dword [rsp + 0x80], 1
mov eax, recv
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov qword [rsp + rax + 0x84], rcx
mov eax, recv
imul rax, rax, 0
mov dword [rsp + rax + 0x8c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140026c4b
lea rdx, str.AdjustTokenPrivileges_error:
lea rcx, [0x140261190]
call fcn.140019b10
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.14000ecc0
mov qword [rsp + 0x68], rax
lea rdx, [0x140019ee0]
mov rcx, qword [rsp + 0x68]
call fcn.14000e100
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14015f5d0
add rsp, 0xa8
ret
Function at 0x140027a40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x378
mov rax, qword [0x140228980]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov dword [rsp + 0x30], 0
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x140027cad
mov dword [rsp + 0x120], 0x238
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140027ca2
lea rdx, [rsp + 0x14c]
lea rcx, [rsp + 0x100]
call fcn.140009f50
nop
mov rdx, qword [rsp + 0x380]
lea rcx, [rsp + 0xe0]
call fcn.14000fca0
nop
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xe0]
call fcn.14000f6e0
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xe0]
call fcn.14000f670
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xe0]
call fcn.14000f6e0
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
lea rax, [0x140166a50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0xb8]
call fcn.14001a1e0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x100]
call fcn.14000f6e0
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x100]
call fcn.14000f670
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x100]
call fcn.14000f6e0
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x98], rax
lea rax, [0x140166a50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x88]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0xd8]
call fcn.14001a1e0
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x100]
call fcn.14001a5b0
movzx eax, al
test eax, eax
je 0x140027c6c
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0xe0]
call fcn.14000fb20
nop
lea rcx, [rsp + 0x100]
call fcn.14000fb20
jmp 0x140027ca2
lea rcx, [rsp + 0xe0]
call fcn.14000fb20
nop
lea rcx, [rsp + 0x100]
call fcn.14000fb20
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140027aaa
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.14015f5d0
add rsp, 0x378
ret
Function at 0x140028940
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2d8
mov rax, qword [0x140228980]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov dword [rsp + 0x80], 0x238
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1400289bd
lea rdx, str.CreateToolhelp32Snapshot_failed
lea rcx, [0x140261190]
call fcn.140019b10
mov qword [rsp + 0x30], rax
lea rdx, [0x140019ee0]
mov rcx, qword [rsp + 0x30]
call fcn.14000e100
xor al, al
jmp 0x140028ae3
mov byte [rsp + 0x20], 0
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140028aaa
lea rdx, [rsp + 0xac]
lea rcx, [rsp + 0x60]
call fcn.140009f50
nop
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x2e0]
call fcn.14001a5b0
movzx eax, al
test eax, eax
je 0x140028a83
lea rcx, [rsp + 0x40]
call fcn.14000fd40
nop
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x88]
call fcn.140028890
movzx eax, al
test eax, eax
je 0x140028a78
xor r8d, r8d
mov rdx, qword [rsp + 0x2e8]
lea rcx, [rsp + 0x40]
call fcn.14000f3b0
cmp rax, 0xffffffffffffffff
je 0x140028a78
mov byte [rsp + 0x20], 1
mov rdx, qword [rsp + 0x2f0]
mov ecx, dword [rsp + 0x88]
call fcn.1400284c0
nop
lea rcx, [rsp + 0x40]
call fcn.14000fb20
nop
lea rcx, [rsp + 0x60]
call fcn.14000fb20
jmp 0x140028aa8
lea rcx, [rsp + 0x40]
call fcn.14000fb20
nop
lea rcx, [rsp + 0x60]
call fcn.14000fb20
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400289dd
jmp 0x140028ad3
lea rdx, str.Process32FirstW_failed
lea rcx, [0x140261190]
call fcn.140019b10
mov qword [rsp + 0x38], rax
lea rdx, [0x140019ee0]
mov rcx, qword [rsp + 0x38]
call fcn.14000e100
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14015f5d0
add rsp, 0x2d8
ret