joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180062148
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov rcx, qword [0x1800c7ff8]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, str...ipcx64for32lib.dll
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor ebx, ebx
test rax, rax
je 0x18006230b
lea rcx, [rsp + 0x20]
call fcn.180065f9c
mov rsi, rax
test rax, rax
je 0x18006230b
lea rdx, str.ReadProcessMemory64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleBaseNameW64
mov rcx, rsi
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleFileNameExW64
mov rcx, rsi
mov qword [rdi + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.EnumProcessModules64
mov rcx, rsi
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetCommandLine64
mov rcx, rsi
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetCurrentDirectory64
mov rcx, rsi
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.IsProcessWow64Process
mov rcx, rsi
mov qword [rdi + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleInformation64
mov rcx, rsi
mov qword [rdi + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryInformationThread64
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryInformationProcess64
mov rcx, rsi
mov qword [rdi + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x58], rax
cmp qword [rdi + 0x10], rbx
je 0x1800622da
cmp qword [rdi + 0x18], rbx
je 0x1800622da
cmp qword [rdi + 0x20], rbx
je 0x1800622da
cmp qword [rdi + 0x38], rbx
je 0x1800622da
cmp qword [rdi + 0x28], rbx
je 0x1800622da
cmp qword [rdi + 0x30], rbx
je 0x1800622da
cmp qword [rdi + 0x48], rbx
je 0x1800622da
cmp qword [rdi + 0x40], rbx
je 0x1800622da
cmp qword [rdi + 0x50], rbx
je 0x1800622da
test rax, rax
je 0x1800622da
mov qword [rdi + 8], rsi
jmp 0x18006230b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x38], rbx
mov qword [rdi + 0x28], rbx
mov qword [rdi + 0x30], rbx
mov qword [rdi + 0x40], rbx
mov qword [rdi + 0x48], rbx
mov qword [rdi + 0x50], rbx
mov qword [rdi + 0x58], rbx
cmp qword [rdi + 8], rbx
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800782d0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180062f44
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, r8
mov r15, rdx
mov r8, qword [rbp + 0x7f]
lea rdx, str.316b91494d610d5492487f01
mov r14, rcx
lea rcx, [rbp - 0x51]
call fcn.1800630cc
xor ebx, ebx
test rdi, rdi
je 0x180063094
mov rax, qword [0x1800906a0]
mov qword [rbp - 0x31], rax
lea eax, [rbx + 8]
cmp rax, 0x10
jae 0x1800630c3
mov byte [rbp + rax - 0x31], bl
inc rax
cmp rax, 0x10
jl 0x180062faf
cmp rdi, 0x40
jb 0x180063050
mov r12, rdi
lea rax, [rbp - 0x21]
shr r12, 6
mov rsi, r14
sub rsi, rax
mov r13, r15
imul rax, r12, 0xffffffffffffffc0
sub r13, r14
add rdi, rax
mov rax, r12
shl rax, 6
add r15, rax
add r14, rax
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x21]
call fcn.180062954
mov r8, rbx
lea rdx, [rbp - 0x21]
add rdx, r8
lea rax, [rsi + r13]
inc r8
mov cl, byte [rax + rdx]
xor cl, byte [rdx]
mov byte [rsi + rdx], cl
cmp r8, 0x40
jl 0x18006300b
mov ecx, 1
lea edx, [rcx + 7]
movzx eax, byte [rbp + rdx - 0x31]
add ecx, eax
mov byte [rbp + rdx - 0x31], cl
inc rdx
shr ecx, 8
cmp rdx, 0x10
jl 0x18006302f
add rsi, 0x40
sub r12, 1
jne 0x180062ff7
test rdi, rdi
je 0x180063094
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x21]
call fcn.180062954
test rdi, rdi
je 0x180063094
lea rax, [rbp - 0x21]
sub r15, rax
lea rcx, [rbp - 0x21]
lea rax, [rbp - 0x21]
sub r14, rax
mov al, byte [rcx + r15]
inc ebx
xor al, byte [rcx]
mov byte [rcx + r14], al
inc rcx
movsxd rax, ebx
cmp rax, rdi
jb 0x18006307d
xor eax, eax
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1800782d0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18006f800
int3
Function at 0x1800637bc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov edi, dword [rsp + 0x28]
mov r11, r9
mov r10, rcx
dec edi
sub r11, rcx
sub r10, r8
mov rbx, rdx
mov r9d, 0x40
sub rbx, r8
lea rcx, [r10 + r8]
mov eax, dword [rcx + r11]
mov edx, eax
xor edx, dword [r8]
and edx, edi
xor eax, edx
mov dword [rcx], eax
xor edx, dword [r8]
mov dword [rbx + r8], edx
lea r8, [r8 + 4]
sub r9, 1
jne 0x1800637e4
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x180063eb0
Capabilities:
Encode data using xor
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x140], rax
movups xmm0, xmmword [rdx]
mov edi, 8
mov rbx, rcx
movups xmm1, xmmword [rdx + 0x10]
mov ecx, edi
movd eax, xmm0
movups xmmword [rbp + 0x130], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [rbp + 0x120], xmm0
mov byte [rbp + 0x120], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [rbp + 0x13f], al
lea rax, [rsp + 0x20]
movd xmm1, dword [r8]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
lea r8, [r8 + 4]
punpcklwd xmm1, xmm0
movdqu xmmword [rax], xmm1
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x180063f1e
lea rdx, [rbp + 0x120]
lea rcx, [rsp + 0x20]
call fcn.180063814
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.180063b30
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.180063640
mov r8d, 0x80
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xa0]
call sub.msvcrt.dll_memcpy
lea r8, [0x180093a20]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.180063534
mov ecx, dword [rbp + 0x9c]
shr ecx, 7
and ecx, 1
neg ecx
xor eax, eax
movd xmm2, ecx
pshufd xmm2, xmm2, 0
movdqu xmm0, xmmword [rbp + rax + 0x20]
movdqu xmm1, xmmword [rbp + rax + 0xa0]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rbp + rax + 0x10], xmm1
sub rdi, 1
jne 0x180063fb3
lea rcx, [rbp + 0x20]
lea edx, [rdi + 0x20]
mov al, byte [rcx]
lea rcx, [rcx + 4]
mov byte [rbx], al
inc rbx
sub rdx, 1
jne 0x180063fe5
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1800782d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180064338
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov r14, rdx
mov qword [rax - 0x28], rbx
xor r9d, r9d
mov dword [rax - 0x30], ebx
mov edx, 0x80000000
mov dword [rax - 0x38], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180064388
xor eax, eax
jmp 0x180064417
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x78], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp dword [rsp + 0x78], ebx
jne 0x18006440c
lea ecx, [rax + 1]
lea rdx, [0x1800c8054]
call fcn.18006f9d0
mov rdi, rax
test rax, rax
je 0x18006440c
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], ebx
mov r8d, ebp
mov qword [rsp + 0x20], rbx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180064403
mov eax, dword [rsp + 0x70]
mov r8, r14
mov rcx, rdi
mov byte [rax + rdi], bl
mov edx, dword [rsp + 0x70]
call fcn.180064228
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x180065d64
Capabilities:
Check if file exists

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180065ecc
and qword [rbp + 0x28], 0
lea r8, [rbp + 0x28]
mov edx, 0xa
mov rcx, rsi
call fcn.180065c40
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x180065dca
mov rdx, rbx
mov rcx, rdi
call rax
jmp 0x180065ecc
and qword [rbp - 0x10], 0
lea r8, [rbp - 0x10]
lea rdx, [0x180093b40]
mov rcx, rsi
call fcn.180065be4
test rbx, rbx
je 0x180065dea
or dword [rbx], 0xffffffff
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180065eb9
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, rdi
call qword [rax + ILCombine]
test eax, eax
je 0x180065eb9
and dword [rbp + 0x28], 0
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x28]
mov edx, 4
call qword [rax + 0xa8]
mov edi, 1
test eax, eax
je 0x180065e47
mov eax, dword [rbp + 0x28]
shl eax, 0x10
sar eax, 0x1c
sub eax, 2
cmp eax, edi
ja 0x180065e47
test rbx, rbx
je 0x180065ebb
mov dword [rbx], edi
jmp 0x180065ebb
and dword [rbp + 0x28], 0
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x28]
mov esi, 3
mov edx, esi
call qword [rax + 0xa8]
test eax, eax
je 0x180065e7f
mov eax, dword [rbp + 0x28]
and eax, 0xf00
cmp eax, 0x300
jne 0x180065e7f
test rbx, rbx
je 0x180065ebb
mov dword [rbx], esi
jmp 0x180065ebb
and dword [rbp + 0x28], 0
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x28]
mov edx, 5
call qword [rax + 0xa8]
test eax, eax
je 0x180065eb9
mov eax, dword [rbp + 0x28]
and eax, 0xf0000
cmp eax, 0x30000
jne 0x180065eb9
test rbx, rbx
je 0x180065ebb
mov dword [rbx], 4
jmp 0x180065ebb
xor edi, edi
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180065eca
mov rdx, qword [rcx]
call qword [rdx + ILClone]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbp
ret

Function at 0x180065ee4
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x58], rsi
mov rdi, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180065f89
and dword [rsp + 0x48], 0
mov rbx, qword [0x1801692b0]
test rbx, rbx
jne 0x180065f79
lea rsi, [0x18016b318]
mov qword [rsp + 0x50], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rbx, qword [0x1801692b0]
test rbx, rbx
jne 0x180065f70
mov eax, dword [0x1801692a8]
test al, 1
jne 0x180065f62
or eax, 1
mov dword [0x1801692a8], eax
call fcn.180065438
lea rcx, [0x180085300]
call fcn.18006f680
nop
lea rbx, [0x180169220]
mov qword [0x1801692b0], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r8, [rsp + 0x48]
mov rdx, rdi
mov rcx, rbx
call fcn.180065d64
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180066428
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x360], rax
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWARE360Safe360Ent
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800665e3
and dword [rsp + 0x44], eax
lea ebx, [rax + 4]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ServiceCall
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800665d8
cmp dword [rsp + 0x30], ebx
jne 0x1800665d8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800665e3
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x410
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Path
mov dword [rsp + 0x40], 0x40e
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800665d8
cmp dword [rsp + 0x30], 1
jne 0x1800665d8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.entclientEntSvcCall_x64.dll
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800665e3
lea rcx, [rsp + 0x50]
call fcn.180065f9c
mov rbx, rax
test rax, rax
je 0x1800665e3
lea rdx, str.Init
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800665cd
call rax
test al, al
je 0x1800665cd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
jmp 0x1800665e5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1800665e3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.1800782d0
mov rbx, qword [rsp + 0x480]
add rsp, 0x470
pop rbp
ret
Function at 0x180066608
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r14
mov r14d, r9d
xor edi, edi
and qword [rbp - 0x30], rdi
lea rax, [rbp - 0x30]
mov qword [r11 - 0x58], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWARE360Safe360Ent
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800666e7
and dword [rbp - 0x1c], edi
mov dword [rbp - 0x40], 4
mov dword [rbp - 0x20], 4
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x40]
xor r8d, r8d
lea rdx, str.ServiceCall
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800666dd
cmp dword [rbp - 0x40], 4
jne 0x1800666dd
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ebx, [rdi + 1]
test bl, r14b
je 0x1800667ea
call fcn.180066428
test al, al
cmovne edi, ebx
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x1800667ea
lea esi, [rbx + 1]
mov dword [rax], esi
jmp 0x1800667ea
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 2
test sil, r14b
je 0x1800667ea
call fcn.180018f2c
test eax, eax
je 0x1800667ec
and dword [rbp - 0x3c], edi
and dword [rbp - 0x38], edi
call fcn.180018f2c
test eax, eax
je 0x180066757
and qword [rbp - 0x18], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x18]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180066757
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x3c]
mov rcx, qword [rbp - 0x18]
call fcn.1800669b4
mov ebx, eax
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x180066757
cmp dword [rbp - 0x3c], edi
je 0x18006675d
test r14b, 8
je 0x1800667da
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.180005348
nop
lea rcx, [rbp - 0x28]
call fcn.180004cfc
mov rcx, qword [rbp - 0x28]
or ebx, 0xffffffff
cmp dword [rcx - 0x10], 0
jl 0x1800667a3
lea rdx, str._elevated
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x1800667a3
sub rax, qword [rbp - 0x28]
sar rax, 1
cmp eax, ebx
jne 0x1800667bb
mov edi, ebx
cmp dword [rbp - 0x38], 0
jne 0x1800667bb
test r14b, 4
je 0x1800667bb
call fcn.180066a50
test eax, eax
cmovne edi, esi
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1800667da
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x1800667ea
mov ebx, 1
mov dword [rax], ebx
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180066a50
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1d8]
sub rsp, 0x2d0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp - 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor esi, esi
test eax, eax
jne 0x180066ab4
xor eax, eax
jmp 0x180066c0d
call fcn.180018ff4
test eax, eax
je 0x180066b41
lea rax, str.MPR.dll
mov qword [rsp + 0x30], rax
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x180066c31
mov rax, qword [rax]
call qword [rax + ILCombine]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180019cfc
nop
test eax, eax
jne 0x180066b22
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180066aad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x180066aad
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180066b41
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.180005348
nop
lea rdx, str.__elevated
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x180066b60
mov r8d, eax
lea rcx, [rsp + 0x28]
call fcn.1800057ac
mov edi, WSACleanup
mov r8d, edi
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], 0x1000
mov qword [rsp + 0x48], rsi
lea rax, str.runas
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne dil
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x180066be7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edi, dil
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x180066c0b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1800782d0
lea r11, [rsp + 0x2d0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.18000a540
int3

Function at 0x18006a3f4
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
xor ebx, ebx
mov qword [rax - 0x10], rbx
mov qword [rax - 0x18], rbx
mov qword [rax - 0x20], rbx
mov qword [rax - 0x28], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x18006a460
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x18006a490
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x18006a900
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rsi, r8
xor r9d, r9d
xor r8d, r8d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18006a941
lea r9, [0x180088230]
xor edx, edx
lea r8, [0x180088230]
xor ecx, ecx
call fcn.180069f5c
jmp 0x18006a979
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18006a928
cmp ebx, dword [rsp + 0x48]
je 0x18006a97d
xor edx, edx
lea r9, [0x180088230]
xor ecx, ecx
lea r8d, [rdx + 1]
call fcn.180069eb4
xor eax, eax
jmp 0x18006a982
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret