joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001680
Capabilities:
Acquire debug privileges

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000172f
lea r8, [rsp + 0x30]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x14000172f
mov dword [rsp + 0x48], 1
cmp dword [rsp + 0x70], 0
je 0x1400016e7
mov dword [rsp + 0x54], 2
jmp 0x1400016ef
mov dword [rsp + 0x54], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14000172f
mov dword [rsp + 0x40], 1
cmp qword [rsp + 0x38], 0
je 0x140001742
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret

Function at 0x1400018f0
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x28
xor edx, edx
lea rcx, [0x140001810]
call qword [sym.imp.USER32.dll_EnumWindows]
add rsp, 0x28
ret
Function at 0x140001910
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x48], 0x7530
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140001954
jmp 0x140001ae7
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000198a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140001ae7
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400019ba
jmp 0x140001ad1
cmp dword [rsp + 0x54], 1
jne 0x1400019d6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
jmp 0x140001ad1
cmp dword [rsp + 0x54], 3
jne 0x140001a4f
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140001a17
jmp 0x140001ad1
cmp dword [rsp + 0x54], 1
jne 0x140001a33
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
jmp 0x140001ad1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x4c]
cmp eax, dword [rsp + 0x48]
jbe 0x140001a4d
jmp 0x140001ad1
jmp 0x1400019d6
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140001a6c
jmp 0x140001ad1
cmp dword [rsp + 0x54], 1
je 0x140001ad1
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140001aa7
jmp 0x140001ad1
cmp dword [rsp + 0x54], 1
jne 0x140001abb
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
jmp 0x140001ad1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x4c]
cmp eax, dword [rsp + 0x48]
jbe 0x140001acf
jmp 0x140001ad1
jmp 0x140001a6c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add rsp, 0x88
ret
Function at 0x140001b00
Capabilities:
Get common file path

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x140055708]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov byte [rsp + 0x20], 0
mov qword [rsp + 0x150], 0
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, str.VXDIF.DLL
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.1400027f0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001bbf
lea rdx, str.Alps_SetAbsolute
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x150], rax
cmp qword [rsp + 0x150], 0
je 0x140001bb4
movzx eax, byte [rsp + 0x178]
mov edx, eax
mov rcx, qword [rsp + 0x170]
call qword [rsp + 0x150]
mov byte [rsp + 0x20], 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140001be1
xor r9d, r9d
lea r8, str.Warning
lea rdx, str.Failed_to_recovery_touchpad_to_normal_mouse_mode._Please_restart_PC_to_re_enable_the_touchpad_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.1400232d0
add rsp, 0x168
ret
Function at 0x140001c00
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4e8
mov rax, qword [0x140055708]
xor rax, rsp
mov qword [rsp + 0x4d8], rax
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x140001c3e
xor eax, eax
jmp 0x140001e6e
lea r8, [0x14003c1c0]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400027f0
lea r9, [rsp + 0x50]
lea r8, [0x14003c1c8]
mov edx, 0x104
lea rcx, [rsp + 0x170]
call fcn.140002a40
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x168], rax
cmp qword [rsp + 0x168], 0xffffffffffffffff
je 0x140001ca8
mov dword [rsp + 0x4d0], 1
jmp 0x140001cb3
mov dword [rsp + 0x4d0], 0
mov eax, dword [rsp + 0x4d0]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140001e5b
xor r9d, r9d
mov r8d, 2
mov rdx, qword [rsp + 0x4f0]
lea rcx, [rsp + 0x2ac]
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov qword [rsp + 0x160], rax
cmp qword [rsp + 0x160], 0xffffffffffffffff
je 0x140001e3c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x3c0]
mov qword [rsp + 0x20], rax
lea r9, [0x14003c1d8]
lea r8, [0x14003c1e8]
mov rdx, qword [rsp + 0x160]
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupGetLineTextA]
test eax, eax
je 0x140001e2e
mov rdx, qword [rsp + 0x4f8]
lea rcx, [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140001e2e
lea rcx, [0x14003c208]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14003c1f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400573a8], rax
cmp qword [0x1400573a8], 0
je 0x140001daa
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0x2ac]
call qword [0x1400573a8]
jmp 0x140001e2e
lea rax, [rsp + 0x2ac]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [0x14003c214]
mov edx, 0x104
lea rcx, [rsp + 0x3c0]
call fcn.140002a40
lea rcx, [rsp + 0x3c0]
call fcn.140002750
lea rcx, [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x3c0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
lea rdx, [0x14003c21c]
lea rcx, [rsp + 0x3c0]
call qword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
lea rcx, [rsp + 0x3c0]
call fcn.140002750
lea rcx, [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
lea rdx, [rsp + 0x280]
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [rsp + 0x40], eax
jmp 0x140001cbe
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov rcx, qword [rsp + 0x4d8]
xor rcx, rsp
call fcn.1400232d0
add rsp, 0x4e8
ret
Function at 0x140002610
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x140055708]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14000266c
jmp 0x140002731
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140002726
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.140002610
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [rsp + 0x40], eax
jmp 0x1400026b3
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400232d0
add rsp, 0x188
ret

Function at 0x140002750
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140002794
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x140002794
mov eax, dword [rsp + 0x20]
and eax, 0xfffffffe
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add rsp, 0x38
ret
Function at 0x140002e30
Capabilities:
Create process on windows
Resume thread
Write and execute a file
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xb48
mov rax, qword [0x140055708]
xor rax, rsp
mov qword [rsp + 0xb30], rax
mov qword [rsp + 0x198], 0
lea rax, [rsp + 0x58]
lea rcx, str.StopProc.bat
mov rdi, rax
mov rsi, rcx
mov ecx, 0xe
rep movsb byte [rdi], byte [rsi]
lea r8, str.TASKKILL__F__IM_t
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.1400027a0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x198], rax
cmp qword [rsp + 0x198], 0xffffffffffffffff
je 0x14000309f
mov byte [rsp + 0x610], 0
lea rax, [rsp + 0x611]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
lea r8, [rsp + 0x70]
mov edx, 0x104
lea rcx, [rsp + 0xa20]
call fcn.1400027a0
lea r8, str.RunDll32.exe__r_n
mov edx, 0x104
lea rcx, [rsp + 0xa20]
call fcn.1400027f0
lea r8, [0x14003c744]
mov edx, 0x400
lea rcx, [rsp + 0x610]
call fcn.1400027f0
lea r9, [rsp + 0xa20]
lea r8, [rsp + 0x610]
mov edx, 0x400
lea rcx, [rsp + 0x210]
call fcn.140002a40
lea rcx, [rsp + 0x210]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa10]
mov r8d, eax
lea rdx, [rsp + 0x210]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x1a0]
call fcn.140023b30
mov dword [rsp + 0x1a0], 0x68
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x180]
call fcn.140023b30
mov dword [rsp + 0x1dc], 1
mov word [rsp + 0x1e0], 0
lea rax, [rsp + 0x180]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x40], rax
lea rax, [0x14003c79c]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x44
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14000309f
mov edx, 0xfffffff1
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 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 + 0x180]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xb30]
xor rcx, rsp
call fcn.1400232d0
add rsp, 0xb48
pop rdi
pop rsi
ret
Function at 0x140003ad0
Capabilities:
Create thread
Hide graphical window

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4b0
mov rax, qword [0x140055708]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov byte [rsp + 0x390], 0
lea rax, [rsp + 0x391]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov byte [rsp + 0x280], 0
lea rax, [rsp + 0x281]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov r9d, 0x104
lea r8, [rsp + 0x160]
mov edx, VariantTimeToDosDateTime
mov rcx, qword [0x140057378]
call qword [sym.imp.USER32.dll_LoadStringA]
cmp dword [0x140057388], 0
je 0x140003c89
lea rdx, [0x14003ca40]
lea rcx, [rsp + 0x160]
call fcn.1400056c0
mov qword [rsp + 0x150], rax
cmp qword [rsp + 0x150], 0
je 0x140003c89
lea rcx, [rsp + 0x160]
call fcn.140024d50
mov qword [rsp + 0x4a0], rax
mov rcx, qword [rsp + 0x150]
call fcn.140024d50
mov rcx, qword [rsp + 0x4a0]
sub rcx, rax
mov rax, rcx
mov r8, rax
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x390]
call fcn.140024bd0
lea rcx, [0x14003ca50]
call fcn.140024d50
mov rcx, qword [rsp + 0x150]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x150], rax
mov rcx, qword [rsp + 0x150]
call fcn.140024d50
mov r8, rax
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0x40]
call fcn.140024bd0
lea r8, [0x14003ca60]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.1400027a0
lea r8, [rsp + 0x40]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.1400027f0
lea r8, [rsp + 0x280]
mov edx, 0x104
lea rcx, [rsp + 0x390]
call fcn.1400027f0
lea r8, [rsp + 0x390]
mov edx, 0x104
lea rcx, [rsp + 0x160]
call fcn.1400027a0
lea r8, [rsp + 0x160]
mov edx, 0x3ea
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov edx, 0x3e8
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov qword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 0xf4
mov edx, 1
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edx, 1
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 2
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
lea rax, [rsp + 0x270]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x4c0]
lea r8, [fcn.140003d80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.1400232d0
add rsp, 0x4b0
pop rdi
ret
Function at 0x140004320
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x388
mov rax, qword [0x140055708]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov qword [rsp + 0x258], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0x104
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x260]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rsp + 0x260]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r9, [rsp + 0x258]
mov r8d, 1
lea rdx, [rsp + 0x40]
xor ecx, ecx
call sub.NETAPI32.dll_NetUserGetInfo
mov dword [rsp + 0x250], eax
cmp dword [rsp + 0x250], 0
jne 0x1400043e1
mov rax, qword [rsp + 0x390]
mov rcx, qword [rsp + 0x258]
mov ecx, dword [rcx + 0x14]
mov dword [rax], ecx
mov dword [rsp + 0x34], 1
jmp 0x1400043e9
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x258]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [rsp + 0x34], 0
jne 0x140004420
mov ecx, 0x220
call fcn.140004450
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 1
jne 0x140004420
mov rax, qword [rsp + 0x390]
mov dword [rax], 2
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.1400232d0
add rsp, 0x388
ret
Function at 0x140004450
Capabilities:
Compare security identifiers

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0xa8
mov rax, qword [0x140055708]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x90], 0
mov dword [rsp + 0x88], 0
mov byte [rsp + 0x78], 0
mov byte [rsp + 0x79], 0
mov byte [rsp + 0x7a], 0
mov byte [rsp + 0x7b], 0
mov byte [rsp + 0x7c], 0
mov byte [rsp + 0x7d], 5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400044c9
jmp 0x140004647
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rsp + 0x60]
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140004526
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140004647
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0x80]
mov edx, 2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14000455b
jmp 0x140004647
lea rax, [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0xb0]
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1400045c1
jmp 0x140004647
mov dword [rsp + 0x8c], 0
jmp 0x1400045df
mov eax, dword [rsp + 0x8c]
add eax, 1
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
cmp dword [rsp + 0x8c], eax
jae 0x14000462b
mov eax, dword [rsp + 0x8c]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rcx + rax + 8]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140004629
mov dword [rsp + 0x88], 1
jmp 0x14000462b
jmp 0x1400045ce
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rsp + 0x68], 0
je 0x14000465a
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400232d0
add rsp, 0xa8
ret

Function at 0x140004680
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x1400046a1
cmp qword [rsp + 0x48], 0x104
jae 0x1400046a5
xor eax, eax
jmp 0x1400046e2
lea r8, [rsp + 0x20]
mov edx, 2
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1400046e0
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [rsp + 0x28]
jmp 0x1400046e2
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400050c0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rsp + 0x28], eax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rsp + 0x24], eax
mov r8d, 1
mov edx, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r9d, r9d
lea r8, [rsp + 0x20]
xor edx, edx
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [0x140057390], eax
mov ecx, dword [rsp + 0x20]
call fcn.140005970
xor r9d, r9d
mov r8, rax
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
xor r8d, r8d
mov edx, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [0x140057390]
add rsp, 0x38
ret

Function at 0x140005980
Capabilities:
Set registry value

Disassembly:
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov word [rsp + 0x30], 2
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400059cb
xor eax, eax
jmp 0x140005a1a
movzx eax, word [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140005a0a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140005a1a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x48
ret

Function at 0x140005a30
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov word [rsp + 0x30], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140005a7a
xor eax, eax
jmp 0x140005ac9
movzx eax, word [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140005ab9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140005ac9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x48
ret