joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140090590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x1400905f2
test cl, 0x20
jne 0x140090634
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x1400906a5
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x1403bfe6e]
movzx ecx, word [rcx + r8]
mov word [rbp - 0x23], cx
mov r8d, 0x24
mov cl, 1
jmp 0x1400906b0
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x57]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x140090600
jmp 0x140090672
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x37]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x140090640
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x140090711
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, [0x1403bfe6c]
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x140090701
mov r8d, 0x26
cmp cl, 0xa
jae 0x1400906ba
or cl, 0x30
mov byte [rbp + r8 - 0x48], cl
jmp 0x1400906d3
movzx ecx, cl
lea r8, [0x1403bfe6e]
movzx ecx, word [r8 + rcx*2]
mov word [rbp - 0x23], cx
mov r8d, 0x25
lea rcx, [r8 + rbp]
add rcx, 0xffffffffffffffb8
mov r9d, 0x27
sub r9, r8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
not al
shr al, 7
mov r8d, 1
mov rcx, rdx
mov edx, eax
xor r9d, r9d
call sym.core::fmt::Formatter::pad_integral::hd7d09bba8c9ff4c9
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
lea r8, str.librarycore_src_fmt_num.rs
mov edx, pe_nt_image_headers64
call sym.core::slice::index::slice_start_index_len_fail::hc4490513dd7cd116
int3
Function at 0x140097510
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140097580
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1403df254]
mov rbx, rcx
test esi, esi
jle 0x1400976b0
mov rax, qword [0x1403df258]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400975cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140097655
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400975b0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400976d2
mov rax, qword [0x1403df258]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1403df258]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400976b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14009764e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140097660
add dword [0x1403df254], 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 [0x1403df258]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009764e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400975d8
mov rax, qword [0x1403df258]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140097c40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1403df2c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403df2a0]
test rbx, rbx
je 0x140097c9c
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 0x140097c93
test rsi, rsi
je 0x140097c93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140097c78
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 0x140097eb0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140097ec8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140097ed0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140097ee0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140097f2d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140097f24
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140097f2f
add rax, 0x28
cmp rax, r9
jne 0x140097f10
xor eax, eax
ret

Function at 0x140097f30
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140097fc0
mov rdx, qword [0x1403cbb90]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140097fae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140097fae
cmp word [rax + 0x18], 0x20b
jne 0x140097fae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140097fc0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140097f99
add rbx, 0x28
cmp rbx, rdi
je 0x140097fc0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140097f90
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140097fd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403cbb90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140097ff0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140097ff8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140097ff0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009804d
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 0x140098044
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140097ff0
add rax, 0x28
cmp rax, r9
jne 0x140098030
xor eax, eax
ret

Function at 0x140098050
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403cbb90]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009806f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140098078
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009806f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140098090
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1403cbb90]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400980b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400980b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400980b0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140098100
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400980f7
test rcx, rcx
je 0x1400980b0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400980e8
xor eax, eax
ret

Function at 0x140098110
Capabilities:
Parse pe header

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

Function at 0x140098150
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403cbb90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140098170
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140098178
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140098170
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140098170
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400981c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400981d0
add rdx, 0x28
cmp r9, rdx
jne 0x1400981b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400981e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1403cbb90]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140098202
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140098210
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140098202
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140098202
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140098202
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140098265
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140098278
add rdx, 0x28
cmp rdx, r10
jne 0x140098250
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140098287
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140098297
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14009826e
test ecx, ecx
jg 0x140098280
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140011366
Capabilities:
Terminate process

Disassembly:
jmp 0x140019f90
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011451
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001c920
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001c940
xor al, al
jmp 0x14001c9c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001c953
xor al, al
jmp 0x14001c9c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001c97d
xor al, al
jmp 0x14001c9c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001c991
xor al, al
jmp 0x14001c9c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001c9a3
xor al, al
jmp 0x14001c9c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001c9bf
xor al, al
jmp 0x14001c9c1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001153c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140014250
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14002f120]
call fcn.14001160e
nop
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14001428f
xor al, al
jmp 0x140014291
mov al, 1
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140019c60
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001164a
movzx eax, al
test eax, eax
jne 0x140019c80
mov ecx, 7
call fcn.140011532
nop
mov byte [rsp + 0x20], 0
call fcn.140011564
mov byte [rsp + 0x21], al
cmp dword [0x140029bb8], 1
jne 0x140019ca4
mov ecx, 7
call fcn.140011532
nop
jmp 0x140019cfc
cmp dword [0x140029bb8], 0
jne 0x140019cf7
mov dword [0x140029bb8], 1
lea rdx, [0x140023770]
lea rcx, [0x140023440]
call fcn.1400112e4
test eax, eax
je 0x140019cd8
mov eax, 0xff
jmp 0x140019e01
lea rdx, [0x140023330]
lea rcx, [section..rdata]
call fcn.140011550
mov dword [0x140029bb8], 2
jmp 0x140019cfc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011514
call fcn.14001147e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140019d59
mov rcx, qword [rsp + 0x30]
call fcn.14001126c
movzx eax, al
test eax, eax
je 0x140019d59
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140030020]
nop
call fcn.1400114c9
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140019d8d
mov rcx, qword [rsp + 0x38]
call fcn.14001126c
movzx eax, al
test eax, eax
je 0x140019d8d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400115eb
nop
call fcn.140019eb0
mov dword [rsp + 0x28], eax
call fcn.140011451
movzx eax, al
test eax, eax
jne 0x140019dac
mov ecx, dword [rsp + 0x28]
call fcn.14001108c
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140019dbb
call fcn.1400115f5
nop
xor edx, edx
mov cl, 1
call fcn.14001124e
mov eax, dword [rsp + 0x28]
jmp 0x140019e01
add rsp, 0x68
ret
Function at 0x1800022c0
Capabilities:
Create process on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x128
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0xc0]
mov rcx, rbx
call fcn.1800ddc20
lea r14, [rsp + 0x90]
mov rcx, r14
call fcn.1800ddc00
add rsi, rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x80], 0
mov dword [rsp + 0x88], 1
lea rcx, [rsp + 0xa8]
lea rdx, [rsp + 0x70]
call fcn.180007740
mov rsi, qword [rsp + 0xb0]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x180002403
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x1800023aa
call fcn.1800ddf00
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x1800023aa
lea rcx, [rsp + 0x50]
call fcn.1800de490
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x1800023e3
call fcn.1800ddf00
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x1800023e3
lea rcx, [rsp + 0x50]
call fcn.1800de490
cmp dword [rsp + 0x68], 0
sete al
test rdi, rdi
sete cl
xor ebx, ebx
or cl, al
jne 0x180002401
lea rcx, [rsp + 0x60]
call fcn.1800de490
jmp 0x18000241e
call fcn.1800ddf00
mov rdi, rax
mov ebx, edx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], edx
test edx, edx
je 0x180002371
mov rdx, qword [rsp + 0xa8]
test rdx, rdx
je 0x18000243c
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.1800098b0
mov rax, rdi
mov edx, ebx
add rsp, 0x128
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x180002450
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov rsi, rcx
lea rdx, str.exefile_shellopencommandCString::new_failed
lea rcx, [rsp + 0x40]
mov r8d, 0x1a
call fcn.180100440
xor eax, eax
cmp rax, qword [rsp + 0x40]
jno 0x18000260c
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
call fcn.180004d70
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
mov rdx, rdi
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180002515
lea r14, [rsp + 0x60]
mov r8d, 0x400
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x34], 0x400
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x18000255e
call fcn.1800ddf00
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], edx
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x180002547
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.1800098b0
mov rax, rsi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, dword [rsp + 0x34]
cmp r8, 0x401
jae 0x180002649
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x60]
call fcn.180101870
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
test r14, r14
je 0x1800025bc
js 0x180002660
movzx eax, byte [0x1801bb181]
mov r13d, 1
mov edx, 1
mov rcx, r14
call fcn.1800098a0
test rax, rax
je 0x180002663
mov r12, rax
jmp 0x1800025c2
mov r12d, 1
mov rcx, r12
mov rdx, r15
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsp + 0x40]
lea rax, [rdx*2]
test rax, rax
je 0x1800025f0
mov r8d, 1
mov rcx, r15
call fcn.1800098b0
mov qword [rsi], r14
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], r14
mov byte [rdi], 0
test rbx, rbx
jne 0x180002536
jmp 0x180002547
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
lea rax, [0x180110928]
mov qword [rsp + 0x20], rax
lea rcx, [0x180110912]
lea r9, [0x1801106c8]
lea r8, [rsp + 0x60]
mov edx, 0x13
call fcn.18010ec80
lea rax, [0x180110940]
mov edx, 0x400
mov rcx, r8
mov r8, rax
call fcn.18010ed80
xor r13d, r13d
mov rcx, r13
mov rdx, r14
call fcn.18010e680
int3
Function at 0x180005080
Capabilities:
Create pipe
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x460
lea rax, str..pipeRegistryRestorePipeDLL_PROCESS_ATTACH_received.Failed_to_determine_if_the_process_is_infected
mov qword [rsp + 0x60], rax
lea rax, [0x18012989c]
mov qword [rsp + 0x68], rax
mov word [rsp + 0x70], 0
mov dword [rsp + 0x78], 1
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.180007360
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0x400
mov rcx, rdi
mov edx, 3
mov r8d, 6
mov r9d, 1
call qword [sym.imp.kernel32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x18000518a
mov rbx, rax
xor esi, esi
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x18000512a
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.1800098b0
test rsi, rsi
jne 0x180005179
xor esi, esi
lea rdi, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x1800051d8
lea rbx, [0x180129b00]
mov rax, rsi
mov rdx, rbx
add rsp, 0x460
pop rbx
pop rdi
pop rsi
ret
call fcn.1800ef150
mov ebx, eax
movzx eax, byte [0x1801bb181]
mov ecx, 8
mov edx, 8
call fcn.1800098a0
test rax, rax
je 0x18000523c
mov rsi, rax
shl rbx, 0x20
or rbx, 2
mov qword [rax], rbx
lea rbx, [0x180129b00]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jne 0x180005119
jmp 0x18000512a
call fcn.1800ddf00
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], edx
test edx, edx
je 0x180005235
mov rdi, rax
call fcn.1800ef150
mov ebx, eax
movzx eax, byte [0x1801bb181]
mov ecx, 8
mov edx, 8
call fcn.1800098a0
test rax, rax
je 0x18000523c
mov rsi, rax
shl rbx, 0x20
or rbx, 2
mov qword [rax], rbx
test rdi, rdi
je 0x180005172
lea rcx, [rsp + 0x48]
call fcn.1800de490
jmp 0x180005172
xor esi, esi
jmp 0x180005172
mov ecx, 8
mov edx, 8
call fcn.18010e6a0
int3
Function at 0x180005fa0
Capabilities:
Set registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
call fcn.180004d70
mov qword [rsp + 0x38], rax
add rdi, rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.180007740
mov rdi, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 0x20006
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x18000602e
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.1800098b0
test ebx, ebx
je 0x180006070
call fcn.1800ef150
mov esi, eax
movzx eax, byte [0x1801bb181]
mov ecx, 8
mov edx, 8
call fcn.1800098a0
test rax, rax
je 0x18000616f
shl rsi, 0x20
or rsi, 2
mov qword [rax], rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rax, qword [rsp + 0xe0]
add rax, rsi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rax
mov word [rsp + 0x88], 0
mov dword [rsp + 0x90], 1
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x78]
call fcn.180007740
mov rax, qword [rsp + 0x50]
add rax, rax
mov rcx, rax
shr rcx, 0x20
jne 0x18000617e
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x18000614d
call fcn.1800ef150
mov edi, eax
movzx eax, byte [0x1801bb181]
mov ecx, 8
mov edx, 8
call fcn.1800098a0
test rax, rax
je 0x18000616f
shl rdi, 0x20
or rdi, 2
mov qword [rax], rdi
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x180006063
add rdx, rdx
mov r8d, 2
mov rcx, rsi
mov rsi, rax
call fcn.1800098b0
mov rax, rsi
jmp 0x180006063
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x180006168
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.1800098b0
xor eax, eax
jmp 0x180006063
mov ecx, 8
mov edx, 8
call fcn.18010e6a0
lea rax, [0x180129758]
mov qword [rsp + 0x20], rax
lea rcx, [0x180129658]
lea r9, [0x180129688]
lea r8, [rsp + 0x37]
mov edx, 0x2b
call fcn.18010ec80
int3