joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066e20
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x150
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x180], rbx
mov rax, qword [0x1401787a0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbp, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140001350
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140002bb0
nop
mov rax, qword [rsp + 0x20]
cmp dword [rax - 0x10], 0x103
jle 0x140066ec4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CCommonFunction::kGetShortPathName___return_FALSE__1__LastError_u_n
call fcn.140062f80
mov rdx, rsi
lea rcx, str.__pszFileName__s__n
call fcn.140062f80
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or rbx, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140066ebd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140066fea
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x140066fa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140066f36
cmp eax, 3
je 0x140066f36
mov edx, eax
lea rcx, str.CCommonFunction::kGetShortPathName___return_FALSE__3__LastError_u_n
call fcn.140062f80
mov rdx, rsi
lea rcx, str.__pszFileName__s__n
call fcn.140062f80
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or rbx, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140066f2f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140066fea
mov edx, eax
lea rcx, str.CCommonFunction::kGetShortPathName___return_TRUE__2__LastError_u_n
call fcn.140062f80
mov rdx, rsi
lea rcx, str.__pszFileName__s__n
call fcn.140062f80
or rbx, 0xffffffffffffffff
test rsi, rsi
jne 0x140066f60
xor ecx, ecx
jmp 0x140066f70
xor eax, eax
mov rcx, rbx
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rsi
mov rcx, rbp
call fcn.1400017b0
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140066f9c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x140066fea
xor eax, eax
or rbx, 0xffffffffffffffff
mov rcx, rbx
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.1400017b0
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140066fe5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400c6ac0
mov rbx, qword [rsp + 0x180]
add rsp, 0x150
pop rdi
pop rsi
pop rbp
ret
Function at 0x140075710
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x40
xor esi, esi
mov qword [rsp + 0x38], rbp
mov rbp, rcx
lea r8, [rsp + 0x68]
lea rdx, str.SystemCurrentControlSetControlProductOptions
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x58], esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x140075777
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CEnvironment::kValidateProductSuite___LastError_u__1__RegOpenKeyA_fail._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__lpszSuiteToValidate__s__n
mov rdx, rbp
call fcn.140062f80
jmp 0x1400758b8
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.ProductSuite
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140075895
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140075895
mov rcx, rax
mov qword [rsp + 0x50], rbx
call fcn.140096bcc
mov rdi, rax
test rax, rax
jne 0x1400757f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CEnvironment::kValidateProductSuite___LastError_u__3__new_fail._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__lpszSuiteToValidate__s__n
mov rdx, rbp
call fcn.140062f80
jmp 0x140075881
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.ProductSuite
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14007585e
cmp dword [rsp + 0x60], 7
jne 0x14007585e
mov rbx, rdi
cmp byte [rdi], sil
je 0x140075881
nop dword [rax]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140075857
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cdqe
add rbx, rax
cmp byte [rbx], sil
jne 0x140075830
jmp 0x140075881
mov esi, 1
jmp 0x140075881
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CEnvironment::kValidateProductSuite___LastError_u__4__RegQueryValueExA_fail._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__lpszSuiteToValidate__s__n
mov rdx, rbp
call fcn.140062f80
mov rbx, qword [rsp + 0x50]
test rdi, rdi
je 0x1400758b8
mov rcx, rdi
call fcn.140096bc4
jmp 0x1400758b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CEnvironment::kValidateProductSuite___LastError_u__2__RegQueryValueExA_fail._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__lpszSuiteToValidate__s__n
mov rdx, rbp
call fcn.140062f80
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
test rcx, rcx
je 0x1400758d2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x140077580
Capabilities:
Query service status

Disassembly:
sub rsp, 0x48
call fcn.140075480
test eax, eax
je 0x1400775ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CSpoolerInfomation::kCheckSpoolerStatus___return_TRUE__1__LastError_u_detect_9x_OS._n
mov edx, eax
call fcn.140062f80
mov eax, 1
add rsp, 0x48
ret
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x40], rdi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x1400775e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CSpoolerInfomation::kCheckSpoolerStatus___return_FALSE__2__LastError_u_OpenSCManager_returned_NULL._n
mov edx, eax
call fcn.140062f80
mov rdi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x48
ret
lea rdx, str.Spooler
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x58], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x140077645
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CSpoolerInfomation::kCheckSpoolerStatus___return_FALSE__3__LastError_u_OpenService_returned_NULL._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__Spooler_n
call fcn.140062f80
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x48
ret
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14007768f
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CSpoolerInfomation::kCheckSpoolerStatus_n
mov ebx, eax
call fcn.140062f80
lea rcx, str.__::QueryServiceStatus_return_FALSE._n
call fcn.140062f80
lea rcx, str.__::GetLastError_u_n
mov edx, ebx
call fcn.140062f80
mov rbx, qword [rsp + 0x50]
cmp dword [rsp + 0x24], 4
je 0x1400776d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CSpoolerInfomation::kCheckSpoolerStatus___return_FALSE__4__LastError_u_SERVICE_RUNNING._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__Spooler_n
call fcn.140062f80
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x48
ret
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x48
ret

Function at 0x140084a70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx + 0x18]
mov rdi, r8
mov rbx, rdx
call fcn.14007a760
mov rdx, qword [rbx]
lea rcx, str.CDriverInfomation::RCDIGetErrorInfomatio___pstrErrorInfo1__s__n
call fcn.140062f80
mov rdx, qword [rdi]
lea rcx, str.CDriverInfomation::RCDIGetErrorInfomatio___pstrErrorInfo2__s__n
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140062f80
Function at 0x140085bc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 8]
mov rbx, rdx
test rcx, rcx
jne 0x140085c01
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__1__LastError_u_m_hKey_is_NULL._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryKey__X__n
mov rdx, rbx
call fcn.140062f80
xor eax, eax
add rsp, 0x30
pop rbx
ret
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140085c4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__2__LastError_u_RegQueryValueEx_fail._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryKey__X__n
mov rdx, rbx
call fcn.140062f80
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140085c60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbp, qword [rsp + 0x70]
mov rdi, rdx
xor edx, edx
mov r13, rcx
mov dword [rbp], edx
mov rcx, qword [rcx + 8]
mov rsi, r9
mov r12d, r8d
test rcx, rcx
jne 0x140085ccb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__1__LastError_u_m_hKey_is_NULL._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryKey__X__n
mov rdx, rdi
call fcn.140062f80
lea rcx, str.__dwSize__X__n
mov edx, r12d
call fcn.140062f80
xor eax, eax
jmp 0x140085df1
lea rax, [rsp + 0x70]
mov dword [rsp + 0x70], edx
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140085d27
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__2__LastError_u_RegQueryValueEx_fail._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryKey__X__n
mov rdx, rdi
call fcn.140062f80
lea rcx, str.__dwSize__X__n
mov edx, r12d
call fcn.140062f80
xor eax, eax
jmp 0x140085df1
cmp dword [rsi], 4
je 0x140085d65
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__3__LastError_u_not_REG_DWORD._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryKey__X__n
mov rdx, rdi
call fcn.140062f80
lea rcx, str.__dwSize__X__n
mov edx, r12d
call fcn.140062f80
xor eax, eax
jmp 0x140085df1
mov ecx, dword [rsp + 0x70]
mov qword [rsp + 0x50], rbx
call fcn.140096bcc
mov rcx, qword [r13 + 8]
mov r9, rsi
mov rbx, rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140085dda
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__4__LastError_u_RegQueryValueEx_fail._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryKey__X__n
mov rdx, rdi
call fcn.140062f80
lea rcx, str.__dwSize__X__n
mov edx, r12d
call fcn.140062f80
mov rcx, rbx
call fcn.140096bc4
xor eax, eax
jmp 0x140085dec
mov eax, dword [rbx]
mov rcx, rbx
mov dword [rbp], eax
call fcn.140096bc4
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x140085e10
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 8]
mov rbx, rdx
test rcx, rcx
jne 0x140085e4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kSetValue___return_FALSE__1__LastError_u_m_hKey_is_NULL._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryKey__X__n
mov rdx, rbx
call fcn.140062f80
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x28], r9d
mov r9d, r8d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140085e97
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kSetValue___return_FALSE__2__LastError_u_RegSetValueEx_fail._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryKey__X__n
mov rdx, rbx
call fcn.140062f80
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140085eb0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1401787a0]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor ebp, ebp
mov rdi, rdx
mov rsi, rcx
mov ebx, ebp
nop dword [rax + rax]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov edx, ebx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x140085f27
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400a6ce4
inc ebx
jmp 0x140085ee0
cmp eax, 0x103
je 0x140085f46
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kRegEnumKey___return_FALSE__1__LastError_u_RegEnumKeyEx_fail._n
mov edx, eax
call fcn.140062f80
xor eax, eax
jmp 0x140085f4b
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400c6ac0
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x140085f70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov rbx, rdx
xor edx, edx
mov rbp, rcx
mov dword [r8], edx
mov rcx, qword [rcx + 8]
mov rsi, r8
test rcx, rcx
jne 0x140085fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__1__LastError_u_m_hKey_is_NULL._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryValue__s__n
mov rdx, rbx
call fcn.140062f80
xor eax, eax
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14008600d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__2__LastError_u_RegQueryValueEx_fail._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryValue__s__n
mov rdx, rbx
call fcn.140062f80
xor eax, eax
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
cmp dword [rsp + 0x60], 4
je 0x140086041
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__3__LastError_u_not_REG_DWORD._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryValue__s__n
mov rdx, rbx
call fcn.140062f80
xor eax, eax
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov ecx, dword [rsp + 0x50]
mov qword [rsp + 0x58], rdi
call fcn.140096bcc
mov rcx, qword [rbp + 8]
lea r9, [rsp + 0x60]
mov rdi, rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1400860b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__4__LastError_u_RegQueryValueEx_fail._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryValue__s__n
mov rdx, rbx
call fcn.140062f80
mov rcx, rdi
call fcn.140096bc4
mov rdi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [rdi]
mov rcx, rdi
mov dword [rsi], eax
call fcn.140096bc4
mov rdi, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
Function at 0x140086130
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov rbp, rcx
mov rcx, r8
mov rsi, r8
mov rbx, rdx
call fcn.140001350
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x14008617f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__1__LastError_u_m_hKey_is_NULL._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryValue__s__n
mov rdx, rbx
call fcn.140062f80
xor eax, eax
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1400861d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__2__LastError_u_RegQueryValueEx_fail._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryValue__s__n
mov rdx, rbx
call fcn.140062f80
xor eax, eax
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
cmp dword [rsp + 0x68], 1
je 0x140086208
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__3__LastError_u_not_REG_SZ._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryValue__s__n
mov rdx, rbx
call fcn.140062f80
xor eax, eax
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov ecx, dword [rsp + 0x50]
mov qword [rsp + 0x58], rdi
call fcn.140096bcc
mov rcx, qword [rbp + 8]
lea r9, [rsp + 0x68]
mov rdi, rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14008627b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CRegOperation::kQueryValue___return_FALSE__3__LastError_u_RegQueryValueEx_fail._n
mov edx, eax
call fcn.140062f80
lea rcx, str.__pszQueryValue__s__n
mov rdx, rbx
call fcn.140062f80
mov rcx, rdi
call fcn.140096bc4
mov rdi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov rdx, rdi
mov rcx, rsi
call fcn.140001d20
mov rcx, rdi
call fcn.140096bc4
mov rdi, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
Function at 0x140095890
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, vtable.CSetupApi.0
mov rbx, rcx
mov qword [rcx], rax
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400958be
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 8], 0
cmp dword [0x14017adac], 1
jne 0x1400958e7
mov rcx, qword [rbx + 0x10]
cmp dword [rcx - 0x10], 0
je 0x1400958d7
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rbx + 0x18]
cmp dword [rcx - 0x10], 0
je 0x1400958e7
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbx + 0x18]
sub rdx, 0x18
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140095908
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x10]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x140095924
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400987a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x1400987e3
cmp dword [rcx + 0xa8], 0
jne 0x1400987e3
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.1400a2584
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140098748
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400997bc
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.1400b944c
mov rsi, rax
test rax, rax
je 0x140099838
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x140099833
cmp dword [rbx], 0x40
jb 0x140099833
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x140099833
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14009983c
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a0890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400a08f8
call fcn.1400a2584
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x1400a08f8
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400a091a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.1400a02a8
mov esi, eax
test rdi, rdi
je 0x1400a0918
test rbx, rbx
je 0x1400a0918
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret