joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400014c0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
call fcn.14019d7c0
lea rdx, [rsp + 0x240]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r11, str.Uninst.ini
lea rax, [rsp + 0x240]
mov qword [rsp + 0x28], r11
lea r9, [0x14021c280]
lea rcx, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.140198b84
lea r9, [rsp + 0x30]
lea rdx, str.LOG_LEVEL_DEBUG
lea rcx, str.Debug_Info
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, 1
mov dword [0x140292e2c], eax
cmp eax, ebx
je 0x140001571
cmp eax, 2
jne 0x1400015ec
lea r9, [rsp + 0x30]
lea rdx, str.LOG_USEFILE
lea rcx, str.Debug_Info
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x1400015ec
lea r9, [rsp + 0x30]
lea rdx, str.LOG_USEFILE_DIVSIZE
lea rcx, str.Debug_Info
mov r8d, 0x1400000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea r9, [rsp + 0x30]
lea rdx, str.LOG_USEFILE_MAXCOUNT
lea rcx, str.Debug_Info
mov r8d, 0xa
mov dword [0x140292e38], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [0x140292e34]
test eax, eax
mov dword [0x140292e3c], eax
cmovne ecx, ebx
mov dword [0x140292e34], ecx
lea r9, [rsp + 0x30]
lea rdx, str.LOG_LEVEL_EVENT
lea rcx, str.Debug_Info
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea r9, [rsp + 0x30]
lea rdx, str.LOG_USEMINIDUMP
lea rcx, str.Debug_Info
xor r8d, r8d
mov dword [0x140273714], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x140001686
lea r9, [rsp + 0x30]
lea rdx, str.LOG_USEMINIDUMP_TYPE
lea rcx, str.Debug_Info
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea r9, [rsp + 0x30]
lea rdx, str.LOG_USEMINIDUMP_MAXCOUNT
lea rcx, str.Debug_Info
mov r8d, 0xa
mov dword [0x140292e48], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [0x140292e44]
test eax, eax
mov dword [0x140292e4c], eax
cmovne ecx, ebx
mov dword [0x140292e44], ecx
mov dword [0x140292e30], ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140198b40
add rsp, 0x460
pop rbx
ret
Function at 0x140001bc0
Capabilities:
Access the windows event log
Get token privileges

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12d, ecx
xor r13d, r13d
mov qword [rax + 0x20], r13
mov qword [rsp + 0x60], r13
mov dword [rax + 0x18], r13d
lea esi, [r13 + 4]
lea rdx, str.BaseInstaller
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140001c2f
mov dword [rsp + 0x50], 0x80004005
lea rdx, [0x140265238]
lea rcx, [rsp + 0x50]
call fcn.14019d534
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0xc8]
mov r14d, 1
mov r8d, r14d
mov edx, 0x20008
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140001c91
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0xc8]
mov edx, 0x20008
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001c91
mov dword [rsp + 0x54], 0x80004005
lea rdx, [0x140265238]
lea rcx, [rsp + 0x54]
call fcn.14019d534
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc0]
xor r8d, r8d
mov edx, r14d
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [rsp + 0xc0]
call fcn.140056054
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x140001cec
mov dword [rsp + 0x58], 0x80004005
lea rdx, [0x140265238]
lea rcx, [rsp + 0x58]
call fcn.14019d534
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc0]
mov r8, rbx
mov edx, r14d
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r11, qword [rbx]
cmp r12d, 3
je 0x140001d37
cmp r12d, 4
je 0x140001d32
jbe 0x140001d37
cmp r12d, 6
ja 0x140001d37
movzx esi, r14w
jmp 0x140001d37
mov esi, 2
xor r8d, r8d
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], r11
mov r9d, 0x99999999
movzx edx, si
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
nop
jmp 0x140001d7b
test rdi, rdi
je 0x140001d89
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test rbx, rbx
je 0x140001d96
mov rcx, rbx
call fcn.14005605c
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x140001da9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400022d0
Capabilities:
Create directory
Get common file path

Disassembly:
mov r11, rsp
push r12
sub rsp, 0xb0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
mov esi, 1
mov r12d, 0x104
xor ebx, ebx
mov qword [r11 - 0x80], rbx
mov dword [r11 - 0x74], r12d
mov rax, qword [str.Canon]
mov qword [r11 - 0x68], rax
mov eax, dword [0x14021c478]
mov dword [rsp + 0x58], eax
xor eax, eax
mov qword [r11 - 0x5c], rax
mov qword [r11 - 0x54], rax
mov qword [r11 - 0x4c], rax
mov dword [rsp + 0x74], eax
mov rax, qword [str.BaseInstaller]
mov qword [r11 - 0x40], rax
mov rax, qword [0x14021c3a0]
mov qword [r11 - 0x38], rax
mov rax, qword [0x14021c3a8]
mov qword [r11 - 0x30], rax
mov eax, dword [reloc.OLEAUT32.dll_VarBstrFromDisp]
mov dword [r11 - 0x28], eax
xor eax, eax
mov qword [r11 - 0x24], rax
mov dword [r11 - 0x1c], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
lea edx, [rsi + 7]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400023ab
mov dword [rsp + 0x34], 0x80004005
lea rdx, [0x140265238]
lea rcx, [rsp + 0x34]
call fcn.14019d534
lea r8, [rsp + 0x44]
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x1400023e0
mov dword [rsp + 0x40], 0x80004005
lea rdx, [0x140265238]
lea rcx, [rsp + 0x40]
call fcn.14019d534
nop dword [rax + rax]
cmp ebx, 2
jge 0x14000241a
movsxd rax, ebx
lea rcx, [rax + rax*4]
lea rax, [rsp + rcx*8 + 0x50]
mov edx, r12d
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, str._s_s
mov rcx, rdi
call fcn.140001110
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc ebx
jmp 0x1400023e0
jmp 0x140002420
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140002430
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140198b40
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x140003e00
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x30]
call fcn.14019d7c0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r11d, dword [rsp + 0x44]
sub r11d, 0x182
je 0x140003e4c
sub r11d, 0x64
je 0x140003e4c
sub r11d, 0x64
je 0x140003e4c
cmp r11d, 0x1f8e
jne 0x140003e4c
mov eax, 0x20000000
add rsp, 0x58
ret
xor eax, eax
add rsp, 0x58
ret
Function at 0x140003e60
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rdi, rcx
xor r8d, r8d
lea rdx, str.CheckCoreEdition
lea rcx, [rsp + 0x38]
call fcn.140001190
nop
xor ebx, ebx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
test eax, eax
je 0x140003f53
lea r8, str.Win2012_2016
lea edx, [rbx + 7]
lea rcx, [rsp + 0x38]
call fcn.140001370
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
mov r9d, 0x20019
lea r8, str.SoftwareMicrosoftWindows_NTCurrentVersionServerServerLevels
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.140003af0
mov rdi, qword [rsp + 0x48]
test eax, eax
jne 0x140003f3c
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ServerCoreExtended
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x140003f12
lea ebx, [rax - 1]
jmp 0x140003f3c
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.NanoServer
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 1
test eax, eax
cmove ebx, ecx
test rdi, rdi
je 0x140004002
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004002
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
cmp eax, 1
jne 0x140004002
lea r8, str.Win2008
lea edx, [rax + 6]
lea rcx, [rsp + 0x38]
call fcn.140001370
mov dword [rsp + 0x70], ebx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004002
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004002
movzx r9d, word [rdi + 0x122]
movzx r8d, word [rdi + 0x120]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov edx, dword [rdi + 0x14]
mov ecx, dword [rdi + 0x10]
call rax
test eax, eax
je 0x140004002
mov eax, dword [rsp + 0x70]
cmp eax, 0xc
jb 0x140004002
cmp eax, 0xe
jbe 0x140003fe7
cmp eax, 0x1d
je 0x140003fe7
cmp eax, 0x26
jbe 0x140004002
cmp eax, 0x29
ja 0x140004002
lea r8, str.Core_Edtion___
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140001370
mov ebx, 1
mov r9d, ebx
lea r8, str.return___d
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140001370
nop
lea rcx, [rsp + 0x38]
call fcn.140001320
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140004570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400045a3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400045e6
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1400045e1
cmp rbx, r11
jae 0x1400045e6
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1400045d0
cmp rbx, r11
jb 0x1400045ea
xor eax, eax
jmp 0x1400045f6
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140006b80
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov r12, r8
mov rsi, rdx
mov r13, rcx
xor edi, edi
cmp qword [rcx], rdi
je 0x140006cc3
test rdx, rdx
je 0x140006cc3
test r8, r8
je 0x140006cc3
mov rcx, rdx
call fcn.14005630c
mov r11d, eax
xor edx, edx
div dword [r13 + 0x18]
mov ecx, edx
mov rdx, qword [r13 + 0x10]
test rdx, rdx
je 0x140006c32
mov rdx, qword [rdx + rcx*8]
test rdx, rdx
je 0x140006c32
cmp dword [rdx + 0x18], r11d
jne 0x140006c1d
mov rax, qword [rdx]
mov r8, rsi
sub r8, rax
movzx ecx, word [rax]
cmp cx, word [rax + r8]
jne 0x140006c0c
add rax, 2
test cx, cx
jne 0x140006bf5
mov eax, edi
jmp 0x140006c11
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
movzx ecx, al
test al, al
jne 0x140006c23
mov rdx, qword [rdx + 0x10]
jmp 0x140006be1
mov rcx, qword [rdx + 8]
mov qword [r12], rcx
mov eax, edi
jmp 0x140006cc8
mov dword [rsp + 0x88], edi
mov dword [rsp + 0x70], edi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x88]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006cb9
mov ecx, dword [rsp + 0x70]
call fcn.140056054
mov rbx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x88]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006cb4
mov qword [r12], rbx
mov rdx, rsi
lea rcx, [r13 + 8]
call fcn.1400071c0
mov qword [rax], rbx
jmp 0x140006cb9
mov edi, 0x80010080
mov eax, edi
jmp 0x140006cc8
mov eax, 0x80010001
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14000ee60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_712
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 + 0xe0], rdx
test rdx, 0xffffffffffff0000
jne 0x14005be6f
cmp dword [rcx + 0xd8], 0
jne 0x14005be6f
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.140059f20
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
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.14005bdd4
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 0x1400132f0
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, rdx
mov rsi, r8
mov rbx, rcx
lea rdx, [rsp + 0x40]
mov r8d, 0x104
xor ecx, ecx
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400133a5
lea rcx, [rsp + 0x40]
mov edx, 0x5c
call fcn.14019a074
lea rdx, [0x14021dbdc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x14021d21c]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.DebugSettings.ini
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rsp + 0x40]
lea r9, [rsp + 0x250]
mov qword [rsp + 0x28], r11
lea r8, [0x1402209ac]
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x250]
mov rcx, rbx
call fcn.1400054e0
mov rax, rbx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140198b40
add rsp, 0x470
pop rdi
pop rsi
pop rbx
ret
Function at 0x140014310
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x2f0], rbx
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r15, rdx
mov rsi, rcx
mov r13d, 1
mov qword [rsp + 0x48], 7
xor edi, edi
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
xor r8d, r8d
lea rdx, [0x1402209ac]
lea rcx, [rsp + 0x30]
call fcn.140003200
nop
mov rax, qword [rsi + 0x30]
cmp qword [rsi + 0x28], rax
jne 0x1400144e2
mov r8d, 0x104
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140014496
lea edx, [rdi + 0x5c]
lea rcx, [rbp - 0x80]
call fcn.14019a074
lea rdx, [0x14021dbdc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x14021d21c]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.DebugSettings.ini
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x20], rax
lea edx, [rdi + 8]
mov r8d, 0xfffe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x140014496
lea r9, [rbp - 0x80]
mov r8d, 0x7fff
mov rdx, rax
lea rcx, str.Non_Display_Message
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov rbx, r14
cmp word [r14], di
je 0x140014486
nop word [rax + rax]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140003200
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 0x28]
call fcn.14000ca70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
lea rbx, [rbx + rdx*2 + 2]
cmp word [rbx], 0
jne 0x140014440
xor edi, edi
mov r8, r14
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
mov r8d, 7
lea rdx, str.MSG_END
lea rcx, [rsp + 0x58]
call fcn.140003200
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsi + 0x28]
call fcn.14000ca70
nop
cmp qword [rsp + 0x70], 8
jb 0x1400144e2
mov rcx, qword [rsp + 0x58]
call fcn.14005605c
mov rdi, qword [rsi + 0x28]
cmp rdi, qword [rsi + 0x30]
je 0x140014531
nop dword [rax]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140003010
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14001452e
add rdi, 0x28
cmp rdi, qword [rsi + 0x30]
jne 0x1400144f0
jmp 0x140014531
xor r13d, r13d
cmp qword [rsp + 0x48], 8
jb 0x140014543
mov rcx, qword [rsp + 0x30]
call fcn.14005605c
mov eax, r13d
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140198b40
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015960
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor eax, eax
mov rbx, rdx
mov rdi, rcx
mov r9, rcx
lea rsi, str.PrinterDriverData
lea rdx, str._s_s_s
lea rcx, [rsp + 0x60]
lea r8, str.SystemCurrentControlSetControlPrintPrinters
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x50], eax
mov byte [rsp + 0x54], al
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140015a85
lea rax, [rsp + 0x30]
lea rdx, str.SystemCurrentControlSetControlPrintPrinters
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015b2d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015a7b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140015a85
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
jmp 0x140015b27
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.PrinterID
xor r8d, r8d
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x4c], 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x140015b07
mov eax, dword [rsp + 0x50]
mov dword [rbx], eax
movzx eax, byte [rsp + 0x54]
mov byte [rbx + 4], al
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140015af0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140015b00
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140015b2f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140015b1d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140015b2d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140198b40
mov rbx, qword [rsp + 0x6c0]
add rsp, 0x690
pop rdi
pop rsi
pop rbp
ret
Function at 0x140017e00
Capabilities:
Query service status

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rdx, str.Tool_GetSpoolerServiceStatus
lea rcx, [r11 - 0x50]
call fcn.140001190
nop
call fcn.140059f20
mov rcx, qword [rax + 8]
call fcn.14005a4ac
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 0x140017edf
lea r8d, [rdi + 4]
lea rdx, str.SPOOLER
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140017ec6
mov ebx, edi
nop word [rax + rax]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
je 0x140017eb7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x140017e90
jmp 0x140017ebb
mov edi, dword [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140017ed6
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]
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.140001370
nop
lea rcx, [rsp + 0x20]
call fcn.14000f190
nop
lea rcx, [rsp + 0x28]
call fcn.140001320
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140198b40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140019870
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbx
mov eax, 0x1100
call fcn.14019e810
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0x10f0], rax
xor r8d, r8d
lea rdx, str.ServiceStopFromCmdLine
lea rcx, [rsp + 0x50]
call fcn.140001190
nop
lea r9, str.SPOOLER
lea r8, str.lpszService___s
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140001370
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xf0]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4f0]
call fcn.14019d7c0
mov edx, 0x200
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r9, str.cmd.exe
lea r8, [rsp + 0xf0]
lea rdx, [0x14021c280]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x80]
call fcn.14019d7c0
mov dword [rsp + 0x80], VarBstrFromDisp
xor ebx, ebx
mov word [rsp + 0xc0], bx
mov dword [rsp + 0xbc], 1
lea r9, str.SPOOLER
lea r8, str._C_net_stop___s___Y
mov edx, 0x400
lea rcx, [rsp + 0x8f0]
call fcn.140198b60
lea r11, [rsp + 0x60]
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 0x140019a2a
mov edx, 0xea60
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.SPOOLER
lea rcx, str.SPOOLER
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140019a2a
call fcn.140059f20
mov rcx, qword [rax + 8]
mov dword [rcx + 0xa88], 1
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140001370
nop
lea rcx, [rsp + 0x50]
call fcn.140001320
mov eax, ebx
mov rcx, qword [rsp + 0x10f0]
xor rcx, rsp
call fcn.140198b40
add rsp, 0x1100
pop rbx
ret