joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140092060
Capabilities:
Copy file
Set file attributes

Disassembly:
push rdi
mov eax, 0x1470
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1480], rbx
mov qword [rsp + 0x1498], rsi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x1460], rax
mov ebx, r9d
mov rsi, r8
mov rdi, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_CopyFileFromMediaToTemp
lea rcx, [rsp + 0x20]
call fcn.1400075a0
nop
mov r9, rdi
lea r8, str.szFileName___x.
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140007780
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rsp + 0x460]
lea rdx, str.SOURCEDIR
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rsp + 0x460]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rsp + 0xc60]
lea rdx, str.TEMPPATH
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rsp + 0xc60]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r9, rdi
lea r8, [rsp + 0x460]
lea rdx, [0x1402e3978]
lea rcx, [rsp + 0x250]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9, rdi
lea r8, [rsp + 0xc60]
lea rdx, [0x1402e3978]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400921df
test ebx, ebx
jne 0x1400921a7
mov rcx, qword [0x1403b9770]
mov rax, qword [rcx]
mov r8, rdi
lea edx, [rbx + 0x19]
call qword [rax + 0x18]
mov dword [0x1403b95bc], 0x26
mov r9d, 0x80010026
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140007780
nop
lea rcx, [rsp + 0x20]
call fcn.140007730
mov eax, 0x80010026
jmp 0x140092222
mov edx, 0x20
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x20]
call fcn.140007780
nop
lea rcx, [rsp + 0x20]
call fcn.140007730
xor eax, eax
mov rcx, qword [rsp + 0x1460]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x1470]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140095370
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov esi, edx
lea rax, [rsp + 0x38]
lea rdx, str.Console
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov ebx, 1
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x78], ebp
mov dword [rsp + 0x70], ebp
mov edi, ebp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400954e0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rdx, str.LoadConIme
xor r8d, r8d
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x78], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400954c4
mov dword [rsp + 0x78], 4
test esi, esi
je 0x140095427
cmp dword [rsp + 0x70], ebp
je 0x14009542b
mov dword [rsp + 0x70], ebp
mov edi, ebx
jmp 0x14009542b
mov dword [rsp + 0x70], ebx
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
lea rdx, str.LoadConIme
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400954c4
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
lea rdx, str.PROCESS_CONIME_RUN
mov r9, qword [rax]
mov rcx, rax
test edi, edi
je 0x14009549f
lea r8, [0x1402e34e0]
call qword [r9 + 0x20]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1402ed1b0]
call qword [r9 + 0x20]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x38]
mov ebx, ebp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov eax, ebp
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009a400
Capabilities:
Read .ini file
Set file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x2180]
mov eax, 0x2280
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x22b0], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x2170], rax
mov r13, r8
mov r12, rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], r8
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x20], 0xa
mov eax, dword [0x1402edb5c]
mov dword [rsp + 0x50], eax
movzx eax, word [0x1402edb60]
mov word [rsp + 0x54], ax
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.14024b970
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x170]
call fcn.14024b970
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdi, qword [rax]
lea r8, [rsp + 0x60]
lea rdx, str.TEMPPATH
mov rcx, rax
call qword [rdi + 0x18]
lea r8, str.INSDRV.INI
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140246470
lea edx, [rbx + 0x20]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea r9, [rsp + 0x60]
mov r8d, 0x1000
lea rdx, [rbp + 0x170]
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
call fcn.140102a14
mov rdi, rax
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x14009a51a
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov edx, 0x1000
mov r8d, 2
mov rcx, rdi
call qword [rax]
test rax, rax
jne 0x14009a538
call fcn.140020970
int3
lea rcx, [rax + 0x18]
mov qword [rsp + 0x28], rcx
cmp dword [rcx - 0xc], 0x1000
jge 0x14009a555
mov ecx, 0x80070057
call fcn.140005210
int3
mov dword [rcx - 0x10], 0x1000
mov word [rcx + 0x2000], bx
mov r9d, 0x2000
lea r8, [rbp + 0x170]
mov edx, r9d
call fcn.1402471ac
nop
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rsp + 0x28]
call fcn.140064b10
mov edx, 0x3b
lea r8d, [rdx - 0x31]
lea rcx, [rsp + 0x28]
call fcn.140064b10
mov rbx, qword [rsp + 0x28]
or rsi, 0xffffffffffffffff
cmp dword [rbx - 0x10], 0
jge 0x14009a5af
mov eax, esi
jmp 0x14009a5cb
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140245e24
test rax, rax
jne 0x14009a5c5
mov eax, esi
jmp 0x14009a5cb
sub rax, rbx
sar rax, 1
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x28]
call fcn.14000d770
mov dword [rsp + 0x30], 1
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.140005f90
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14009a620
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14009a63c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r12
mov rcx, qword [rbp + 0x2170]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x22b0]
add rsp, 0x2280
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009b7e0
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_GetTCPIPtypeFromDeviceInfo
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
mov edi, 3
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x70], eax
xor edx, edx
mov r8d, 0x204
lea rcx, [rsp + 0x74]
call fcn.14024b970
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, str.DeviceInfo.ini
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea rcx, [0x1402e5094]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add ebx, eax
lea rcx, str._MINSTD_
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add ebx, eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9d, [rax + rbx + 1]
cmp r9d, 0x104
jle 0x14009b8ce
mov dword [rsp + 0x20], edi
lea r8, str.Device_Info_file_path_is_too_long__d_._return___08x
lea edx, [rdi - 1]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
jmp 0x14009b9a9
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str._MINSTD_
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.DeviceInfo.ini
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rsp + 0x70]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], reloc.WSOCK32.dll_recv
lea r9, [rsp + 0x48]
lea r8, [0x1402dc4e0]
lea rdx, str.TCPIPtype
lea rcx, str.DeviceInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14009b98f
lea rdx, str.Manual
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14009b958
xor edi, edi
jmp 0x14009b98f
lea rdx, str.DHCP
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14009b973
lea edi, [rax + 2]
jmp 0x14009b98f
lea rdx, [0x1402ed058]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, 1
test eax, eax
cmove edi, ecx
mov r9d, edi
lea r8, str.return___d
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14009bad0
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r13, r9
mov r14, r8
mov rbp, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_GetFileVersion
lea rcx, [rax - 0x30]
call fcn.1400075a0
nop
mov r9, rbp
lea r8, str.lpFile___s
mov edi, 1
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140007780
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r12d, eax
test eax, eax
je 0x14009bbf0
mov edx, r12d
lea ecx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbx, rax
mov r9, rax
mov r8d, r12d
mov edx, dword [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x28]
lea rdx, [0x1402e5094]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14009bbda
cmp dword [rsp + 0x24], 0
je 0x14009bbda
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14009bbda
movzx eax, word [rdx + 0xa]
mov dword [r14], eax
movzx eax, word [rdx + 8]
mov dword [r13], eax
movzx ecx, word [rdx + 0xe]
mov rax, qword [rsp + 0x90]
mov dword [rax], ecx
movzx ecx, word [rdx + 0xc]
mov rax, qword [rsp + 0x98]
mov dword [rax], ecx
jmp 0x14009bbdc
xor edi, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14009bbf2
xor edi, edi
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x14009bd80
Capabilities:
Copy file
Move file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_ReplaceFileAfterReboot
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
mov qword [rsp + 0x20], rdi
mov r9, rsi
lea r8, str.lpSrc___s__lpDest___s
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140007780
xor r12d, r12d
mov word [rsp + 0x50], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.14024b970
mov word [rbp + 0x160], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x162]
call fcn.14024b970
test rsi, rsi
je 0x14009bfa9
test rdi, rdi
je 0x14009bfa9
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.140246628
lea edx, [r12 + 0x2e]
lea rcx, [rbp + 0x160]
call fcn.140249468
test rax, rax
jne 0x14009be79
lea r8, str.path_error
lea edx, [rax + 2]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
jmp 0x14009bfc0
mov word [rax], r12w
lea rax, str..tmp
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x160]
lea r8, [0x1402e3978]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140246778
lea rcx, [rsp + 0x30]
test eax, eax
jns 0x14009bec6
lea r8, str.make_path_error
mov edx, 2
call fcn.140007780
nop
jmp 0x14009bfc0
lea r9, [rsp + 0x50]
lea r8, str.ReplaceFileAfterReboot::temporary_path_file.___lS_
mov edx, 7
call fcn.140007780
mov r11, qword [rbx]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [r11 + 0x520]
test eax, eax
je 0x14009bf43
mov rax, qword [rbx]
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [rax + 0x510]
mov ebx, eax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x50]
lea r8, str.ReplaceFileAfterReboot::tempolary_file_is_exist._n_compare_version_of_n_szTemp__lS__n_lpSrc__lS_
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140007780
test ebx, ebx
jne 0x14009bf43
lea r8, str.ReplaceFileAfterReboot::target___source_t..._do_not_copy_and_MoveFileEx_
lea edx, [rbx + 2]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
jmp 0x14009bfc0
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14009bf90
mov r8d, 5
mov rdx, rdi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
lea r8, str.ReplaceFileAfterReboot::MoveFileEx___n__lS_______lS__nRet___d
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140007780
lea r8, [0x1402dc4e0]
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
jmp 0x14009bfc0
lea r8, str.param_error
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140245660
add rsp, 0x480
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14009cad0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x290
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbp, r9
mov rbx, r8
mov rdi, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_SetRegKeyCNAPX
lea rcx, [rsp + 0x58]
call fcn.1400075a0
nop
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbx
mov r9, rdi
lea r8, str.pRegRoot___s__pSubKey___s__pValueName___s
mov esi, 1
mov edx, esi
lea rcx, [rsp + 0x58]
call fcn.140007780
xor r12d, r12d
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x70], r12d
xor edx, edx
mov r8d, 0x204
lea rcx, [rsp + 0x74]
call fcn.14024b970
mov rdx, rdi
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1402e5094]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14009cc1f
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
mov r9d, esi
xor r8d, r8d
lea rdx, str.DriverNameWin32
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14009cc14
lea r8, str.SetRegKeyCNAPX_Write_ERROR__
lea edx, [rsi + 6]
lea rcx, [rsp + 0x58]
call fcn.140007780
mov esi, r12d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140007780
nop
lea rcx, [rsp + 0x58]
call fcn.140007730
mov eax, esi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140245660
add rsp, 0x290
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a3330
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rdi, rcx
xor r8d, r8d
lea rdx, str.CBaseInfoAddIn::DeleteRestoreFile
lea rcx, [rsp + 0x28]
call fcn.1400075a0
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0xb0]
lea rcx, [rdi + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a338f
mov edx, 0x20
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rdi + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a33bf
mov edx, 0x20
lea rcx, [rdi + 0x230]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rdi + 0x230]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rdi + 0x438]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a33ef
mov edx, 0x20
lea rcx, [rdi + 0x438]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rdi + 0x438]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x28]
call fcn.140007780
nop
lea rcx, [rsp + 0x28]
call fcn.140007730
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400a9710
Capabilities:
Set registry value

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x7fc0]
mov eax, 0x80c0
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x80f0], rbx
mov qword [rsp + 0x8108], rsi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x7fb0], rax
mov r13, r8
mov r14, rdx
xor r8d, r8d
lea rdx, str.CBaseInfoAddIn::SetEnumRegEntry
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
mov r9, r14
lea r8, str.hKeyPDrvData___p
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140007780
xor r12d, r12d
test r14, r14
jne 0x1400a97a9
mov r12d, 0x80010001
mov dword [0x1403b95bc], 1
jmp 0x1400a98f4
mov rbx, qword [r13]
cmp rbx, qword [r13 + 8]
je 0x1400a98f4
nop word [rax + rax]
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r12
mov word [rsp + 0x48], r12w
mov eax, dword [rbx]
mov dword [rsp + 0x70], eax
lea rdx, [rbx + 8]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x78]
call fcn.140001e00
mov r11d, dword [rbx + 0x30]
mov dword [rbp - 0x60], r11d
mov eax, dword [rbx + 0x34]
mov dword [rbp - 0x5c], eax
lea rdx, [rbx + 0x38]
mov r8d, 0x8000
lea rcx, [rbp - 0x58]
call fcn.140246c50
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.140001e00
mov esi, dword [rbp - 0x60]
mov edi, dword [rbp - 0x5c]
lea r9, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r9, qword [rsp + 0x48]
lea r8, str._t_t_tRestore_Entry_Name___s.
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140007780
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov dword [rsp + 0x28], edi
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9d, eax
lea r8, str._t_t_tSetValue_Res___08x.
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
cmp qword [rsp + 0x60], 8
jb 0x1400a98be
mov rcx, qword [rsp + 0x48]
call fcn.1401026ec
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r12
mov word [rsp + 0x48], r12w
cmp qword [rbp - 0x70], 8
jb 0x1400a98e3
mov rcx, qword [rsp + 0x78]
call fcn.1401026ec
add rbx, 0x8038
cmp rbx, qword [r13 + 8]
jne 0x1400a97c0
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
mov eax, r12d
mov rcx, qword [rbp + 0x7fb0]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x80c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x1400ade30
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x168
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov esi, r9d
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
xor r8d, r8d
lea rdx, str.CBaseInfoCtrl::GetVersionOf
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
mov r9, rbx
lea r8, str.lpDriver___s
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140007780
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0xd0]
call fcn.14024b970
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x50]
call fcn.14024b970
mov r11, qword [rbp]
mov rcx, rbp
call qword [r11 + gethostbyaddr]
xor r11d, r11d
mov word [rdi], r11w
cmp esi, 3
je 0x1400adefc
cmp esi, 5
je 0x1400adefc
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r9, qword [rax]
lea r8, str.Driver
lea rdx, [rsp + 0xd0]
mov rcx, rax
call qword [r9 + 0x50]
jmp 0x1400adf30
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r10, qword [rax]
mov dword [rsp + 0x20], 0x40
mov r9d, esi
lea r8, str.Driver
lea rdx, [rsp + 0xd0]
mov rcx, rax
call qword [r10 + pe_nt_image_headers64]
lea rax, [rbp + 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40
lea r9, [rsp + 0x50]
lea r8, [0x1402dc4e0]
mov rdx, rbx
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jle 0x1400adfea
lea rcx, [rsp + 0x52]
lea rax, [rsp + 0x52]
mov rdx, rdi
sub rdx, rax
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x1400adf80
movzx ecx, word [rsp + 0x50]
call fcn.14024a718
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov edx, 2
lea rcx, [rsp + 0x30]
cmp eax, 0x50
jne 0x1400adfcc
lea r8, str.lpDriver___s__Printer:Ver___s
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
xor eax, eax
jmp 0x1400ae011
lea r8, str.lpDriver___s__FAX:Ver___s
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
mov eax, 1
jmp 0x1400ae011
mov r9, rbx
lea r8, str.lpDriver___s__Not_found.
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
or eax, 0xffffffff
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140245660
add rsp, 0x168
pop rdi
pop rsi
pop rbp
pop rbx
ret