joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b410
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 [0x1400362d0]
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.1400080d0
cmp word [rax], 0
je 0x14000b4a4
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.1400080d0
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000b4a4
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x140039ea0]
test al, 1
jne 0x14000b4c5
or eax, 1
mov dword [0x140039ea0], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140039e98], eax
jmp 0x14000b4cb
mov eax, dword [0x140039e98]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14000b4f1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x140039e98]
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 0x14000b524
xor edx, edx
lea r9, [0x14002e288]
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 0x14000b536
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x14000b545
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000f8b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret

Function at 0x14000bce0
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 + 8]
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 0x14000bd69
mov rcx, qword [rdi + 8]
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 0x14000bd90
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1400362d0]
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.14000b820
mov rdx, qword [rdi + 8]
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 0x14000be41
mov rcx, qword [rdi + 8]
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.14000f8b0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret

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

Disassembly:
push rbx
push rsi
sub rsp, 0x298
mov rax, qword [0x1400362d0]
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 0x14000bec2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.140010ee0
jmp 0x14000bf38
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 0x14000bff6
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 0x14000bf52
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14002f380]
mov edx, eax
call fcn.140010ee0
mov rbp, qword [rsp + 0x2c0]
mov rdi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000f8b0
add rsp, 0x298
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x58], rbp
lea rax, [0x14002d74c]
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 0x14000bfc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.140010ee0
jmp 0x14000bfd6
lea rcx, str._s_is_installed._n
mov rdx, rsi
call fcn.140010ee0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x14000bf28
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000bf28
call fcn.140010cf8
int3
Function at 0x14000c290
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400362d0]
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 0x14000c318
test byte [0x1400362a8], 2
je 0x14000c2ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.OpenSCManager_failed_w_err_0x_08lx_n
lea edx, [rsi + 2]
lea rcx, str.StopService
mov r9d, eax
call fcn.14000e7a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14002f380]
mov edx, eax
call fcn.140010ee0
jmp 0x14000c475
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 0x14000c37f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x424
je 0x14000c459
test byte [0x1400362a8], 2
je 0x14000c36c
lea r8, str.OpenSCManager_failed_w_err_0x_08lx_n
lea edx, [rbx + 2]
lea rcx, str.StopService
mov r9d, eax
call fcn.14000e7a0
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
mov edx, edi
call fcn.140010ee0
jmp 0x14000c459
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000c459
lea rcx, str.Stopping__s.
mov rdx, rdi
call fcn.140010ee0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000c3f2
nop dword [rax + rax]
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x14000c3f6
lea rcx, [0x14002d81c]
call fcn.140010ee0
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 0x14000c3c0
mov eax, dword [rsp + 0x24]
cmp eax, 1
jne 0x14000c426
test byte [0x1400362a8], 2
je 0x14000c41d
lea r8, str._n_s_is_stopped._n
lea edx, [rax + 1]
lea rcx, str.StopService
mov r9, rdi
call fcn.14000e8a0
lea rcx, str._n_s_is_stopped._n
jmp 0x14000c451
test byte [0x1400362a8], 2
je 0x14000c44a
lea r8, str._n_s_failed_to_stop._n
lea rcx, str.StopService
mov r9, rdi
mov edx, 2
call fcn.14000e8a0
lea rcx, str._n_s_failed_to_stop._n
mov rdx, rdi
call fcn.140010ee0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x14000c470
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.14000f8b0
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14000c490
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 0x14000c4b7
neg r8d
sbb ebx, ebx
add ebx, 3
jmp 0x14000c4c1
mov ebx, 4
call fcn.14000c290
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14000c518
test byte [0x1400362a8], 2
je 0x14000c4ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.OpenSCManager_failed___d__n
lea edx, [rdi + 2]
lea rcx, str.EnableOrDisableService
mov r9d, eax
call fcn.14000e8a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___d__n
mov edx, eax
call fcn.140010ee0
jmp 0x14000c648
mov r8d, 2
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14000c573
test byte [0x1400362a8], 2
je 0x14000c55a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.OpenService_failed___d__n
lea edx, [rsi + 2]
lea rcx, str.EnableOrDisableService
mov r9d, eax
call fcn.14000e8a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed___d__n
mov edx, eax
call fcn.140010ee0
jmp 0x14000c63f
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 0x14000c5ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.140010ee0
test byte [0x1400362a8], 2
je 0x14000c636
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str._nChangeServiceConfig_failed___d__n
lea rcx, str.EnableOrDisableService
mov r9d, eax
mov edx, 2
call fcn.14000e8a0
jmp 0x14000c636
lea rax, str.enabled
lea rbx, str.disabled
test ebp, ebp
cmovne rbx, rax
lea rcx, str.Service__s_successfully._n
mov rdx, rbx
call fcn.140010ee0
test byte [0x1400362a8], 2
je 0x14000c636
lea r8, str.Service__s_successfully._n
lea rcx, str.EnableOrDisableService
mov r9, rbx
mov edx, 2
call fcn.14000e8a0
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 0x14000d8f0
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 [0x140038300]
test al, 1
jne 0x14000d95a
or eax, 1
mov dword [0x140038300], eax
mov qword [0x1400382f8], 7
mov qword [0x1400382f0], r14
mov word [0x1400382e0], r14w
lea rcx, [0x140023ef0]
call fcn.14000ffd8
cmp qword [0x1400382f0], 0
jne 0x14000daac
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14000e150
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.14000e3c0
test eax, eax
je 0x14000daa2
mov word [rsp + 0x70], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x72]
call fcn.140012360
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.14000f030
test eax, eax
je 0x14000daa2
cmp word [rsp + 0x70], 0
jne 0x14000da02
mov r8, r14
jmp 0x14000da1b
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14000da10
lea rdx, [rsp + 0x70]
lea rcx, [0x1400382e0]
call fcn.140006e40
mov edx, 0x5c
or r8, 0xffffffffffffffff
lea rcx, [0x1400382e0]
call fcn.1400064f0
mov rcx, qword [0x1400382f0]
dec rcx
cmp rax, rcx
je 0x14000da69
mov r8d, 1
lea rdx, [0x14002d748]
lea rcx, [0x1400382e0]
call fcn.1400079e0
test byte [0x1400362a8], 2
je 0x14000daa2
lea r9, [0x1400382e0]
cmp qword [0x1400382f8], 8
cmovae r9, qword [0x1400382e0]
lea r8, str.SynProgDir___s_n
mov edx, 2
lea rcx, str.GetSynRegistryProgDirEx
call fcn.14000e8a0
nop
lea rcx, [rsp + 0x38]
call fcn.14000e270
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov dword [rsp + 0x30], 1
cmp qword [0x1400382f0], 0
je 0x14000db5b
mov r8, rdi
lea rdx, [0x1400382e0]
lea rcx, [rsp + 0x38]
call fcn.1400076e0
mov rsi, rax
cmp rbx, rax
je 0x14000db18
cmp qword [rbx + 0x18], 8
jb 0x14000dafd
mov rcx, qword [rbx]
call fcn.14000f890
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov rdx, rsi
mov rcx, rbx
call fcn.1400068d0
cmp qword [rsp + 0x50], 8
jb 0x14000db2a
mov rcx, qword [rsp + 0x38]
call fcn.14000f890
test ebp, ebp
je 0x14000db5b
cmp qword [rbx + 0x18], 8
jb 0x14000db3a
mov rcx, qword [rbx]
jmp 0x14000db3d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000db5b
xor r8d, r8d
lea rdx, [0x14002d74c]
mov rcx, rbx
call fcn.140006e40
nop
cmp qword [rdi + 0x18], 8
jb 0x14000db6a
mov rcx, qword [rdi]
call fcn.14000f890
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 0x14000ee20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push r14
sub rsp, 0x48
xor ebx, ebx
mov r14, r9
mov rbp, rdx
mov esi, ebx
test r9, r9
je 0x14000ee40
mov esi, dword [r9]
test rdx, rdx
je 0x14000f01c
cmp qword [rsp + 0x80], rbx
je 0x14000f01c
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x40], rdi
test rcx, rcx
je 0x14000eebf
mov rdi, qword [rsp + 0x90]
mov qword [rsp + 0x30], rcx
test rdi, rdi
je 0x14000ef0a
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000ef0a
test byte [0x1400362a8], 4
je 0x14000eebf
lea r8, str.Couldnt_open_subkey:__s_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9, rdi
mov edx, 3
call fcn.14000e7a0
test r14, r14
je 0x14000f00b
test byte [0x1400362a8], 4
je 0x14000eeec
lea r8, str.Returning_default_value:_0x_08X_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9d, esi
mov edx, 3
call fcn.14000e7a0
mov rax, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x40]
mov dword [rax], esi
mov eax, 1
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
test byte [0x1400362a8], 4
je 0x14000ef2e
lea r8, str.Opened_subkey:__s_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9, rdi
mov edx, 3
call fcn.14000e7a0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x88], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test rdi, rdi
je 0x14000ef7b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x14000efac
test byte [0x1400362a8], 4
je 0x14000eebf
lea r8, str.Error_querying_value:__d_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9d, ebp
mov edx, 3
call fcn.14000e7a0
jmp 0x14000eebf
test byte [0x1400362a8], 4
je 0x14000efdd
mov eax, dword [rsp + 0x78]
lea r9, [rsp + 0x80]
lea r8, str.Read_0x_08X_successfully._Type_d._n
lea rcx, str.CRegistryEx::GetDWORD
mov edx, 3
mov dword [rsp + 0x20], eax
call fcn.14000e7a0
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x14000eff5
cmp eax, 3
jne 0x14000effa
cmp dword [rsp + 0x88], 4
jne 0x14000effa
mov ebx, 1
mov eax, ebx
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000f030
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 0x14000f078
lea rdx, str.RegistryEx.cpp
lea rcx, str.pszValue___pszDefaultValue
mov r8d, 0x126
call fcn.140007890
xor ebp, ebp
mov r13d, ebp
test r15, r15
je 0x14000f210
test rsi, rsi
je 0x14000f210
test r12, r12
je 0x14000f210
mov rcx, qword [rdi + 0x10]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x60], r14
test rcx, rcx
je 0x14000f1c5
mov r14, qword [rsp + 0x88]
mov r13d, dword [r12]
mov qword [rsp + 0x68], rcx
test r14, r14
je 0x14000f0ed
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f1c5
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test r14, r14
je 0x14000f11e
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x80]
cmp ecx, 2
jne 0x14000f190
mov eax, 2
mul r13
cmovo rax, rdi
mov rcx, rax
call fcn.14000f888
mov r14, rax
test rax, rax
je 0x14000f189
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]
lea rcx, [rcx + 2]
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x14000f160
mov rax, rdi
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000f174
mov rcx, r14
mov dword [r12], eax
call fcn.140010bd0
mov ecx, dword [rsp + 0x80]
test r15d, r15d
jne 0x14000f1c5
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x14000f1a2
cmp ecx, 7
jne 0x14000f1a7
mov ebp, 1
mov eax, ebp
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
test rbx, rbx
je 0x14000f20c
nop word [rax + rax]
cmp word [rbx + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x14000f1d0
lea ecx, [rdi*2 + 2]
cmp ecx, r13d
ja 0x14000f20c
sub rsi, rbx
nop word [rax + rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rsi + rbx - 2], ax
test ax, ax
jne 0x14000f1f0
mov dword [r12], ecx
mov eax, 1
jmp 0x14000f1a9
xor eax, eax
jmp 0x14000f1a9
xor eax, eax
jmp 0x14000f1ae
Function at 0x14000f420
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push r14
sub rsp, 0x60
mov rcx, qword [rcx + 0x10]
mov rsi, r9
mov r14d, r8d
mov rbp, rdx
test rcx, rcx
je 0x14000f503
test rdx, rdx
je 0x14000f503
test r9, r9
je 0x14000f503
mov qword [r11 + 0x10], rbx
xor ebx, ebx
mov qword [r11 - 0x18], rcx
cmp qword [rsp + 0x98], rbx
je 0x14000f4c4
mov rdx, qword [rsp + 0x98]
lea rax, [r11 + 8]
xor r9d, r9d
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x18]
xor r8d, r8d
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
je 0x14000f4bf
xor eax, eax
mov rbx, qword [rsp + 0x78]
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x90]
mov r9d, r14d
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp qword [rsp + 0x98], rbx
je 0x14000f4fa
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov eax, ebx
jmp 0x14000f4a7
lea r11, [rsp + 0x60]
xor eax, eax
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x180002000
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [0x18003e178]
test rax, rax
jne 0x18000209a
lea ecx, [rax + 0x3e]
call fcn.180011578
mov qword [0x18003e178], rax
test rax, rax
je 0x18000209a
xor ecx, ecx
lea r10, [0x18003c998]
xorps xmm0, xmm0
lea r11, section..data
movups xmmword [rax], xmm0
xor r8d, r8d
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rcx
mov dword [rax + 0x38], ecx
mov word [rax + 0x3c], cx
mov r9, qword [0x18003e178]
sub r10, r9
nop
mov eax, 0xaaaaaaab
lea r9, [r9 + 1]
mul r8d
mov eax, r8d
inc r8d
shr edx, 3
lea ecx, [rdx + rdx*2]
shl ecx, 2
sub eax, ecx
cdqe
movzx eax, byte [rax + r11]
xor al, byte [r10 + r9 - 1]
mov byte [r9 - 1], al
cmp r8d, 0x3d
jl 0x180002060
mov rax, qword [0x18003e178]
add rsp, 0x28
ret

Function at 0x180009620
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180009651
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x1800096cb
mov rdi, r14
mov rcx, rbx
call fcn.180008850
test rax, rax
jle 0x1800096a3
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.18000d2d0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1800096bb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800096c3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180009665
sub r14, rdi
jmp 0x1800097af
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1800096e2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800096e4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180009716
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18000d2d0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1800097ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180009751
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18000978d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1800127d0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1800097ac
cmp rbp, rax
ja 0x180009760
test rbp, rbp
je 0x1800097ac
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1800127d0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret