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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x588]
sub rsp, 0x680
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x570], rax
xor r8d, r8d
lea rdx, str.Tool_DeleteRestoreFile
lea rcx, [rsp + 0x20]
call fcn.140017fc0
nop
call fcn.140054cb8
mov rbx, qword [rax + 8]
xor edi, edi
mov word [rbp + 0x150], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x152]
call fcn.140192cb0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.140192cb0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x360]
call fcn.140192cb0
mov edx, 0x208
lea rcx, [rsp + 0x40]
call fcn.14000db20
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.Canon_
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 1
test eax, eax
cmove edi, esi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.InstRestore
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
cmove edi, esi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, qword [rbx + 0x1b8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp + 0x360]
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.color_
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
test edi, edi
jne 0x14000fcad
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000fc71
lea rcx, [rsp + 0x40]
call fcn.14000dbc0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rcx, [rbp + 0x360]
call fcn.14000e410
cmp eax, esi
jne 0x14000fc9e
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000fc9e
lea rcx, [rbp + 0x150]
call fcn.14000dbc0
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, esi
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140017c80
nop
lea rcx, [rsp + 0x20]
call fcn.140018150
mov eax, edi
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.1401945b0
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140015e60
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rdi
mov eax, 0x1100
call fcn.1401945e0
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1118], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x10f0], rax
mov rdi, rcx
xor r8d, r8d
lea rdx, str.ServiceStartFromCmdLine
lea rcx, [rsp + 0x50]
call fcn.140017fc0
nop
mov r9, rdi
lea r8, str.lpszService___s
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140017c80
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xf0]
call fcn.140192cb0
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4f0]
call fcn.140192cb0
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, [0x1401c9460]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x80]
call fcn.140192cb0
mov dword [rsp + 0x80], VarBstrFromDisp
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.140196100
xor edx, edx
mov rcx, rdi
call fcn.140015c90
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 0x14001600b
mov edx, 1
mov rcx, rdi
call fcn.140015c90
mov ebx, eax
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]
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140017c80
nop
lea rcx, [rsp + 0x50]
call fcn.140018150
mov eax, ebx
mov rcx, qword [rsp + 0x10f0]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x1118]
add rsp, 0x1100
pop rdi
ret
Function at 0x1400164e0
Capabilities:
Access the windows event log
Get token privileges

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12d, edx
xor r13d, r13d
mov qword [rax - 0x48], r13
mov qword [rsp + 0x68], r13
mov dword [rax + 0x20], 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 + 0x70], rax
test rax, rax
jne 0x14001654f
mov dword [rsp + 0x50], 0x80004005
lea rdx, [0x14025dcf8]
lea rcx, [rsp + 0x50]
call fcn.1401938f0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x60]
mov r14d, 1
mov r8d, r14d
mov edx, 0x20008
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1400165ab
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x60]
mov edx, 0x20008
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400165ab
mov dword [rsp + 0x54], 0x80004005
lea rdx, [0x14025dcf8]
lea rcx, [rsp + 0x54]
call fcn.1401938f0
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc8]
xor r8d, r8d
mov edx, r14d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [rsp + 0xc8]
call fcn.140050e70
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140016603
mov dword [rsp + 0x58], 0x80004005
lea rdx, [0x14025dcf8]
lea rcx, [rsp + 0x58]
call fcn.1401938f0
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc8]
mov r8, rbx
mov edx, r14d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r11, qword [rbx]
cmp r12d, 3
je 0x14001664b
cmp r12d, 4
je 0x140016646
jbe 0x14001664b
cmp r12d, 6
ja 0x14001664b
movzx esi, r14w
jmp 0x14001664b
mov esi, 2
xor r8d, r8d
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0xc0]
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 0x14001668f
test rdi, rdi
je 0x14001669d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test rbx, rbx
je 0x1400166aa
mov rcx, rbx
call fcn.140050e78
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400166ba
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 0x140016ec0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
call fcn.140192cb0
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, [0x1401c9460]
lea rcx, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.140196124
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 [0x14027daa4], eax
cmp eax, ebx
je 0x140016f71
cmp eax, 2
jne 0x140016fec
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 0x140016fec
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 [0x14027dab0], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [0x14027daac]
test eax, eax
mov dword [0x14027dab4], eax
cmovne ecx, ebx
mov dword [0x14027daac], 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 [0x140264a40], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x140017086
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 [0x14027dac0], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [0x14027dabc]
test eax, eax
mov dword [0x14027dac4], eax
cmovne ecx, ebx
mov dword [0x14027dabc], ecx
mov dword [0x14027daa8], ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1401945b0
add rsp, 0x460
pop rbx
ret
Function at 0x140017590
Capabilities:
Create directory
Get common file path

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0xb0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r12d, r8d
mov rdi, rdx
mov esi, 1
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x44], r12d
mov rax, qword [str.Canon]
mov qword [r11 - 0x78], rax
mov eax, dword [0x1401c97e0]
mov dword [rsp + 0x58], eax
xor eax, eax
mov qword [r11 - 0x6c], rax
mov qword [r11 - 0x64], rax
mov qword [r11 - 0x5c], rax
mov dword [rsp + 0x74], eax
mov rax, qword [str.BaseInstaller]
mov qword [r11 - 0x50], rax
mov rax, qword [0x1401c94a0]
mov qword [r11 - 0x48], rax
mov rax, qword [0x1401c94a8]
mov qword [r11 - 0x40], rax
mov eax, dword [reloc.OLEAUT32.dll_VarBstrFromDisp]
mov dword [r11 - 0x38], eax
xor eax, eax
mov qword [r11 - 0x34], rax
mov dword [r11 - 0x2c], 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 0x140017664
mov dword [rsp + 0x34], 0x80004005
lea rdx, [0x14025dcf8]
lea rcx, [rsp + 0x34]
call fcn.1401938f0
lea r8, [rsp + 0x44]
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x140017694
mov dword [rsp + 0x40], 0x80004005
lea rdx, [0x14025dcf8]
lea rcx, [rsp + 0x40]
call fcn.1401938f0
cmp ebx, 2
jge 0x1400176ce
movsxd rax, ebx
lea rcx, [rax + rax*4]
lea rax, [rsp + rcx*8 + 0x50]
mov rdx, r12
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, str._s_s
mov rcx, rdi
call fcn.140016e40
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc ebx
jmp 0x140017694
jmp 0x1400176d4
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400176e4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop r12
pop rdi
pop rsi
ret
Function at 0x140017c80
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov ebx, edx
mov r13, rcx
xor r14d, r14d
mov r12d, r14d
mov edi, r14d
mov qword [rsp + 0x38], r14
test edx, edx
je 0x140017ce6
cmp edx, 2
jbe 0x140017cd4
cmp edx, 7
ja 0x140017ce6
cmp dword [0x14027daa4], 2
jne 0x140017ce6
mov ecx, 1
mov r12d, ecx
jmp 0x140017ceb
mov ecx, 1
cmp dword [0x14027daa4], 0
cmovne r12d, ecx
jmp 0x140017ceb
mov ecx, 1
cmp edx, 3
je 0x140017d1e
cmp edx, 4
je 0x140017d0d
jbe 0x140017d2c
cmp edx, 6
ja 0x140017d2c
mov eax, dword [0x140264a40]
and eax, 1
cmp al, 1
jne 0x140017d2c
mov edi, ecx
jmp 0x140017d2c
mov eax, dword [0x140264a40]
and eax, 2
cmp al, 2
jne 0x140017d2c
mov edi, ecx
jmp 0x140017d2c
movzx eax, byte [0x140264a40]
and al, 4
cmp al, 4
cmove edi, ecx
test r12d, r12d
jne 0x140017d4b
test edi, edi
jne 0x140017d4b
mov dword [rsp + 0x30], r14d
lea rdx, [0x14025dcf8]
lea rcx, [rsp + 0x30]
call fcn.1401938f0
test r8, r8
je 0x140017dc5
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, r8
mov r8, qword [r13]
mov rcx, r13
call fcn.1400170b0
mov rsi, rax
test rax, rax
je 0x140017dc5
test r12d, r12d
je 0x140017dac
cmp dword [0x14027daac], 0
je 0x140017da3
mov r8, qword [rsp + 0x38]
mov rdx, rax
mov rcx, r13
call fcn.140017770
jmp 0x140017dac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, edi
je 0x140017dbd
mov r8, rsi
mov edx, ebx
mov rcx, r13
call fcn.1400164e0
mov rcx, rsi
call fcn.140050e78
cmp ebx, 2
jne 0x140017dce
mov dword [r13 + 8], r14d
add rsp, 0x58
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140017fc0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
sub rsp, 0x48
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
mov dword [rcx + 8], 1
xor esi, esi
mov qword [rcx], rsi
cmp dword [0x14027daa8], esi
jne 0x140018000
call fcn.140016ec0
cmp dword [0x14027daa4], esi
jne 0x140018010
cmp dword [0x140264a40], esi
je 0x14001807b
mov ecx, 0x800
call fcn.140050e70
mov qword [rbx], rax
test rax, rax
je 0x140018073
xor edx, edx
mov r8d, 0x800
mov rcx, rax
call fcn.140192cb0
mov r11, qword [rbx]
mov ecx, 0x7ffffffe
mov edx, 0x400
mov r8, rsi
test rdx, rdx
je 0x14001806b
test rcx, rcx
je 0x14001806f
movzx eax, word [rdi]
test ax, ax
je 0x14001806f
mov word [r11], ax
add r11, 2
add rdi, 2
dec rdx
dec rcx
inc r8
jmp 0x140018042
sub r11, 2
mov word [r11], si
cmp dword [0x14027daa4], esi
jne 0x140018090
mov dword [rsp + 0x20], esi
lea rdx, [0x14025dd50]
lea rcx, [rsp + 0x20]
call fcn.1401938f0
cmp qword [rsp + 0x80], rsi
jne 0x1400180b0
lea r8, [0x1401c6ea8]
mov edx, 1
mov rcx, rbx
call fcn.140017c80
jmp 0x14001812f
mov qword [rsp + 0x30], rsi
lea r12, [rsp + 0x88]
mov ecx, 0x800
call fcn.140050e70
mov rdi, rax
test rax, rax
je 0x140018121
mov r9, r12
mov r8, qword [rsp + 0x80]
mov edx, 0x3ff
mov rcx, rax
call fcn.140196484
test eax, eax
js 0x140018110
cdqe
cmp rax, 0x3ff
ja 0x140018110
jne 0x1400180fe
mov word [rdi + 0x7fe], si
mov r8, rdi
mov edx, 1
mov rcx, rbx
call fcn.140017c80
jmp 0x140018117
mov word [rdi + 0x7fe], si
mov rcx, rdi
call fcn.140050e78
jmp 0x14001812f
lea rcx, str.____logging_Error__
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x140018136
mov rax, rbx
add rsp, 0x48
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140018490
Capabilities:
Get common file path
Get hostname

Disassembly:
push rbp
push rdi
push r12
push r14
sub rsp, 0x8b8
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov r12, rdx
mov rbp, rcx
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
xor edi, edi
mov r14d, r8d
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x60], 0x100
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1400184e3
xor eax, eax
jmp 0x1400186ae
lea rdx, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14001850d
lea rdx, [rsp + 0x70]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, 1
jmp 0x1400186ae
lea rcx, [rsp + 0x270]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400184dc
lea r8, [rsp + 0x270]
lea rdx, str._sNETAPI32.DLL
lea rcx, [rsp + 0x680]
mov qword [rsp + 0x8b0], rbx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x680]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1400186a6
lea rdx, str.NetServerEnumEx
mov rcx, rax
mov qword [rsp + 0x8a8], rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov rsi, rax
test rax, rax
jne 0x140018593
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x14001869e
lea rdx, str.NetApiBufferFree
mov qword [rsp + 0x8a0], r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test rax, rax
jne 0x1400185c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140018696
lea rcx, [rsp + 0x480]
mov r8, rbp
mov edx, 0x100
call fcn.140195e58
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x480]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x64]
mov dword [rsp + 0x30], 0xffffffff
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov r9d, 0x10000
mov edx, 0x65
xor ecx, ecx
mov qword [rsp + 0x20], rax
call rsi
test eax, eax
jne 0x14001868b
mov edx, dword [rsp + 0x50]
mov r9, qword [rsp + 0x58]
mov ecx, edi
test edx, edx
je 0x140018648
lea rax, [r9 + 0x18]
nop
and dword [rax], 8
jne 0x140018665
mov edx, dword [rsp + 0x50]
inc ecx
add rax, 0x28
cmp ecx, edx
jb 0x140018630
mov r9, qword [rsp + 0x58]
mov ecx, edi
test edx, edx
je 0x140018685
lea rax, [r9 + 0x18]
and dword [rax], 0x10
jne 0x140018665
inc ecx
add rax, 0x28
cmp ecx, dword [rsp + 0x50]
jb 0x140018652
jmp 0x140018680
mov eax, ecx
mov rdx, r14
mov rcx, r12
lea r8, [rax + rax*4]
mov r8, qword [r9 + r8*8 + 8]
call fcn.140195e58
mov edi, 1
mov r9, qword [rsp + 0x58]
mov rcx, r9
call r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov r13, qword [rsp + 0x8a0]
mov rsi, qword [rsp + 0x8a8]
mov rbx, qword [rsp + 0x8b0]
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.1401945b0
add rsp, 0x8b8
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400186e0
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x20
test rcx, rcx
je 0x14001876b
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x14001876b
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x14001876b
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14001876b
lea rdx, [rsp + 0x70]
mov r8d, 0x104
mov rcx, rbx
call fcn.140018490
cmp eax, 1
jne 0x140018767
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14001876b
xor eax, eax
jmp 0x140018770
mov eax, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401945b0
add rsp, 0x290
pop rbx
ret

Function at 0x140018970
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x970
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov rbx, rcx
xor r8d, r8d
lea rdx, str.Tool_GetPrinterDriverDir
lea rcx, [rsp + 0x38]
call fcn.140017fc0
nop
mov r9, rbx
lea r8, str.pDir___s
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140017c80
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x560]
call fcn.140192cb0
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x160]
call fcn.140192cb0
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.140192cb0
lea rdx, [0x1401c6ea8]
lea rcx, [rsp + 0x560]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1401c6ea8]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x560]
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
mov rcx, rbx
cmp eax, 1
jne 0x140018a7a
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x140018a85
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x1401c6ea8]
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140017c80
nop
lea rcx, [rsp + 0x38]
call fcn.140018150
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.1401945b0
add rsp, 0x970
pop rbx
ret
Function at 0x140018e80
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x490
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x4c0], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.DeleteRegPCL
lea rcx, [rsp + 0x50]
call fcn.140017fc0
nop
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str.hKeyPrinter___08x__lpszPrinter___s
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140017c80
xor ebp, ebp
mov esi, ebp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018fce
nop word [rax + rax]
mov dword [rsp + 0x48], 0x208
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x70]
call fcn.140192cb0
lea r11, [rsp + 0x68]
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x70]
mov edx, esi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
test eax, eax
je 0x140018f7b
cmp eax, 0x103
je 0x140018fbc
mov ebx, ebp
jmp 0x140018fb3
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call fcn.140018e80
mov ebx, eax
cmp eax, 1
jne 0x140018fc1
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140018fb1
cmp eax, 2
je 0x140018fb1
mov ebx, ebp
mov eax, 0x103
mov esi, ebp
test eax, eax
jne 0x140018fc1
jmp 0x140018f20
mov ebx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140018fd9
mov ebx, 1
cmp eax, 2
cmovne ebx, ebp
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140017c80
nop
lea rcx, [rsp + 0x50]
call fcn.140018150
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019030
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x490
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.CheckRegPCL
lea rcx, [rsp + 0x50]
call fcn.140017fc0
nop
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str.hKeyPrinter___08x__lpszPrinter___s
mov esi, 1
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.140017c80
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140019121
mov dword [rsp + 0x40], 0x208
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x70]
call fcn.140192cb0
lea r11, [rsp + 0x68]
mov qword [rsp + 0x38], r11
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140019114
cmp eax, 0x103
sete bl
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001912b
xor ebx, ebx
cmp eax, 2
cmovne esi, ebx
mov ebx, esi
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140017c80
nop
lea rcx, [rsp + 0x50]
call fcn.140018150
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1401945b0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret