joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002a28
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
mov rsi, rdx
mov dword [rax - 0x20], 0x80
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002a71
xor eax, eax
jmp 0x140002ada
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov rcx, rbx
lea r8d, [r9 + 2]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, 0xffffffffffffffff
je 0x140002a6d
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsi], ebp
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140002b64
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x160
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r13, qword [rsp + 0x1c0]
mov eax, edx
xor r14d, r14d
sub edx, dword [rax + rcx - 6]
mov r12, r9
sub edx, dword [rax + rcx - 0xa]
mov qword [r13], r14
mov qword [r9], r14
sub edx, 0x22
movsxd rbx, edx
add rbx, rcx
cmp dword [rax + rcx - 0x16], 0x6054b50
jne 0x140002cd5
cmp dword [rbx], 0x1234567b
je 0x140002bd9
lea rdx, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
xor ecx, ecx
call fcn.1400027a8
jmp 0x140002cd7
test edx, edx
js 0x140002cd5
cmp dword [rbx + 8], r14d
je 0x140002bff
movsxd rax, dword [rbx + 4]
mov rcx, rbx
sub rcx, rax
movsxd rax, dword [rbx + 8]
sub rcx, rax
mov qword [0x1400375f8], rcx
sub edx, dword [rbx + 8]
lea rdi, [rbx + 4]
mov ebp, 0x104
sub edx, dword [rdi]
mov ecx, ebp
mov dword [r8], edx
movsxd rax, dword [rdi]
sub rbx, rax
call fcn.140009c30
mov rsi, rax
test rax, rax
je 0x140002cd5
lea rdx, [rsp + 0x40]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140002cc1
lea rdx, [0x140026ce8]
lea rcx, [rsp + 0x40]
mov r9, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x140002cc1
mov r9d, dword [rdi]
xor r8d, r8d
mov qword [rsp + 0x30], r14
lea ecx, [r8 + 2]
mov rdx, rsi
mov word [rsp + 0x28], r14w
mov word [rsp + 0x20], r14w
call fcn.1400010f8
mov rbp, rax
test rax, rax
je 0x140002cd5
movsxd r8, dword [rdi]
mov rdx, rbx
mov rcx, rax
call fcn.14000a910
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
add rcx, rbx
call fcn.14001e750
mov rcx, rbp
mov qword [r13], rax
mov qword [r12], rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 1
jmp 0x140002cd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_create_temporary_file
mov ecx, eax
call fcn.1400027a8
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400093b0
add rsp, 0x160
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400031d8
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r12, rdx
lea rax, [rsp + 0x48]
mov rdi, r8
mov r13, rcx
lea rdx, str.SoftwarePythonPythonCore
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], rax
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140003237
xor eax, eax
jmp 0x1400033a8
and qword [rsp + 0x38], rsi
and qword [rsp + 0x30], rsi
and qword [rsp + 0x28], rsi
and qword [rsp + 0x20], rsi
mov dword [rsp + 0x40], 0x50
xor edx, edx
jmp 0x14000337b
inc esi
mov dword [rsp + 0x40], 0x50
test rdi, rdi
je 0x140003296
cmp byte [rdi], 0
je 0x140003296
lea rdx, [rsp + 0x60]
mov rax, rdi
sub rdx, rdi
movzx ecx, byte [rax]
movzx r8d, byte [rax + rdx]
sub ecx, r8d
jne 0x14000328e
inc rax
test r8d, r8d
jne 0x140003279
test ecx, ecx
jne 0x140003361
lea r8, [rsp + 0x60]
lea rdx, str.Python_Version__s__found_in_registry_
lea rcx, [rbp]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [rsp + 0x60]
lea rdx, str.SoftwarePythonPythonCore_sInstallPath
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r11, [rsp + 0x50]
lea rdx, [rbp - 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003361
mov ecx, 0x110
call fcn.140009c30
mov dword [rsp + 0x44], 0x105
mov rbx, rax
test rax, rax
je 0x140003356
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140003356
lea r9, [rbp]
xor r8d, r8d
mov edx, 0x180
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageA]
mov r9, rbx
mov edx, 0x19a
mov rcx, r13
movsxd r8, eax
mov qword [rbx + 0x108], r12
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov edx, esi
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x14000325a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400093b0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x160
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004168
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea r9, [0x140026818]
lea r8, [0x1400373a0]
lea rdx, str.runas
xor ecx, ecx
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x1400041e0
lea rdx, str.Failed_to_start_elevated_process__ShellExecute_returned__d_
lea rcx, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, str.Setup
lea rdx, [rsp + 0x30]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400093b0
add rsp, 0xc8
ret

Function at 0x140004218
Capabilities:
Create process on windows
Resume thread
Self delete

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rbp + 0x200], rax
lea rdx, [rbp - 0x20]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rbp - 0x20]
lea rdx, str._s.bat
lea rcx, [rbp + 0xf0]
call fcn.14000c714
lea rdx, [0x140027364]
lea rcx, [rbp + 0xf0]
call fcn.14000c6b4
lea rdx, str.:Repeat_n
mov rcx, rax
mov rbx, rax
call fcn.14000a3c8
lea r8, [rbp - 0x20]
lea rdx, str.del___s__n
mov rcx, rbx
call fcn.14000a3c8
lea r8, [rbp - 0x20]
lea rdx, str.if_exist___s__goto_Repeat_n
mov rcx, rbx
call fcn.14000a3c8
lea r8, [rbp + 0xf0]
lea rdx, str.del___s__n
mov rcx, rbx
call fcn.14000a3c8
mov rcx, rbx
call fcn.14000ad7c
mov ebx, 0x68
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call fcn.140008d30
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [0x140026688]
lea rdx, [rbp + 0xf0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], 0x44
mov dword [rbp - 0x54], 1
mov word [rbp - 0x50], bx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140004394
mov rcx, qword [rsp + 0x58]
lea edx, [rbx - 0xf]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea edx, [rbx + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400093b0
mov rbx, qword [rsp + 0x320]
add rsp, 0x310
pop rbp
ret
Function at 0x1400043b4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
call fcn.14001e750
mov edx, 0x5b
mov rcx, rax
mov rbp, rax
call fcn.140008cf8
mov rdi, rax
test rax, rax
je 0x1400044ac
lea rcx, [rax + 1]
mov edx, 0x5d
call fcn.140008cf8
mov rbx, rax
test rax, rax
je 0x1400044ac
lea rcx, [rax + 1]
mov edx, 0xa
mov byte [rax], 0
call fcn.140008cf8
test rax, rax
je 0x14000441f
mov byte [rax], 0
mov rcx, qword [section..data]
lea rax, [rsp + 0x48]
lea rdx, [rdi + 1]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140004465
call qword [sym.imp.USER32.dll_GetFocus]
lea r8, str.Could_not_open_key
xor r9d, r9d
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400044a4
mov rcx, qword [rsp + 0x48]
lea rdx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x140004499
cmp eax, 2
je 0x140004499
call qword [sym.imp.USER32.dll_GetFocus]
lea r8, str.Could_not_delete_key
xor r9d, r9d
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbp
call fcn.140009ba0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400044c4
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
call fcn.14001e750
mov edx, 0x5b
mov rcx, rax
mov rbp, rax
call fcn.140008cf8
mov rdi, rax
test rax, rax
je 0x1400045c0
lea rcx, [rax + 1]
mov edx, 0x5d
call fcn.140008cf8
mov rbx, rax
test rax, rax
je 0x1400045c0
lea rcx, [rax + 1]
mov edx, 0x3d
mov byte [rax], 0
call fcn.140008cf8
test rax, rax
je 0x1400045c0
mov byte [rax], 0
mov rcx, qword [section..data]
lea rax, [rsp + 0x48]
lea rdx, [rdi + 1]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140004579
call qword [sym.imp.USER32.dll_GetFocus]
lea r8, str.Could_not_open_key
xor r9d, r9d
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400045b8
mov rcx, qword [rsp + 0x48]
lea rdx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1400045ad
cmp eax, 2
je 0x1400045ad
call qword [sym.imp.USER32.dll_GetFocus]
lea r8, str.Could_not_delete_value
xor r9d, r9d
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbp
call fcn.140009ba0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400045d8
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x3a
call fcn.140008cf8
mov rbx, rax
test rax, rax
jne 0x1400045f6
add rsp, 0x20
pop rbx
ret
inc rbx
movsx ecx, byte [rbx]
call fcn.14000ce24
test eax, eax
jne 0x1400045f6
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_DeleteFileA]
Function at 0x140004614
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x3a
call fcn.140008cf8
mov rbx, rax
test rax, rax
jne 0x140004632
add rsp, 0x20
pop rbx
ret
inc rbx
movsx ecx, byte [rbx]
call fcn.14000ce24
test eax, eax
jne 0x140004632
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
Function at 0x140004d30
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13d, edx
lea rdx, str.Py_Initialize
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_SetProgramName
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_Finalize
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyRun_SimpleString
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PySys_GetObject
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_OptimizeFlag
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
cmp qword [0x1400360b8], rcx
jne 0x140004dce
xor eax, eax
jmp 0x140004e15
test rdi, rdi
je 0x140004e12
test rsi, rsi
je 0x140004e12
test rbp, rbp
je 0x140004e12
test r12, r12
je 0x140004e12
test r14, r14
je 0x140004e12
test rax, rax
je 0x140004e12
test r13d, r13d
setne cl
mov dword [rax], ecx
lea rcx, [0x140038640]
call rsi
call rdi
mov edx, r13d
mov rcx, r12
call fcn.140004bd0
mov ebx, eax
call rbp
mov eax, ebx
jmp 0x140004e15
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x14000e287
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400342a0]
jne 0x1400093ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1400093c6
repz ret
ror rcx, 0x10
jmp 0x14000e1e0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400361e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400362d8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000e265
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400361e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000e287
mov rax, qword [rsp + 0x88]
mov qword [0x1400362d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140036278], rax
mov rax, qword [0x1400362d8]
mov qword [0x140036150], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140036260], rax
mov dword [0x140036140], 0xc0000409
mov dword [0x140036144], 1
mov rax, qword [0x1400342a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400342a8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400361d8], eax
mov ecx, 1
call fcn.14001a4b8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002d1c8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400361d8], 0
jne 0x14000e30e
mov ecx, 1
call fcn.14001a4b8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14001dd54
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14001057c
xor ebx, ebx
cmp qword [0x140037180], rbx
mov rdi, rax
jne 0x14001de67
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14001df3e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001df3e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140037180], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140037188], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140037190], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400371a0], rax
test rax, rax
je 0x14001de5e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140037198], rax
jmp 0x14001de6e
mov rax, qword [0x140037198]
jmp 0x14001de75
mov rax, qword [0x140037198]
mov r11, qword [0x1400371a0]
cmp rax, rdi
je 0x14001dedc
cmp r11, rdi
je 0x14001dedc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400371a0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14001dedc
test rax, rax
je 0x14001dedc
call rsi
test rax, rax
je 0x14001ded6
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14001ded6
test byte [rsp + 0x40], 1
jne 0x14001dedc
bts ebp, 0x15
jmp 0x14001df1c
mov rcx, qword [0x140037188]
cmp rcx, rdi
je 0x14001df1c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001df1c
call rax
mov rbx, rax
test rax, rax
je 0x14001df1c
mov rcx, qword [0x140037190]
cmp rcx, rdi
je 0x14001df1c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001df1c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140037180]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001df3e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14001df40
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400093b0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140024c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x140024cba
call fcn.14000f5ac
and dword [rax], 0
call fcn.14000f58c
mov ebx, 0x16
mov dword [rax], ebx
call fcn.14000e584
mov eax, ebx
jmp 0x140024d0a
test edx, 0xfffffff9
jne 0x140024c9d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140024ce3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000f5cc
call fcn.14000f58c
mov eax, dword [rax]
jmp 0x140024d0a
test al, 0x10
jne 0x140024d08
test al, 1
je 0x140024d08
test bl, 2
je 0x140024d08
call fcn.14000f5ac
mov dword [rax], 5
call fcn.14000f58c
mov dword [rax], 0xd
jmp 0x140024cda
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140003000
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [0x140022018]
cmp eax, ebx
jne 0x14000310c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], esi
call qword [0x140022010]
cmp eax, ebx
jne 0x1400030fd
cmp dword [rsp + 0x30], 2
mov byte [rsp + 0x143], bl
jne 0x1400030c1
lea rcx, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
call qword [0x1400221b8]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x1400030fd
lea rdx, [rsp + 0x40]
mov ecx, ebx
sub rdx, rdi
lea rax, [rsi + 0x7ffffefa]
cmp rax, rbx
je 0x1400030e9
mov al, byte [rdx + rdi]
cmp al, bl
je 0x1400030e9
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x1400030cb
cmp rsi, rbx
jne 0x1400030f6
dec rdi
mov ecx, 0x8007007a
cmp ecx, ebx
mov byte [rdi], bl
setge bl
mov rcx, qword [rsp + 0x38]
call qword [0x140022020]
mov eax, ebx
jmp 0x14000310e
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000feb0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004230
Capabilities:
Modify service
Query service status
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rcx
xor r8d, r8d
mov rcx, qword [rcx + 0x428]
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [0x140022088]
mov rcx, qword [rsi + 0x428]
xor ebp, ebp
mov qword [rsp + 0x50], rbp
or r9d, 0xffffffff
mov qword [rsp + 0x48], rbp
or edx, r9d
mov qword [rsp + 0x40], rbp
mov rcx, qword [rcx + 8]
lea r8d, [rbp + 2]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [0x140022080]
xor eax, eax
mov ebx, ebp
mov qword [rsp + 0x60], rax
mov edi, ebp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
nop dword [rax]
mov rcx, qword [rsi + 0x428]
lea rdx, [rsp + 0x60]
mov rcx, qword [rcx + 8]
call qword [0x140022078]
test eax, eax
je 0x14000430a
cmp dword [rsp + 0x64], 4
mov ebx, ebp
sete bl
test ebx, ebx
jne 0x14000430a
mov ecx, 0x3e8
call qword [0x1400223a8]
inc edi
cmp edi, 0x1e
jb 0x1400042d0
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000feb0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140004340
Capabilities:
Modify service
Query service status
Stop service

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea r8, [r11 - 0x38]
mov rsi, rcx
mov qword [r11 - 0x38], rax
mov rcx, qword [rcx + 0x428]
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
lea edx, [rax + 1]
mov dword [rsp + 0x78], eax
mov rcx, qword [rcx + 8]
call qword [0x140022070]
mov rcx, qword [rsi + 0x428]
xor ebp, ebp
mov qword [rsp + 0x50], rbp
or r9d, 0xffffffff
mov qword [rsp + 0x48], rbp
or edx, r9d
mov qword [rsp + 0x40], rbp
mov rcx, qword [rcx + 8]
lea r8d, [rbp + 3]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [0x140022080]
xor eax, eax
mov ebx, ebp
mov qword [rsp + 0x60], rax
mov edi, ebp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
mov rcx, qword [rsi + 0x428]
lea rdx, [rsp + 0x60]
mov rcx, qword [rcx + 8]
call qword [0x140022078]
test eax, eax
je 0x14000442a
cmp dword [rsp + 0x64], 1
mov ebx, ebp
sete bl
test ebx, ebx
jne 0x14000442a
mov ecx, 0x3e8
call qword [0x1400223a8]
inc edi
cmp edi, 0x1e
jb 0x1400043f0
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000feb0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret