joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b8f0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rdi, rcx
call fcn.140005ec0
xor esi, esi
mov dword [rbp + 0x6f], esi
mov rcx, qword [rdi + 0x330]
lea rbx, [rsi - 1]
test rcx, rcx
je 0x14001b949
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14001b949
mov rax, qword [rcx]
lea r8, [rbp + 0x6f]
mov edx, 0x10000003
mov rax, qword [rax + 0x30]
call qword [case.0x14000eb75.0]
cmp dword [rbp + 0x6f], esi
jne 0x14001b9c3
lea rax, [rbp - 0x29]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], si
mov r8d, 2
lea rdx, [0x140050ce4]
lea rcx, [rbp - 0x29]
call fcn.14000cfd0
nop
call fcn.140013cc0
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], 7
mov word [rbp - 9], si
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x14001b990
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.14000cfd0
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.1400199d0
mov r8d, 1
call fcn.14001b7e0
xor edx, edx
lea rcx, [rbp + 0x17]
call fcn.140022af0
nop
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r9d, 1
lea r8, str.SoftwareSynapticsSynTPInstall
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x17]
call fcn.140022d20
test eax, eax
je 0x14001ba0f
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, str.UnInstallRemoveUserSettings
lea rcx, [rbp + 0x1f]
call fcn.140023a40
lea rax, [rbp - 9]
mov qword [rbp + 0x67], rax
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], 7
mov word [rbp - 9], si
mov r8d, 0xd
lea rdx, str._usersettings
lea rcx, [rbp - 9]
call fcn.14000cfd0
nop
call fcn.140013cc0
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], si
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14001ba53
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.14000cfd0
nop
lea r8, [rbp - 9]
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.1400199d0
call fcn.14001d3c0
mov ecx, 0x3f
call fcn.140006580
lea rcx, str.HKLM_SoftwareSynapticsSynTPFilterHID
call fcn.140006220
lea rdx, [0x14004e020]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
lea rcx, str.HKLM_SystemCurrentControlSetServicesSynTPEnhService
call fcn.140006220
mov rcx, rdi
call fcn.14001baf0
call fcn.14001f590
mov rcx, rax
call fcn.14001e4a0
nop
lea rcx, [rbp + 0x17]
call fcn.140022bf0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001e3d0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x14005a318]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov dword [rsp + 0x20], r8d
mov r9, rdx
lea r8, str._s_failed_w_err_0x_08lx
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.14001ddc0
mov rdx, qword [rdi + 0x58]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14001e478
mov rcx, qword [rdi + 0x58]
lea rax, [rsp + 0x60]
mov edx, 1
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov r8d, edx
mov dword [rsp + 0x30], ecx
lea r9d, [rdx + 1]
mov word [rsp + 0x28], r9w
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140023ea0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret
Function at 0x14001e4a0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005a318]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov rdi, rcx
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x38], eax
xor ecx, ecx
lea r8d, [rax + 1]
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14001e4fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140012c70
jmp 0x14001e621
mov r8d, 0x10024
mov qword [rsp + 0x68], rbx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14001e540
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x14001e538
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140012c70
mov rcx, rsi
jmp 0x14001e616
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14001e5d8
mov rdx, rdi
lea rcx, str.Stopping__s.
call fcn.140012c70
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14001e5b9
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x14001e5bd
lea rcx, [0x14004f15c]
call fcn.140012c70
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14001e587
mov eax, dword [rsp + 0x24]
lea rcx, str._n_s_is_stopped._n
mov rdx, rdi
cmp eax, 1
je 0x14001e5d3
lea rcx, str._n_s_failed_to_stop._n
call fcn.140012c70
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14001e5fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.140012c70
jmp 0x14001e60a
mov rdx, rdi
lea rcx, str._s_is_removed._n
call fcn.140012c70
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140023ea0
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14001e640
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005a318]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov rsi, rcx
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x38], eax
xor ecx, ecx
lea r8d, [rax + 1]
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14001e69e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140012c70
jmp 0x14001e788
mov r8d, 0x24
mov qword [rsp + 0x68], rbx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14001e6e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x14001e6d8
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140012c70
mov rcx, rdi
jmp 0x14001e77d
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14001e771
mov rdx, rsi
lea rcx, str.Stopping__s.
call fcn.140012c70
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14001e752
nop dword [rax + rax]
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x14001e756
lea rcx, [0x14004f15c]
call fcn.140012c70
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14001e720
mov eax, dword [rsp + 0x24]
lea rcx, str._n_s_is_stopped._n
mov rdx, rsi
cmp eax, 1
je 0x14001e76c
lea rcx, str._n_s_failed_to_stop._n
call fcn.140012c70
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140023ea0
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14001e7a0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov ebp, edx
mov rsi, rcx
test edx, edx
je 0x14001e7c7
neg r8d
sbb ebx, ebx
add ebx, 3
jmp 0x14001e7d1
mov ebx, 4
call fcn.14001e640
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14001e800
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed___d__n
call fcn.140012c70
jmp 0x14001e8b6
mov r8d, 2
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14001e830
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed___d__n
call fcn.140012c70
jmp 0x14001e8ad
xor eax, eax
mov r9d, 0xffffffff
mov qword [rsp + 0x50], rax
mov r8d, ebx
mov qword [rsp + 0x48], rax
mov edx, r9d
mov qword [rsp + 0x40], rax
mov rcx, rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14001e884
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ChangeServiceConfig_failed___d__n
call fcn.140012c70
jmp 0x14001e8a4
test ebp, ebp
lea rax, str.enabled
lea rdx, str.disabled
cmovne rdx, rax
lea rcx, str.Service__s_successfully._n
call fcn.140012c70
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x14001ed50
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14001ed63
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001edb4
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14001ed7b
mov rcx, qword [rbx]
mov edx, 0x80
call fcn.14003206c
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14001ed92
mov rcx, qword [rbx]
call fcn.140032108
test eax, eax
je 0x14001edb4
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14001eda8
mov rcx, qword [rbx]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, rbx
call fcn.14000c530
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140023460
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx + 0x10]
mov rsi, rdx
cmp rcx, 0xffffffff80000002
jne 0x1400234a8
cmp dword [rbx + 0x18], 0
jne 0x1400234b1
mov r8d, 0x2e9
lea rdx, str.F:CheckPointsTPDrv_builderSuperMan1SynOsLibSynOsLibRegistryEx.cpp
lea rcx, str.m_hKey___HKEY_LOCAL_MACHINE__m_bWriteHKLM
call fcn.14000eb80
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140023531
test rsi, rsi
je 0x140023531
xor ebx, ebx
mov qword [rsp + 0x78], rcx
test rdi, rdi
je 0x1400234ff
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x78]
mov rdx, rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140023531
mov rcx, qword [rsp + 0x78]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test rdi, rdi
je 0x14002351a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x68]
xor eax, eax
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140023550
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, r8d
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140023576
test rdx, rdx
jne 0x140023593
mov r8d, 0x2d3
lea rdx, str.F:CheckPointsTPDrv_builderSuperMan1SynOsLibSynOsLibRegistryEx.cpp
lea rcx, str.m_hKey__pszSubKeyNameBuf
call fcn.14000eb80
mov rcx, qword [rbx + 0x10]
mov edx, dword [rbx + 0x20]
mov r9d, esi
mov r8, rdi
lea eax, [rdx + 1]
mov dword [rbx + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov rbx, qword [rsp + 0x30]
xor ecx, ecx
mov rsi, qword [rsp + 0x38]
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1400235d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov r14d, ebx
test r9, r9
je 0x1400235f9
mov r14d, dword [r9]
test r15, r15
je 0x1400236c3
test rsi, rsi
je 0x1400236c3
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400236b4
mov qword [rsp + 0x30], rcx
cmp qword [rsp + 0x80], rbx
je 0x140023651
mov rdx, qword [rsp + 0x80]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400236b4
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
cmp qword [rsp + 0x80], rbx
je 0x140023691
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x1400236b4
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x1400236ab
cmp eax, 3
jne 0x1400236b0
cmp dword [rsp + 0x68], 4
jne 0x1400236b0
mov ebx, 1
mov eax, ebx
jmp 0x1400236c5
test rdi, rdi
je 0x1400236c3
mov dword [rsi], r14d
mov eax, 1
jmp 0x1400236c5
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400236e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
mov r12, r9
mov rsi, r8
mov r15, rdx
mov rdi, rcx
cmp r8, rbx
jne 0x140023728
mov r8d, 0x126
lea rdx, str.F:CheckPointsTPDrv_builderSuperMan1SynOsLibSynOsLibRegistryEx.cpp
lea rcx, str.pszValue___pszDefaultValue
call fcn.14000eb80
xor ebp, ebp
mov qword [rsp + 0x60], r14
mov r13d, ebp
test r15, r15
je 0x14002389b
test rsi, rsi
je 0x14002389b
test r12, r12
je 0x14002389b
mov rcx, qword [rdi + 0x10]
lea rdi, [rbp - 1]
test rcx, rcx
je 0x14002385a
mov r14, qword [rsp + 0x88]
mov r13d, dword [r12]
mov qword [rsp + 0x68], rcx
test r14, r14
je 0x14002379d
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002385a
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], r12
lea r9, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test r14, r14
je 0x1400237ce
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x80]
cmp ecx, 2
jne 0x14002383f
mov eax, 2
mul r13
cmovo rax, rdi
mov rcx, rax
call fcn.1400246c8
mov r14, rax
test rax, rax
je 0x140023838
mov r8d, r13d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rsi
mov rcx, r14
sub rdx, r14
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140023810
mov rax, rdi
inc rax
cmp word [rsi + rax*2], bp
jne 0x140023823
mov rcx, r14
mov dword [r12], eax
call fcn.1400243b8
mov ecx, dword [rsp + 0x80]
test r15d, r15d
jne 0x14002385a
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140023851
cmp ecx, 7
jne 0x140023856
mov ebp, 1
mov eax, ebp
jmp 0x14002389d
test rbx, rbx
je 0x14002389b
nop
cmp word [rbx + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x140023860
lea ecx, [rdi*2 + 2]
cmp ecx, r13d
ja 0x14002389b
sub rsi, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rsi + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140023880
mov dword [r12], ecx
mov eax, 1
jmp 0x14002389d
xor eax, eax
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140023a40
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
mov dword [r11 + 0x18], r8d
push rdi
sub rsp, 0x60
mov rcx, qword [rcx + 0x10]
mov rdi, r9
mov rsi, rdx
test rcx, rcx
je 0x140023af3
test rdx, rdx
je 0x140023af3
xor ebx, ebx
mov qword [r11 - 0x18], rcx
test r9, r9
je 0x140023ab3
lea rax, [r11 + 8]
xor r9d, r9d
mov qword [r11 - 0x28], rax
xor r8d, r8d
lea rax, [r11 - 0x18]
mov rdx, rdi
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140023af5
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x80]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test rdi, rdi
je 0x140023aec
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
jmp 0x140023af5
xor ebx, ebx
mov rsi, qword [rsp + 0x88]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140023b10
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rsi, r9
mov rdi, r8
mov rbp, rdx
test r8, r8
jne 0x140023b30
xor eax, eax
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [r8 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140023b40
cmp dword [rsp + 0xa0], 0
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], r14
lea r14d, [rax*2 + 2]
jne 0x140023bdd
test rcx, rcx
je 0x140023c70
test rbp, rbp
je 0x140023c70
xor ebx, ebx
mov qword [rsp + 0x50], rcx
test rsi, rsi
je 0x140023bd5
lea rax, [rsp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140023c72
mov rcx, qword [rsp + 0x50]
mov r9d, 1
jmp 0x140023c41
test rcx, rcx
je 0x140023c70
test rbp, rbp
je 0x140023c70
xor ebx, ebx
mov qword [rsp + 0x50], rcx
test rsi, rsi
je 0x140023c3b
lea rax, [rsp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140023c72
mov rcx, qword [rsp + 0x50]
mov r9d, 2
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rsi, rsi
je 0x140023c69
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete bl
jmp 0x140023c72
xor ebx, ebx
mov r14, qword [rsp + 0x88]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140032108
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140032128
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140030c68
or eax, 0xffffffff
jmp 0x14003212a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140037690
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14003766d
call fcn.140030cf4
mov dword [rax], 0x16
call fcn.1400303d4
or eax, 0xffffffff
jmp 0x14003768a
sub dword [rcx + 0x10], 1
jns 0x14003767c
add rsp, 0x28
jmp 0x14003de84
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14003764c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14003deb6
call fcn.140030cf4
mov dword [rax], 0x16
call fcn.1400303d4
jmp 0x14003dfd5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14003dfd5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14003dfd5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14003dee5
lock or dword [rcx + 0x14], 0x10
jmp 0x14003dfd5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14003def9
call fcn.14003dff8
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400360c0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14003f0e4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14003dfc3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14003df8e
mov rcx, rsi
call fcn.1400360c0
cmp eax, edi
je 0x14003df79
mov rcx, rsi
call fcn.1400360c0
cmp eax, 0xfffffffe
je 0x14003df79
mov rcx, rsi
call fcn.1400360c0
movsxd rbx, eax
lea r14, [0x14005c6a0]
mov rcx, rsi
sar rbx, 6
call fcn.1400360c0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14003df80
lea rdx, [0x14005a480]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14003df8e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14003dfb2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14003dfb2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14003dfb2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14003dfd8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140039068
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400390ef
mov rsi, rbx
cmp word [rax], bp
je 0x1400390ae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140039098
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140039094
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140034db0
mov rdi, rax
test rax, rax
je 0x1400390dc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400266b0
mov rbp, rdi
xor ecx, ecx
call fcn.1400340dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret