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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0x40
mov rax, qword [0x140090e18]
xor r14d, r14d
mov qword [rsp + 0x30], rax
mov esi, r14d
mov rax, qword [0x140090dd0]
mov qword [rsp + 0x38], rax
call fcn.140005420
mov ebx, eax
mov qword [rsp + 0x70], rdi
lea ebp, [r14 + 0x32]
nop dword [rax + rax]
cmp ebx, 2
jne 0x1400053f4
mov r9d, ebp
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov ecx, ebx
call sub.KERNEL32.dll_WaitForMultipleObjects
cmp eax, 0xffffffff
je 0x1400053a8
cmp eax, 0x102
jne 0x1400053cb
mov ebx, r14d
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov edi, eax
cmp eax, 0xffffffff
je 0x14000539b
mov ecx, edi
call fcn.1400050d0
test eax, eax
je 0x14000539b
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], r14
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r8d, 8
mov edx, edi
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x14000539b
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
jne 0x140005288
mov rax, qword [0x140090e08]
mov dword [rax + rdi*4], 3
jmp 0x14000529f
cmp eax, 1
jne 0x14000533d
mov rax, qword [0x140090e08]
mov dword [rax + rdi*4], 1
mov rcx, qword [rsp + 0x68]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [0x140090dc8]
mov edx, edi
mov ebx, 1
call fcn.140003b20
mov rcx, qword [0x140090dc8]
mov edx, edi
call fcn.140003780
test eax, eax
jne 0x1400052fc
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x1400052f2
lea r9, str.Create_client_event_failed_for_session_id_u.
mov dword [rsp + 0x20], edi
mov edx, 0x60004003
mov r8d, ebx
call fcn.140006ad0
mov ebx, 3
jmp 0x14000539b
mov ecx, edi
call fcn.140004f40
test eax, eax
je 0x140005327
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140005327
mov r9d, edi
lea r8, str.Client_started_at_service_start_time_for_session_id__u
mov edx, 4
call fcn.140006d90
mov rcx, qword [0x140090dc8]
xor r8d, r8d
mov edx, 0x200
call fcn.140002f90
jmp 0x14000539b
cmp eax, 2
mov rax, qword [0x140090dc0]
jne 0x140005378
test rax, rax
je 0x140005367
lea r8, str.The_WinStation_is_in_the_process_of_connecting_to_the_client.
mov edx, 4
mov rcx, rax
call fcn.140006d90
mov rcx, qword [rsp + 0x68]
call sub.WTSAPI32.dll_WTSFreeMemory
mov ebx, 2
mov ebp, 0xfa
jmp 0x14000539b
test rax, rax
je 0x140005396
lea r8, str.Error:_Give_up_waiting_for_client_connected.
mov edx, 4
mov rcx, rax
call fcn.140006d90
mov rcx, qword [rsp + 0x68]
call sub.WTSAPI32.dll_WTSFreeMemory
inc esi
cmp esi, 0x64
jb 0x1400051f0
jmp 0x1400053d0
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x1400053cb
lea r9, str.WaitForSingleEvent_failed.
mov edx, 0x60004006
mov r8d, 1
call fcn.140006ad0
cmp esi, 0x64
jb 0x1400053f4
cmp ebx, 2
jne 0x1400053f4
mov rcx, qword [0x140090dc0]
mov ebx, 4
test rcx, rcx
je 0x1400053f4
lea r8, str.WTS_Connect_Query_Times_Out.
mov edx, ebx
call fcn.140006d90
lea rcx, [0x140090e20]
mov dword [0x140090e14], ebx
call fcn.140009fb0
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
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 [0x140090e08]
mov dword [rax + rbx*4], 3
jmp 0x1400054a7
cmp eax, 1
jne 0x14000554b
mov rax, qword [0x140090e08]
mov dword [rax + rbx*4], 1
mov rcx, qword [rsp + 0x48]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [0x140090dc8]
mov edx, ebx
call fcn.140003b20
mov rcx, qword [0x140090dc8]
mov edx, ebx
call fcn.140003780
test eax, eax
jne 0x140005501
mov rcx, qword [0x140090dc0]
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.140006ad0
mov eax, 3
add rsp, 0x30
pop rbx
ret
mov ecx, ebx
call fcn.140004f40
test eax, eax
je 0x14000552c
mov rcx, qword [0x140090dc0]
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.140006d90
mov rcx, qword [0x140090dc8]
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 [0x140090dc0]
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.140006d90
mov rcx, qword [rsp + 0x48]
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 2
add rsp, 0x30
pop rbx
ret
mov r9, qword [0x140090dc0]
test r9, r9
je 0x1400055aa
lea r8, str.Error:_Give_up_waiting_for_client_connected.
mov edx, 4
mov rcx, r9
call fcn.140006d90
mov rcx, qword [rsp + 0x48]
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
add rsp, 0x30
pop rbx
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.1400079a0
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.1400079a0
test eax, eax
je 0x1400068af
cmp dword [rsp + 0x158], edi
je 0x1400068af
or dword [rbx + 0x10c], 4
lea rdx, [rsp + 0x158]
lea rcx, str.LogOutputEtw
call fcn.1400079a0
test eax, eax
je 0x1400068f8
cmp dword [rsp + 0x158], edi
je 0x1400068f8
or dword [rbx + 0x10c], 8
lea r9, [section..data]
lea r8, [section..data]
lea rdx, [0x140006e40]
lea rcx, [0x140076158]
call fcn.140006f50
lea rdx, [rsp + 0x158]
lea rcx, str.LogMaskLevel
call fcn.1400079a0
test eax, eax
je 0x140006921
mov eax, dword [rsp + 0x158]
test eax, eax
je 0x140006921
mov dword [rbx + 0x110], eax
mov rdx, rbp
lea rcx, [rbx + 8]
call fcn.140002b10
test byte [rbx + 0x10c], 4
je 0x14000697f
lea r9, [rbx + 8]
mov r8, r14
lea rdx, str._s_s.txt
lea rcx, [rsp + 0x20]
call fcn.140002b10
lea rdx, [0x1400761fc]
lea rcx, [rsp + 0x20]
call fcn.140049cac
mov qword [rbx + 0x118], rax
test rax, rax
jne 0x14000697f
lea rcx, str.fopen_failed.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
and dword [rbx + 0x10c], 0xfffffffb
cmp qword [0x140090e48], rdi
jne 0x1400069a9
mov ecx, 0x2e0
call fcn.14001324c
test rax, rax
je 0x1400069a2
mov rcx, rax
call fcn.14000c9d0
mov rdi, rax
mov qword [0x140090e48], 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 0x140006c10
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x460
test byte [rcx + 0x10c], 0xd
mov rdi, r9
mov ebp, r8d
mov rbx, rcx
je 0x140006d78
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x470], rsi
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x3c]
lea rcx, [rsp + 0x260]
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 0x140006caf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, [rsp + 0x260]
lea r8, [rbx + 8]
mov qword [rsp + 0x20], rdi
lea rdx, str._s__t_s__s_GetLastError___x_r_n
lea rcx, [rsp + 0x60]
call fcn.140002b10
jmp 0x140006cd1
lea r9, [rsp + 0x260]
mov qword [rsp + 0x20], rdi
lea r8, [rbx + 8]
lea rdx, str._s__t_s__s_r_n
lea rcx, [rsp + 0x60]
call fcn.140002b10
test byte [rbx + 0x10c], 1
mov rsi, qword [rsp + 0x470]
je 0x140006ced
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [rbx + 0x10c], 4
je 0x140006d13
mov rcx, qword [rbx + 0x118]
lea rdx, [rsp + 0x60]
call fcn.1400070f0
mov rcx, qword [rbx + 0x118]
call fcn.140049970
test byte [rbx + 0x10c], 8
je 0x140006d78
test byte [0x140090e40], 1
je 0x140006d78
lea rcx, [rsp + 0x60]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140006d31
inc eax
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rcx
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140076178]
lea rcx, [section..data]
call fcn.140006f90
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400074f0
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 0x14000754c
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x14000753f
mov r9d, eax
lea r8, str.DeleteRegKey_RegOpenKeyEx_failed_with_error_code_0x_08x.
lea edx, [rbx + 7]
call fcn.140006b70
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 0x140007584
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140007582
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, str.DeleteRegKey_RegDeleteKey_failed_for_pcPath___s_with_error_code_0x_08x.
mov edx, 8
call fcn.140006b70
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 0x1400075a0
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 0x14000762a
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140007618
mov r9, rsi
mov dword [rsp + 0x20], eax
lea r8, str.DeleteRegValue_RegCreateKeyEx_failed_for_pcPath___s_with_error_code_0x_08x.
lea edx, [rbx + 7]
call fcn.140006b70
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 0x140007662
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140007660
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, str.DeleteRegValue_RegDeleteValue_failed_for_value___s_with_error_code_0x_08x.
mov edx, 8
call fcn.140006b70
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 0x1400079a0
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 0x140007a25
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140007a13
lea r9, str.SoftwareAMDEEU
mov dword [rsp + 0x20], eax
lea r8, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s_with_error_code_0x_08x.
lea edx, [rbx + 7]
call fcn.140006b70
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 0x140007a85
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140007a83
mov dword [rsp + 0x28], eax
lea r8, str.ReadRegKey_RegGetValue_failed_for_value___s_and_ulSize___d_with_error_code_0x_08x.
mov eax, dword [rsp + 0x60]
mov r9, rdi
mov edx, 8
mov dword [rsp + 0x20], eax
call fcn.140006b70
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 0x140007ab0
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 0x140007afc
sub r9d, edi
je 0x140007af5
sub r9d, edi
je 0x140007aee
cmp r9d, edi
je 0x140007ae7
mov ebx, edi
jmp 0x140007b01
mov ebx, 0x20
jmp 0x140007b01
mov ebx, 2
jmp 0x140007b01
mov ebx, 8
jmp 0x140007b01
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 0x140007b46
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140007b42
mov r9, rsi
mov dword [rsp + 0x20], eax
lea r8, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s_with_error_code_0x_08x.
mov edx, 8
call fcn.140006b70
xor eax, eax
jmp 0x140007bc5
mov rax, qword [rsp + 0x80]
mov r9d, ebx
mov rsi, qword [rsp + 0x88]
mov r8, rbp
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov edx, eax
test eax, eax
je 0x140007bb8
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140007bb6
mov eax, 0xffffffff
test rsi, rsi
je 0x140007b9a
mov eax, dword [rsi]
mov dword [rsp + 0x28], edx
lea r8, str.ReadRegKey_RegGetValue_failed_for_value___s_and_ulSize___d_with_error_code_0x_08x.
mov edx, 8
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.140006b70
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 0x140007f40
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 0x140007f7d
sub r9d, edi
je 0x140007f76
cmp r9d, edi
je 0x140007f72
xor ebx, ebx
jmp 0x140007f82
mov ebx, edi
jmp 0x140007f82
mov ebx, 3
jmp 0x140007f82
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 0x140007fe6
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140007fe2
mov r9, rsi
mov dword [rsp + 0x20], eax
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s_with_error_code_0x_08x.
mov edx, 8
call fcn.140006b70
xor eax, eax
jmp 0x14000804d
mov rax, qword [rsp + 0x90]
mov r9d, ebx
mov esi, dword [rsp + 0x98]
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140008040
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x14000803e
mov dword [rsp + 0x28], eax
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s_and_ulSize___d_with_error_code_0x_08x.
mov r9, rbp
mov dword [rsp + 0x20], esi
mov edx, 8
call fcn.140006b70
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 0x140008070
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 rsi, r8
mov dword [rsp + 0x28], 0x20006
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov rdi, rdx
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1400080f0
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x1400080ec
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, str.WriteUCODEStringRegKey_RegCreateKeyEx_failed_for_pcPath___s_with_error_code_0x_08x.
lea edx, [rbx + 7]
call fcn.140006b70
xor eax, eax
jmp 0x14000814f
mov edi, dword [rsp + 0x90]
mov r9d, ebx
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140008142
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140008140
mov dword [rsp + 0x28], eax
lea r8, str.WriteUCODEStringRegKey_RegSetValueExW_failed_for_value___s_and_ulSize___d_with_error_code_0x_08x.
mov r9, rsi
mov dword [rsp + 0x20], edi
mov edx, 8
call fcn.140006b70
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 0x140009ff0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14000a01a
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 0x14000a060
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
test rcx, rcx
jne 0x14000a092
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x14000a0c5
lea r8, str.ConnectPipe_hPipe_.
mov edx, 1
call fcn.140006d90
xor eax, eax
add rsp, 0x28
ret
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14000a0cc
lea rcx, [rsp + 0x30]
call fcn.140008170
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x14000a0c5
lea r8, str.Client_failed_to_connect.
mov edx, 1
call fcn.140006d90
xor eax, eax
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x14000a0e0
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x80
mov rbx, rcx
test rcx, rcx
jne 0x14000a106
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x14000a170
lea r8, str.CreatePipe_Empty_Pipe_Name.
jmp 0x14000a166
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1400081a0
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 0x14000a172
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x14000a170
lea r8, str.Invalid_handle_to_pipe.
mov edx, 1
call fcn.140006d90
xor eax, eax
add rsp, 0x80
pop rbx
ret

Function at 0x14000a1c0
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 0x14000a1f6
cmp dword [rsp + 0x50], 0x620
jne 0x14000a1f6
mov eax, 1
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x14000a219
lea r8, str.ReadPipe_ReadFile_failed.
mov edx, 1
call fcn.140006b70
xor eax, eax
add rsp, 0x38
ret

Function at 0x14000a270
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 0x14000a2a3
cmp dword [rsp + 0x50], 0x2c
jne 0x14000a2a3
mov eax, 1
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x14000a2c9
mov r9d, eax
lea r8, str.WritePipe_Failed._Error_Mesg:___d
mov edx, 1
call fcn.140006d90
xor eax, eax
add rsp, 0x38
ret
Function at 0x14000d4e0
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 0x14000d541
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000d549
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 0x14000daa0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov byte [rdx], 0
mov rdi, rdx
cmp byte [0x140090e7c], 0
mov rbx, rcx
je 0x14000db1d
mov r9, rcx
mov qword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x20], 0
lea r8, [0x14000d560]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14000db12
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 [0x140090e60]
test rax, rax
jne 0x14000db78
call fcn.140011da0
mov rdx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000db5e
mov qword [0x140090e60], rax
mov byte [rdi], 1
mov rax, qword [0x140090e60]
mov qword [rbx + 0x24], rax
mov rax, rdx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [0x140090e60]
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 0x140011e40
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, [0x140078760]
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 0x140011f78
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