joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003e90
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140003f20
jmp 0x140003f0f
jae 0x140003fe0
cmp r8, 0x201
jae 0x140003f20
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140003f78
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140003f4f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001b580
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140003fa1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004048
mov r8d, r14d
cmp r15, r8
jne 0x140003f00
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000406b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140003f0f
jmp 0x140003f20
cmp rsi, r8
jb 0x140004085
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400068b0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140004031
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001260
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140004019
jmp 0x140004031
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001c1f0
jmp 0x14000409a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001c5e0
ud2
Function at 0x14000b870
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001efb0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000b8b4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000b91a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000b951
test eax, eax
js 0x14000b92b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000b944
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.140001700
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140006560
mov rcx, rax
call fcn.140001cc0
mov ecx, 7
int 0x29
ud2
Function at 0x1400194b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001952a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140019520
cmp r11, r10
ja 0x1400195c3
cmp r10, rdx
ja 0x1400195d7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140019522
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140019500
jmp 0x140019597
ja 0x14001952a
mov r11, r10
cmp rax, r8
jne 0x1400194d2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001959b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140019570
mov r8, r10
sub ecx, r9d
jns 0x14001958e
jmp 0x14001959d
cmp r10, rdx
je 0x1400195a9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001959d
xor al, 1
cmp r8, rdx
jne 0x140019550
jmp 0x14001959d
xor eax, eax
jmp 0x14001959d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001c1f0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001c650
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001c5e0
ud2

Function at 0x14001afec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001b036
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001b036
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001b036
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001b036
cmp dword [rcx + 0x84], 0xe
jbe 0x14001b036
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001b038
xor al, al
add rsp, 0x28
ret
Function at 0x1400025e0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140047038]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServiceswscsvc
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140002662
mov r8d, eax
lea rdx, str.SYSTEMCurrentControlSetServiceswscsvc
lea rcx, str.Could_not_find_or_create__ls_error__d_n
call fcn.140005170
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140008aa0
add rsp, 0x78
ret
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.Start
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000264e
lea rcx, str.failed_to_write_to_wscsvc_n
call fcn.140001170
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140008aa0
add rsp, 0x78
ret
Function at 0x1400058e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140047038]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400059bc
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
call fcn.14000b1f0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32First]
mov rcx, rsi
test eax, eax
je 0x1400059b6
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x1400059b3
nop dword [rax]
lea rcx, [rsp + 0x4c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140005970
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
mov r8, qword [rbx + 0x10]
jb 0x14000598a
mov rcx, qword [rbx]
cmp r8, rax
jne 0x1400059a1
lea rdx, [rsp + 0x4c]
call fcn.14000b610
test eax, eax
je 0x140005a33
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140005960
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400059f6
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400059f1
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005a86
mov rcx, r8
call fcn.140008ac0
mov eax, 0xffffffff
mov byte [rbx], 0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140008aa0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov edi, dword [rsp + 0x28]
cmp edi, 0xffffffff
je 0x1400059b3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140005a7f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140005a7a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005a86
mov rcx, r8
call fcn.140008ac0
mov eax, edi
jmp 0x1400059fb
call fcn.140011ee0
int3
Function at 0x140007744
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 0x140007772
xor eax, eax
jmp 0x140007858
cmp qword [rcx + 0x68], 0
je 0x140007783
call fcn.140007874
jmp 0x140007858
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000779a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000779c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400077ce
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000ab40
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 0x140007852
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140007805
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 0x14000782e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400134d8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140007852
cmp rsi, rbx
ja 0x14000780c
test rsi, rsi
je 0x140007852
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400134d8
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

Function at 0x140007938
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140007967
call fcn.1400079f8
jmp 0x1400079de
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14000797e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007980
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400079d8
test ecx, ecx
jle 0x1400079b9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.14000ab40
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400079d8
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400079d8
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.1400131f4
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400096f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000973e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000973e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000973e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000973e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000973e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009740
xor al, al
add rsp, 0x28
ret
Function at 0x1400182f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001811c

Function at 0x14002c0b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002c0d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002c0d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180002b00
Capabilities:
Create thread
Enumerate processes

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x280
mov rax, qword [0x18004d020]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbp, qword [0x18004f940]
xor edx, edx
mov qword [r11 + 8], rbx
xor ebx, ebx
mov qword [r11 + 0x18], rdi
lea ecx, [rbx + 6]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180002c05
xor edx, edx
mov dword [rsp + 0x30], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.180010400
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180002bfc
mov qword [rsp + 0x298], rsi
nop
lea rdx, str.CymulateEDRScenarioGenerator.exe
lea rcx, [rsp + 0x5c]
call fcn.180014474
test eax, eax
je 0x180002baa
lea rdx, str.CymulateEDRScenarioExecutor.exe
lea rcx, [rsp + 0x5c]
call fcn.180014474
test eax, eax
jne 0x180002bc4
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x180002bdd
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180002b80
test rbx, rbx
je 0x180002bf4
jmp 0x180002beb
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x298]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x2a0]
mov rbx, qword [rsp + 0x290]
mov r9, qword [rbp + 0x88]
test r9, r9
je 0x180002c58
lea r8, str..pipe_s_p
xor edx, edx
xor ecx, ecx
call fcn.1800020d0
inc eax
movsxd rcx, eax
call fcn.18000e170
mov r8, qword [rbp + 0x88]
lea rdx, str..pipe_s_p
mov rcx, rax
mov qword [rbp + 0x98], rax
call fcn.180002070
mov qword [rsp + 0x28], 0
lea r8, [0x180002130]
mov r9, rbp
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x58], rax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18000daf0
add rsp, 0x280
pop rbp
ret
Function at 0x180002ca0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x18004d020]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180002d4a
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.180010400
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180002d41
nop word [rax + rax]
lea rdx, str.CymulateEDR.exe
lea rcx, [rsp + 0x5c]
call fcn.180014474
mov rcx, rbx
test eax, eax
jne 0x180002d32
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x180002d66
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180002d10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rdi + 0x80]
lea rdx, str.Log:isEDRProcessRunning:false:_s__n
mov rcx, rdi
call fcn.180002140
xor al, al
jmp 0x180002d66
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.18000daf0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x180002d90
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x88]
lea r8, str.Global_s_m
mov rbx, rcx
xor edx, edx
xor ecx, ecx
call fcn.1800020d0
inc eax
movsxd rcx, eax
call fcn.18000e170
mov r8, qword [rbx + 0x88]
lea rdx, str.Global_s_m
mov rcx, rax
mov rbp, rax
call fcn.180002070
cmp byte [rbx + 0x50], 0
jne 0x180002f0c
nop word [rax + rax]
mov r8, rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rdi, rax
test rax, rax
je 0x180002e6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180002e33
cmp eax, 5
je 0x180002e33
mov rcx, qword [rbx + 0x80]
lea rdx, str.APT_SCENARIO
call fcn.18000f9c4
test rax, rax
je 0x180002ecc
cmp qword [rbx + 0xa8], 0
je 0x180002e58
mov r8, qword [rbx + 0x80]
test r8, r8
je 0x180002e58
lea rdx, str.KEEPALIVE:_s__n
mov rcx, rbx
call fcn.180002140
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002eb5
mov rcx, qword [rbx + 0x80]
lea rdx, str.APT_SCENARIO
call fcn.18000f9c4
test rax, rax
jne 0x180002e90
mov rcx, rbx
call fcn.180002ca0
test al, al
je 0x180002ef6
cmp qword [rbx + 0xa8], 0
je 0x180002eb5
mov r8, qword [rbx + 0x80]
test r8, r8
je 0x180002eb5
lea rdx, str.KEEPALIVE:_s__n
mov rcx, rbx
call fcn.180002140
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x50], 0
je 0x180002df0
jmp 0x180002f0c
mov r8, qword [rbx + 0x80]
lea rdx, str.Log:keepalive_loop_break__if__ulLastError__ERROR_ALREADY_EXISTS__ulLastError__ERROR_ACCESS_DENIED__:_s__n
mov rcx, rbx
call fcn.180002140
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002f0c
mov r8, qword [rbx + 0x80]
lea rdx, str.Log:keepalive_loop_break_if__HANDLE_hMutex__CreateMutexA_0__false__pszAttackMutex__:_s__n
mov rcx, rbx
call fcn.180002140
mov r8, qword [rbx + 0x80]
lea rdx, str.Log:keepalive_loop_finished:_s__n
mov rcx, rbx
call fcn.180002140
cmp byte [rbx + 0x50], 0
jne 0x180002fbe
mov r8, qword [rbx + 0x80]
lea rdx, str.Log:keepalive_loop_terminating.._:_s__n
mov rcx, rbx
call fcn.180002140
cmp byte [rbx + 0xa0], 0
mov rcx, rbx
jne 0x180002f6d
lea rdx, str.Log:TerminateProcess_n
call fcn.180002140
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x180002fbe
lea rdx, str.Log:FreeLibraryAndExitThread_FreeLibraryAndExitThreadReflected_n
call fcn.180002140
mov rdi, qword [rbx + 0x70]
sub rdi, qword [rbx + 0x68]
sar rdi, 3
test edi, edi
je 0x180002fbe
mov qword [rsp + 0x30], rsi
mov esi, edi
shl rsi, 3
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x68]
lea rsi, [rsi - 8]
xor edx, edx
mov rcx, qword [rsi + rcx]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add edi, 0xffffffff
jne 0x180002fa0
mov rsi, qword [rsp + 0x30]
mov edx, 1
mov rcx, rbp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.18000db10
Function at 0x180004210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov r8d, 6
lea rdx, str.TargetResource
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x18000436d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000436d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x18000436d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x18000436d
mov esi, eax
mov ecx, eax
call fcn.18000e170
mov rdi, rax
mov r8d, esi
mov rdx, r14
mov rcx, rax
call fcn.18000fd40
mov esi, dword [rdi]
lea rcx, [rsi + 1]
call fcn.18000e170
mov r14, rax
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.180010400
lea rdx, [rdi + 4]
mov r8d, esi
mov rcx, r14
call fcn.18000fd40
mov rdx, r14
mov rcx, rbx
call fcn.180004390
test al, al
je 0x18000436d
movzx eax, byte [rsi + rdi + 4]
mov byte [rbx + 8], al
test al, al
je 0x180004367
lea rcx, [rax + 1]
call fcn.18000e170
mov qword [rbx], rax
movzx r8d, byte [rbx + 8]
inc r8
xor edx, edx
mov rcx, rax
call fcn.180010400
movzx r8d, byte [rbx + 8]
lea rdx, [rdi + 5]
add rdx, rsi
mov rcx, qword [rbx]
call fcn.18000fd40
movzx eax, byte [rbx + 8]
add rax, rsi
mov ecx, dword [rax + rdi + 5]
mov dword [rbx + 0x18], ecx
call fcn.18000e170
mov qword [rbx + 0x10], rax
mov r8d, dword [rbx + 0x18]
xor edx, edx
mov rcx, rax
call fcn.180010400
mov r8d, dword [rbx + 0x18]
movzx edx, byte [rbx + 8]
add rdx, 9
add rdx, rsi
add rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.18000fd40
nop
mov al, 1
jmp 0x18000436d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1800070d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rax, qword [0x18004f940]
cmp byte [rax + 0x50], 0
jne 0x1800070f9
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x18004f940]
cmp byte [rax + 0x50], 0
je 0x1800070e1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x180007110
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x20a
call fcn.18000e170
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
mov rbx, rax
call fcn.180010400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str.mstsc
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x180007188
mov rax, qword [0x18004f940]
cmp byte [rax + 0x50], 0
jne 0x180007188
nop
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x18004f940]
cmp byte [rax + 0x50], 0
je 0x180007170
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x180007cf0
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rsi
push rdi
sub rsp, 0x168
mov rax, qword [0x18004d020]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, r8
mov rsi, rcx
cmp edx, 1
jne 0x180007e79
mov eax, dword [0x180046030]
lea rcx, [rsp + 0x4f]
movsd xmm0, qword [str.SMBWormDll.dll]
xor edx, edx
mov dword [rsp + 0x48], eax
movzx eax, word [0x180046034]
mov word [rsp + 0x4c], ax
movzx eax, byte [0x180046036]
mov qword [0x18004f948], r8
mov r8d, 0xf5
mov qword [r11 + 0x10], rbx
mov byte [rsp + 0x4e], al
mov qword [r11 - 0x18], rbp
movsd qword [rsp + 0x40], xmm0
call fcn.180010400
mov ecx, 0xc0
call fcn.18000ddb4
mov qword [rsp + 0x30], rax
xor ebp, ebp
mov rcx, rax
mov rbx, rax
mov qword [rax + 0x68], rbp
mov qword [rax + 0x70], rbp
mov qword [rax + 0x78], rbp
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [rsp + 0x40]
mov byte [rbx + 0xa0], 1
mov qword [rbx + 0xa8], rax
xor ecx, ecx
lea rax, str.NO_ID
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x88], rbp
mov qword [rbx + 0x98], rbp
mov qword [rbx + 0x90], rbp
mov qword [rbx + 0x58], rbp
mov qword [rbx + 0xb8], rbp
mov byte [rbx + 0x50], bpl
mov word [rbx + 0xb0], bp
call fcn.1800196d0
mov r9, rsi
mov qword [rsp + 0x28], rbp
lea r8, [0x1800071a0]
mov dword [rbx + 0xb4], eax
xor edx, edx
mov qword [0x18004f940], rbx
xor ecx, ecx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, qword [rsp + 0x160]
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x180007e71
mov rcx, qword [0x18004f940]
add rcx, 0x68
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x180007e56
mov qword [rdx], rax
add qword [rcx + 8], 8
jmp 0x180007e60
lea r8, [rsp + 0x30]
call fcn.180007ec0
test rdi, rdi
je 0x180007e71
cmp rdi, 0x12345678
je 0x180007e71
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x188]
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18000daf0
add rsp, 0x168
pop rdi
pop rsi
ret