joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000380c
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [rsp + 0x20], 0
lea rax, [rdx - 0x10001]
xorps xmm0, xmm0
mov rbx, rcx
movabs rcx, 0x7ffffffefffe
mov r14, r9
mov rdi, rdx
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
cmp rax, rcx
ja 0x14000398d
mov edx, r8d
xor ecx, ecx
mov ebp, r8d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
test rax, rax
jne 0x140003883
lea rcx, [0x140004410]
jmp 0x140003994
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140003e80
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x1400038c1
lea rcx, [0x140004430]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140003999
lfence
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x1400038f1
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140003999
lfence
mov r8, rbp
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_MmCreateMdl]
mov rdi, rax
test rax, rax
je 0x140003968
lfence
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov rbx, rax
test rax, rax
je 0x14000395a
lfence
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call fcn.140003e80
mov cl, 2
call qword [sym.imp.ntoskrnl.exe_KfRaiseIrql]
mov cl, al
call qword [sym.imp.ntoskrnl.exe_KeLowerIrql]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
xor ebx, ebx
jmp 0x14000395f
mov ebx, 0xc0000001
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x14000399e
lea rcx, [0x140004470]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003bf0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400039b8
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov r15d, r8d
mov qword [rax - 0x28], rbx
mov r14, r9
mov qword [rax - 0x20], rbx
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rbp, rax
test rax, rax
je 0x140003a5a
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
mov esi, eax
test rcx, rcx
je 0x140003a5a
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test esi, esi
js 0x140003a5a
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140003a5a
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov r9, rdi
mov byte [rsp + 0x28], bl
mov rdx, r14
mov rcx, rbp
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntoskrnl.exe_MmCopyVirtualMemory]
test eax, eax
mov ecx, 0xc0000001
cmovs ebx, ecx
mov eax, ebx
jmp 0x140003a5f
mov eax, 0xc0000001
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140003a7c
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [rsp + 0x20], 0
xorps xmm0, xmm0
mov rbx, rdx
mov edi, r8d
mov rbp, rcx
mov edx, r8d
xor ecx, ecx
mov r14, r9
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
test rax, rax
jne 0x140003ade
lea rcx, [0x140004410]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140003bc1
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.140003e80
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x20]
mov r14d, eax
test rcx, rcx
je 0x140003bb4
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140003ba9
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov r8d, 4
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmMapIoSpace]
mov rbp, rax
test rax, rax
je 0x140003ba9
mov cl, 2
call qword [sym.imp.ntoskrnl.exe_KfRaiseIrql]
mov bl, al
mov rcx, cr0
btr rcx, 0x10
mov cr0, rcx
cli
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.140003e80
mov rcx, cr0
sti
bts rcx, 0x10
mov cr0, rcx
mov cl, bl
call qword [sym.imp.ntoskrnl.exe_KeLowerIrql]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_MmUnmapIoSpace]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, r14d
jmp 0x140003bc6
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140004140
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003bf0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140c818bf
Capabilities:
Encode data using xor

Disassembly:
sal qword [rsp], 0xae
test rsi, rsi
lea rsp, [rsp + 0x10]
je 0x140c63ee0
mov ebx, 0x14882389
movsx ecx, bl
lea rcx, [0x140c61f08]
mov ebx, 0x9100ac92
sub bx, bx
push rbx
movzx ebx, byte [rbp + riz]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [rcx + rbx*4]
shr eax, 8
neg qword [rsp]
xor eax, ebx
dec word [rsp + 3]
inc rbp
sal word [rsp + 2], 0x2a
xor eax, 0x3fae8b91
dec rsi
lea rsp, [rsp + 8]
jne 0x140c63e9d
not eax
push 0x3d8b65ab
call fcn.140c8b479
call fcn.140c68c7d
mov ecx, 0xbe104937
movzx si, byte [rbx]
sal cx, 0x23
xor cx, cx
and rcx, rcx
add cl, byte [rbx + riz + 2]
jmp 0x140c66be6
add rbx, 2
jmp 0x140c75054
shr sil, cl
jmp 0x140c8d3fe
adc r8, 0xc
push 0xffffffffc9a6df16
jmp 0x140ca0969
call fcn.140c9f648
xor eax, eax
jmp 0x140c63e7b

