joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014610
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400442d0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
mov rdi, rcx
or rbx, 0xffffffffffffffff
mov qword [rcx], rax
mov qword [rsp + 0x30], rax
call fcn.14000e170
cmp word [rax], 0
je 0x1400146a4
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x38], 0x38
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call fcn.14000e170
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400146a4
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x140047e9c]
test al, 1
jne 0x1400146c5
or eax, 1
mov dword [0x140047e9c], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140047e84], eax
jmp 0x1400146cb
mov eax, dword [0x140047e84]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400146f1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x140047e84]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x70]
lea rcx, str.SynCom.PointingDevice
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x140014724
xor edx, edx
lea r9, [0x14003a1f0]
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140014736
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x140014745
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140018e90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret

Function at 0x140014fe0
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, 0x60
mov rbp, rdx
mov rdx, qword [rcx + 0x58]
xorps xmm0, xmm0
mov rdi, rcx
xor ecx, ecx
movzx esi, r8w
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140015069
mov rcx, qword [rdi + 0x58]
mov edx, 2
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
xor ecx, ecx
lea r8d, [rdx - 1]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], dx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, rbx
movzx edx, si
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140015090
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1400442d0]
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
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.140014a20
mov rdx, qword [rdi + 0x58]
xor ecx, ecx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140015141
mov rcx, qword [rdi + 0x58]
mov edx, 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rcx
xor ecx, ecx
lea r9d, [rdx + 1]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], r9w
mov qword [rsp + 0x20], rcx
mov r8d, edx
xor r9d, r9d
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.140018e90
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret

Function at 0x140015170
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbx
push rsi
sub rsp, 0x298
mov rax, qword [0x1400442d0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x72]
mov r8d, 0x106
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movsxd rcx, eax
test eax, eax
jne 0x1400151c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14001a4cc
jmp 0x140015238
lea eax, [rcx + 2]
mov edx, 0x22
mov word [rsp + rcx*2 + 0x72], dx
movsxd rcx, eax
mov word [rsp + 0x70], dx
add rcx, rcx
cmp rcx, 0x20c
jae 0x1400152f6
mov qword [rsp + 0x2c0], rbp
xor ebp, ebp
xor edx, edx
mov word [rsp + rcx + 0x70], bp
lea r8d, [rbp + 3]
xor ecx, ecx
mov qword [rsp + 0x290], rdi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140015252
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14001a4cc
mov rbp, qword [rsp + 0x2c0]
mov rdi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140018e90
add rsp, 0x298
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x58], rbp
lea rax, [0x140037874]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x70]
mov r9d, 4
mov r8, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbx, rax
test rax, rax
jne 0x1400152c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14001a4cc
jmp 0x1400152d6
lea rcx, str._s_is_installed._n
mov rdx, rsi
call fcn.14001a4cc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x140015228
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140015228
call fcn.14001a2d8
int3
Function at 0x140015300
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400442d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov rdi, rcx
xor edx, edx
lea r8d, [rax + 1]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140015360
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14001a4cc
jmp 0x14001548f
mov r8d, 0x10024
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x68], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x1400153a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x140015473
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14001a4cc
jmp 0x140015473
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140015441
lea rcx, str.Stopping__s.
mov rdx, rdi
call fcn.14001a4cc
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 0x140015422
nop word [rax + rax]
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x140015426
lea rcx, [0x140038a5c]
call fcn.14001a4cc
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 0x1400153f0
mov eax, dword [rsp + 0x24]
mov rdx, rdi
lea rcx, str._n_s_is_stopped._n
cmp eax, 1
je 0x14001543c
lea rcx, str._n_s_failed_to_stop._n
call fcn.14001a4cc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140015464
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14001a4cc
jmp 0x140015473
lea rcx, str._s_is_removed._n
mov rdx, rdi
call fcn.14001a4cc
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x14001548a
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.140018e90
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400154b0
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400442d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov rdi, rcx
xor edx, edx
lea r8d, [rax + 1]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140015510
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14001a4cc
jmp 0x1400155fd
mov r8d, 0x24
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x68], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140015553
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x1400155e1
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14001a4cc
jmp 0x1400155e1
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400155e1
lea rcx, str.Stopping__s.
mov rdx, rdi
call fcn.14001a4cc
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400155c2
nop dword [rax + rax]
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x1400155c6
lea rcx, [0x140038a5c]
call fcn.14001a4cc
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 0x140015590
mov eax, dword [rsp + 0x24]
mov rdx, rdi
lea rcx, str._n_s_is_stopped._n
cmp eax, 1
je 0x1400155dc
lea rcx, str._n_s_failed_to_stop._n
call fcn.14001a4cc
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x1400155f8
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.140018e90
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140015620
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 0x140015647
neg r8d
sbb ebx, ebx
add ebx, 3
jmp 0x140015651
mov ebx, 4
call fcn.1400154b0
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140015680
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___d__n
mov edx, eax
call fcn.14001a4cc
jmp 0x140015734
mov r8d, 2
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x1400156b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed___d__n
mov edx, eax
call fcn.14001a4cc
jmp 0x14001572b
xor eax, eax
or r9d, 0xffffffff
mov r8d, ebx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
or edx, r9d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x140015702
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14001a4cc
jmp 0x140015722
lea rax, str.enabled
test ebp, ebp
lea rdx, str.disabled
lea rcx, str.Service__s_successfully._n
cmovne rdx, rax
call fcn.14001a4cc
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 0x1400157e0
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 0x1400157f3
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001584a
cmp qword [rbx + 0x18], 8
jb 0x14001580a
mov rcx, qword [rbx]
jmp 0x14001580d
mov rcx, rbx
mov edx, 0x80
call fcn.14001b134
cmp qword [rbx + 0x18], 8
jb 0x140015823
mov rcx, qword [rbx]
jmp 0x140015826
mov rcx, rbx
call fcn.14001b468
test eax, eax
je 0x14001584a
cmp qword [rbx + 0x18], 8
jb 0x14001583b
mov rcx, qword [rbx]
jmp 0x14001583e
mov rcx, rbx
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp qword [rbx + 0x18], 8
jb 0x140015859
mov rcx, qword [rbx]
call fcn.140018e6c
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140016ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov ebp, r8d
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov eax, dword [0x1400462f8]
test al, 1
jne 0x140016d0a
or eax, 1
mov dword [0x1400462f8], eax
mov qword [0x1400462f0], 7
mov qword [0x1400462e8], r14
mov word [0x1400462d8], r14w
lea rcx, [0x14002e410]
call fcn.1400195b8
cmp qword [0x1400462e8], 0
jne 0x140016e24
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140017a70
nop
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPInstall
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.140017ce0
test eax, eax
je 0x140016e1a
mov word [rsp + 0x70], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x72]
call fcn.14001bcd0
mov dword [rsp + 0x2c8], 0x208
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x2c8]
lea r8, [rsp + 0x70]
lea rdx, str.ProgDir
lea rcx, [rsp + 0x40]
call fcn.1400183a0
test eax, eax
je 0x140016e1a
cmp word [rsp + 0x70], 0
jne 0x140016dae
mov r8, r14
jmp 0x140016dcb
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140016dc0
lea rdx, [rsp + 0x70]
lea rcx, [0x1400462d8]
call fcn.14000c8f0
mov edx, 0x5c
or r8, 0xffffffffffffffff
lea rcx, [0x1400462d8]
call fcn.14000b8e0
mov rcx, qword [0x1400462e8]
dec rcx
cmp rax, rcx
je 0x140016e1a
mov r8d, 1
lea rdx, [0x140037840]
lea rcx, [0x1400462d8]
call fcn.14000d750
nop
lea rcx, [rsp + 0x38]
call fcn.140017b90
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov dword [rsp + 0x30], 1
cmp qword [0x1400462e8], 0
je 0x140016ed3
mov r8, rdi
lea rdx, [0x1400462d8]
lea rcx, [rsp + 0x38]
call fcn.14000d460
mov rsi, rax
cmp rbx, rax
je 0x140016e90
cmp qword [rbx + 0x18], 8
jb 0x140016e75
mov rcx, qword [rbx]
call fcn.140018e6c
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov rdx, rsi
mov rcx, rbx
call fcn.14000c2e0
cmp qword [rsp + 0x50], 8
jb 0x140016ea2
mov rcx, qword [rsp + 0x38]
call fcn.140018e6c
test ebp, ebp
je 0x140016ed3
cmp qword [rbx + 0x18], 8
jb 0x140016eb2
mov rcx, qword [rbx]
jmp 0x140016eb5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140016ed3
xor r8d, r8d
lea rdx, [0x140037874]
mov rcx, rbx
call fcn.14000c8f0
nop
cmp qword [rdi + 0x18], 8
jb 0x140016ee2
mov rcx, qword [rdi]
call fcn.140018e6c
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r14
mov word [rdi], r14w
mov rax, rbx
add rsp, 0x280
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400172a0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x288]
sub rsp, 0x360
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rsi, r9
mov r14d, r8d
mov rbx, rdx
mov rdi, rcx
mov edx, 0x104
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov qword [rsp + 0x68], 7
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
cmp word [rbp + 0x50], r15w
jne 0x14001730a
mov r8d, r15d
jmp 0x14001731c
lea rax, [rbp + 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140017312
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14000c8f0
nop
lea r8, [0x140037840]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14000d380
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000d420
nop
cmp qword [rbp - 0x78], 8
jb 0x140017364
mov rcx, qword [rsp + 0x70]
call fcn.140018e6c
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r15
mov word [rsp + 0x70], r15w
cmp qword [rsp + 0x68], 8
jb 0x140017388
mov rcx, qword [rsp + 0x50]
call fcn.140018e6c
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
lea rax, [rbp - 0x70]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r15
mov word [rbp - 0x70], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.14000c350
nop
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.14000c350
nop
mov dword [rsp + 0x20], r15d
mov r9d, 0x440
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x20]
call fcn.140017640
test eax, eax
je 0x14001749e
test r14d, r14d
je 0x140017443
or edx, 0xffffffff
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test rsi, rsi
je 0x140017438
mov rdx, rsi
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x48], 8
jb 0x140017455
mov rcx, qword [rsp + 0x30]
call fcn.140018e6c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r15
mov word [rsp + 0x30], r15w
cmp qword [rdi + 0x18], 8
jb 0x140017478
mov rcx, qword [rdi]
call fcn.140018e6c
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r15
mov word [rdi], r15w
cmp qword [rbx + 0x18], 8
jb 0x140017497
mov rcx, qword [rbx]
call fcn.140018e6c
mov eax, 1
jmp 0x1400174f4
cmp qword [rsp + 0x48], 8
jb 0x1400174b0
mov rcx, qword [rsp + 0x30]
call fcn.140018e6c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r15
mov word [rsp + 0x30], r15w
cmp qword [rdi + 0x18], 8
jb 0x1400174d3
mov rcx, qword [rdi]
call fcn.140018e6c
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r15
mov word [rdi], r15w
cmp qword [rbx + 0x18], 8
jb 0x1400174f2
mov rcx, qword [rbx]
call fcn.140018e6c
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x360
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140017640
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rdx + 0x18], 8
mov esi, r9d
mov rdi, r8
mov rbx, rdx
mov r14, rcx
jb 0x14001766d
mov rcx, qword [rdx]
jmp 0x140017670
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400176b1
cmp qword [rbx + 0x18], 8
jb 0x14001768a
mov rcx, qword [rbx]
call fcn.140018e6c
xor esi, esi
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
cmp qword [rdi + 0x18], 8
jb 0x1400176aa
mov rcx, qword [rdi]
call fcn.140018e6c
xor eax, eax
jmp 0x140017757
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x30], rbp
lea r8d, [rdx + 0x70]
call fcn.14001bcd0
mov dword [r14 + 4], esi
xor esi, esi
lea rax, str.open
mov dword [r14], 0x70
mov qword [r14 + 8], rsi
mov qword [r14 + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x1400176ec
mov rax, qword [rbx]
jmp 0x1400176ef
mov rax, rbx
mov qword [r14 + 0x18], rax
cmp qword [rdi + 0x18], 8
jb 0x1400176ff
mov rax, qword [rdi]
jmp 0x140017702
mov rax, rdi
cmp dword [rsp + 0x50], 1
mov qword [r14 + 0x20], rax
mov eax, esi
sete al
mov rcx, r14
mov qword [r14 + 0x28], rsi
mov dword [r14 + 0x30], eax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp qword [rbx + 0x18], 8
mov ebp, eax
jb 0x140017732
mov rcx, qword [rbx]
call fcn.140018e6c
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
cmp qword [rdi + 0x18], 8
jb 0x140017750
mov rcx, qword [rdi]
call fcn.140018e6c
mov eax, ebp
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140018140
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x10], 0xffffffff80000002
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x140018181
cmp dword [rcx + 0x18], 0
jne 0x140018181
lea rdx, str.RegistryEx.cpp
lea rcx, str.m_hKey___HKEY_LOCAL_MACHINE__m_bWriteHKLM
mov r8d, 0x2e9
call fcn.1400010d0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001820e
test rsi, rsi
je 0x14001820e
xor ebx, ebx
mov qword [rsp + 0x78], rcx
test rdi, rdi
je 0x1400181dc
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
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 0x14001820e
mov rcx, qword [rsp + 0x78]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test rdi, rdi
je 0x1400181f7
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]
mov rsi, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x140018220
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
je 0x140018244
test rdx, rdx
jne 0x14001825d
lea rdx, str.RegistryEx.cpp
lea rcx, str.m_hKey__pszSubKeyNameBuf
mov r8d, 0x2d3
call fcn.1400010d0
mov edx, dword [rbx + 0x20]
mov rcx, qword [rbx + 0x10]
mov r9d, esi
lea eax, [rdx + 1]
mov r8, rdi
mov dword [rbx + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x20
pop rdi
ret

Function at 0x140018290
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 0x1400182b9
mov r14d, dword [r9]
test rdx, rdx
je 0x140018383
test r8, r8
je 0x140018383
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140018374
mov qword [rsp + 0x30], rcx
cmp qword [rsp + 0x80], rbx
je 0x140018311
mov rdx, qword [rsp + 0x80]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018374
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
cmp qword [rsp + 0x80], rbx
je 0x140018351
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x140018374
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x14001836b
cmp eax, 3
jne 0x140018370
cmp dword [rsp + 0x68], 4
jne 0x140018370
mov ebx, 1
mov eax, ebx
jmp 0x140018385
test rdi, rdi
je 0x140018383
mov dword [rsi], r14d
mov eax, 1
jmp 0x140018385
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret