joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007d360
Capabilities:
Query service status

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_GetSpoolerStatus
lea rcx, [r11 - 0x48]
call fcn.1400075a0
nop
mov r9, rbx
lea r8, str.lpName___s
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140007780
call fcn.14010b1bc
mov rcx, qword [rax + 8]
call fcn.1401064fc
nop
xor edi, edi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x14007d461
lea r8d, [rdi + 4]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14007d446
mov ebx, edi
nop word [rax + rax]
lea rdx, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14007d437
lea ecx, [rax + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x5dc
jb 0x14007d410
jmp 0x14007d43b
mov edi, dword [rsp + 0x6c]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14007d456
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x424
cmp eax, ecx
cmove edi, ecx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14007d4d6
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14007d4c6
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
lea r9, str._t_t_tOpenSCManager
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x50]
call fcn.140007780
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14007d4d6
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rcx, [rsp + 0x40]
call fcn.140037db0
nop
lea rcx, [rsp + 0x50]
call fcn.140007730
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14007e120
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r12, r9
mov rsi, r8
mov edi, edx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_SetSecurityDescriptorFromPrinter
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
mov qword [rsp + 0x20], rsi
mov r9d, edi
lea r8, str.nLevel___d__pPrinterName___s
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140007780
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0xf000c
mov qword [rsp + 0x40], 0
xor ebx, ebx
test r12, r12
jne 0x14007e1de
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rbx + 2]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
xor eax, eax
jmp 0x14007e30c
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
jne 0x14007e21e
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
xor eax, eax
jmp 0x14007e30c
cmp edi, 3
jne 0x14007e2db
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14007e2db
lea r8, [rsp + 0x70]
lea rdx, str._sADVAPI32.DLL
lea rcx, [rbp + 0x180]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x14007e2db
lea rdx, str.ConvertStringSecurityDescriptorToSecurityDescriptorW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14007e295
xor r9d, r9d
lea r8, [rsp + 0x48]
lea edx, [r9 + 1]
mov rcx, r12
call rax
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, 1
jne 0x14007e2db
xor r9d, r9d
lea r8, [rsp + 0x48]
lea edx, [rbx + 2]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINSPOOL.DRV_SetPrinterW]
test eax, eax
jne 0x14007e2d0
lea rdx, str._t_t_tSetPrinter
lea rcx, [rsp + 0x30]
call fcn.140029dc0
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov r9d, ebx
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, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140245660
add rsp, 0x4a0
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14007e570
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov edi, edx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_CreateShortCutFolder
lea rcx, [rsp + 0x28]
call fcn.1400075a0
nop
mov r9d, edi
lea r8, str.nFolder___d
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.140007780
mov ecx, 0x208
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbx, rax
test rax, rax
jne 0x14007e5f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea r8, str.return___s
lea edx, [rbx + 2]
lea rcx, [rsp + 0x28]
call fcn.140007780
nop
lea rcx, [rsp + 0x28]
call fcn.140007730
xor eax, eax
jmp 0x14007e690
lea r8, [rsp + 0x60]
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edi, eax
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x14007e622
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jne 0x14007e669
cmp qword [rsp + 0x60], 0
je 0x14007e669
xor edi, edi
mov qword [rsp + 0x68], rdi
lea rcx, [rsp + 0x68]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x14007e669
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14007e669
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x60]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [rsp + 0x60], rdi
mov r9, rbx
lea r8, str.return___s
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.140007780
nop
lea rcx, [rsp + 0x28]
call fcn.140007730
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14007f660
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbp, r8
mov rsi, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_GetPrinterDriverFolder
lea rcx, [rsp + 0x50]
call fcn.1400075a0
nop
mov r9, rbp
lea r8, str.pEnv___s
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140007780
xor r12d, r12d
mov ebx, r12d
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.14024b970
mov dword [rsp + 0x40], r12d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x208
lea r9, [rsp + 0x70]
lea r8d, [r12 + 1]
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_GetPrinterDriverDirectoryW]
mov edi, eax
test eax, eax
jne 0x14007f7f9
cmp ebx, 0xa
jge 0x14007f773
inc ebx
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r8, qword [rax]
lea rdx, str.SPOOLER
mov rcx, rax
call qword [r8 + 0x270]
mov dword [rsp + 0x40], r12d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x208
lea r9, [rsp + 0x70]
mov r8d, 1
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_GetPrinterDriverDirectoryW]
mov edi, eax
test eax, eax
je 0x14007f713
jmp 0x14007f7f9
mov qword [rsp + 0x48], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14007f7d9
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
lea r9, str._t_t_tGetPrinterDriverDirectory
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x50]
call fcn.140007780
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14007f7e9
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x14007f807
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [rsp + 0x20], edi
mov r9, rsi
lea r8, str.PrinterDriverFolder___s__return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rcx, [rsp + 0x50]
call fcn.140007730
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400832d0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rdi
mov eax, 0x1100
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1110], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x10f0], rax
mov rdi, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_StartService
lea rcx, [rsp + 0x50]
call fcn.1400075a0
nop
mov r9, rdi
lea r8, str.lpszService___s
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140007780
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xf0]
call fcn.14024b970
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4f0]
call fcn.14024b970
mov edx, 0x200
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0xee], 0x5c
je 0x1400833a5
lea r8, [0x1402e5094]
mov edx, 0x200
lea rcx, [rsp + 0xf0]
call fcn.140246470
lea r9, str.cmd.exe
lea r8, [rsp + 0xf0]
lea rdx, [0x1402e3978]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x80]
call fcn.14024b970
mov dword [rsp + 0x80], WSAGetLastError
xor ebx, ebx
mov word [rsp + 0xc0], bx
mov dword [rsp + 0xbc], 1
mov r9, rdi
lea r8, str._C_net_start___s___Y
mov edx, 0x400
lea rcx, [rsp + 0x8f0]
call fcn.140246778
lea r11, [rsp + 0x68]
mov qword [rsp + 0x48], r11
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x8f0]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x14008349e
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r9, qword [rax]
mov r8d, 1
mov rdx, rdi
mov rcx, rax
call qword [r9 + 0x1f8]
mov ebx, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rcx, [rsp + 0x50]
call fcn.140007730
mov eax, ebx
mov rcx, qword [rsp + 0x10f0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x1110]
add rsp, 0x1100
pop rdi
ret
Function at 0x1400834f0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rdi
mov eax, 0x1100
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1110], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x10f0], rax
mov rdi, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_StopService
lea rcx, [rsp + 0x50]
call fcn.1400075a0
nop
mov r9, rdi
lea r8, str.lpszService___s
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140007780
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xf0]
call fcn.14024b970
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4f0]
call fcn.14024b970
mov edx, 0x200
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0xee], 0x5c
je 0x1400835c5
lea r8, [0x1402e5094]
mov edx, 0x200
lea rcx, [rsp + 0xf0]
call fcn.140246470
lea r9, str.cmd.exe
lea r8, [rsp + 0xf0]
lea rdx, [0x1402e3978]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x80]
call fcn.14024b970
mov dword [rsp + 0x80], WSAGetLastError
xor ebx, ebx
mov word [rsp + 0xc0], bx
mov dword [rsp + 0xbc], 1
mov r9, rdi
lea r8, str._C_net_stop___s___Y
mov edx, 0x400
lea rcx, [rsp + 0x8f0]
call fcn.140246778
lea r11, [rsp + 0x68]
mov qword [rsp + 0x48], r11
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x8f0]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x1400836bb
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r9, qword [rax]
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [r9 + 0x1f8]
mov ebx, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rcx, [rsp + 0x50]
call fcn.140007730
mov eax, ebx
mov rcx, qword [rsp + 0x10f0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x1110]
add rsp, 0x1100
pop rdi
ret
Function at 0x140086bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x6a0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x6c0], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rbx, r8
mov rbp, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_CheckPortRegistry
lea rcx, [rsp + 0x58]
call fcn.1400075a0
nop
mov qword [rsp + 0x20], rbx
mov r9, rbp
lea r8, str.szTargetPort___s__szRegPort___s
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.140007780
xor edi, edi
mov esi, edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140086d14
nop word [rax + rax]
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x280]
call fcn.14024b970
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.14024b970
mov dword [rsp + 0x48], 0x208
mov dword [rsp + 0x44], 0x208
mov dword [rsp + 0x40], 1
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x280]
mov edx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
inc esi
mov rdx, rbp
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140086d0f
test ebx, ebx
je 0x140086c70
jmp 0x140086d14
mov edi, 1
mov r9d, edi
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, edi
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x6c0]
add rsp, 0x6a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140090e70
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xab0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0xaa0], rax
mov rdi, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_GetDeleteStringfromIni
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
test rdi, rdi
jne 0x140090ee4
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rdi + 2]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
xor eax, eax
jmp 0x140091059
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rdi
call fcn.140105958
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rsp + 0x2a0]
lea rdx, str.TEMPPATH
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.InsDrv.ini
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rsp + 0x2a0]
xor r8d, r8d
lea rdx, str.DelNum
lea rcx, str.DefaultShareNameEditStr
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
cmp eax, 0x20
jbe 0x140090f68
mov ebx, 0x20
jmp 0x140090f70
test eax, eax
je 0x140091016
xor esi, esi
test ebx, ebx
jle 0x14009102f
nop word [rax + rax]
inc esi
mov r9d, esi
lea r8, str.DelStr_
lea rdx, [0x1402fa760]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x2a0]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x90]
lea r8, [0x1402dc4e0]
lea rdx, [rsp + 0x50]
lea rcx, str.DefaultShareNameEditStr
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
dec eax
cmp eax, 0x1f
ja 0x140090ff1
lea r8, [rsp + 0x90]
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.140105f30
jmp 0x14009100c
lea r9, [rsp + 0x50]
lea r8, str._t_t_t_s_is_invalid.
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140007780
cmp esi, ebx
jl 0x140090f80
jmp 0x14009102f
mov r9d, eax
lea r8, str._t_t_tDelNum_d_is_invalid.
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140007780
mov rbx, qword [rdi + 0x10]
mov r9d, ebx
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, ebx
mov rcx, qword [rsp + 0xaa0]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0xab0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140091b50
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xc90
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0xc80], rax
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_CheckAndRegistPortSetUserID
lea rcx, [rsp + 0x40]
call fcn.1400075a0
nop
xor esi, esi
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rsp + 0x480]
lea rdx, str.TEMPPATH
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rsp + 0x480]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.InsDrv.ini
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rsp + 0x480]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x270]
lea r8, [0x1402dc4e0]
lea rdx, str.Product
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
lea r8, str.SOFTWARECanonPortSetPortSetUser
mov rdx, 0xffffffff80000002
call qword [rax + 0xf0]
lea ebp, [rsi + 1]
test eax, eax
jne 0x140091c9d
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rsp + 0x270]
mov rdx, qword [rsp + 0x30]
call qword [rax + 0x108]
mov ebx, esi
test eax, eax
cmove ebx, ebp
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x30]
call qword [rax + pe_nt_image_headers64]
test ebx, ebx
jne 0x140091d8b
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], r8
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r9
mov r9d, 0xf003f
lea r8, str.SOFTWARECanonPortSetPortSetUser
mov rdx, 0xffffffff80000002
call qword [rax + 0xf8]
test eax, eax
jne 0x140091d7c
lea rax, [rsp + 0x480]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x60]
lea r8, [0x1402dc4e0]
lea rdx, str.Version
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rbx, qword [0x1403b9768]
mov rdi, qword [rbx]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebp
lea r8, [rsp + 0x270]
mov rdx, qword [rsp + 0x30]
mov rcx, rbx
call qword [rdi + 0x110]
test eax, eax
je 0x140091d65
mov esi, 0x80010025
mov dword [0x1403b95bc], 0x25
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x30]
call qword [rax + pe_nt_image_headers64]
jmp 0x140091d8b
mov esi, 0x80010024
mov dword [0x1403b95bc], 0x24
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.140007780
nop
lea rcx, [rsp + 0x40]
call fcn.140007730
mov eax, esi
mov rcx, qword [rsp + 0xc80]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0xc90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140091ea0
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0xab0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0xaa0], rax
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_NetSpotServiceControl
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
xor ebx, ebx
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rsp + 0x2a0]
lea rdx, str.TEMPPATH
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, str.InsDrv.ini
mov edx, 0x400
lea rcx, [rsp + 0x2a0]
call fcn.140246470
lea r11, [rsp + 0x2a0]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x20
lea r9, [rsp + 0x50]
lea r8, [0x1402e2d58]
lea rdx, str.CheckNetSpot
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r9, [rsp + 0x50]
lea r8, str._t_t_tCheckNetSpot_Value___s.
lea edx, [rbx + 7]
lea rcx, [rsp + 0x30]
call fcn.140007780
lea rdx, [0x1402e2d50]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140092019
lea rdx, str.NSDEVLIST
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
lea rcx, [rsp + 0x90]
call qword [sym.imp.USER32.dll_FindWindowW]
lea r9, [rsp + 0x90]
lea edx, [rbx + 7]
lea rcx, [rsp + 0x30]
test rax, rax
je 0x14009200d
lea r8, str.CBaseFuncSub::FS_NetSpotServiceControl_____s__NetSpot_Class_Executed.
call fcn.140007780
mov rcx, qword [0x1403b9770]
mov rax, qword [rcx]
mov edx, 0x9a
call qword [rax + 0x18]
lea r8, str._t_t_tNetSpot_check_LIPS4_
lea edx, [rbx + 7]
lea rcx, [rsp + 0x30]
call fcn.140007780
mov ebx, 0x80010011
mov dword [0x1403b95bc], 0x11
jmp 0x140092019
lea r8, str.CBaseFuncSub::FS_NetSpotServiceControl_____s__NetSpot_Class_Not_Found
call fcn.140007780
mov r9d, ebx
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, ebx
mov rcx, qword [rsp + 0xaa0]
xor rcx, rsp
call fcn.140245660
add rsp, 0xab0
pop rbx
ret