Function at 0x140c820e6
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 8]
jmp fcn.140c9b1ae
jmp 0x140c9f36c
push 0x3581cd92
jmp 0x140c7627d
mov ebp, 0x6e11b083
push rbp
mov rbp, qword [rbp + r8 - 0x6e11b083]
ror byte [rsp + 1], 0x41
mov rax, qword [r8 + 8]
mul rbp
mov qword [r8], rdx
call fcn.140c7e8dd
mov ecx, 0x6e1fb0b3
movsx edi, cl
or edi, ecx
mov cx, word [rbp + rcx - 0x6e1fb0b3]
mov di, word [rbp + 2]
adc rbp, 2
jmp 0x140c87a13
cmp rbp, r11
jmp 0x140c8c285
mov r11d, 0xdb89a591
not r11b
lea r11, [r11*2 + 0x77990301]
lea r11, [rsp + 0x1a0]
jmp 0x140c74cbf
jmp 0x140c8985e
call fcn.140c7bf08
jmp 0x140c93cfe
jle 0x140c6c57c
test r10, r10
lea rsp, [rsp + 0x20]
je 0x140c8218d
push 0x152bf980
mov qword [rsp], r8
push r9
mov r9d, 0x77216834
shr r9d, 0x70
lea r8, [0x140c8a518]
mov r9d, 0x381a4fbb
lea r9, [r9*4 - 0x64f1aa6e]
push r9
movzx r9d, byte [rcx + r9 - 0x7b77947e]
dec word [rsp + 4]
xor r9d, ebx
and r9d, 0xff
mov r9d, dword [r8 + r9*4]
shr ebx, 8
xor ebx, r9d
add qword [rsp], 0x4e8fcb9d
inc rcx
xor ebx, 0x90a292c
push 0x21a13baa
push 0xffffffff850f719d
dec r10
lea rsp, [rsp + 0x18]
jne 0x140c82116
mov r9d, 0xc79ce934
lea r9, [r9*4 - 0x6447ae52]
bswap r9
pop r9
push 0x5291787
pop r8
pop r8
call fcn.140c8602a
mov word [r11], r8w
lea rsp, [rsp + 0x10]
jmp 0x140c9b4e0
push 0x3db8ad9a
not di
and cx, di
mov word [rbp + riz], cx
jmp 0x140c6b5a2
not cx
jmp 0x140c824e5
xor r9b, r9b
movzx r9d, byte [r10]
je 0x140c8d04a
push rdx
mov qword [rsp + rdx + 0x675fcefe], r10
pop rdx
mov qword [rsp + rdx + 0x675fceee], r11
mov qword [rsp + rdx + 0x675fcee6], rsi
xadd rdx, rbp
mov rbp, rdi
xadd dl, dh
lea rbx, [rbx - 0x255515b]
jo 0x140c9ca57
sub rbp, 4
push 0xffffffff8433b001
mov dword [rbp + riz], edx
lea rsp, [rsp + 8]
jmp 0x140c79cd1
lea rsp, [rsp + 8]
ja fcn.140c9b1ae
mov eax, 0x679c5e1a
movsx ecx, ax
mov rax, rsp
lea ecx, [rcx - 0x5cfa]
mov r10d, 0xfb92003c
lea rdi, [r10 + r10*8 - 0x25f48168]
lea r10, [rbp + riz - 0x80]
call fcn.140c6064e
jmp 0x140c756d2
jle 0x140c7d3ae
jmp fcn.140c8f4b4
mov r9d, 0xed3cb484
jmp 0x140c87ef7
mov ebx, ecx
call fcn.140c7664a
mov rdi, qword [rsp + 0x70]
call fcn.140c7f7ba
mov edx, 0xd5015a97
mov rdx, rbp
jmp 0x140c7a8b1
mov ebx, dword [rbx]
jmp 0x140c7e451
Function at 0x140c92f42
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
lea rsp, [rsp + 8]
je 0x140c92f96
mov r9d, 0x8b200e9b
lea r9, [0x140c78700]
movzx edi, byte [rcx]
xor edi, eax
push 0x248cb7b7
and edi, 0xff
sal qword [rsp], 0xfe
mov edi, dword [r9 + rdi*4]
shr eax, 8
xor eax, edi
shl qword [rsp], 0x6d
inc rcx
xor eax, 0xd840f9e
dec r8
lea rsp, [rsp + 8]
jne 0x140c92f5d
not eax
push 0xffffffffb281e7b3
mov dword [r10], eax
lea rsp, [rsp + 8]
jmp fcn.140c9f3ac

Function at 0x140c9d95c
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 0x10]
je 0x140c9d9d6
mov ebx, 0xccb74b21
push rsi
lea rbx, [0x140c997a8]
push 0x4ea0af0c
mov esi, 0x82d428c
movzx esi, byte [rsi + r8 - 0x82d428c]
xor esi, eax
sal byte [rsp + 4], 0xc2
xor qword [rsp], 0x9ab0780
and esi, 0xff
mov esi, dword [rbx + rsi*4]
shr eax, 8
xor eax, esi
inc byte [rsp + 7]
inc r8
push 0x41a82e0f
sar byte [rsp + 9], 0xe5
xor eax, 0xe71bff28
dec rcx
lea rsp, [rsp + 0x10]
jne 0x140c9d974
mov esi, 0xc0858900
lea rsi, [rsi + rsi + 0x1ab1b811]
pop rsi
not eax
jmp 0x140c9a7ca
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
pop rcx
enter 0xffffffffffffae01, 0xffffffffffffffc2
invalid
Function at 0x14003a8f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, 0xffffffff
test edx, edx
je 0x14003a92b
mov r9d, edx
lea r10, [0x1400656b0]
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rcx]
lea rcx, [rcx + 1]
movzx edx, al
xor r8, rdx
shr eax, 8
xor eax, dword [r10 + r8*4]
sub r9, 1
jne 0x14003a910
not eax
ret

Function at 0x14003a930
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov ebx, 0xffffffff
xor esi, esi
call qword [0x140056bb8]
test rax, rax
jle 0x14003a99a
mov ebp, esi
lea r14, [0x1400656b0]
nop word [rax + rax]
mov rdx, rbp
mov rcx, rdi
call qword [0x140056bf8]
xor al, bl
movzx ecx, al
shr ebx, 8
xor ebx, dword [r14 + rcx*4]
inc esi
mov ebp, esi
mov rcx, rdi
call qword [0x140056bb8]
cmp rbp, rax
jl 0x14003a970
not ebx
mov rcx, rdi
call qword [0x140056c18]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14003a9c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbp, rcx
lea rdx, [rsp + 0x20]
call qword [0x1400567a0]
nop
mov ebx, 0xffffffff
xor edi, edi
lea rcx, [rsp + 0x20]
call qword [0x140056bb8]
test rax, rax
jle 0x14003aa41
mov esi, edi
lea r14, [0x1400656b0]
nop word [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x20]
call qword [0x140056bf0]
movzx ecx, bl
xor cl, byte [rax]
movzx eax, cl
shr ebx, 8
xor ebx, dword [r14 + rax*4]
inc edi
mov esi, edi
lea rcx, [rsp + 0x20]
call qword [0x140056bb8]
cmp rsi, rax
jl 0x14003aa10
not ebx
lea rcx, [rsp + 0x20]
call qword [0x140056c18]
nop
mov rcx, rbp
call qword [0x140056ba0]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1400432f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140056018]
test rax, rax
je 0x14004333e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004333e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004333e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004333e
cmp dword [rcx + 0x84], 0xe
jbe 0x14004333e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140043340
xor al, al
add rsp, 0x28
ret
Function at 0x140004310
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, pe_nt_image_headers64
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140004377
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x140004332
mov ecx, dword [r10]
jmp 0x140004498
cmp ecx, 0x270
jb 0x140004498
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
mov r8, rbx
add rbx, 8
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub rdi, 1
jne 0x1400043b0
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x140004410
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x140004890
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140125080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140192158]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x140004967
mov rax, qword [rdi]
test rax, rax
je 0x140004925
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x140004925
test rsi, rsi
je 0x140004925
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x140004925
cmp dword [rsp + 0x30], ebx
je 0x140004967
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x140004944
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x140004944
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
jmp 0x140004969
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b8800
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14000d0e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x290
mov rax, qword [0x140125080]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000d13b
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x14000d142
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000d22a
mov qword [rsp + 0x2a0], rdi
xor edi, edi
nop dword [rax]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rdi
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x14000d170
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.14001d240
cmp qword [rbx + 0x18], 7
mov rax, rbx
jbe 0x14000d196
mov rax, qword [rbx]
mov r10, qword [rsp + 0x38]
lea r8, [rsp + 0x20]
mov r9, qword [rsp + 0x20]
cmp r10, 7
mov rdx, qword [rsp + 0x30]
cmova r8, r9
cmp rdx, qword [rbx + 0x10]
jne 0x14000d24b
test rdx, rdx
je 0x14000d1d8
sub r8, rax
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x14000d24b
add rax, 2
sub rdx, 1
jne 0x14000d1c4
mov edi, dword [rsp + 0x48]
cmp r10, 7
jbe 0x14000d217
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x14000d20f
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d29d
mov rcx, r9
call fcn.1400b8870
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400b8800
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x290
pop rsi
ret
cmp r10, 7
jbe 0x14000d282
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x14000d27a
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d29d
mov rcx, r9
call fcn.1400b8870
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000d150
jmp 0x14000d217
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000d320
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140125080]
xor rax, rsp
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
mov edx, Ordinal_41
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov r15d, 1
xor r12d, r12d
test eax, eax
je 0x14000d3cf
lea r8, [rsp + 0x58]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14000d3c9
mov dword [rsp + 0x38], r15d
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x3c], rax
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor sil, sil
mov rax, qword [0x14018dcb0]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
cmp byte [rax + 0x19], sil
jne 0x14000d515
nop dword [rax + rax]
lea rdx, [rax + 0x20]
lea rbx, [rdx + 0x20]
cmp qword [rdx + 0x18], 7
jbe 0x14000d402
mov rdx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000d420
lea rcx, [rsp + 0x38]
call fcn.14001d240
nop
lea rcx, [rsp + 0x38]
call fcn.14000d0e0
mov r14d, eax
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x14000d485
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d480
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d50e
call fcn.1400b8870
test r14d, r14d
je 0x14000d4da
mov r8d, r14d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000d4da
mov rbp, qword [rbx + 8]
mov rbx, qword [rbx]
cmp rbx, rbp
je 0x14000d4d1
nop
mov r8, rdi
mov rdx, rbx
mov ecx, r14d
call fcn.14000cc80
movzx esi, sil
test al, al
cmovne esi, r15d
add rbx, 0x20
cmp rbx, rbp
jne 0x14000d4b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.14001b710
mov rax, qword [rsp + 0x30]
cmp byte [rax + 0x19], 0
je 0x14000d3f0
test sil, sil
je 0x14000d515
mov r9d, 0x40
lea r8, str.Sucesso
lea rdx, str.A_mem
jmp 0x14000d529
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Erro
lea rdx, str.Falha_ao_limpar_a_mem
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400b8800
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140010540
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub rsp, 0x288
mov rax, qword [0x140125080]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rax, [rsp + 0x40]
mov r9d, 9
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerFeatureUsageAppSwitched
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010695
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x290], rbx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x280], rdi
xor edx, edx
xor edi, edi
mov dword [rsp + 0x50], 0x104
mov qword [rsp + 0x38], rdi
mov ebx, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14001067a
nop word [rax + rax]
lea rdx, str.DeviceHarddiskVolume3WindowsResourcesThemes_aero_aeroShell.exe
lea rcx, [rsp + 0x60]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x14001063d
lea rax, [rsp + 0x48]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerFeatureUsageAppSwitched
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001063d
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
inc ebx
mov qword [rsp + 0x28], rdi
mov edx, ebx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x50], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1400105e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400b8800
add rsp, 0x288
ret