joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016380
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
jmp 0x140016380
sub rsp, 0x398
mov rax, qword [0x1400b7010]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov r8d, 0x200
lea rdx, [rsp + 0x180]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400164a4
mov qword [rsp + 0x3a0], rbx
lea rcx, [rsp + 0x70]
mov edx, 0x104
mov qword [rsp + 0x390], rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rax, [rsp + 0x70]
mov edx, 0x104
lea rdi, [0x140088268]
mov r8d, 0x200
mov qword [rsp + 0x28], rdi
lea r9, str._s_system32_s.exe
lea rcx, [rsp + 0x180]
mov qword [rsp + 0x20], rax
call fcn.140002df1
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
je 0x140016494
xor eax, eax
lea r8, str.IBM_PM_Service
mov qword [rsp + 0x60], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x58], rax
mov rdx, rdi
mov qword [rsp + 0x50], rax
mov rcx, rbx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
je 0x14001648b
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x3a0]
mov rdi, qword [rsp + 0x390]
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140003e09
add rsp, 0x398
ret

Function at 0x140016510
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
jmp 0x140016510
push rdi
sub rsp, 0x50
mov rax, qword [0x1400b7010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x1400165dc
mov r8d, 0xf01ff
mov qword [rsp + 0x60], rbx
lea rdx, [0x140088268]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x1400165ce
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400165bc
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 0x1400165bc
cmp dword [rsp + 0x24], 3
jne 0x1400165bc
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 0x140016598
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003e09
add rsp, 0x50
pop rdi
ret
Function at 0x1400166b0
Capabilities:
Delete registry key

Disassembly:
jmp 0x1400166b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
xor esi, esi
lea rcx, str.Enter_IntelligentCoolingDelRegKey___n
mov qword [rsp + 0x50], rsi
mov rdi, rdx
call fcn.1400045d9
lea rax, [rsp + 0x50]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
je 0x14001672e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, ebx
lea rcx, str.Error_IntelligentCoolingDelRegKey_RegCreateKeyEx_error__s___d__d__n
mov r9d, eax
mov rdx, rbp
call fcn.1400045d9
mov ecx, 0xe1100002
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001677d
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
test eax, eax
je 0x140016769
mov r9d, eax
lea rcx, str.Error_IntelligentCoolingDelRegKey____s_s__Error_Code__d___n
mov r8, rdi
mov rdx, rbp
call fcn.1400045d9
cmp ebx, 2
jne 0x14001677d
mov ecx, 0xe1100003
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001677d
mov rdx, rdi
lea rcx, str.IntelligentCoolingDelRegKey___Delete_the_key:__s__n
call fcn.1400045d9
mov esi, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001678d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.Exit_IntelligentCoolingGetRegKeyDwordValue___n
call fcn.1400045d9
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400167f0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400167f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rsi, rcx
mov dword [rsp + 0x78], 4
xor edi, edi
lea rcx, str.Enter_IntelligentCoolingGetRegKeyDwordValue___n
mov qword [rsp + 0x30], rdi
mov r14, r8
mov rbx, rdx
call fcn.1400045d9
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, eax
test eax, eax
je 0x140016873
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, ebp
lea rcx, str.Error_IntelligentCoolingGetRegKeyDwordValue_RegCreateKeyEx_error___d__d__n
mov r8d, eax
call fcn.1400045d9
mov ecx, 0xe1100002
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400168d7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r8, rbx
mov rdx, rsi
mov ebp, eax
test eax, eax
je 0x1400168c3
xor r9d, r9d
lea rcx, str.Error_IntelligentCoolingGetRegKeyDwordValue___already_have_the_key_but_open_fail:__s__s__Error_Code__d___n
call fcn.1400045d9
cmp ebp, 2
jne 0x1400168d7
mov ecx, 0xe1100003
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400168d7
mov r9d, dword [r14]
lea rcx, str.IntelligentCoolingGetRegKeyDwordValue___Read_the_value:__s__s:__x_n
call fcn.1400045d9
mov edi, 1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400168e7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.Exit_IntelligentCoolingGetRegKeyDwordValue___n
call fcn.1400045d9
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140016950
Capabilities:
Set registry value

Disassembly:
jmp 0x140016950
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x60
mov rsi, rcx
xor ebx, ebx
lea rcx, str.Enter_IntelligentCoolingSetRegKeyDwordValue___n
mov qword [rax - 0x18], rbx
mov dword [rax + 0x20], ebx
mov rdi, rdx
call fcn.1400045d9
lea rax, [rsp + 0x88]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1400169d1
mov edx, eax
lea rcx, str.Error_IntelligentCoolingSetRegKeyDwordValue_RegCreateKeyEx_error___d__n
call fcn.1400045d9
jmp 0x140016a30
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x80]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140016a11
mov edx, eax
lea rcx, str.Error_IntelligentCoolingSetRegKeyDwordValue_RegSetValueEx_error___d__n
call fcn.1400045d9
jmp 0x140016a30
mov r9d, dword [rsp + 0x80]
lea rcx, str.IntelligentCoolingSetRegKeyDwordValue___Set_the_value:_s_s___x__n
mov r8, rdi
mov rdx, rsi
call fcn.1400045d9
mov ebx, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140016a40
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.Exit_IntelligentCoolingSetRegKeyDwordValue___n
call fcn.1400045d9
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x1400171f0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400171f0
sub rsp, 0x48
call fcn.140003828
test al, al
je 0x140017207
mov eax, 1
add rsp, 0x48
ret
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov dword [rsp + 0x68], 1
mov r9d, 0x20019
mov dword [rsp + 0x58], ebx
xor r8d, r8d
mov dword [rsp + 0x60], ebx
lea rdx, str.SoftwareIBMIBMPM
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140017292
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.HibFileCreation
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x68], ebx
jne 0x1400172a4
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
xor r9d, r9d
mov byte [rsp + 0x50], 1
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x20], ebx
lea r8d, [r9 + 1]
lea ecx, [r9 + 0xa]
call fcn.14000382d
test eax, eax
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x1400186f0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400186f0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov dword [rsp + 0x58], 4
lea rax, [rsp + 0x30]
xor ebx, ebx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCStatus
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140018788
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LastSystemTransformation
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140018788
mov eax, dword [rsp + 0x60]
mov ebx, 1
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140018798
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400187e0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
jmp 0x1400187e0
sub rsp, 0x38
mov edx, 0x104
lea rcx, [0x1400b8540]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rdx, str.LidBeep.ini
lea rcx, [0x1400b8540]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREWow6432NodeLenovoPWRMGRVPath
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400188a2
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x30], rbx
xor r8d, r8d
lea rbx, [0x1400b8650]
mov dword [rsp + 0x40], 0x104
xor edx, edx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x48], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140018892
lea rdx, str.LidBeep.ini
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
Function at 0x1400189c0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400189c0
push rbx
sub rsp, 0x150
mov rax, qword [0x1400b7010]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0x38]
mov dword [rsp + 0x34], 0xff
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
mov qword [rsp + 0x38], rbx
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemBIOS
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140018a84
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.BIOSVersion
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140018a84
lea rdx, [0x14009c398]
lea rcx, [rsp + 0x40]
call fcn.140002ed2
test rax, rax
je 0x140018a7e
call fcn.140003689
call fcn.140004278
mov dword [0x1400b8754], 1
jmp 0x140018b31
mov dword [0x1400b8754], ebx
lea rax, [rsp + 0x38]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.HARDWAREDESCRIPTIONSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140018b36
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 7
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemBiosVersion
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140018b36
cmp byte [rsp + 0x40], bl
je 0x140018b20
lea rbx, [rsp + 0x43]
cmp byte [rbx - 1], 0x47
jne 0x140018b17
cmp byte [rbx], 0x44
jne 0x140018b17
call fcn.140003689
call fcn.140004278
mov dword [0x1400b8754], 1
inc rbx
cmp byte [rbx - 3], 0
jne 0x140018af8
lea rdx, [rsp + 0x40]
lea rcx, str.GetSystemBiosVersion__:_SyatemBiosVersion_:__s__n
call fcn.1400045d9
mov ebx, 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140018b46
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140003e09
add rsp, 0x150
pop rbx
ret
Function at 0x140018bd0
Capabilities:
Read file on windows

Disassembly:
jmp 0x140018bd0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov r14, rcx
lea rcx, [0x14009a4f8]
mov byte [rsp + 0x68], bl
mov esi, ebx
mov dword [rsp + 0x70], ebx
mov edi, ebx
call fcn.140003030
mov rbp, rax
test rax, rax
je 0x140018c73
mov rdx, rax
lea rcx, str.GetSystemDockingTransformation:_DevicePath____ws__n
call fcn.1400045d9
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140018c73
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
lea r8d, [rbx + 1]
mov rcx, rax
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
je 0x140018c73
movzx eax, byte [rsp + 0x68]
lea edi, [rbx + 1]
mov dword [r14], eax
jmp 0x140018c7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140018c91
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x140018ce0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140018ce0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov dword [rsp + 0x58], 4
lea rax, [rsp + 0x30]
xor ebx, ebx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAutoRotation
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140018d82
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Enable
mov dword [rsp + 0x60], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140018d82
mov eax, dword [rsp + 0x68]
and eax, 1
je 0x140018d7b
cmp eax, 1
jne 0x140018d7d
mov dword [rdi], eax
jmp 0x140018d7d
mov dword [rdi], ebx
mov ebx, 1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140018d92
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140018dd0
Capabilities:
Read file on windows

Disassembly:
jmp 0x140018dd0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov r14, rcx
lea rcx, [0x14009a4e0]
mov byte [rsp + 0x68], bl
mov esi, ebx
mov dword [rsp + 0x70], ebx
mov edi, ebx
call fcn.140003030
mov rbp, rax
test rax, rax
je 0x140018e73
mov rdx, rax
lea rcx, str.GetSystemTransformation:_DevicePath____ws__n
call fcn.1400045d9
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140018e73
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
lea r8d, [rbx + 1]
mov rcx, rax
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
je 0x140018e73
movzx eax, byte [rsp + 0x68]
lea edi, [rbx + 1]
mov dword [r14], eax
jmp 0x140018e7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140018e91
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400190f0
Capabilities:
Get user security identifier
Query or enumerate registry value

