joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400012a3
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14000b7c0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov dword [rsp + 0x50], 4
mov rdi, r9
mov rax, r8
mov r10, rdx
mov rbx, rcx
mov dword [rsp + 0x70], esi
cmp qword [rcx], rsi
jne 0x14000b81f
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov qword [rsp + 0x38], rcx
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov rdx, rax
mov dword [rsp + 0x28], 0x20019
mov rcx, r10
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000b88d
mov rcx, qword [rbx]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b88d
mov rcx, qword [rbx]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
mov rax, qword [rsp + 0x90]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b88d
mov eax, 1
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x78]
xor eax, eax
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400014ec
Capabilities:
Self delete

Disassembly:
jmp 0x140018ff0
sub rsp, 0x728
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x710], rax
lea rcx, str.ENTER_DeleteServiceFiles__
call fcn.140003224
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x1400191f3
mov qword [rsp + 0x720], rbx
xor r9d, r9d
xor ebx, ebx
xor r8d, r8d
mov qword [rsp + 0x40], rbx
xor ecx, ecx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 3
lea edx, [rbx - 1]
mov dword [rsp + 0x20], 4
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x1400191eb
lea rcx, [0x14008d388]
call fcn.140004886
lea rcx, str.LPLATSVC
call fcn.140004886
call fcn.140003e5e
call fcn.140017990
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmove rcx, rbx
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0xe0]
call fcn.140003e9f
test al, al
je 0x1400191c9
lea rcx, [rsp + 0xe0]
call fcn.140004435
test al, al
je 0x1400191c9
lea rcx, [rsp + 0x500]
call fcn.140004831
test al, al
je 0x1400191c9
xor edx, edx
lea r8d, [rbx + 0x64]
lea rcx, [rsp + 0x74]
call fcn.140002eeb
lea rax, [rsp + 0xe0]
mov dword [rsp + 0x70], 0x68
lea r9, [rsp + 0x500]
mov qword [rsp + 0x20], rax
lea r8, str.__s__setupapi_InstallHinfSection_DefaultUninstall_128__s
mov edx, 0x104
lea rcx, [rsp + 0x2f0]
call fcn.140001f96
test eax, eax
js 0x1400191c9
lea rdx, [rsp + 0x2f0]
lea rcx, str.DeleteServiceFiles___CreateProceess:__s
call fcn.140003224
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x2f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x500]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400191a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcess_Failed__d
call fcn.140003224
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400191b9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400191c9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400191d9
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rcx, str.EXIT_DeleteServiceFiles__
call fcn.140003224
mov rbx, qword [rsp + 0x720]
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.140001ec4
add rsp, 0x728
ret
Function at 0x1400016b8
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x140025b40
push rbx
sub rsp, 0x50
xor ebx, ebx
mov dword [rsp + 0x70], 4
lea rcx, str.Enter_SystemTransformationCreateCurrentStatusToReg___n
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x60], ebx
call fcn.140003224
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCTransformCurrentStatus
lea rax, [rsp + 0x78]
xor r8d, r8d
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_RegCreateKeyExW]
test eax, eax
je 0x140025bbd
lea rcx, str.Error_SystemTransformationCreateCurrentStatusToReg_RegCreateKeyEx_error____n
call fcn.140003224
jmp 0x140025c46
mov rdx, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x60]
call fcn.140003977
cmp dword [rsp + 0x68], 2
lea rdx, [0x1400b8128]
mov rcx, qword [rsp + 0x78]
jne 0x140025c07
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, str.SystemTransformationCreateCurrentStatusToReg___already_have_than_read_the_dwMultiMode_read_value:__x_n
jmp 0x140025c2f
mov eax, dword [rsp + 0x70]
mov r9d, 4
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, str.SystemTransformationCreateCurrentStatusToReg___Crelate_and_set_dwMultiMode_read_value:__x_n
mov edx, dword [rsp + 0x60]
call fcn.140003224
mov ecx, dword [rsp + 0x60]
call fcn.1400033f5
mov ebx, 1
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140025c56
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.Exit_SystemTransformationCreateCurrentStatusToReg___n
call fcn.140003224
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x140001a82
Capabilities:
Terminate process

Disassembly:
jmp 0x14002818c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140001b77
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14001d8a0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rcx, str.Inside_GetSystemScreenRotationState__._n
call fcn.140003224
lea rax, [rsp + 0x30]
mov dword [rsp + 0x58], 4
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
mov qword [rsp + 0x30], rbx
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAutoRotation
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001d96d
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.Enable
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001d964
mov eax, dword [rsp + 0x68]
and eax, 1
je 0x14001d93f
cmp eax, 1
jne 0x14001d941
mov dword [rdi], eax
jmp 0x14001d941
mov dword [rdi], ebx
mov edx, dword [rdi]
lea rcx, str.GetSystemScreenRotationState__:__d_n
call fcn.140003224
mov edx, dword [rdi]
lea rcx, str.GetSystemScreenRotationState__:_pdwSystemRotationState_:_0x_08x__n
call fcn.140003224
mov ebx, 1
jmp 0x14001d979
lea rcx, str.Error_:_RegQueryValueEx_:_GetSystemScreenRotationState_n
jmp 0x14001d974
lea rcx, str.Error_:_RegOpenKeyEx_:_GetSystemScreenRotationState_n
call fcn.140003224
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001d989
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140001bea
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x140025890
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
lea rcx, str.Enter_CopyTimeStampToPrev___n
call fcn.140003224
xor eax, eax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x38], rax
lea rdx, str.ModeChangeTimeStamp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rcx, rdi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], ax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140025983
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x38]
mov rcx, rdi
lea rdx, str.ModeChangeTimeStamp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140025983
mov eax, dword [rsp + 0x30]
lea rdx, str.PrevTimeStamp
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x98], rsi
mov esi, 1
mov qword [rsp + 0x20], rax
mov r9d, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove ebx, esi
mov rsi, qword [rsp + 0x98]
lea rcx, str.Exit_CopyTimeStampToPrev___n
call fcn.140003224
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001ec4
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x140001c26
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14001d4c0
push rbx
sub rsp, 0x150
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, str.Inside_GetSystemBiosVersion__._n
call fcn.140003224
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_RegOpenKeyExW]
test eax, eax
jne 0x14001d5a0
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_RegQueryValueExW]
test eax, eax
jne 0x14001d597
lea rdx, [0x1400b271c]
lea rcx, [rsp + 0x40]
call fcn.140003ae9
test rax, rax
je 0x14001d58f
call fcn.140001744
call fcn.1400047be
mov dword [0x1400d49a8], 1
mov ebx, 1
jmp 0x14001d675
mov dword [0x1400d49a8], ebx
jmp 0x14001d5ac
lea rcx, str.Error_:_RegQueryValueEx_:_GetSystemBiosVersion__._n
jmp 0x14001d5a7
lea rcx, str.Error_:_RegOpenKeyEx_:_GetSystemBiosVersion__._n
call fcn.140003224
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_RegOpenKeyExW]
test eax, eax
jne 0x14001d669
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_RegQueryValueExW]
test eax, eax
jne 0x14001d660
cmp byte [rsp + 0x40], bl
je 0x14001d648
lea rbx, [rsp + 0x43]
cmp byte [rbx - 1], 0x47
jne 0x14001d63f
cmp byte [rbx], 0x44
jne 0x14001d63f
call fcn.140001744
call fcn.1400047be
mov dword [0x1400d49a8], 1
inc rbx
cmp byte [rbx - 3], 0
jne 0x14001d620
lea rdx, [rsp + 0x40]
lea rcx, str.GetSystemBiosVersion__:_SyatemBiosVersion_:__s__n
call fcn.140003224
mov ebx, 1
jmp 0x14001d675
lea rcx, str.Error_:_RegQueryValueEx_:_GetSystemBiosVersion__._n
jmp 0x14001d670
lea rcx, str.Error_:_RegOpenKeyEx_:_GetSystemBiosVersion__._n
call fcn.140003224
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001d685
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001ec4
add rsp, 0x150
pop rbx
ret
Function at 0x140001ce4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140026740
sub rsp, 0x238
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x200
call fcn.140002eeb
lea rcx, [rsp + 0x20]
call fcn.140004313
cmp eax, 1
je 0x140026794
xor eax, eax
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140001ec4
add rsp, 0x238
ret
mov rdx, 0xffffffffffffffff
lea r8, [rsp + 0x20]
mov rcx, rdx
lea r9, str.ThinkPad_X201_Tablet
nop word [rax + rax]
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [r9 + rcx*2 + 2]
jne 0x1400267d8
add rcx, 2
cmp rcx, 0x15
je 0x1400268f4
movzx eax, word [r8 + rcx*2]
cmp ax, word [r9 + rcx*2]
je 0x1400267b0
xor ecx, ecx
lea r9, [rsp + 0x20]
mov r8d, ecx
lea r10, str.ThinkPad_X201i_Tablet
nop dword [rax]
movzx eax, word [r9 + r8*2]
cmp ax, word [r10 + r8*2]
jne 0x140026819
movzx eax, word [r9 + r8*2 + 2]
cmp ax, word [r10 + r8*2 + 2]
jne 0x140026819
add r8, 2
cmp r8, 0x16
jne 0x1400267f0
jmp 0x1400268f4
lea r9, [rsp + 0x20]
mov r8, rdx
lea r10, str.ThinkPad_X220_Tablet
nop dword [rax + rax]
movzx eax, word [r9 + r8*2 + 2]
cmp ax, word [r10 + r8*2 + 2]
jne 0x140026858
add r8, 2
cmp r8, 0x15
je 0x1400268f4
movzx eax, word [r9 + r8*2]
cmp ax, word [r10 + r8*2]
je 0x140026830
lea r9, [rsp + 0x20]
mov r8, rcx
lea r10, str.ThinkPad_X220i_Tablet
nop word [rax + rax]
movzx eax, word [r9 + r8*2]
cmp ax, word [r10 + r8*2]
jne 0x140026896
movzx eax, word [r9 + r8*2 + 2]
cmp ax, word [r10 + r8*2 + 2]
jne 0x140026896
add r8, 2
cmp r8, 0x16
jne 0x140026870
jmp 0x1400268f4
lea r8, [rsp + 0x20]
lea r9, str.ThinkPad_X230_Tablet
movzx eax, word [r8 + rdx*2 + 2]
cmp ax, word [r9 + rdx*2 + 2]
jne 0x1400268c6
add rdx, 2
cmp rdx, 0x15
je 0x1400268f4
movzx eax, word [r8 + rdx*2]
cmp ax, word [r9 + rdx*2]
je 0x1400268a2
lea rdx, [rsp + 0x20]
lea r8, str.ThinkPad_X230i_Tablet
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x1400268f9
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x1400268f9
add rcx, 2
cmp rcx, 0x16
jne 0x1400268d2
call fcn.1400032f6
mov eax, 1
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140001ec4
add rsp, 0x238
ret
Function at 0x140001d02
Capabilities:
Write file on windows

Disassembly:
jmp 0x140023890
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
lea rcx, str.Inside_SetSystemDockingTransformation_n
call fcn.140003224
lea rcx, [0x1400a92f0]
call fcn.140002766
xor ebx, ebx
mov rbp, rax
mov byte [rsp + 0x68], bl
mov edi, ebx
mov esi, ebx
test rax, rax
je 0x14002396e
mov rdx, rax
lea rcx, str.SetSystemDockingTransformation_DevicePath____ws__n
call fcn.140003224
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002391f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetSystemDockingTransformation:_CreateFile_Error__08d__n
jmp 0x14002397b
movzx eax, byte [r14]
lea rdx, [rsp + 0x68]
xor r9d, r9d
mov byte [rsp + 0x68], al
mov rcx, rdi
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test eax, eax
jne 0x140023956
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Inside_SetSystemDockingTransformation:_WriteFile_Error__08d__n
jmp 0x14002397b
movzx edx, byte [rsp + 0x68]
lea rcx, str.SetSystemDockingTransformation:_WriteFile_0x_08x__n
call fcn.140003224
mov esi, 1
jmp 0x140023984
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetSystemDockingTransformation:_GetDevicePath_Error__08d__n
mov edx, eax
mov ebx, eax
call fcn.140003224
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14002399a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
lea rcx, str.Return_SetSystemDockingTransformation:_Status__08d__n
call fcn.140003224
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x140001d89
Capabilities:
Print debug messages

Disassembly:
jmp 0x140029154
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140002eeb
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1400baa00]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.140001983
test eax, eax
jne 0x1400291eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400291eb
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400291e4
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x1400d42e1], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140001e3d
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14006dd84
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400be738]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x1400be730]
call fcn.14006d324
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14006ddc4
call qword [case.0x140027caa.0]
jmp 0x14006ddca
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140001e42
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x140021360
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov edi, ecx
mov edx, ecx
lea rcx, str.Enter_MakeConnect__d_._n
call fcn.140003224
lea rcx, [rbp + 0x1f]
call fcn.14000288d
nop
xor esi, esi
mov r8d, esi
test edi, edi
setne r8b
xor r9d, r9d
mov edx, 0x222404
lea rcx, [rbp + 0x1f]
call fcn.140004647
test eax, eax
je 0x140021452
mov qword [rbp + 0xf], rsi
mov dword [rbp + 0x77], esi
mov ebx, 1
mov dword [rbp + 0x7f], ebx
mov dword [rbp + 0x67], esi
lea rdx, str.SoftwareIBMIBMPM
mov rcx, 0xffffffff80000002
test edi, edi
je 0x140021521
lea rax, [rbp + 0x77]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140021452
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140021527
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 4]
xor r8d, r8d
lea rdx, str.CapaLidBeep
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0xf]
test eax, eax
je 0x14002146b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, esi
lea rcx, [rbp + 0x1f]
call fcn.14000187a
mov eax, ebx
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret
or dword [rbp + 0x67], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.SvcCtrlCodeCapa
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0xf]
test eax, eax
jne 0x14002144c
mov dword [rbp + 0xb], 4
mov dword [rbp + 7], 4
mov dword [rbp + 0x6f], ebx
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xb]
xor r8d, r8d
lea rdx, str.HibFileCreation
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140021504
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.HibFileCreation
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, edi
lea rcx, str.Exit:_MakeConnect___n
call fcn.140003224
jmp 0x140021454
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, edi
lea rcx, str.Exit:_MakeConnect___n
call fcn.140003224
jmp 0x140021454
Function at 0x1400021f8
Capabilities:
Read .ini file

Disassembly:
jmp 0x14001e2e0
sub rsp, 0x138
mov rax, qword [0x1400d3008]
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.140001159
test eax, eax
jne 0x14001e3e0
cmp dword [rsp + 0x4c], eax
jne 0x14001e34a
call fcn.140001bf9
lea rcx, str.Lid_Close_action_is_None
call fcn.140003224
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140001ec4
add rsp, 0x138
ret
lea rcx, str.Lid_Close_action_is_standby_hibernate_etc
call fcn.140003224
lea r9, [0x1400d4780]
mov r8d, 0xdead
lea rdx, str.Status
lea rcx, str.LidCloseBeep
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
je 0x14001e3ca
cmp eax, 0xdead
jne 0x14001e3a6
lea r9, [0x1400d4570]
mov r8d, eax
lea rdx, str.Status
lea rcx, str.LidCloseBeep
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
je 0x14001e3ca
lea rcx, str.Lid_Close_Beep_is_disabled
call fcn.140003224
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140001ec4
add rsp, 0x138
ret
lea rcx, str.Lid_Close_Beep_is_enabled
call fcn.140003224
mov ecx, 1
call fcn.140002eaa
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140001ec4
add rsp, 0x138
ret

Function at 0x14000220c
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14000b8e0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x58], 1
xor edx, edx
mov rbx, rcx
mov rcx, qword [rcx]
mov rsi, r8
mov dword [rsp + 0x40], edx
test rcx, rcx
je 0x14000b96e
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b96e
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x58]
mov rcx, qword [rbx]
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b96e
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140002342
Capabilities:
Set registry value

Disassembly:
jmp 0x140026660
push rbx
sub rsp, 0x70
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
lea rcx, str.Enter_UpdateTimeStampRegValue___n
call fcn.140003224
xor eax, eax
mov rcx, rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov word [rsp + 0x60], ax
call fcn.140001bea
mov edx, 0x19
lea rcx, [rsp + 0x30]
call fcn.1400025e0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 0x19
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.ModeChangeTimeStamp
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, str.Exit_UpdateTimeStampRegValue___n
mov ebx, eax
call fcn.140003224
xor eax, eax
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001ec4
add rsp, 0x70
pop rbx
ret