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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, vtable.Service.0
xor edx, edx
mov rbx, rcx
mov qword [rcx], rax
lea rsi, [0x14003b7e0]
lea r8d, [rdx + 0x50]
mov rcx, rsi
call fcn.140008260
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov edi, eax
cmp eax, 0x13
ja 0x140003259
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov r8d, 8
mov edx, edi
xor ecx, ecx
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], rax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x140003259
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
jne 0x140003195
mov dword [rsi + rdi*4], 3
jmp 0x1400031a1
cmp eax, 1
jne 0x140003254
mov dword [rsi + rdi*4], eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [0x14003b7a0]
mov edx, edi
call fcn.140002bf0
mov rcx, qword [0x14003b7a0]
mov edx, edi
call fcn.140002950
test eax, eax
jne 0x140003202
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140003259
lea r9, str.Create_client_event_failed_for_session_id_u.
lea r8d, [rax + 1]
mov edx, 0x60004003
mov dword [rsp + 0x20], edi
call fcn.140003aa0
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, edi
call fcn.140002fc0
test eax, eax
je 0x14000322d
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x14000322d
lea r8, str.Client_started_at_service_start_time_for_session_id__u
mov r9d, edi
mov edx, 4
call fcn.140003d40
mov rcx, qword [0x14003b7a0]
xor r8d, r8d
mov edx, 0x200
call fcn.140002350
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call sub.WTSAPI32.dll_WTSFreeMemory
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140003870
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 rbx, rcx
mov qword [rcx], rax
xor eax, eax
lea rdx, [r11 + 8]
mov qword [rcx + 0x10c], rax
mov qword [rcx + 0x118], rax
lea rcx, str.LogOutputDebug
mov rbp, r8
mov dword [r11 + 8], eax
call fcn.140004400
test eax, eax
je 0x1400038d3
cmp dword [rsp + 0x140], 0
je 0x1400038d3
or dword [rbx + 0x10c], 1
lea rdx, [rsp + 0x140]
lea rcx, str.LogOutputERecord
call fcn.140004400
test eax, eax
je 0x1400038fc
cmp dword [rsp + 0x140], 0
je 0x1400038fc
or dword [rbx + 0x10c], 2
lea rdx, [rsp + 0x140]
lea rcx, str.LogOutputFile
call fcn.140004400
test eax, eax
je 0x140003925
cmp dword [rsp + 0x140], 0
je 0x140003925
or dword [rbx + 0x10c], 4
lea rdx, [rsp + 0x140]
lea rcx, str.LogMaskLevel
call fcn.140004400
test eax, eax
je 0x14000394e
mov eax, dword [rsp + 0x140]
test eax, eax
je 0x14000394e
mov dword [rbx + 0x110], eax
lea rcx, [rbx + 8]
mov rdx, rsi
call fcn.140008188
test byte [rbx + 0x10c], 2
je 0x14000397c
xor r8d, r8d
xor ecx, ecx
lea edx, [r8 + 0x10]
call fcn.140007b50
test eax, eax
je 0x14000397c
and dword [rbx + 0x10c], 0xfffffffd
test byte [rbx + 0x10c], 4
je 0x1400039ce
lea r9, [rbx + 8]
lea rdx, str._s_s.txt
lea rcx, [rsp + 0x20]
mov r8, rbp
call fcn.140008188
lea rdx, [0x1400263e4]
lea rcx, [rsp + 0x20]
call fcn.1400090dc
mov qword [rbx + 0x118], rax
test rax, rax
jne 0x1400039ce
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 0x140003af0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
sub rsp, 0x640
mov rax, r8
mov rbx, rcx
test dword [rcx + 0x110], edx
je 0x140003be5
lea r8, [r11 + 0x20]
lea rcx, [r11 - 0x408]
mov rdx, rax
call fcn.1400094c0
mov eax, dword [rbx + 0x10c]
test al, 1
jne 0x140003b3a
test al, 4
je 0x140003be5
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x3c]
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 rdx, str._02d:_02d:_02d:_03d
lea rcx, [rsp + 0x440]
call fcn.140008188
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rbx + 8]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x240]
lea r9, [rsp + 0x440]
lea rdx, str._s__t_s__s_GetLastError___x_r_n
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140008188
test byte [rbx + 0x10c], 1
je 0x140003bbf
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [rbx + 0x10c], 4
je 0x140003be5
mov rcx, qword [rbx + 0x118]
lea rdx, [rsp + 0x40]
call fcn.1400091c0
mov rcx, qword [rbx + 0x118]
call fcn.140008ed8
add rsp, 0x640
pop rbx
ret
Function at 0x140003bf0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov eax, dword [rcx + 0x10c]
mov rsi, r9
mov ebp, r8d
mov edi, edx
mov rbx, rcx
test al, 1
jne 0x140003c24
test al, 4
je 0x140003cef
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x3c]
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 rdx, str._02d:_02d:_02d:_03d
lea rcx, [rsp + 0x250]
call fcn.140008188
test ebp, ebp
je 0x140003c93
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rbx + 8]
lea r9, [rsp + 0x250]
mov dword [rsp + 0x28], eax
lea rdx, str._s__t_s__s_GetLastError___x_r_n
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
call fcn.140008188
jmp 0x140003cb5
lea r8, [rbx + 8]
lea r9, [rsp + 0x250]
lea rdx, str._s__t_s__s_r_n
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
call fcn.140008188
test byte [rbx + 0x10c], 1
je 0x140003cc9
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [rbx + 0x10c], 4
je 0x140003cef
mov rcx, qword [rbx + 0x118]
lea rdx, [rsp + 0x50]
call fcn.1400091c0
mov rcx, qword [rbx + 0x118]
call fcn.140008ed8
test byte [rbx + 0x10c], 2
je 0x140003d1d
test edi, edi
je 0x140003d1d
xor eax, eax
lea rdx, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call fcn.140007a90
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140003d40
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
sub rsp, 0x640
mov rax, r8
mov rbx, rcx
test dword [rcx + 0x110], edx
je 0x140003e2b
lea r8, [r11 + 0x20]
lea rcx, [r11 - 0x408]
mov rdx, rax
call fcn.1400094c0
mov eax, dword [rbx + 0x10c]
test al, 1
jne 0x140003d8a
test al, 4
je 0x140003e2b
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x3c]
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 rdx, str._02d:_02d:_02d:_03d
lea rcx, [rsp + 0x440]
call fcn.140008188
lea rax, [rsp + 0x240]
lea r8, [rbx + 8]
lea r9, [rsp + 0x440]
lea rdx, str._s__t_s__s_r_n
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140008188
test byte [rbx + 0x10c], 1
je 0x140003e05
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [rbx + 0x10c], 4
je 0x140003e2b
mov rcx, qword [rbx + 0x118]
lea rdx, [rsp + 0x40]
call fcn.1400091c0
mov rcx, qword [rbx + 0x118]
call fcn.140008ed8
add rsp, 0x640
pop rbx
ret
Function at 0x140004060
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 rdi, r8
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rsi, rdx
mov dword [rsp + 0x20], 0
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1400040e6
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x1400040d4
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s.
lea edx, [rbx + 7]
mov r9, rsi
call fcn.140003af0
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 0x14000411a
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140004118
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s.
mov r9, rdi
mov edx, 8
call fcn.140003af0
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 0x140004140
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
lea rax, [rsp + 0x48]
mov rbp, r9
mov rdi, r8
mov r9d, 0xf003f
xor r8d, r8d
mov rsi, rdx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x140004201
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov r9d, 0xffff
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0x200
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov rdx, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x40]
mov ebx, eax
mov dword [rdx], ecx
test eax, eax
je 0x1400041f4
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x1400041f4
lea r8, str.GetMultiSzRegValue:_RegGetValue_failed_for_lpValueName___s.
mov r9, rdi
mov edx, 8
call fcn.140003af0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004221
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140004221
lea r8, str.GetMultiSzRegValue:_RegOpenKeyEx_failed_for_lpKeyPath___s.
mov r9, rsi
mov edx, 8
call fcn.140003af0
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140004400
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
lea rax, [rsp + 0x68]
mov rdi, rcx
lea rdx, str.SoftwareAMDEEU
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 4
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140004481
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x14000446f
lea r9, str.SoftwareAMDEEU
lea r8, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s.
lea edx, [rbx + 7]
call fcn.140003af0
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 r9d, 0x10
mov qword [rsp + 0x30], rax
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x1400044d5
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x1400044d3
lea r8, str.ReadRegKey_RegGetValue_failed_for_value___s.
mov r9, rdi
mov edx, 8
call fcn.140003af0
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 0x140004500
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 0x140004540
dec r9d
je 0x140004539
dec r9d
je 0x140004532
mov ebx, edi
jmp 0x140004545
mov ebx, 2
jmp 0x140004545
mov ebx, 8
jmp 0x140004545
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 0x140004586
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140004582
lea r8, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s.
mov r9, rsi
mov edx, 8
call fcn.140003af0
xor eax, eax
jmp 0x1400045ef
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
mov r9d, ebx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
mov r8, rbp
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x1400045e2
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x1400045e0
lea r8, str.ReadRegKey_RegGetValue_failed_for_value___s.
mov r9, rbp
mov edx, 8
call fcn.140003af0
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 0x1400046f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x30]
mov rbx, r9
mov rdi, r8
mov r9d, 0xf003f
xor r8d, r8d
mov rbp, rdx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test eax, eax
jne 0x1400047f2
test rdi, rdi
je 0x1400047de
test rbx, rbx
je 0x1400047de
mov rax, rbx
lea ecx, [rsi + 1]
cmp byte [rax], 0
jne 0x14000475c
cmp byte [rax + 1], 0
je 0x14000476b
cmp ecx, 0x200
jae 0x14000476b
inc rax
inc ecx
jmp 0x140004751
inc ecx
cmp ecx, 0x200
jae 0x1400047ca
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x30]
mov r9d, 7
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test eax, eax
je 0x1400047e3
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x1400047e3
lea r8, str.SetMultiSzRegValue:_RegSetValueEx_failed_for_lpValueName___s.
mov r9, rdi
mov edx, 8
call fcn.140003af0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140004814
mov rcx, qword [rsp + 0x30]
mov ebx, 0x7a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140004814
mov ebx, 0x57
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140004814
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140004812
lea r8, str.SetMultiSzRegValue:_RegOpenKeyEx_failed_for_lpKeyPath___s.
mov r9, rbp
mov edx, 8
call fcn.140003af0
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140004860
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 0x14000489d
dec r9d
je 0x140004896
dec r9d
je 0x140004892
xor ebx, ebx
jmp 0x1400048a2
mov ebx, edi
jmp 0x1400048a2
mov ebx, 3
jmp 0x1400048a2
mov ebx, 4
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
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 0x140004902
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x1400048fe
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s.
mov r9, rsi
mov edx, 8
call fcn.140003af0
xor eax, eax
jmp 0x140004961
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
mov r9d, ebx
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140004954
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140004952
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s.
mov r9, rbp
mov edx, 8
call fcn.140003af0
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 0x140005900
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov edx, edx
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 0x140005960
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
test rcx, rcx
jne 0x140005992
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x14000598b
lea r8, str.ConnectPipe_hPipe_.
mov edx, 1
call fcn.140003d40
xor eax, eax
add rsp, 0x28
ret
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400059cc
lea rcx, [rsp + 0x30]
call fcn.140004a70
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x14000598b
lea r8, str.Client_failed_to_connect.
mov edx, 1
call fcn.140003d40
xor eax, eax
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x1400059e0
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x80
mov rbx, rcx
test rcx, rcx
jne 0x140005a06
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140005a70
lea r8, str.CreatePipe_Empty_Pipe_Name.
jmp 0x140005a66
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140004aa0
mov edx, 3
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0xffffffff
lea r9d, [rdx + 0x1b]
lea r8d, [rdx + 3]
mov rcx, rbx
mov dword [rsp + 0x28], 0x2c
mov dword [rsp + 0x20], 0x620
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp rax, 0xffffffffffffffff
jne 0x140005a72
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140005a70
lea r8, str.Invalid_handle_to_pipe.
mov edx, 1
call fcn.140003d40
xor eax, eax
add rsp, 0x80
pop rbx
ret

Function at 0x140005a80
Capabilities:
Print debug messages

Disassembly:
test rcx, rcx
jne 0x140005aa2
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140005aa9
lea r8, str.DisconnectPipe_hPipe_is_NULL.
mov edx, 1
jmp fcn.140003d40
jmp qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
repz ret

Function at 0x140005ac0
Capabilities:
Read file on windows

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

Function at 0x140005b70
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
lea r9, [rsp + 0x50]
mov r8d, 0x2c
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140005ba3
cmp dword [rsp + 0x50], 0x2c
jne 0x140005ba3
mov eax, 1
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14003b7a8]
test rcx, rcx
je 0x140005bc9
lea r8, str.WritePipe_Failed._Error_Mesg:___d
mov r9d, eax
mov edx, 1
call fcn.140003d40
xor eax, eax
add rsp, 0x38
ret
Function at 0x140007900
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov esi, edx
movzx ebp, cx
lea rdx, str.ATIeRecord
xor ecx, ecx
mov rbx, r9
movzx edi, r8w
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
test rax, rax
je 0x14000797c
mov r9d, dword [rsp + 0x80]
xor ecx, ecx
movzx r8d, di
test r9d, r9d
mov r10d, ecx
movzx edx, bp
cmovne r10, rbx
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], r9d
mov word [rsp + 0x28], cx
mov qword [rsp + 0x20], rcx
mov r9d, esi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
je 0x14000797c
xor eax, eax
jmp 0x140007981
mov eax, 0x1005
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140007c40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x38]
mov rdi, rdx
mov rbx, r8
mov rdx, rcx
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140007cbb
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1401ba95c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14028c878]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14024baa8]
mov rbp, rcx
call fcn.1401c548c
xor edi, edi
test rax, rax
je 0x1401baa42
mov ebx, edi
call fcn.1401ae764
mov r14d, dword [rax]
call fcn.1401ae764
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401c53d8
mov rsi, rax
test rax, rax
je 0x1401ba9d3
call fcn.1401ae764
mov dword [rax], r14d
jmp 0x1401ba9fd
call fcn.1401ae764
cmp dword [rax], 0x22
jne 0x1401baa3a
call fcn.1401ae764
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401c53d8
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1401baa3a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1401baa01
cmp rax, 3
je 0x1401baa1c
mov rcx, rsi
call fcn.1401ba8b8
test al, al
je 0x1401baa2d
mov rcx, rbp
call qword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401baa2d
mov dil, 1
mov rcx, rbx
call fcn.1401ada14
mov al, dil
jmp 0x1401baa44
mov rcx, rbx
call fcn.1401ada14
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401a9850
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1401be428
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401be224