joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400aa5a1
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x1400aa5cc
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1400aa79a
test bl, bl
je 0x1400aa6d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400aa6d2
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.1400aa478
test al, al
jne 0x1400aa79a
mov ecx, 2
call fcn.14006d9d0
test al, al
je 0x1400aa798
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x5d
mov r9d, 2
call fcn.14006da80
lea rdi, [rsp + 0x50]
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x180]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.14004af80
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400aa68c
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.14001df3c
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.14001df3c
cmp byte [rsp + 0x1a7], 0
jns 0x1400aa6c3
mov rcx, qword [rsp + 0x190]
call fcn.140136864
lea rcx, [rsp + 0x40]
call fcn.14006df10
jmp 0x1400aa798
mov ecx, 2
call fcn.14006d9d0
test al, al
je 0x1400aa798
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x62
mov r9d, 2
call fcn.14006ea90
lea rcx, [rsp + 0x50]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.14001df3c
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.14004af80
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400aa76c
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.14001df3c
cmp byte [rsp + 0x1a7], 0
jns 0x1400aa78e
mov rcx, qword [rsp + 0x190]
call fcn.140136864
lea rcx, [rsp + 0x40]
call fcn.14006eb80
xor edi, edi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.140137110
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400aa7b7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400aa7de
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400aa7f7
test eax, 0x410
sete sil
jmp 0x1400aa8b0
mov ecx, 2
call fcn.14006d9d0
test al, al
je 0x1400aa8ae
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x75
mov r9d, 2
call fcn.14006ea90
lea rcx, [rsp + 0x60]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14001df3c
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14004af80
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400aa888
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.14001df3c
cmp byte [rsp + 0x4f], 0
jns 0x1400aa8a4
mov rcx, qword [rsp + 0x38]
call fcn.140136864
lea rcx, [rsp + 0x50]
call fcn.14006eb80
xor esi, esi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140137110
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret

Function at 0x1400aa8cc
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400aa8f3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400aa92b
and eax, 0x410
cmp eax, 0x410
jne 0x1400aa92b
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140137110
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.1400aaa1d
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400aa937
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x1400aaa01
mov ecx, 2
call fcn.14006d9d0
test al, al
je 0x1400aa9ff
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, reloc.OLEAUT32.dll_SysAllocStringByteLen
mov r9d, 2
call fcn.14006ea90
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, inet_ntoa
call fcn.14001df3c
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14004af80
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400aa9d9
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.14001df3c
cmp byte [rsp + 0x4f], 0
jns 0x1400aa9f5
mov rcx, qword [rsp + 0x38]
call fcn.140136864
lea rcx, [rsp + 0x50]
call fcn.14006eb80
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140137110
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
Function at 0x1400aaa1d
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rdi, rcx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400aaa45
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x1400aab0c
mov ecx, 2
call fcn.14006d9d0
test al, al
je 0x1400aab0c
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x30
mov r9d, 2
call fcn.14006ea90
lea rcx, [rsp + 0x68]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.14001df3c
mov rbx, rax
movzx eax, byte [rdi + 0x17]
test al, al
mov rcx, qword [rdi]
cmovns rcx, rdi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rdi + 8]
mov qword [rdx + 8], rax
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14004af80
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x1400aaae6
mov r8, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rcx, rbx
mov rdx, rdi
call fcn.14001df3c
cmp byte [rsp + 0x57], 0
jns 0x1400aab02
mov rcx, qword [rsp + 0x40]
call fcn.140136864
lea rcx, [rsp + 0x58]
call fcn.14006eb80
test esi, esi
setne bl
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140137110
mov eax, ebx
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400ac7e8
Capabilities:
Get graphical window text

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdx], rax
mov rcx, rdx
call fcn.140061744
mov rcx, qword [rbx + 8]
mov edx, edi
call qword [sym.imp.USER32.dll_GetDlgItem]
test rax, rax
je 0x1400ac853
mov rdi, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [rax + 1]
mov rcx, rsi
mov edx, ebx
call fcn.140061f66
mov rcx, rdi
mov rdx, rax
mov r8d, ebx
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rsi
mov edx, 0xffffffff
call fcn.1400ae596
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400ac8be
Capabilities:
Hide graphical window

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rdi, rcx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rcx, qword [rcx + 8]
xor r14d, r14d
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
cmp dword [rdi + 0x28], 0
je 0x1400ac96d
lea rsi, [rsp + 0x58]
mov rcx, rdi
mov rdx, rsi
mov r8d, 0x41d
call fcn.1400ac7e8
mov rdx, qword [rsi]
lea rcx, [rsp + 0x70]
call fcn.140044dc4
mov rdx, qword [rsi]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x1400ac94e
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
call fcn.140061620
lea rsi, [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.1400adf62
mov r14, qword [rsi]
mov r15, qword [rsi + 8]
mov r12, qword [rsi + 0x10]
jmp 0x1400ac973
xor r15d, r15d
xor r12d, r12d
mov rcx, qword [rdi + 8]
xor esi, esi
mov qword [rsp + 0x20], rsi
mov rbx, qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edx, 0x41b
mov r8d, 0xf0
xor r9d, r9d
call rbx
xor ecx, ecx
cmp rax, 1
sete cl
mov dword [rdi + 0x18], ecx
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
mov edx, 0x41a
mov r8d, 0xf0
xor r9d, r9d
call rbx
mov rsi, rax
call fcn.1400581b6
mov rdi, rax
cmp rsi, 1
jne 0x1400ac9e1
test r12, r12
js 0x1400ac9f7
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r12
jmp 0x1400aca07
test r12, r12
js 0x1400aca13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
jmp 0x1400aca23
lea rcx, [rsp + 0x40]
mov rdx, r14
mov r8, r15
call fcn.140043d0e
lea r8, [rsp + 0x40]
mov rcx, rdi
mov dl, 1
jmp 0x1400aca2d
lea rcx, [rsp + 0x28]
mov rdx, r14
mov r8, r15
call fcn.140043d0e
lea r8, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call fcn.140092274
test r12, r12
jns 0x1400aca3f
mov rcx, r14
call fcn.140136864
cmp byte [rsp + 0x87], 0
jns 0x1400aca53
mov rcx, qword [rsp + 0x70]
call fcn.140136864
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140137110
nop
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400af181
Capabilities:
Read .ini file

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rsi, [rsp + 0x70]
mov r8d, 0x424
mov rcx, rsi
xor edx, edx
call fcn.140139f20
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x212
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rsi
mov dx, 0x5c
call fcn.14013a3a8
lea rcx, [rax + 2]
lea rdx, str.bugreport.ini
call fcn.140153928
mov ecx, 0x8000
call fcn.14013689c
mov r12, rax
lea rcx, str.STRINGTABLE
mov rdx, rax
mov r8d, 0x4000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x1400af383
cmp word [r12], 0
je 0x1400af383
movabs rbp, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x48]
lea rbx, [0x14018219c]
lea r14, [rsp + 0x40]
lea rsi, [rsp + 0x38]
mov r15, r12
mov qword [rsp + 0x48], rbp
mov rcx, rdi
mov rdx, r15
call fcn.140058274
mov rcx, rdi
call fcn.1400aed4c
mov rcx, rax
call fcn.1400aedaa
mov rcx, qword [rsp + 0x48]
cmp dword [rcx - 0x10], 0
js 0x1400af347
mov rdx, rbx
call fcn.14013a458
test rax, rax
je 0x1400af347
mov r13, rax
mov rax, qword [rsp + 0x48]
sub r13, rax
shr r13, 1
cmp r13d, 0xffffffff
je 0x1400af347
mov r8d, r13d
not r8d
add r8d, dword [rax - 0x10]
mov rcx, rdi
mov rdx, r14
call fcn.1400ae52c
mov rcx, rdi
mov rdx, rsi
mov r8d, r13d
call fcn.1400ae4d8
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401b00b8]
lea rdx, [rsp + 0x60]
mov r8, rsi
lea r9, [0x140184fd0]
call fcn.1400af714
mov rcx, qword [rsp + 0x60]
add rcx, 0x28
mov rdx, r14
call fcn.1400924cc
mov rdx, qword [rsp + 0x38]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x1400af326
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
call fcn.140061620
mov rdx, qword [rsp + 0x40]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x1400af347
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
call fcn.140061620
mov rdx, qword [rsp + 0x48]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x1400af368
add rdx, 0xffffffffffffffe8
mov rcx, qword [rdx]
call fcn.140061620
mov rcx, r15
call fcn.140152ff8
lea r15, [r15 + rax*2]
add r15, 2
cmp word [r15], 0
jne 0x1400af245
test r12, r12
je 0x1400af390
mov rcx, r12
call fcn.1401368a4
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140137110
mov eax, 1
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400afb40
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1401b00e0]
test rdi, rdi
jne 0x1400afbe4
mov ecx, 0x48
call fcn.140136828
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov ecx, 0x18
call fcn.140136828
mov qword [rsi + 0x10], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x20], rcx
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x18], rcx
lea rax, [rsi + 0x30]
movups xmmword [rsi + 0x30], xmm6
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x40], 1
mov qword [0x1401b00e0], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400afc06
mov rcx, rax
call fcn.140152ff8
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1400afc10
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140137110
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
int3
Function at 0x1400afc10
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 3
call fcn.140089800
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
cmp qword [rsi + 8], 0
je 0x1400afe1e
movups xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x1400afcbe
lea rdx, [0x14018506a]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400afcd1
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call qword [0x1401c1010]
jmp 0x1400afccc
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
jmp 0x1400afcd4
xor r12d, r12d
movsxd rbp, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test rbp, rbp
je 0x1400afddd
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], r14
test ebp, ebp
js 0x1400afe75
shl rbp, 3
lea rsi, [rbp*2]
add rsi, rbp
mov rcx, rsi
call fcn.140136828
mov rbx, rax
mov qword [rsp + 0x30], rax
add rax, rsi
mov qword [rsp + 0x40], rax
xor r15d, r15d
jmp 0x1400afd96
lea r14, [rdi + 8]
and r14, 0xfffffffffffffff8
lea rcx, [r14 + r14]
call fcn.140136828
mov r13, rax
mov qword [rbx], rax
movabs rax, 0x7fffffffffffffef
add rax, 0x11
or rax, r14
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rdi
mov r8, rdi
add r8, rdi
mov rcx, r13
mov rdx, rsi
call fcn.140139870
mov word [r13 + rdi*2], 0
add rbx, 0x18
add r15, 8
cmp rbp, r15
je 0x1400afdcc
mov rsi, qword [r12 + r15]
mov rcx, rsi
call fcn.140152ff8
mov rdi, rax
movabs rax, 0x7fffffffffffffef
cmp rdi, rax
ja 0x1400afe6d
cmp rdi, 0xb
jae 0x1400afd40
mov byte [rbx + 0x17], dil
mov r13, rbx
test rdi, rdi
jne 0x1400afd70
jmp 0x1400afd81
mov qword [rsp + 0x38], rbx
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
jmp 0x1400afddf
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1400afa00
movups xmmword [r14], xmm6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400afe07
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x1400afe1e
cmp rbx, rsi
jne 0x1400afe58
mov rcx, rsi
call fcn.140136864
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140137110
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, rdi
cmp rdi, rsi
je 0x1400afe16
lea rdi, [rbx - 0x18]
cmp byte [rbx - 1], 0
jns 0x1400afe50
mov rcx, qword [rbx - 0x18]
call fcn.140136864
jmp 0x1400afe50
mov rcx, rbx
call fcn.1400437d4
lea rcx, [rsp + 0x30]
call fcn.14001ba1a
int3
Function at 0x1400b4c44
Capabilities:
Read pipe
Write pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x190
mov r14, r8
mov r15, rdx
mov rdi, rcx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov rbx, qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13, qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400b4c92
mov rcx, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
cmp rax, 0xffffffffffffffff
jne 0x1400b4d36
call r12
cmp eax, 0xe7
jne 0x1400b4e2b
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400b4cd8
mov rcx, qword [rdi]
mov edx, 0xffffffff
call r13
test eax, eax
jne 0x1400b4c86
mov ecx, 2
call fcn.14006d9d0
test al, al
je 0x1400b4e81
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, [0x1401863c0]
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x6f
mov r9d, 2
call fcn.14006ea90
lea rcx, [rsp + 0x58]
lea rdx, str.WaitNamedPipe
mov r8d, 0xd
jmp 0x1400b4e74
mov rsi, rax
lea rdx, [rsp + 0x44]
mov dword [rdx], 2
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x1400b4e85
lea rax, [rsp + 0x40]
mov dword [rax], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0x10
mov rcx, rsi
mov rdx, r15
mov r8d, 0x804
mov r9, r14
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x1400b4edb
mov dil, 1
cmp dword [rsp + 0x40], 0x10
je 0x1400b4edd
mov ecx, 2
call fcn.14006d9d0
test al, al
je 0x1400b4edb
lea rdx, [0x1401863c0]
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, 0x8a
mov r9d, 2
call fcn.14006da80
lea rcx, [rsp + 0x58]
lea rdx, str.TransactNamedPipe:_expected
mov r8d, 0x1c
call fcn.14001df3c
mov edx, 0x10
mov rcx, rax
call fcn.14001aad0
lea rdx, str.__observed
mov r8d, inet_ntoa
mov rcx, rax
call fcn.14001df3c
mov edx, dword [rsp + 0x40]
mov rcx, rax
call fcn.14001a678
mov rcx, rdi
call fcn.14006df10
jmp 0x1400b4edb
mov ecx, 2
call fcn.14006d9d0
test al, al
je 0x1400b4e81
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, [0x1401863c0]
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x6a
mov r9d, 2
call fcn.14006ea90
lea rcx, [rsp + 0x58]
lea rdx, str.CreateFile
mov r8d, 0xa
call fcn.14001df3c
mov rcx, rsi
call fcn.14006eb80
xor edi, edi
jmp 0x1400b4ee5
mov ecx, 2
call fcn.14006d9d0
test al, al
je 0x1400b4edb
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, [0x1401863c0]
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, pe_nt_image_headers64
mov r9d, 2
call fcn.14006ea90
lea rcx, [rsp + 0x58]
lea rdx, [0x140186423]
mov r8d, 0x17
call fcn.14001df3c
mov rcx, rdi
call fcn.14006eb80
xor edi, edi
mov rcx, rsi
call fcn.14009bb68
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140137110
mov eax, edi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400b4f0a
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x140175f60]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x1400b4ff5
lea r14, [rsp + 0x6c]
xor ebx, ebx
mov r8d, 0x110
mov rcx, r14
xor edx, edx
call fcn.140139f20
mov dword [r14 - 0xc], 0x11c
mov rdi, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rdi
mov qword [r14 - 8], 6
mov word [r14 + 0x108], 0
lea rcx, [rsp + 0x60]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x1400b4ffc
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.1400b5059
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x1400b4ffc
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x1400b5005
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140137110
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400bd3c0
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x140175f60]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.MapImageToMemory
lea r8, str..._.._base_files_memory_mapped_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x1a
call fcn.140066190
lea rcx, [rsp + 0x50]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.1400bdcc0
mov rcx, rsi
call fcn.140077150
test al, al
je 0x1400bd539
mov rcx, rsi
call fcn.140077160
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
cmp qword [rsi + 0x40], rax
je 0x1400bd4de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 0x40]
add rax, 1
cmp rax, 2
jb 0x1400bd4bc
call fcn.1400661b0
mov rcx, qword [rsi + 0x40]
call fcn.1400be660
mov qword [rsi + 0x40], 0
mov rax, rbx
add rax, 1
cmp rax, 2
jb 0x1400bd4d2
mov qword [rsi + 0x40], rbx
call fcn.1400661b0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi + 0x40]
lea rax, [rbx + 1]
cmp rax, 2
jae 0x1400bd4ec
xor edi, edi
jmp 0x1400bd539
mov qword [rsp + 0x20], 0
xor edi, edi
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x1400bd539
lea rcx, fcn.1400469a0
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.140100a1c
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.1400bdfe0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140137110
mov eax, edi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret