joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005420
Capabilities:
Get session information

Disassembly:
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400055af
mov ecx, ebx
call fcn.1400050d0
test eax, eax
je 0x1400055af
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], 0
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 8
mov edx, ebx
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x1400055af
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
jne 0x140005490
mov rax, qword [0x14008ede8]
mov dword [rax + rbx*4], 3
jmp 0x1400054a7
cmp eax, 1
jne 0x14000554b
mov rax, qword [0x14008ede8]
mov dword [rax + rbx*4], 1
mov rcx, qword [rsp + 0x48]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [0x14008ed98]
mov edx, ebx
call fcn.140003b20
mov rcx, qword [0x14008ed98]
mov edx, ebx
call fcn.140003780
test eax, eax
jne 0x140005501
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x1400054f6
lea r9, str.Create_client_event_failed_for_session_id_u.
mov dword [rsp + 0x20], ebx
mov edx, 0x60004003
lea r8d, [rax + 1]
call fcn.140006a40
mov eax, 3
add rsp, 0x30
pop rbx
ret
mov ecx, ebx
call fcn.140004f40
test eax, eax
je 0x14000552c
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x14000552c
mov r9d, ebx
lea r8, str.Client_started_at_service_start_time_for_session_id__u
mov edx, 4
call fcn.140006ca0
mov rcx, qword [0x14008ed98]
xor r8d, r8d
mov edx, 0x200
call fcn.140002f90
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp eax, 2
jne 0x140005585
mov rax, qword [0x14008ed90]
test rax, rax
je 0x140005575
lea r8, str.The_WinStation_is_in_the_process_of_connecting_to_the_client.
mov edx, 4
mov rcx, rax
call fcn.140006ca0
mov rcx, qword [rsp + 0x48]
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 2
add rsp, 0x30
pop rbx
ret
mov r9, qword [0x14008ed90]
test r9, r9
je 0x1400055aa
lea r8, str.Error:_Give_up_waiting_for_client_connected.
mov edx, 4
mov rcx, r9
call fcn.140006ca0
mov rcx, qword [rsp + 0x48]
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400067e0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
mov edx, ecx
lea rcx, [0x14008edd8]
call fcn.140009b90
cmp eax, 0x102
jne 0x14000681a
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x14000681a
lea r8, str.Time_out_waiting_for_service_init_thread_to_finish
mov edx, 0x10000
add rsp, 0x28
jmp fcn.140006ca0
add rsp, 0x28
ret

Function at 0x140006820
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x130
xor edi, edi
mov dword [rcx + 0x114], edx
lea rax, vtable.LogMsg.0
mov qword [rcx + 0x10c], rdi
mov qword [rcx], rax
lea rdx, [r11 + 0x10]
mov qword [rcx + 0x118], rdi
mov rbx, rcx
lea rcx, str.LogOutputDebug
mov dword [r11 + 0x10], edi
mov r14, r9
mov rbp, r8
call fcn.1400075f0
test eax, eax
je 0x140006887
cmp dword [rsp + 0x158], edi
je 0x140006887
or dword [rbx + 0x10c], 1
lea rdx, [rsp + 0x158]
lea rcx, str.LogOutputFile
call fcn.1400075f0
test eax, eax
je 0x1400068af
cmp dword [rsp + 0x158], edi
je 0x1400068af
or dword [rbx + 0x10c], 4
lea rdx, [rsp + 0x158]
lea rcx, str.LogMaskLevel
call fcn.1400075f0
test eax, eax
je 0x1400068d8
mov eax, dword [rsp + 0x158]
test eax, eax
je 0x1400068d8
mov dword [rbx + 0x110], eax
mov rdx, rbp
lea rcx, [rbx + 8]
call fcn.140002b10
test byte [rbx + 0x10c], 4
je 0x140006936
lea r9, [rbx + 8]
mov r8, r14
lea rdx, str._s_s.txt
lea rcx, [rsp + 0x20]
call fcn.140002b10
lea rdx, [0x140075184]
lea rcx, [rsp + 0x20]
call fcn.140048ee8
mov qword [rbx + 0x118], rax
test rax, rax
jne 0x140006936
lea rcx, str.fopen_failed.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
and dword [rbx + 0x10c], 0xfffffffb
cmp qword [0x14008edf8], rdi
jne 0x140006960
mov ecx, 0x2e0
call fcn.140012758
test rax, rax
je 0x140006959
mov rcx, rax
call fcn.14000c590
mov rdi, rax
mov qword [0x14008edf8], rdi
lea r11, [rsp + 0x130]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140006b80
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x440
test byte [rcx + 0x10c], 5
mov rdi, r9
mov ebp, r8d
mov rbx, rcx
je 0x140006c83
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x450], rsi
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x3c]
lea rcx, [rsp + 0x240]
movzx eax, word [rsp + 0x3e]
movzx r9d, word [rsp + 0x3a]
movzx r8d, word [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, str._02d:_02d:_02d:_03d
call fcn.140002b10
test ebp, ebp
je 0x140006c1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, [rsp + 0x240]
lea r8, [rbx + 8]
mov qword [rsp + 0x20], rdi
lea rdx, str._s__t_s__s_GetLastError___x_r_n
lea rcx, [rsp + 0x40]
call fcn.140002b10
jmp 0x140006c41
lea r9, [rsp + 0x240]
mov qword [rsp + 0x20], rdi
lea r8, [rbx + 8]
lea rdx, str._s__t_s__s_r_n
lea rcx, [rsp + 0x40]
call fcn.140002b10
test byte [rbx + 0x10c], 1
mov rsi, qword [rsp + 0x450]
je 0x140006c5d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [rbx + 0x10c], 4
je 0x140006c83
mov rcx, qword [rbx + 0x118]
lea rdx, [rsp + 0x40]
call fcn.140006de0
mov rcx, qword [rbx + 0x118]
call fcn.140048bac
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140006ca0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x648
mov rbx, r8
lea rbp, [rsp + 0x688]
mov edi, edx
mov rsi, rcx
call fcn.140002a20
mov qword [rsp + 0x28], rbp
lea rdx, [rsp + 0x240]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8, 0xffffffffffffffff
mov rcx, qword [rax]
or rcx, 1
call fcn.140045e84
test dword [rsi + 0x110], edi
je 0x140006db0
test byte [rsi + 0x10c], 5
je 0x140006db0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x3c]
lea rdx, str._02d:_02d:_02d:_03d
movzx eax, word [rsp + 0x3e]
movzx r9d, word [rsp + 0x3a]
movzx r8d, word [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x440]
call fcn.140002b10
lea rax, [rsp + 0x240]
lea r8, [rsi + 8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x440]
lea rdx, str._s__t_s__s_r_n
lea rcx, [rsp + 0x40]
call fcn.140002b10
test byte [rsi + 0x10c], 1
je 0x140006d8a
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [rsi + 0x10c], 4
je 0x140006db0
mov rcx, qword [rsi + 0x118]
lea rdx, [rsp + 0x40]
call fcn.140006de0
mov rcx, qword [rsi + 0x118]
call fcn.140048bac
mov rcx, qword [0x14008edf8]
test rcx, rcx
je 0x140006dd2
mov edx, dword [rsi + 0x114]
lea r9, [rsp + 0x240]
xor r8d, r8d
call fcn.14000ca10
add rsp, 0x648
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400071b0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], rax
mov r9d, 0x10000
xor r8d, r8d
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140007209
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x1400071fc
lea r8, str.DeleteRegKey_RegOpenKeyEx_failed.
lea edx, [rbx + 7]
call fcn.140006ae0
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x14000723d
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x14000723b
mov r9, rdi
lea r8, str.DeleteRegKey_RegDeleteKey_failed_for_pcPath___s.
mov edx, 8
call fcn.140006ae0
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140007260
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov rdi, r8
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov rsi, rdx
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1400072e6
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x1400072d4
mov r9, rsi
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s.
lea edx, [rbx + 7]
call fcn.140006ae0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x78]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x14000731a
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x140007318
mov r9, rdi
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s.
mov edx, 8
call fcn.140006ae0
xor ebx, ebx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400075f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov dword [rsp + 0x60], 4
mov rdi, rcx
lea rax, [rsp + 0x68]
lea rdx, str.SoftwareAMDEEU
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
xor r8d, r8d
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140007671
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x14000765f
lea r9, str.SoftwareAMDEEU
lea r8, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s.
lea edx, [rbx + 7]
call fcn.140006ae0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, 0x10
mov qword [rsp + 0x28], rsi
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x1400076c5
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x1400076c3
mov r9, rdi
lea r8, str.ReadRegKey_RegGetValue_failed_for_value___s.
mov edx, 8
call fcn.140006ae0
xor ebx, ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400076f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbp, r8
mov rsi, rdx
mov edi, 1
test r9d, r9d
je 0x14000773c
sub r9d, edi
je 0x140007735
sub r9d, edi
je 0x14000772e
cmp r9d, edi
je 0x140007727
mov ebx, edi
jmp 0x140007741
mov ebx, 0x20
jmp 0x140007741
mov ebx, 2
jmp 0x140007741
mov ebx, 8
jmp 0x140007741
mov ebx, 0x10
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140007782
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x14000777e
mov r9, rsi
lea r8, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s.
mov edx, 8
call fcn.140006ae0
xor eax, eax
jmp 0x1400077eb
mov rax, qword [rsp + 0x88]
mov r9d, ebx
mov rcx, qword [rsp + 0x40]
mov r8, rbp
mov qword [rsp + 0x30], rax
xor edx, edx
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x1400077de
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x1400077dc
mov r9, rbp
lea r8, str.ReadRegKey_RegGetValue_failed_for_value___s.
mov edx, 8
call fcn.140006ae0
xor edi, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140007b20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbp, r8
mov rsi, rdx
mov edi, 1
test r9d, r9d
je 0x140007b5d
sub r9d, edi
je 0x140007b56
cmp r9d, edi
je 0x140007b52
xor ebx, ebx
jmp 0x140007b62
mov ebx, edi
jmp 0x140007b62
mov ebx, 3
jmp 0x140007b62
mov ebx, 4
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140007bc2
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x140007bbe
mov r9, rsi
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s.
mov edx, 8
call fcn.140006ae0
xor eax, eax
jmp 0x140007c21
mov eax, dword [rsp + 0x98]
mov r9d, ebx
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbp
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140007c14
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x140007c12
mov r9, rbp
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s.
mov edx, 8
call fcn.140006ae0
xor edi, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140007c40
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
mov qword [r11 - 0x28], 0
lea rax, [r11 - 0x18]
mov qword [r11 - 0x30], rax
mov rbp, r9
mov qword [r11 - 0x38], 0
mov rdi, r8
mov dword [rsp + 0x28], 0x20006
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov rsi, rdx
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140007cbc
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x140007cb8
mov r9, rsi
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s.
lea edx, [rbx + 7]
call fcn.140006ae0
xor eax, eax
jmp 0x140007d13
mov eax, dword [rsp + 0x90]
mov r9d, ebx
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140007d06
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x140007d04
mov r9, rdi
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s.
mov edx, 8
call fcn.140006ae0
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140009bb0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x140009bda
mov edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi], rax
test rdi, rdi
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140009c20
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
test rcx, rcx
jne 0x140009c52
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x140009c85
lea r8, str.ConnectPipe_hPipe_.
mov edx, 1
call fcn.140006ca0
xor eax, eax
add rsp, 0x28
ret
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140009c8c
lea rcx, [rsp + 0x30]
call fcn.140007d30
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x140009c85
lea r8, str.Client_failed_to_connect.
mov edx, 1
call fcn.140006ca0
xor eax, eax
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x140009ca0
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x80
mov rbx, rcx
test rcx, rcx
jne 0x140009cc6
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x140009d30
lea r8, str.CreatePipe_Empty_Pipe_Name.
jmp 0x140009d26
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140007d60
mov edx, 3
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], 0x2c
lea r9d, [rdx + 0x1b]
mov dword [rsp + 0x20], 0x620
lea r8d, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp rax, 0xffffffffffffffff
jne 0x140009d32
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x140009d30
lea r8, str.Invalid_handle_to_pipe.
mov edx, 1
call fcn.140006ca0
xor eax, eax
add rsp, 0x80
pop rbx
ret

Function at 0x140009d40
Capabilities:
Print debug messages

Disassembly:
test rcx, rcx
jne 0x140009d62
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x140009d69
lea r8, str.DisconnectPipe_hPipe_is_NULL.
mov edx, 1
jmp fcn.140006ca0
jmp qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
ret

Function at 0x140009d80
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov r8d, 0x620
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140009db6
cmp dword [rsp + 0x50], 0x620
jne 0x140009db6
mov eax, 1
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x140009dd9
lea r8, str.ReadPipe_ReadFile_failed.
mov edx, 1
call fcn.140006ae0
xor eax, eax
add rsp, 0x38
ret

Function at 0x140009e30
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov r8d, 0x2c
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140009e63
cmp dword [rsp + 0x50], 0x2c
jne 0x140009e63
mov eax, 1
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14008ed90]
test rcx, rcx
je 0x140009e89
mov r9d, eax
lea r8, str.WritePipe_Failed._Error_Mesg:___d
mov edx, 1
call fcn.140006ca0
xor eax, eax
add rsp, 0x38
ret
Function at 0x14000d090
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
lea rdx, str.agfb_0x_x
mov qword [rsp + 0x30], rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
mov r8d, eax
movups xmmword [rsp + 0x20], xmm0
call fcn.140002b10
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x14000d0f1
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000d0f9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rax, rbx
add rsp, 0x40
pop rbx
ret

Function at 0x14000d650
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov byte [rdx], 0
mov rdi, rdx
cmp byte [0x14008ee2c], 0
mov rbx, rcx
je 0x14000d6cd
mov r9, rcx
mov qword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x20], 0
lea r8, [0x14000d110]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14000d6c2
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x24]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [0x14008ee10]
test rax, rax
jne 0x14000d728
call fcn.1400111c0
mov rdx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000d70e
mov qword [0x14008ee10], rax
mov byte [rdi], 1
mov rax, qword [0x14008ee10]
mov qword [rbx + 0x24], rax
mov rax, rdx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [0x14008ee10]
xor edx, edx
mov qword [rbx + 0x24], rax
mov eax, edx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rbx + 0x24], rax
mov rdx, rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140011260
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, [0x1400771e8]
mov byte [rcx + 8], 0
mov qword [rcx], rax
mov rbx, rcx
xor edi, edi
mov qword [rcx + 0x10], rdi
lea rcx, str.gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x140011398
lea rdx, str.D3DKMTCloseAdapter
mov qword [rbx + 0x18], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTEnumAdapters
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTEscape
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTInvalidateActiveVidPn
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTOpenAdapterFromDeviceName
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTOpenAdapterFromHdc
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTOpenAdapterFromGdiDisplayName
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTOpenAdapterFromLuid
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTPollDisplayChildren
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTQueryAdapterInfo
mov qword [rbx + 0x58], rax
mov qword [rbx + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x60], rax
mov byte [rbx + 8], 1
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret