joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b560
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2040
call fcn.140014430
sub rsp, rax
and word [rsp + 0x30], 0
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x32]
lea r8d, [rax - 0x40]
xor edx, edx
call sub.msvcrt.dll_memset
lea r11, [0x1400226e0]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea r8, [0x140015910]
lea rcx, [0x1400228f0]
mov rdx, rbx
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [rsp + 0x30], 0
je 0x14000b5db
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140014030
mov eax, 1
jmp 0x14000b5dd
xor eax, eax
mov rbx, qword [rsp + 0x2050]
add rsp, 0x2040
pop rdi
ret

Function at 0x14000b5f0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2040
call fcn.140014430
sub rsp, rax
and word [rsp + 0x30], 0
mov ebx, r8d
mov rdi, rcx
mov rsi, rdx
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x32]
xor edx, edx
call sub.msvcrt.dll_memset
lea rbp, [0x1400226e0]
lea r9, [rsp + 0x30]
lea r8, [0x140015910]
lea rcx, [0x1400228f0]
mov rdx, rdi
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [rsp + 0x30], 0
je 0x14000b66c
test ebx, ebx
jne 0x14000b66c
xor eax, eax
jmp 0x14000b682
lea rcx, [0x1400228f0]
mov r9, rbp
mov r8, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea r11, [rsp + 0x2040]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000badc
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
sub rsp, 0x230
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x20], bx
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x20]
mov dx, 0x2e
call sub.msvcrt.dll_wcsrchr
cmp rax, rbx
je 0x14000bb27
mov word [rax], bx
lea rdx, str._lng.ini
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000bbe4
lea rdx, [rsp + 0x20]
lea rcx, [0x1400226e0]
call fcn.140014030
lea rdx, str.general
lea rcx, [0x1400228f0]
call fcn.140014030
lea r9, [0x1400226e0]
lea rdx, [0x140016790]
lea rcx, [0x1400228f0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea rdx, [0x140022980]
lea rcx, str.charset
cmp eax, 1
sete bl
mov dword [0x1400225b4], ebx
mov ebx, 0x3f
mov r8d, ebx
call fcn.14000b51c
lea rdx, [0x140022a00]
lea rcx, str.TranslatorName
mov r8d, ebx
call fcn.14000b51c
lea rdx, [0x140022a80]
lea rcx, str.TranslatorURL
mov r8d, 0xff
call fcn.14000b51c
add rsp, 0x230
pop rbx
ret
Function at 0x14000d0a8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2040
call fcn.140014430
sub rsp, rax
mov rdi, rcx
mov rbx, rdx
lea r8d, [rax - 0x41]
lea rcx, [rsp + 0x41]
xor edx, edx
mov byte [rsp + 0x40], 0
call sub.msvcrt.dll_memset
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
or r9d, 0xffffffff
mov r8, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x1fff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_strlen
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x2060]
lea rdx, [rsp + 0x40]
mov r8, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x2050]
add rsp, 0x2040
pop rdi
ret
Function at 0x14000fd64
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp qword [0x140028910], 0
jne 0x14000feca
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
mov qword [0x140028910], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140028910]
lea rdx, str.NtLoadDriver
mov qword [0x1400288b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140028910]
lea rdx, str.NtUnloadDriver
mov qword [0x1400288b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140028910]
lea rdx, str.NtOpenSymbolicLinkObject
mov qword [0x1400288c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140028910]
lea rdx, str.NtQuerySymbolicLinkObject
mov qword [0x1400288c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140028910]
lea rdx, str.NtQueryObject
mov qword [0x1400288d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140028910]
lea rdx, str.NtOpenThread
mov qword [0x1400288d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140028910]
lea rdx, str.NtClose
mov qword [0x1400288e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140028910]
lea rdx, str.NtQueryInformationThread
mov qword [0x1400288e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140028910]
lea rdx, str.NtSuspendThread
mov qword [0x1400288f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140028910]
lea rdx, str.NtResumeThread
mov qword [0x1400288f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140028910]
lea rdx, str.NtTerminateThread
mov qword [0x140028900], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140028908], rax
lea rax, [0x1400288b0]
add rsp, 0x28
ret

Function at 0x140010114
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140022c8c], 0
jne 0x1400101e2
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
mov rbx, rax
je 0x1400101e2
lea rdx, [0x140017460]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140022360], rax
je 0x1400101e2
lea rdx, str.Module32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140022350], rax
je 0x1400101e2
lea rdx, str.Module32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140022348], rax
je 0x1400101e2
lea rdx, str.Process32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140022120], rax
je 0x1400101e2
lea rdx, str.Process32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x140022c8c]
mov edx, 1
test rax, rax
mov qword [0x140022128], rax
cmovne ecx, edx
mov dword [0x140022c8c], ecx
add rsp, 0x20
pop rbx
ret
Function at 0x1400101e8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140022d10], 0
jne 0x1400102ca
lea rcx, str.psapi.dll
call fcn.14000a794
test rax, rax
mov rbx, rax
je 0x1400102ca
lea rdx, str.GetModuleBaseNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140022378], rax
je 0x1400102b7
lea rdx, str.EnumProcessModules
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140022368], rax
je 0x1400102b7
lea rdx, str.GetModuleFileNameExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140022358], rax
je 0x1400102b7
lea rdx, str.EnumProcesses
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1400225a8], rax
je 0x1400102b7
lea rdx, str.GetModuleInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x140022d10]
mov edx, 1
test rax, rax
mov qword [0x140022370], rax
cmovne ecx, edx
mov dword [0x140022d10], ecx
jmp 0x1400102bd
mov ecx, dword [0x140022d10]
test ecx, ecx
jne 0x1400102ca
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x20
pop rbx
ret
Function at 0x140010784
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x6c0
mov rdi, rcx
mov rcx, qword [rcx + 0x48]
xor r12d, r12d
cmp rcx, r12
je 0x1400107ad
call sub.msvcrt.dll_free
xor edx, edx
mov qword [rdi + 0x48], r12
mov dword [rdi + 0x58], r12d
lea ecx, [rdx + 2]
mov dword [rdi + 0x50], r12d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rcx, [rsp + 0x484]
xor edx, edx
mov r8d, 0x234
mov rbp, rax
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x480]
mov rcx, rbp
mov dword [rsp + 0x480], 0x238
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1400109c2
mov r8d, dword [rsp + 0x488]
mov eax, dword [rsp + 0x4a0]
xor edx, edx
mov ecx, 0x410
mov word [rsp + 0x34], r12w
mov dword [rsp + 0x244], r12d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x240], eax
mov dword [rsp + 0x248], r12d
mov dword [rsp + 0x24c], r12d
mov dword [rsp + 0x250], r12d
mov dword [rsp + 0x254], r12d
mov dword [rsp + 0x258], r12d
mov dword [rsp + 0x25c], r12d
mov dword [rsp + 0x260], r12d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, r12
mov rbx, rax
jne 0x14001089e
call fcn.140009e18
cmp dword [rax + 4], 5
jbe 0x1400109b4
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, r12
mov rbx, rax
je 0x1400109b4
lea rcx, [rsp + 0x272]
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x270], r12w
call sub.msvcrt.dll_memset
mov rcx, rdi
call fcn.140010bf4
mov r11, qword [rdi + 0x20]
cmp r11, r12
je 0x1400108e3
lea r8, [rsp + 0x270]
mov r9d, 0x104
xor edx, edx
mov rcx, rbx
call r11
cmp word [rsp + 0x270], r12w
jne 0x14001095a
cmp dword [0x140028d50], r12d
mov dword [rsp + 0x6e0], 0x104
jne 0x140010937
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp rax, r12
je 0x140010937
lea rdx, str.QueryFullProcessImageNameW
mov rcx, rax
mov dword [0x140028d50], 1
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140028d58], rax
jmp 0x14001093e
mov rax, qword [0x140028d58]
cmp rax, r12
je 0x14001095a
lea r9, [rsp + 0x6e0]
lea r8, [rsp + 0x270]
xor edx, edx
mov rcx, rbx
call rax
cmp word [rsp + 0x272], 0x3a
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x34]
jne 0x140010979
call fcn.140014030
jmp 0x14001097e
call fcn.1400102d0
lea rax, [rsp + 0x25c]
lea r9, [rsp + 0x254]
lea r8, [rsp + 0x24c]
lea rdx, [rsp + 0x244]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.14001068c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x48]
call fcn.140010de4
lea rdx, [rsp + 0x480]
mov rcx, rbp
call sub.KERNEL32.dll_Process32NextW
cmp eax, r12d
jne 0x1400107fb
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140010bf4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x140010c76
lea rcx, str.psapi.dll
call fcn.14000a794
lea rdx, str.GetModuleBaseNameW
mov rcx, rax
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.EnumProcessModules
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetModuleFileNameExW
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.EnumProcesses
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetModuleInformation
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
add rsp, 0x20
pop rbx
ret

Function at 0x140011258
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rsi
push rdi
mov eax, 0x20030
call fcn.140014430
sub rsp, rax
test ecx, ecx
mov r10, r9
mov rdi, r8
mov rsi, rdx
je 0x1400112e2
cmp qword [rsp + 0x20060], 0
je 0x1400112c4
mov rcx, qword [rsp + 0x20060]
mov dx, 0x22
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x1400112c4
mov r9, qword [rsp + 0x20060]
and word [rsp + 0x30], 0
lea r8, [0x1400175f8]
lea rcx, [rsp + 0x30]
mov edx, 0xfffe
call sub.msvcrt.dll__snwprintf
lea r8, [rsp + 0x30]
jmp 0x1400112cc
mov r8, qword [rsp + 0x20060]
mov r9, qword [rsp + 0x20070]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x140011311
mov rax, qword [rsp + 0x20070]
mov r9, qword [rsp + 0x20060]
mov r8, r10
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x20068]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rsi, qword [rsp + 0x20040]
add rsp, 0x20030
pop rdi
ret

Function at 0x140011324
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x4040
call fcn.140014430
sub rsp, rax
mov rsi, rdx
xor edx, edx
mov rdi, r8
test ecx, ecx
mov rbx, r9
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x32]
je 0x140011398
call sub.msvcrt.dll_memset
mov r11, qword [rsp + 0x4070]
and word [rsp + 0x30], 0
mov edx, dword [r11]
test edx, edx
je 0x14001137b
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.14000a360
mov r9, qword [rsp + 0x4078]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
jmp 0x1400113fe
and word [rsp + 0x30], 0
call sub.msvcrt.dll_memset
mov r11, qword [rsp + 0x4078]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x30]
lea r8, [0x140015910]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edi, edi
lea rcx, [rsp + 0x30]
test eax, eax
setne dil
call sub.msvcrt.dll_wcslen
test eax, eax
je 0x1400113fe
mov rdx, qword [rsp + 0x4070]
lea rcx, [rsp + 0x30]
mov r9d, eax
mov r8, rbx
call fcn.14000a418
lea r11, [rsp + 0x4040]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140011418
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x220
test ecx, ecx
mov eax, r9d
mov rdi, r8
mov rsi, rdx
je 0x140011484
mov rax, qword [rsp + 0x250]
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
mov ebx, dword [rax]
xor edx, edx
mov r8d, 0x1fc
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, 0xa
mov ecx, ebx
call sub.msvcrt.dll__itow
mov r9, qword [rsp + 0x258]
mov rdx, rdi
mov r8, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x1400114a5
mov r9, qword [rsp + 0x258]
mov r8d, eax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rcx, qword [rsp + 0x250]
mov dword [rcx], eax
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400114f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
lea eax, [r9 + r9]
mov rbx, r8
lea r9, [r11 - 0x18]
mov dword [rsp + 0x68], eax
lea rax, [r11 + 0x20]
xor r8d, r8d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011540
cmp dword [rsp + 0x68], 2
jb 0x14001153c
mov ecx, dword [rsp + 0x68]
shr rcx, 1
and word [rbx + rcx*2], ax
jmp 0x140011540
and word [rbx], 0
add rsp, 0x40
pop rbx
ret

Function at 0x1400115b8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rcx, r8
mov rbx, r8
mov rdi, rdx
call sub.msvcrt.dll_wcslen
xor r8d, r8d
lea r9d, [rax + rax + 2]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x28], r9d
mov r9d, 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140011f10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rcx], 0
mov rbx, rcx
je 0x140011f29
mov eax, 1
jmp 0x140011fc4
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx], rax
je 0x140011fc2
xor ecx, ecx
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x20], 0x4e
mov qword [rsp + 0x29], rcx
mov qword [rsp + 0x21], rcx
mov byte [rsp + 0x30], cl
mov word [rsp + 0x31], cx
mov byte [rsp + 0x33], cl
mov rcx, rax
mov byte [rsp + 0x21], 0x74
mov byte [rsp + 0x2b], 0x65
mov byte [rsp + 0x2c], 0x61
mov byte [rsp + 0x26], 0x74
mov byte [rsp + 0x27], 0x65
mov byte [rsp + 0x22], 0x43
mov byte [rsp + 0x2a], 0x72
mov byte [rsp + 0x2d], 0x64
mov byte [rsp + 0x23], 0x72
mov byte [rsp + 0x2e], 0x45
mov byte [rsp + 0x2f], 0x78
mov byte [rsp + 0x24], 0x65
mov byte [rsp + 0x25], 0x61
mov byte [rsp + 0x28], 0x54
mov byte [rsp + 0x29], 0x68
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 8], rax
jmp 0x140011f1f
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140011fcc
Capabilities:
Check os version
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x200
mov rbx, rcx
lea rcx, [rax - 0x128]
mov rsi, rdx
mov dword [rax - 0x128], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0xe4], 6
jb 0x1400120fe
mov rcx, rbx
call fcn.140011f10
mov rdi, qword [rbx + 8]
xor ebx, ebx
cmp rdi, rbx
jne 0x140012024
xor eax, eax
jmp 0x140012136
xor edx, edx
lea rcx, [rsp + 0x88]
lea r8d, [rdx + 0x40]
call sub.msvcrt.dll_memset
xor eax, eax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov r9, rsi
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0xd0]
xor r8d, r8d
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x80]
mov edx, 0x1fffff
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x238]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x80], 0x48
mov qword [rsp + 0x88], 0x10003
mov qword [rsp + 0x90], InitCommonControls
mov qword [rsp + 0x20], rax
mov qword [rsp + 0xa8], 0x10004
mov qword [rsp + 0xb0], 8
mov qword [rsp + 0x60], rbx
call rdi
cmp eax, ebx
cmove rbx, qword [rsp + 0x60]
mov rax, rbx
jmp 0x140012136
mov rax, qword [rsp + 0x248]
mov r9, qword [rsp + 0x230]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x238]
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14001295c
Capabilities:
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x28], 0
mov rsi, rdx
xor edx, edx
mov rdi, rcx
lea rcx, [rax - 0x24]
lea r8d, [rdx + 0x18]
call sub.msvcrt.dll_memset
xor ebx, ebx
jmp 0x1400129b5
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140012994
mov dword [rdi + 0x30], eax
cmp dword [rsp + 0x24], 4
je 0x1400129c7
cmp dword [rsp + 0x24], 1
je 0x1400129c7
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 1
cmp ebx, 0x64
jg 0x1400129c7
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140012989
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400129d8
Capabilities:
Create thread
Delete file
Delete service
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x860
and word [rsp + 0x60], 0
mov rsi, rcx
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x7fe
call sub.msvcrt.dll_memset
lea r9, [rsi + 0x34]
cmp word [r9], 0
je 0x140012ac3
cmp word [r9], 0x5c
jne 0x140012a27
cmp word [r9 + 2], 0x5c
jne 0x140012a27
add r9, 4
lea r8, str._s_admin_AdvancedRun.exe
lea rcx, [rsp + 0x60]
mov edx, 0x3ff
call sub.msvcrt.dll__snwprintf
and dword [rsp + 0x878], 0
lea rax, [rsp + 0x878]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [0x140012228]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0x1388
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [rsp + 0x870], 0
lea rdx, [rsp + 0x870]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x102
jne 0x140012ab4
mov eax, 0x40
jmp 0x140012ba9
mov eax, dword [rsp + 0x870]
test eax, eax
jne 0x140012ba9
mov rcx, rsi
call fcn.1400126d0
test rax, rax
mov rbx, rax
je 0x140012b97
mov rcx, qword [rsi + 0x648]
lea rdx, [0x140015910]
mov edi, 1
test rcx, rcx
lea r8, [rsp + 0x30]
cmovne rdx, rcx
mov rcx, rax
mov qword [rsp + 0x30], rdx
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140012b64
and dword [rsi + 0x30], 0
mov r8d, 0xffff
mov rdx, rbx
mov rcx, rsi
call fcn.14001295c
mov r11d, dword [rsi + 0x30]
test r11d, r11d
je 0x140012b2f
mov dword [rsi + 0x654], r11d
and dword [rsp + 0x40], 0
xor edx, edx
lea rcx, [rsp + 0x44]
lea r8d, [rdx + 0x18]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x40]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call fcn.14001295c
jmp 0x140012b70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x654], eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp word [rsp + 0x60], 0
je 0x140012ba3
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140012ba3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x654], eax
mov eax, dword [rsi + 0x654]
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret