joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004ac60
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp byte [0x14012dec8], 0
jne 0x14004ad8e
lea rcx, str.winspool.drv
call fcn.1400462c0
mov rsi, rax
lea rcx, str.spoolss.dll
call fcn.1400462c0
test rsi, rsi
je 0x14004ad31
lea rdx, str.EnumPrintersA
mov rdi, qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x14012dec0], rax
lea rdx, str.OpenPrinterA
mov rcx, rsi
call rdi
mov qword [0x14012de88], rax
lea rdx, str.ClosePrinter
mov rcx, rsi
call rdi
mov qword [0x14012deb0], rax
lea rdx, str.StartDocPrinterA
mov rcx, rsi
call rdi
mov qword [0x14012de90], rax
lea rdx, str.EndDocPrinter
mov rcx, rsi
call rdi
mov qword [0x14012dea8], rax
lea rdx, str.StartPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14012de98], rax
lea rdx, str.EndPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14012dea0], rax
lea rdx, str.WritePrinter
mov rcx, rsi
call rdi
jmp 0x14004ad80
mov qword [0x14012dec0], 0
mov qword [0x14012de88], 0
mov qword [0x14012deb0], 0
mov qword [0x14012de90], 0
mov qword [0x14012dea8], 0
mov qword [0x14012de98], 0
mov qword [0x14012dea0], 0
xor eax, eax
mov qword [0x14012deb8], rax
mov byte [0x14012dec8], 1
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140056830
Capabilities:
Get common file path
Set current directory

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x130], rax
test r8b, r8b
je 0x140056879
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
add eax, 0xffffffff
cmp eax, 0x103
setb bpl
jmp 0x14005687b
xor ebp, ebp
mov dword [rdi], 0x88
xor eax, eax
test rsi, rsi
je 0x14005688f
cmp byte [rsi], 0
cmovne rax, rsi
mov qword [rdi + 0x50], rax
mov rcx, rdi
test bl, bl
je 0x1400568a2
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x1400568a8
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov edi, eax
test rsi, rsi
je 0x1400568cc
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
add eax, 0xfffffefc
cmp eax, 0xfffffefc
ja 0x1400568cc
mov byte [rsi], 0
test bpl, bpl
je 0x1400568dc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test edi, edi
setne bl
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400ba340
mov eax, ebx
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140074660
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
lea rdx, [0x14010d855]
call fcn.1400cdab8
test rax, rax
je 0x1400746dd
mov rsi, rax
mov qword [rdi + 8], 0
mov r8, qword [rdi + 0x10]
test r8, r8
je 0x1400746f6
xor ecx, ecx
nop word cs:[rax + rax]
nop
sub r8, rcx
add rcx, qword [rdi]
mov edx, 1
mov r9, rsi
call fcn.1400cdc40
mov rbx, rax
mov rcx, rsi
call fcn.1400cd470
test eax, eax
jne 0x1400746e4
mov rcx, qword [rdi + 8]
test rbx, rbx
je 0x1400746eb
add rcx, rbx
mov qword [rdi + 8], rcx
mov r8, qword [rdi + 0x10]
cmp r8, rcx
ja 0x1400746a0
jmp 0x1400746ef
mov ebx, 2
jmp 0x140074734
mov ebx, 2
jmp 0x14007472c
mov r8, qword [rdi + 0x10]
xor ebx, ebx
cmp rcx, r8
jne 0x14007470a
mov rcx, rsi
call fcn.1400cd888
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
lea rdx, [rdi + 0x18]
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x20], 0
mov dword [rdi + 0x30], 0
mov qword [rdi + 0x38], rdx
mov rcx, rsi
call fcn.1400cd2b8
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140079120
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, r9d
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1050
xor r8d, r8d
call fcn.1400434f0
mov rsi, rax
mov dword [rax], 0
lea r14, [rax + 8]
mov qword [rax + 8], rbp
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x1048], rbx
mov byte [rsi + 0x2a], 0
mov word [rsi + 0x28], 0
mov qword [rsi + 0x30], rdi
mov dword [rsi + 0x38], r15d
cmp qword [0x14012a0a0], 0xffffffffffffffff
jne 0x1400791ec
lea rax, [0x14012df70]
mov qword [0x14012df70], rax
mov qword [0x14012df78], rax
lea rcx, [0x14012df80]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [0x14012a0a0], rax
lea rdx, [0x140079aa0]
mov rcx, rax
xor r8d, r8d
call fcn.14002cde0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140079250]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.DLL_CreateThread]
test rax, rax
je 0x140079220
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov byte [rsi + 0x2b], 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ba340
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140079480
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, r9d
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1050
xor r8d, r8d
call fcn.1400434f0
mov rsi, rax
mov dword [rax], 1
lea r14, [rax + 8]
mov qword [rax + 8], rbp
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rsi + 0x20], rax
mov dword [rsi + 0x28], 0
mov qword [rsi + 0x30], rbx
lea rcx, [rsi + 0x58]
call fcn.14004a3f0
mov dword [rsi + 0x80], 0
mov qword [rsi + 0x88], rdi
mov qword [rsi + 0x90], rsi
mov dword [rsi + 0x38], r15d
cmp qword [0x14012a0a0], 0xffffffffffffffff
jne 0x140079563
lea rax, [0x14012df70]
mov qword [0x14012df70], rax
mov qword [0x14012df78], rax
lea rcx, [0x14012df80]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [0x14012a0a0], rax
lea rdx, [0x140079aa0]
mov rcx, rax
xor r8d, r8d
call fcn.14002cde0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x1400795c0]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.DLL_CreateThread]
test rax, rax
je 0x140079597
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ba340
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14007a3e0
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [0x14012dfb0], 0
je 0x14007a40f
mov rsi, qword [0x14012dfa8]
test rsi, rsi
jne 0x14007a459
jmp 0x14007a4ba
lea rcx, str.secur32.dll
call fcn.1400462c0
mov rsi, rax
lea rcx, str.sspicli.dll
call fcn.1400462c0
test rsi, rsi
je 0x14007a444
lea rdx, str.GetUserNameExA
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rsi, rax
jmp 0x14007a446
xor esi, esi
mov qword [0x14012dfa8], rsi
mov byte [0x14012dfb0], 1
test rsi, rsi
je 0x14007a4ba
mov dword [rsp + 0x2c], 0
lea rdi, [rsp + 0x2c]
mov ecx, 8
xor edx, edx
mov r8, rdi
call rsi
mov ecx, dword [rsp + 0x2c]
mov edx, 1
xor r8d, r8d
call fcn.1400434f0
mov rsi, rax
mov ecx, 8
mov rdx, rax
mov r8, rdi
call qword [0x14012dfa8]
test al, al
je 0x14007a4b2
mov rcx, rsi
mov edx, 0x40
call fcn.1400bbfe8
test rax, rax
je 0x14007a512
mov byte [rax], 0
jmp 0x14007a512
mov rcx, rsi
call fcn.140043590
mov dword [rsp + 0x2c], 0
lea rdx, [rsp + 0x2c]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x14007a4d9
mov ecx, dword [rsp + 0x2c]
jmp 0x14007a4e6
mov dword [rsp + 0x2c], 0x100
mov ecx, 0x100
mov edx, 1
xor r8d, r8d
call fcn.1400434f0
mov rsi, rax
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14007a512
mov rcx, rsi
call fcn.140043590
xor esi, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400ba340
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x14007a930
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x38
cmp qword [0x14012dfb8], 0
jne 0x14007a9b1
mov edx, dword [0x14012dfc0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov r9d, eax
cmp qword [0x14012dfc0], r9
ja 0x14007a9b1
lea rsi, [0x14012dfc0]
mov rdi, qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
nop dword [rax + rax]
mov rcx, qword [0x14012dfb8]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 1
mov r8d, 1
mov rdx, rsi
call fcn.1400435a0
mov qword [0x14012dfb8], rax
mov edx, dword [0x14012dfc0]
mov rcx, rax
call rdi
mov r9d, eax
cmp qword [0x14012dfc0], r9
jbe 0x14007a970
mov rax, qword [0x14012dfb8]
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x14007c9e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx]
cmp rax, qword [rdx]
je 0x14007ca11
lea rcx, str.x0__nw__x1__nw
lea rdx, str._home_simon_mem_.build_workdirs_bob_u160jzna_putty_crypto_mpint.c
mov r8d, 0xa6
call fcn.1400cb1fc
and ebx, 1
neg rbx
mov qword [rsp + 0x28], rbx
cmp qword [rdi], 0
je 0x14007ca61
xor eax, eax
nop word cs:[rax + rax]
nop
mov rcx, qword [rdi + 8]
mov rdx, qword [rsi + 8]
mov rdx, qword [rdx + rax*8]
xor rdx, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x28]
and rcx, rdx
mov rdx, qword [rdi + 8]
xor qword [rdx + rax*8], rcx
mov rdx, qword [rsi + 8]
xor qword [rdx + rax*8], rcx
add rax, 1
cmp rax, qword [rdi]
jb 0x14007ca30
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400852c0
Capabilities:
Create pipe
Create process on windows
Create reverse shell

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x130
movaps xmmword [rsp + 0x120], xmm6
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov dword [rsp + 0xd0], 0x18
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xe0], 1
lea rcx, [rsp + 0x100]
lea rdx, [rsp + 0xf8]
lea r8, [rsp + 0xd0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
je 0x140085536
lea rcx, [rsp + 0x108]
lea rdx, [rsp + 0x110]
lea r8, [rsp + 0xd0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
je 0x1400854ec
lea rcx, [rsp + 0xf0]
lea rdx, [rsp + 0xe8]
lea r8, [rsp + 0xd0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
je 0x140085507
mov rcx, qword [rsp + 0x110]
mov rbx, qword [sym.imp.KERNEL32.DLL_SetHandleInformation]
mov edx, 1
xor r8d, r8d
call rbx
mov rcx, qword [rsp + 0x100]
mov edx, 1
xor r8d, r8d
call rbx
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x1400853cd
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_SetHandleInformation]
mov dword [rsp + 0x68], 0x68
xorps xmm6, xmm6
movups xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0x80], 0
mov dword [rsp + 0xa4], 0x100
mov word [rsp + 0xaa], 0
mov qword [rsp + 0xb0], 0
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xc8], rax
mov rcx, rdi
call fcn.14004a3a0
mov rdi, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], 1
xor ecx, ecx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov rcx, rdi
call fcn.140043590
mov rcx, qword [rsp + 0x50]
mov rdi, qword [sym.imp.KERNEL32.DLL_CloseHandle]
call rdi
mov rcx, qword [rsp + 0x58]
call rdi
mov rcx, qword [rsp + 0x108]
call rdi
mov rcx, qword [rsp + 0xf8]
call rdi
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x1400854c3
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov r9, qword [rsp + 0xf0]
mov r8, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x110]
mov byte [rsp + 0x20], 0
mov rcx, rsi
call fcn.1400ac070
xor esi, esi
jmp 0x140085555
mov rcx, qword [rsp + 0x100]
mov rsi, qword [sym.imp.KERNEL32.DLL_CloseHandle]
call rsi
mov rcx, qword [rsp + 0xf8]
jmp 0x140085534
mov rcx, qword [rsp + 0x100]
mov rsi, qword [sym.imp.KERNEL32.DLL_CloseHandle]
call rsi
mov rcx, qword [rsp + 0xf8]
call rsi
mov rcx, qword [rsp + 0x110]
call rsi
mov rcx, qword [rsp + 0x108]
call rsi
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.Unable_to_create_pipes_for_proxy_command:__s
mov rdx, rax
call fcn.140042890
mov rsi, rax
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.1400ba340
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x130
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400a9560
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov qword [rsp + 0x58], r9
mov edi, edx
mov ebx, ecx
mov r12, qword [rsp + 0x140]
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0xa0], rax
imul eax, r8d, 0x3e8
imul r14, rax, 0x10624dd3
shr r14, 0x26
mov esi, 1
mov r13, qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ebp, 1
nop dword [rax]
mov r15d, ebp
mov ebp, esi
call r13
mov esi, eax
mov rax, qword [rsp + 0x120]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x90], xmm0
mov rax, qword [rsp + 0x128]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x130]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0x138]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x20], eax
mov ecx, ebx
mov edx, edi
mov r8d, ebp
mov r9d, dword [rsp + 0x110]
call fcn.1400a8530
call r13
sub eax, esi
mov esi, r15d
add esi, ebp
setb cl
cmp eax, r14d
jae 0x1400a9687
test cl, cl
jne 0x1400a9687
mov rcx, r12
xor edx, edx
call fcn.140043b00
jmp 0x1400a95c0
mov rax, qword [rsp + 0x58]
mov dword [rax], ebp
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400ba340
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400ab1c0
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
call fcn.1400072d0
test al, al
je 0x1400ab219
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x38]
mov ecx, 0x1f0001
mov r9, rsi
call fcn.140047130
test al, al
je 0x1400ab283
mov rax, qword [rsp + 0x40]
jmp 0x1400ab21b
xor eax, eax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0x18
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.DLL_CreateMutexA]
test rax, rax
je 0x1400ab261
mov rbx, rax
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
jmp 0x1400ab285
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.CreateMutex___s___failed:__s
mov rdx, rdi
mov r8, rax
call fcn.140042890
mov qword [rsi], rax
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400ab295
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400ab2a5
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ba340
mov rax, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400ab2e0
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, str..pipe_
mov r8d, 9
call fcn.1400d0090
test eax, eax
je 0x1400ab331
lea rcx, str.strncmp_pipename___.pipe___9___0
lea rdx, str._home_simon_mem_.build_workdirs_bob_u160jzna_putty_windows_named_pipe_client.c
mov r8d, 0x16
call fcn.1400cb1fc
lea rcx, [rdi + 9]
mov edx, 0x5c
call fcn.1400bbfe8
test rax, rax
je 0x1400ab35d
lea rcx, str.strchr_pipename__9_____NULL
lea rdx, str._home_simon_mem_.build_workdirs_bob_u160jzna_putty_windows_named_pipe_client.c
mov r8d, 0x17
call fcn.1400cb1fc
mov rsi, qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov r15, qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r12, qword [sym.imp.KERNEL32.DLL_WaitNamedPipeA]
nop word cs:[rax + rax]
nop dword [rax]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rsi
cmp rax, 0xffffffffffffffff
jne 0x1400ab3df
call r15
cmp eax, 0xe7
jne 0x1400ab44a
mov rcx, rdi
xor edx, edx
call r12
test eax, eax
jne 0x1400ab380
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.Error_waiting_for_named_pipe__s:__s
jmp 0x1400ab45e
mov rbx, rax
call fcn.140046f90
test rax, rax
je 0x1400ab46b
mov rsi, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x48]
mov rcx, rbx
mov edx, 6
mov r8d, 1
call qword [0x14012ddc0]
test eax, eax
je 0x1400ab4b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.Unable_to_get_named_pipe_security_information:__s
jmp 0x1400ab488
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.Unable_to_open_named_pipe__s:__s
mov rdx, rdi
mov r8, rax
call fcn.140042890
jmp 0x1400ab490
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.Unable_to_get_user_SID:__s
mov rdx, rax
call fcn.140042890
mov qword [r14], rax
mov rbx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400ba340
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1400ab4d7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x1400ab49a
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_LocalFree]
lea rcx, str.Owner_of_named_pipe__s_is_not_us
mov rdx, rdi
jmp 0x1400ab48b
Function at 0x1400ab5a0
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rsi, rdx
mov r15, rcx
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ecx, 1
mov edx, 0x60
xor r8d, r8d
call fcn.1400434f0
mov rdi, rax
lea rax, [0x1400fae38]
mov qword [rdi + 0x58], rax
mov qword [rdi + 0x48], rsi
mov qword [rdi + 0x50], 0
mov qword [rdi], 0
mov rcx, r15
call fcn.14004a3a0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], 0
mov qword [rdi + 0x40], 0
lea rdx, str..pipe_
mov r8d, 9
mov rcx, r15
call fcn.1400d0090
test eax, eax
je 0x1400ab646
lea rcx, str.strncmp_pipename___.pipe___9___0
lea rdx, str._home_simon_mem_.build_workdirs_bob_u160jzna_putty_windows_named_pipe_server.c
mov r8d, 0xd5
call fcn.1400cb1fc
lea r14, [rdi + 0x50]
lea rsi, [rdi + 8]
lea rcx, [r15 + 9]
mov edx, 0x5c
call fcn.1400bbfe8
test rax, rax
je 0x1400ab67a
lea rcx, str.strchr_pipename__9_____NULL
lea rdx, str._home_simon_mem_.build_workdirs_bob_u160jzna_putty_windows_named_pipe_server.c
mov r8d, 0xd6
call fcn.1400cb1fc
mov rbx, rdi
add rbx, 0x58
mov ecx, 0xc0000000
mov rdx, rdi
mov r8, rsi
mov r9, r14
call fcn.140047130
test al, al
je 0x1400ab767
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x40], 0x18
mov rax, qword [rdi]
mov qword [rsp + 0x48], rax
mov rcx, qword [rdi + 0x10]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov edx, 0x40080003
mov r8d, 8
mov r9d, 0xff
call qword [sym.imp.KERNEL32.DLL_CreateNamedPipeA]
mov qword [rdi + 0x18], rax
cmp rax, 0xffffffffffffffff
je 0x1400ab745
movups xmmword [rdi + 0x30], xmm6
movups xmmword [rdi + 0x20], xmm6
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rdi + 0x38], rax
lea rdx, [0x1400ab790]
mov rcx, rax
mov r8, rdi
call fcn.14002cde0
mov qword [rdi + 0x40], rax
mov rcx, rdi
xor edx, edx
call fcn.1400ab7a0
jmp 0x1400ab767
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.unable_to_create_named_pipe__s:__s
mov rdx, r15
mov r8, rax
call fcn.140042890
mov qword [r14], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ba340
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400ab7a0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rbx, [rcx + 0x20]
lea r14, [0x1400ab9b0]
xorps xmm6, xmm6
lea r13, [rsp + 0x40]
mov r12, qword [sym.imp.KERNEL32.DLL_CreateNamedPipeA]
mov r15, qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1400ab84d
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x40], 0x18
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov edx, 0x40000003
mov r8d, 8
mov r9d, 0xff
call r12
mov qword [rsi + 0x18], rax
cmp rax, 0xffffffffffffffff
je 0x1400ab8a9
test dil, 1
jne 0x1400ab880
mov rcx, qword [rsi + 0x18]
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
test eax, eax
jne 0x1400ab882
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x1400ab882
mov ebp, eax
cmp eax, 0x217
je 0x1400ab882
jmp 0x1400ab91b
xor edi, edi
mov rbp, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rdx, r14
mov r8, rbp
call qword [rax + 0x20]
test eax, eax
je 0x1400ab7f0
mov rcx, rbp
call r15
jmp 0x1400ab7f0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
mov ecx, ebp
call fcn.140047ad0
lea rcx, str.Error_while_listening_to_named_pipe:__s
mov rdx, rax
call fcn.140042890
mov rdi, rax
mov rcx, qword [rsi + 0x10]
call fcn.14003f080
mov rcx, qword [rsi + 0x48]
mov rbx, qword [rcx]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rdi
mov edx, 1
mov r8, rax
xor r9d, r9d
call qword [rbx]
mov rcx, rdi
call fcn.140043590
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ba340
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp ebp, 0x3e5
jne 0x1400ab8b1
jmp 0x1400ab8f8