joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004510
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbx
sub rsp, 0x180
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x140004546
lea rcx, str.SCM_could_not_be_opened.
call fcn.140004360
xor eax, eax
add rsp, 0x180
pop rbx
ret
mov r8d, 0x104
mov qword [rsp + 0x190], rdi
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
lea r8, str.AMD_External_Events_Utility
mov qword [rsp + 0x60], rax
lea rdx, str.AMD_External_Events_Utility
mov qword [rsp + 0x58], rax
mov r9d, 0x10
mov qword [rsp + 0x50], rax
mov rcx, rbx
mov qword [rsp + 0x48], rax
lea rax, str.Event_log
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x110
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
jne 0x1400045fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Service_could_not_be_created.__GetLastError___i_n
call fcn.140004360
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x190]
xor eax, eax
add rsp, 0x180
pop rbx
ret
lea rcx, str.Service_has_been_installed_successfully._n
call fcn.140004360
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x190]
mov eax, 1
add rsp, 0x180
pop rbx
ret

Function at 0x140004870
Capabilities:
Delete service

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x1400048a0
lea rcx, str.SCM_could_not_be_opened.
call fcn.140004360
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov r8d, 0x10000
mov qword [rsp + 0x30], rdi
lea rdx, str.AMD_External_Events_Utility
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x1400048e5
lea rcx, str.Service_could_not_be_opened._n
call fcn.140004360
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14000491d
lea rcx, str.Service_could_not_be_deleted._n
call fcn.140004360
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rcx, str.Service_has_been_deleted_successfully._n
call fcn.140004360
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140004e30
Capabilities:
Get session information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140086d18]
xor ebp, ebp
mov qword [rsp + 0x30], rax
mov edi, ebp
mov rax, qword [0x140086cf0]
mov qword [rsp + 0x38], rax
call fcn.140005090
mov ebx, eax
lea esi, [rbp + 0x32]
cmp ebx, 2
jne 0x140005066
mov r9d, esi
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov ecx, ebx
call sub.KERNEL32.dll_WaitForMultipleObjects
cmp eax, 0xffffffff
je 0x14000501a
cmp eax, 0x102
jne 0x14000503d
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, eax
cmp eax, 0xffffffff
je 0x14000500b
mov ecx, ebx
call fcn.140004d50
test eax, eax
je 0x14000500b
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], rbp
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r8d, 8
mov edx, ebx
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x14000500b
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
jne 0x140004ef7
mov rax, qword [0x140086d30]
mov dword [rax + rbx*4], 3
jmp 0x140004f0e
cmp eax, 1
jne 0x140004fad
mov rax, qword [0x140086d30]
mov dword [rax + rbx*4], 1
mov rcx, qword [rsp + 0x68]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [0x140086ce8]
mov edx, ebx
call fcn.1400037c0
mov rcx, qword [0x140086ce8]
mov edx, ebx
call fcn.140003420
test eax, eax
jne 0x140004f67
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x140004f5d
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.140006660
mov ebx, 3
jmp 0x14000500d
mov ecx, ebx
call fcn.140004bc0
test eax, eax
je 0x140004f92
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x140004f92
mov r9d, ebx
lea r8, str.Client_started_at_service_start_time_for_session_id__u
mov edx, 4
call fcn.140006880
mov rcx, qword [0x140086ce8]
xor r8d, r8d
mov edx, 0x200
call fcn.140002c80
mov ebx, 1
jmp 0x14000500d
cmp eax, 2
mov rax, qword [0x140086ce0]
jne 0x140004fe8
test rax, rax
je 0x140004fd7
lea r8, str.The_WinStation_is_in_the_process_of_connecting_to_the_client.
mov edx, 4
mov rcx, rax
call fcn.140006880
mov rcx, qword [rsp + 0x68]
call sub.WTSAPI32.dll_WTSFreeMemory
mov esi, 0xfa
mov ebx, 2
jmp 0x14000500d
test rax, rax
je 0x140005006
lea r8, str.Error:_Give_up_waiting_for_client_connected.
mov edx, 4
mov rcx, rax
call fcn.140006880
mov rcx, qword [rsp + 0x68]
call sub.WTSAPI32.dll_WTSFreeMemory
mov ebx, ebp
inc edi
cmp edi, 0x64
jb 0x140004e62
jmp 0x140005042
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x14000503d
lea r9, str.WaitForSingleEvent_failed.
mov edx, 0x60004006
mov r8d, 1
call fcn.140006660
cmp edi, 0x64
jb 0x140005066
cmp ebx, 2
jne 0x140005066
mov rcx, qword [0x140086ce0]
mov ebx, 4
test rcx, rcx
je 0x140005066
lea r8, str.WTS_Connect_Query_Times_Out.
mov edx, ebx
call fcn.140006880
lea rcx, [0x140086d20]
mov dword [0x140086d3c], ebx
call fcn.140009410
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005090
Capabilities:
Get session information

Disassembly:
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, eax
cmp eax, 0xffffffff
je 0x14000521f
mov ecx, ebx
call fcn.140004d50
test eax, eax
je 0x14000521f
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 0x14000521f
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
jne 0x140005100
mov rax, qword [0x140086d30]
mov dword [rax + rbx*4], 3
jmp 0x140005117
cmp eax, 1
jne 0x1400051bb
mov rax, qword [0x140086d30]
mov dword [rax + rbx*4], 1
mov rcx, qword [rsp + 0x48]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [0x140086ce8]
mov edx, ebx
call fcn.1400037c0
mov rcx, qword [0x140086ce8]
mov edx, ebx
call fcn.140003420
test eax, eax
jne 0x140005171
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x140005166
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.140006660
mov eax, 3
add rsp, 0x30
pop rbx
ret
mov ecx, ebx
call fcn.140004bc0
test eax, eax
je 0x14000519c
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x14000519c
mov r9d, ebx
lea r8, str.Client_started_at_service_start_time_for_session_id__u
mov edx, 4
call fcn.140006880
mov rcx, qword [0x140086ce8]
xor r8d, r8d
mov edx, 0x200
call fcn.140002c80
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp eax, 2
jne 0x1400051f5
mov rax, qword [0x140086ce0]
test rax, rax
je 0x1400051e5
lea r8, str.The_WinStation_is_in_the_process_of_connecting_to_the_client.
mov edx, 4
mov rcx, rax
call fcn.140006880
mov rcx, qword [rsp + 0x48]
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 2
add rsp, 0x30
pop rbx
ret
mov r9, qword [0x140086ce0]
test r9, r9
je 0x14000521a
lea r8, str.Error:_Give_up_waiting_for_client_connected.
mov edx, 4
mov rcx, r9
call fcn.140006880
mov rcx, qword [rsp + 0x48]
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400064c0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x130
lea rax, vtable.LogMsg.0
mov rsi, rdx
mov qword [rcx], rax
lea rdx, [r11 + 8]
xor eax, eax
mov rbx, rcx
mov qword [rcx + 0x10c], rax
mov rbp, r8
mov qword [rcx + 0x118], rax
lea rcx, str.LogOutputDebug
mov dword [r11 + 8], eax
call fcn.140007100
test eax, eax
je 0x140006523
cmp dword [rsp + 0x140], 0
je 0x140006523
or dword [rbx + 0x10c], 1
lea rdx, [rsp + 0x140]
lea rcx, str.LogOutputFile
call fcn.140007100
test eax, eax
je 0x14000654c
cmp dword [rsp + 0x140], 0
je 0x14000654c
or dword [rbx + 0x10c], 4
lea rdx, [rsp + 0x140]
lea rcx, str.LogMaskLevel
call fcn.140007100
test eax, eax
je 0x140006575
mov eax, dword [rsp + 0x140]
test eax, eax
je 0x140006575
mov dword [rbx + 0x110], eax
mov rdx, rsi
lea rcx, [rbx + 8]
call fcn.140002800
test byte [rbx + 0x10c], 4
je 0x1400065d3
lea r9, [rbx + 8]
mov r8, rbp
lea rdx, str._s_s.txt
lea rcx, [rsp + 0x20]
call fcn.140002800
lea rdx, [0x14006df94]
lea rcx, [rsp + 0x20]
call fcn.140041ce8
mov qword [rbx + 0x118], rax
test rax, rax
jne 0x1400065d3
lea rcx, str.fopen_failed.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
and dword [rbx + 0x10c], 0xfffffffb
lea r11, [rsp + 0x130]
mov rax, rbx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140006760
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 0x140006865
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.140002800
test ebp, ebp
je 0x1400067ff
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.140002800
jmp 0x140006821
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.140002800
mov eax, dword [rbx + 0x10c]
mov rsi, qword [rsp + 0x450]
test al, 1
je 0x140006844
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [rbx + 0x10c]
test al, 4
je 0x140006865
mov rcx, qword [rbx + 0x118]
lea rdx, [rsp + 0x40]
call fcn.140006900
mov rcx, qword [rbx + 0x118]
call fcn.1400419ac
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140006cc0
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 0x140006d19
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x140006d0c
lea r8, str.DeleteRegKey_RegOpenKeyEx_failed.
lea edx, [rbx + 7]
call fcn.1400066e0
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 0x140006d4d
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x140006d4b
mov r9, rdi
lea r8, str.DeleteRegKey_RegDeleteKey_failed_for_pcPath___s.
mov edx, 8
call fcn.1400066e0
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 0x140006d70
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 0x140006df6
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x140006de4
mov r9, rsi
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s.
lea edx, [rbx + 7]
call fcn.1400066e0
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 0x140006e2a
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x140006e28
mov r9, rdi
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s.
mov edx, 8
call fcn.1400066e0
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 0x140007100
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 0x140007181
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x14000716f
lea r9, str.SoftwareAMDEEU
lea r8, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s.
lea edx, [rbx + 7]
call fcn.1400066e0
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 0x1400071d5
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x1400071d3
mov r9, rdi
lea r8, str.ReadRegKey_RegGetValue_failed_for_value___s.
mov edx, 8
call fcn.1400066e0
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 0x140007200
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 0x14000724c
sub r9d, edi
je 0x140007245
sub r9d, edi
je 0x14000723e
cmp r9d, edi
je 0x140007237
mov ebx, edi
jmp 0x140007251
mov ebx, 0x20
jmp 0x140007251
mov ebx, 2
jmp 0x140007251
mov ebx, 8
jmp 0x140007251
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 0x140007292
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x14000728e
mov r9, rsi
lea r8, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s.
mov edx, 8
call fcn.1400066e0
xor eax, eax
jmp 0x1400072fb
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 0x1400072ee
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x1400072ec
mov r9, rbp
lea r8, str.ReadRegKey_RegGetValue_failed_for_value___s.
mov edx, 8
call fcn.1400066e0
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 0x140007630
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 0x14000766d
sub r9d, edi
je 0x140007666
cmp r9d, edi
je 0x140007662
xor ebx, ebx
jmp 0x140007672
mov ebx, edi
jmp 0x140007672
mov ebx, 3
jmp 0x140007672
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 0x1400076d2
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x1400076ce
mov r9, rsi
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s.
mov edx, 8
call fcn.1400066e0
xor eax, eax
jmp 0x140007731
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 0x140007724
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x140007722
mov r9, rbp
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s.
mov edx, 8
call fcn.1400066e0
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 0x140007750
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 0x1400077cc
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x1400077c8
mov r9, rsi
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s.
lea edx, [rbx + 7]
call fcn.1400066e0
xor eax, eax
jmp 0x140007823
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 0x140007816
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x140007814
mov r9, rdi
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s.
mov edx, 8
call fcn.1400066e0
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 0x140009450
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov edx, edx
mov rbx, rcx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx], rax
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x1400094b0
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
test rcx, rcx
jne 0x1400094e2
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x140009515
lea r8, str.ConnectPipe_hPipe_.
mov edx, 1
call fcn.140006880
xor eax, eax
add rsp, 0x28
ret
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14000951c
lea rcx, [rsp + 0x30]
call fcn.140007840
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x140009515
lea r8, str.Client_failed_to_connect.
mov edx, 1
call fcn.140006880
xor eax, eax
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x140009530
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x80
mov rbx, rcx
test rcx, rcx
jne 0x140009556
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x1400095c0
lea r8, str.CreatePipe_Empty_Pipe_Name.
jmp 0x1400095b6
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140007870
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 0x1400095c2
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x1400095c0
lea r8, str.Invalid_handle_to_pipe.
mov edx, 1
call fcn.140006880
xor eax, eax
add rsp, 0x80
pop rbx
ret