Disassembly:
jmp 0x1400190f0
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x9c0]
sub rsp, 0xac0
mov rax, qword [0x1400b7010]
xor rax, rsp
mov qword [rbp + 0x9b0], rax
lea rdx, str..DEFAULT
mov dword [rsp + 0x40], 0
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r8, [rbp + 0x390]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea rcx, [rbp + 0x170]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x170]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14001917b
xor al, al
jmp 0x140019321
lea rdx, str.AltDefaultDomainName
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rbp + 0x4a0]
mov dword [rsp + 0x40], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140019174
lea rdx, str.AltDefaultUserName
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rbp + 0x280]
mov dword [rsp + 0x40], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140019174
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0xad8], rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 1
mov dword [rsp + 0x5c], 0x400
mov ecx, 0x400
call fcn.1400032a6
mov rbx, rax
test rax, rax
je 0x1400192be
lea rax, [rsp + 0x54]
mov dword [rsp + 0x54], 1
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x5c]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x280]
lea rax, [rbp + 0x5b0]
mov dword [rsp + 0x58], 0x400
mov r8, rbx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov rcx, rbx
test eax, eax
je 0x1400192b9
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0xff
lea rdx, [rsp + 0x60]
call fcn.140003391
mov rcx, rbx
test eax, eax
jne 0x1400192c2
call fcn.1400025b8
xor al, al
jmp 0x140019319
call fcn.1400025b8
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400192fe
lea rcx, [rsp + 0x60]
call fcn.140001b5e
test eax, eax
je 0x1400192be
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, 1
mov rbx, qword [rsp + 0xad8]
mov rcx, qword [rbp + 0x9b0]
xor rcx, rsp
call fcn.140003e09
mov rdi, qword [rsp + 0xae0]
add rsp, 0xac0
pop rbp
ret
Function at 0x1400193e0
Capabilities:
Create thread
Terminate thread

Disassembly:
jmp 0x1400193e0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov edi, ecx
mov rcx, qword [0x1400b8888]
mov esi, r8d
mov dword [rsp + 0x50], ebp
mov ebx, edx
test rcx, rcx
je 0x140019424
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, qword [0x1400b8888]
test eax, eax
cmove rcx, rbp
mov qword [0x1400b8888], rcx
test edi, edi
je 0x140019468
lea rax, [rsp + 0x50]
mov dword [0x1400b8780], esi
mov qword [rsp + 0x28], rax
lea r9, [0x1400b8780]
lea r8, [0x140003ae4]
mov dword [rsp + 0x20], ebp
xor edx, edx
mov dword [0x1400b8784], 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov qword [0x1400b8888], rax
test ebx, ebx
je 0x1400194be
cmp dword [0x1400b8784], ebp
je 0x1400194b8
xor edx, edx
mov dword [0x1400b8784], ebp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [0x1400b8200], ebp
mov qword [0x1400b8888], rbp
je 0x14001949c
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1400b8780]
sub eax, 3
je 0x1400194b3
cmp eax, 1
jne 0x1400194b8
call fcn.14000461a
jmp 0x1400194b8
call fcn.1400011a9
mov dword [0x1400b8780], ebp
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x140019510
Capabilities:
Read .ini file

Disassembly:
jmp 0x140019510
sub rsp, 0x138
mov rax, qword [0x1400b7010]
xor rax, rsp
mov qword [rsp + 0x120], rax
xor edx, edx
mov dword [rsp + 0x20], 0xe8
lea r9, [rsp + 0x30]
xor r8d, r8d
lea ecx, [rdx + 8]
call fcn.14000382d
test eax, eax
jne 0x1400195c4
cmp dword [rsp + 0x4c], eax
jne 0x14001956a
call fcn.1400032c4
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140003e09
add rsp, 0x138
ret
lea r9, [0x1400b8650]
mov r8d, 0xdead
lea rdx, str.Status
lea rcx, str.LidCloseBeep
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
je 0x1400195ba
cmp eax, 0xdead
jne 0x1400195c4
lea r9, [0x1400b8540]
mov r8d, eax
lea rdx, str.Status
lea rcx, str.LidCloseBeep
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x1400195c4
mov ecx, 1
call fcn.140002bc1
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140003e09
add rsp, 0x138
ret

Function at 0x140019910
Capabilities:
Create thread

Disassembly:
jmp 0x140019910
sub rsp, 0x38
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x1400023dd]
xor r9d, r9d
mov dword [rsp + 0x20], ecx
xor edx, edx
mov dword [rsp + 0x40], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400b8538], rax
add rsp, 0x38
ret