joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d090
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov rax, qword [0x1402aa808]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov qword [rsp + 0x278], 0
mov qword [rsp + 0x268], 0
mov dword [rsp + 0x270], 0
mov dword [rsp + 0x280], 0
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x2b0]
lea rcx, [rsp + 0x50]
call fcn.1400333b0
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x284], eax
mov eax, dword [rsp + 0x284]
mov qword [rsp + 0x288], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x288]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x268], rax
cmp qword [rsp + 0x268], 0
je 0x14001d284
mov r9, qword [rsp + 0x268]
mov r8d, dword [rsp + 0x284]
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14001d25f
lea r9, [rsp + 0x260]
lea r8, [rsp + 0x278]
lea rdx, [0x1401eb8a4]
mov rcx, qword [rsp + 0x268]
call sub.VERSION.dll_VerQueryValueW
mov rax, qword [rsp + 0x278]
mov eax, dword [rax + 0xc]
and rax, 0xffff
movzx eax, ax
mov rcx, qword [rsp + 0x278]
mov ecx, dword [rcx + 0xc]
shr rcx, 0x10
and rcx, 0xffff
movzx ecx, cx
mov rdx, qword [rsp + 0x278]
mov edx, dword [rdx + 8]
and rdx, 0xffff
movzx edx, dx
mov r8, qword [rsp + 0x278]
mov r8d, dword [r8 + 8]
shr r8, 0x10
and r8, 0xffff
movzx r8d, r8w
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9d, r8d
mov r8, qword [rsp + 0x2b0]
lea rdx, str.GetFileVersion_File___1_s__nfile_version:__2_u_._3_u_._4_u_._5_u__n
mov ecx, 5
call fcn.14001c160
mov rax, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x278]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x278]
mov ecx, dword [rcx + 0xc]
mov dword [rax], ecx
mov dword [rsp + 0x270], 1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x268]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsp + 0x268], 0
mov eax, dword [rsp + 0x270]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1401ab2d0
add rsp, 0x2a8
ret
Function at 0x1400221e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
lea rdx, str.CDeviceInfSection::Init__________________________IN._n
mov ecx, 5
call fcn.14001c160
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0xa0], 0
je 0x140022229
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14002239e
cmp qword [rsp + 0x38], 0
jne 0x140022257
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CDeviceInfSection::Init_pInfFile_is_NULL._n
mov ecx, 5
call fcn.14001c160
jmp 0x14002238b
mov rcx, qword [rsp + 0x38]
call fcn.1401abfb8
test rax, rax
jne 0x14002228c
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CDeviceInfSection::Init_pInfFile_is_Zero_length._n
mov ecx, 5
call fcn.14001c160
jmp 0x14002238b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400222c2
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CDeviceInfSection::Init_pInfFile_is_not_found._n
mov ecx, 5
call fcn.14001c160
jmp 0x14002238b
mov rax, qword [rsp + 0x30]
add rax, 0x48
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.140010520
cmp qword [rsp + 0x48], 0
jne 0x140022306
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CDeviceInfSection::Init_pSectionName_is_NULL._n
mov ecx, 5
call fcn.14001c160
jmp 0x14002238b
mov rcx, qword [rsp + 0x48]
call fcn.1401abfb8
test rax, rax
jne 0x140022335
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CDeviceInfSection::Init_pSectionName_is_Zero_length._n
mov ecx, 5
call fcn.14001c160
jmp 0x14002238b
mov rax, qword [rsp + 0x30]
add rax, 0x70
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140010520
cmp qword [rsp + 0x40], 0
je 0x140022364
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x98], rcx
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xa0], 1
lea rdx, [0x1401f2e20]
mov ecx, 5
call fcn.14001c160
mov eax, 1
jmp 0x14002239e
lea rdx, str.CDeviceInfSection::Init__________________________OUT._n
mov ecx, 5
call fcn.14001c160
xor eax, eax
add rsp, 0x28
ret
Function at 0x14002ce50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x258
mov rax, qword [0x1402aa808]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [rsp + 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r8, qword [rsp + 0x270]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x260]
call sym.Setup.exe_private:_int___cdecl_CPrinterDriverInf::FindTempFile_wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64
test eax, eax
jne 0x14002ceaa
xor eax, eax
jmp 0x14002ceaf
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401ab2d0
add rsp, 0x258
ret
Function at 0x14002d960
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x698
mov rax, qword [0x1402aa808]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1401ac6a0
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0x470]
call fcn.1401ac6a0
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0x260]
call fcn.1401ac6a0
lea rdx, [0x1401f1654]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1401f1714]
lea rcx, [rsp + 0x470]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [rsp + 0x254], 1
mov dword [rsp + 0x250], 0x208
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x250]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x260]
mov r8d, dword [rsp + 0x254]
lea rdx, [rsp + 0x470]
lea rcx, [rsp + 0x40]
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
mov dword [rsp + 0x258], eax
cmp dword [rsp + 0x258], 1
jne 0x14002da64
lea rdx, [rsp + 0x260]
mov rcx, qword [rsp + 0x6a8]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x14002da77
mov edx, 0x104
mov rcx, qword [rsp + 0x6a8]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.1401ab2d0
add rsp, 0x698
ret

Function at 0x14002e1c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
lea rdx, str.CIniSections::Init__________________________IN._n
mov ecx, 5
call fcn.14001c160
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x50], 0
je 0x14002e1fc
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14002e2d6
cmp qword [rsp + 0x38], 0
jne 0x14002e22a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CIniSections::Init_pInfFile_is_NULL._n
mov ecx, 5
call fcn.14001c160
jmp 0x14002e2c3
mov rcx, qword [rsp + 0x38]
call fcn.1401abfb8
test rax, rax
jne 0x14002e259
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CIniSections::Init_pInfFile_is_Zero_length._n
mov ecx, 5
call fcn.14001c160
jmp 0x14002e2c3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002e289
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CIniSections::Init_pInfFile_is_not_found._n
mov ecx, 5
call fcn.14001c160
jmp 0x14002e2c3
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.140010520
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x50], 1
lea rdx, [0x1401fe490]
mov ecx, 5
call fcn.14001c160
mov eax, 1
jmp 0x14002e2d6
lea rdx, str.CIniSections::Init__________________________OUT._n
mov ecx, 5
call fcn.14001c160
xor eax, eax
add rsp, 0x28
ret
Function at 0x140043d60
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x1028
call fcn.1401ad200
sub rsp, rax
mov qword [rsp + 0x1008], 0xfffffffffffffffe
mov rax, qword [0x1402aa808]
xor rax, rsp
mov qword [rsp + 0x1010], rax
mov dword [rsp + 0x670], 0
lea rcx, [rsp + 0x460]
call fcn.140001cf0
nop
mov dword [rsp + 0xa90], 0
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1401ac6a0
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0x680]
call fcn.1401ac6a0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x40]
call fcn.1401abfb8
movzx eax, word [rsp + rax*2 + 0x3e]
cmp eax, 0x5c
je 0x140043e13
lea rcx, [rsp + 0x40]
call fcn.1401abfb8
mov ecx, 0x5c
mov word [rsp + rax*2 + 0x40], cx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x460]
call fcn.1400185f0
lea rdx, [0x140204350]
lea rcx, [rsp + 0x460]
call fcn.14000fd10
xor edx, edx
lea rcx, [rsp + 0x460]
call fcn.140001da0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x680]
lea r8, [0x140204378]
lea rdx, [0x140204380]
lea rcx, [0x140204398]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [0x1402043b0]
lea rcx, [rsp + 0x680]
call fcn.1401acf04
test eax, eax
jne 0x140043e9b
mov dword [rsp + 0x670], 1
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1401ac6a0
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0x680]
call fcn.1401ac6a0
mov r8d, 6
xor edx, edx
lea rcx, [rsp + 0x250]
call fcn.1401ac6a0
mov r8d, 0x200
xor edx, edx
lea rcx, [rsp + 0x470]
call fcn.1401ac6a0
mov r8d, 0x200
xor edx, edx
lea rcx, [rsp + 0x260]
call fcn.1401ac6a0
mov r8d, 0x200
xor edx, edx
lea rcx, [rsp + 0x890]
call fcn.1401ac6a0
mov edx, 0x82
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [rsp + 0xa90], eax
lea rax, [rsp + 0x890]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x260]
lea r8, [rsp + 0x470]
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call fcn.140044d30
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x460]
call fcn.1400185f0
mov dx, 0x5c
lea rcx, [rsp + 0x460]
call fcn.140018620
lea rdx, str.istdrv.debug.ini
lea rcx, [rsp + 0x460]
call fcn.14000fd10
xor edx, edx
lea rcx, [rsp + 0x460]
call fcn.140001da0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x680]
lea r8, [0x1402043e0]
lea rdx, str.ShowMsgDlg
lea rcx, str.Debug_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [0x140204418]
lea rcx, [rsp + 0x680]
call fcn.1401acf04
test eax, eax
jne 0x140043ff8
mov dword [rsp + 0x670], 1
cmp dword [rsp + 0x670], 0
je 0x14004402d
xor edx, edx
lea rcx, [rsp + 0xaa0]
call fcn.140036a00
nop
lea rcx, [rsp + 0xaa0]
call fcn.140069364
nop
lea rcx, [rsp + 0xaa0]
call fcn.140036ac0
mov eax, dword [rsp + 0x670]
mov dword [rsp + 0x1000], eax
lea rcx, [rsp + 0x460]
call fcn.140001d50
mov eax, dword [rsp + 0x1000]
mov rcx, qword [rsp + 0x1010]
xor rcx, rsp
call fcn.1401ab2d0
add rsp, 0x1028
ret
Function at 0x14004cb50
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x258
mov rax, qword [0x1402aa808]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov dword [rsp + 0x240], 0
mov dword [rsp + 0x244], 0
jmp 0x14004cb9b
mov eax, dword [rsp + 0x244]
inc eax
mov dword [rsp + 0x244], eax
mov r9d, 0x105
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x244]
mov rax, qword [rsp + 0x260]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x14004cbf8
mov rcx, qword [rsp + 0x268]
call fcn.1401abfb8
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x268]
call fcn.1401adfc4
test eax, eax
jne 0x14004cbf6
mov dword [rsp + 0x240], 1
jmp 0x14004cbf8
jmp 0x14004cb8b
mov eax, dword [rsp + 0x240]
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1401ab2d0
add rsp, 0x258
ret

Function at 0x14004cc20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004cc65
mov eax, 1
jmp 0x14004cc67
xor eax, eax
add rsp, 0x38
ret

Function at 0x14004cc80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], 0
jne 0x14004cc9e
xor eax, eax
jmp 0x14004ccd8
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004ccd6
mov eax, dword [rsp + 0x30]
jmp 0x14004ccd8
xor eax, eax
add rsp, 0x48
ret

Function at 0x14004ccf0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov qword [rsp + 0x268], 0xfffffffffffffffe
mov rax, qword [0x1402aa808]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rcx, qword [rsp + 0x298]
call fcn.140011e10
mov dword [rsp + 0x260], 0
jmp 0x14004cd49
mov eax, dword [rsp + 0x260]
inc eax
mov dword [rsp + 0x260], eax
mov r9d, 0x105
lea r8, [rsp + 0x50]
mov edx, dword [rsp + 0x260]
mov rax, qword [rsp + 0x290]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x14004cda0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.1400033c0
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x298]
call fcn.1400109f0
nop
lea rcx, [rsp + 0x28]
call fcn.140003430
jmp 0x14004cd39
mov eax, dword [rsp + 0x260]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401ab2d0
add rsp, 0x288
ret
Function at 0x14004cf80
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.14004cb50
test eax, eax
je 0x14004cfc0
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14004cfc0
mov eax, 1
jmp 0x14004cfc2
xor eax, eax
add rsp, 0x28
ret

Function at 0x14004cfd0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x20]
call fcn.14004c9b0
nop
mov qword [rsp + 0x38], 0
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x20]
call fcn.14004ca50
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14004d124
lea rcx, [rsp + 0x48]
call fcn.140010b40
nop
lea rcx, [rsp + 0x40]
call fcn.1400521e0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.14004ccf0
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.1400121b0
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
jmp 0x14004d088
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14002f650
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.14002f230
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140004330
movzx eax, al
test eax, eax
je 0x14004d0e0
lea rcx, [rsp + 0x40]
call fcn.14002f630
mov rcx, rax
call fcn.140003530
mov r8, rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xa0]
call fcn.14004cfd0
mov ecx, dword [rsp + 0x30]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x14004d076
lea rcx, [rsp + 0x20]
call fcn.14004ca20
cmp qword [rsp + 0xa8], 0
je 0x14004d11a
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14004d11a
mov eax, dword [rsp + 0x30]
and eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140010770
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x80], eax
lea rcx, [rsp + 0x20]
call fcn.14004c9e0
mov eax, dword [rsp + 0x80]
add rsp, 0x98
ret

Function at 0x14004d250
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.14004cc20
test eax, eax
je 0x14004d290
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x14004d290
mov eax, 1
jmp 0x14004d292
xor eax, eax
add rsp, 0x28
ret
Function at 0x14004d2a0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
lea rcx, vtable.CRegistryW.0
mov qword [rax], rcx
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004d2e4
jmp 0x14004d3bc
lea rdx, [0x1402075f0]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
lea rdx, [0x140207600]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x18], rax
lea rdx, [0x140207610]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x20], rax
lea rdx, [0x140207628]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x28], rax
lea rdx, [0x140207638]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x30], rax
lea rdx, [0x140207648]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x38], rax
lea rdx, [0x140207658]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x40], rax
lea rdx, [0x140207668]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x48], rax
mov rax, qword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x14004dd80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.14004cc20
test eax, eax
jne 0x14004ddb0
xor eax, eax
jmp 0x14004de7b
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x30], 0
je 0x14004de72
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x38], 0
je 0x14004de0f
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x38]
call fcn.140047560
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x38], 0
mov eax, dword [rsp + 0x30]
mov r8d, 0x1f2
lea rdx, [0x140207678]
mov ecx, eax
call fcn.140047520
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x38], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x38], 0
jne 0x14004de40
xor eax, eax
jmp 0x14004de7b
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x38]
add rsp, 0x48
ret
Function at 0x14004de90
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004deeb
mov eax, 1
jmp 0x14004deed
xor eax, eax
add rsp, 0x38
ret

Function at 0x14004e6e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 4
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.14004cc20
test eax, eax
jne 0x14004e70d
xor eax, eax
jmp 0x14004e750
mov rax, qword [rsp + 0x50]
add rax, 0x38
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004e74e
mov rax, qword [rsp + 0x50]
add rax, 0x38
jmp 0x14004e750
xor eax, eax
add rsp, 0x48
ret

Function at 0x14004e760
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004e7ad
mov eax, 1
jmp 0x14004e7af
xor eax, eax
add rsp, 0x38
ret
Function at 0x140057ae0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov qword [rsp + 0x158], 0xfffffffffffffffe
mov rax, qword [0x1402aa808]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov dword [rsp + 0x100], 0
mov qword [rsp + 0x130], 0
lea rdx, str.Global_
lea rcx, [rsp + 0x58]
call fcn.1400033c0
nop
lea rdx, str.Local_
lea rcx, [rsp + 0x108]
call fcn.1400033c0
nop
lea rdx, str.ScanGear_Mutex
lea rcx, [rsp + 0xb8]
call fcn.1400033c0
nop
lea rcx, [rsp + 0xe0]
call fcn.140010b40
nop
lea rcx, [rsp + 0x50]
call fcn.1400521e0
mov edx, 0xa
lea rcx, [rsp + 0x80]
call fcn.140080214
nop
lea rdx, str.InUseTwainSource__________________________________IN_n
mov ecx, 4
call fcn.14001c160
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.140058510
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x168], rax
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0xb8]
call fcn.1400104c0
nop
lea rcx, [rsp + 0x28]
call fcn.140003430
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0xe0]
call fcn.1400109f0
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0xe0]
call fcn.1400121b0
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
jmp 0x140057c31
xor r8d, r8d
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x50]
call fcn.14002f650
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0xe0]
call fcn.14002f230
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140004330
movzx eax, al
test eax, eax
je 0x140057d0b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x50]
call fcn.14002f630
mov rcx, rax
call fcn.140003530
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rsp + 0x130], rax
cmp qword [rsp + 0x130], 0
jne 0x140057ca3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140057d06
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x170], eax
lea rcx, [rsp + 0x50]
call fcn.14002f630
mov rcx, rax
call fcn.140003530
mov ecx, dword [rsp + 0x170]
mov r9d, ecx
mov r8, rax
lea rdx, str.InUseTwainSource____HIT__OpenMutex__1_s___Success_or_ErrorCode__0x_1_d__n
mov ecx, 5
call fcn.14001c160
mov dword [rsp + 0x100], 1
cmp qword [rsp + 0x130], 0
je 0x140057d04
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140057d0b
jmp 0x140057c1c
lea rdx, str.InUseTwainSource__________________________________OUT_n
mov ecx, 4
call fcn.14001c160
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x150], eax
lea rcx, [rsp + 0x80]
call fcn.14008040c
nop
lea rcx, [rsp + 0xe0]
call fcn.140010770
nop
lea rcx, [rsp + 0xb8]
call fcn.140003430
nop
lea rcx, [rsp + 0x108]
call fcn.140003430
nop
lea rcx, [rsp + 0x58]
call fcn.140003430
mov eax, dword [rsp + 0x150]
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1401ab2d0
add rsp, 0x188
ret