Function at 0x140009610
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 0x140009646
cmp dword [rsp + 0x50], 0x620
jne 0x140009646
mov eax, 1
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x140009669
lea r8, str.ReadPipe_ReadFile_failed.
mov edx, 1
call fcn.1400066e0
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400096c0
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 0x1400096f3
cmp dword [rsp + 0x50], 0x2c
jne 0x1400096f3
mov eax, 1
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140086ce0]
test rcx, rcx
je 0x140009719
mov r9d, eax
lea r8, str.WritePipe_Failed._Error_Mesg:___d
mov edx, 1
call fcn.140006880
xor eax, eax
add rsp, 0x38
ret
Function at 0x140056a50
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140056a80
xor eax, eax
jmp 0x140056b43
mov rbp, rbx
cmp word [rax], si
je 0x140056aa5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140056a8c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140056a88
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140052bdc
movsxd r14, eax
test eax, eax
jne 0x140056ae3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140056a79
mov rcx, r14
call fcn.14004a768
mov rdi, rax
test rax, rax
jne 0x140056afc
xor ecx, ecx
call fcn.14004a72c
jmp 0x140056ad8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140052bdc
test eax, eax
jne 0x140056b2d
mov rcx, rdi
call fcn.14004a72c
jmp 0x140056b37
xor ecx, ecx
call fcn.14004a72c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret