joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ab70
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14005bb80], rbx
je 0x14000abd7
cmp rax, rbx
jne 0x14000abca
mov ebx, 1
mov esi, ebx
jmp 0x14000abdc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000abaf
mov ebx, 1
mov eax, dword [0x14005bb88]
cmp eax, ebx
jne 0x14000abf4
mov edi, 0x1f
mov ecx, edi
call fcn.1400fa000
jmp 0x14000ac60
mov eax, dword [0x14005bb88]
test eax, eax
jne 0x14000ac55
mov dword [0x14005bb88], ebx
lea r15, [0x14004bf30]
lea rdi, [0x14004bf18]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000ac47
test eax, eax
jne 0x14000ac4b
cmp qword [rdi], r14
je 0x14000ac3c
mov rax, qword [rdi]
mov rcx, qword [case.0x140037fef.0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000ac1e
test eax, eax
je 0x14000ac5b
mov eax, 0xff
jmp 0x14000adb6
mov dword [0x14005b594], ebx
mov edi, 0x1f
mov eax, dword [0x14005bb88]
cmp eax, ebx
jne 0x14000ac87
lea rdx, [0x14004bf10]
lea rcx, [0x14004be38]
call sub.msvcrt.dll__initterm
mov dword [0x14005bb88], 2
test esi, esi
jne 0x14000ac95
mov rax, r14
xchg qword [0x14005bb80], rax
cmp qword [0x14005bba0], r14
je 0x14000acc8
lea rcx, [0x14005bba0]
call fcn.14000b5a0
test eax, eax
je 0x14000acc8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14005bba0]
mov r9, qword [case.0x140037fef.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000ace1
mov eax, 0xff
jmp 0x14000adb6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000ad67
test ax, ax
je 0x14000acfc
test edx, edx
jne 0x14000ad67
sub ax, bx
cmp ax, di
ja 0x14000ad12
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000acfc
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140007128
mov dword [0x14005b590], eax
cmp dword [0x14005b5b0], r14d
jne 0x14000ad50
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14005b594], r14d
jne 0x14000ad65
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14005b590]
jmp 0x14000adb6
cmp ax, 0x22
jne 0x14000ad7b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000acea
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14000b634
add rsp, 0x28
jmp 0x14000ab70
Function at 0x14000b48c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000b4d8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000b4d0
cmp dword [rcx + 0x3c], edx
jl 0x14000b4d0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000b4d0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000b4d8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14000b75c
Capabilities:
Print debug messages

Disassembly:
jmp 0x14000b768
push rbx
sub rsp, 0x540
mov rax, qword [0x14005b3e8]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14000b7e5
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14000b805
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14000ae10
add rsp, 0x540
pop rbx
ret

Function at 0x14000b768
Capabilities:
Print debug messages

Disassembly:
jmp 0x14000b768
push rbx
sub rsp, 0x540
mov rax, qword [0x14005b3e8]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14000b7e5
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14000b805
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14000ae10
add rsp, 0x540
pop rbx
ret
Function at 0x14003f868
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rax, str.CommonFilesDir__x86_
mov rdi, rcx
xor ebp, ebp
lea rsi, str.CommonFilesDir__Arm_
test dl, dl
mov r9d, 0x20019
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
mov rcx, 0xffffffff80000002
cmove rsi, rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14003f8c9
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14003f934
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov r9d, 2
mov qword [rsp + 0x28], rdi
mov r8, rsi
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x68], 0x208
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14003f914
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14003f923
cmp word [rdi], bp
mov eax, 0x80004005
cmove ebx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400487dc
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
xor edx, edx
xor ecx, ecx
lea ebp, [rbx + 1]
mov r8d, ebp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140048884
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, str.TabletInputService
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140048875
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
nop dword [rax + rax]
test eax, eax
je 0x14004884f
mov bl, bpl
jmp 0x140048866
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x420
movzx ebx, bl
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140011262
Capabilities:
Terminate process

Disassembly:
jmp 0x140014780
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]
add rsp, 0x28
ret

Function at 0x1400112ee
Capabilities:
Create thread
Enumerate gui resources

Disassembly:
jmp 0x140013050
push rbp
push rdi
sub rsp, 0x718
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x12a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001f018]
xor rax, rbp
mov qword [rbp + 0x6d8], rax
lea rcx, [0x1400250b2]
call fcn.140011442
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140011483]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp qword [0x14001f458], 0
jne 0x1400130cd
xor edx, edx
lea rcx, [0x1400113f2]
call qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x1400130b2
mov rcx, qword [0x14001f458]
call qword [sym.imp.USER32.dll_CloseWindow]
mov r8d, 0x104
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str.innocentIcon.ico
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, 5
mov rcx, qword [0x14001f458]
call qword [sym.imp.USER32.dll_GetWindow]
mov edx, 2
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov qword [rbp + 0x468], rax
lea r9, [rbp + 0x240]
xor r8d, r8d
mov edx, 0xc
mov rcx, qword [rbp + 0x468]
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 5
mov rcx, qword [0x14001f458]
call qword [sym.imp.USER32.dll_GetWindow]
mov edx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov edx, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov qword [rbp + 0x488], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf5
mov rcx, qword [rbp + 0x488]
call qword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001be60]
call fcn.1400113ac
mov eax, edi
mov rcx, qword [rbp + 0x6d8]
xor rcx, rbp
call fcn.140011212
lea rsp, [rbp + 0x6e8]
pop rdi
pop rbp
ret
Function at 0x140011302
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015ad0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015af0
xor al, al
jmp 0x140015b71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015b03
xor al, al
jmp 0x140015b71
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140015b2d
xor al, al
jmp 0x140015b71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015b41
xor al, al
jmp 0x140015b71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015b53
xor al, al
jmp 0x140015b71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015b6f
xor al, al
jmp 0x140015b71
mov al, 1
add rsp, 0x38
ret
Function at 0x14108a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14108a1df
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 0x14108a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14108a06f
add dl, dl
jne 0x14108a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14108a0f6
xor eax, eax
add dl, dl
jne 0x14108a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14108a1ad
add dl, dl
jne 0x14108a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14108a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14108a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14108a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14108a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14108a07e
mov eax, 1
add dl, dl
jne 0x14108a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14108a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14108a0fb
sub eax, ebx
mov ebx, 1
jne 0x14108a14c
mov ecx, 1
add dl, dl
jne 0x14108a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14108a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14108a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14108a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14108a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14108a15d
cmp eax, 0x7d00
jae 0x14108a19b
cmp eax, 0x500
jb 0x14108a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108a07e
cmp eax, 0x7f
ja 0x14108a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14108a1d2
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 0x14108a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400010d0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x2c0
lea rcx, [0x1400050a0]
call fcn.140001650
mov dword [rsp + 0x3c], 0
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x14
rep stosb byte [rdi], al
mov dword [rsp + 0x64], 1
mov dword [rsp + 0x60], 1
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x68]
mov r8, rax
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140001145
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001318
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x140001163
jmp 0x1400012d1
mov dword [rsp + 0x80], 0x238
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_Process32FirstW
mov dword [rsp + 0x30], eax
jmp 0x14000119c
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_Process32NextW
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400012d1
lea rdx, str.winlogon.exe
lea rcx, [rsp + 0xac]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400011c2
jmp 0x140001186
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov ecx, 0x440
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400011e9
jmp 0x1400012d1
lea r8, [rsp + 0x40]
mov edx, 0xa
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001212
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400012d1
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
test eax, eax
je 0x140001232
cmp dword [rsp + 0x58], 0
jne 0x140001237
jmp 0x1400012d1
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x34]
mov edx, 0xc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000128e
cmp dword [rsp + 0x34], 0
jne 0x140001279
mov dword [rsp + 0x38], 1
jmp 0x140001281
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x2d0]
cmp dword [rsp + 0x38], eax
jne 0x140001290
jmp 0x1400012d1
mov dword [rsp + 0x30], 1
mov rax, qword [rsp + 0x2d8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 2
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1400012cc
jmp 0x1400012db
jmp 0x140001186
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
cmp qword [rsp + 0x40], 0
je 0x1400012ee
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x48], 0
je 0x140001301
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x50], 0
je 0x140001314
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x3c]
add rsp, 0x2c0
pop rdi
ret
Function at 0x140001330
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea rcx, [0x1400050a0]
call fcn.140001650
lea rcx, str.SeDebugPrivilege
call section..text
lea rcx, str.SeImpersonatePrivilege
call section..text
mov dword [rsp + 0x34], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000138d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000147d
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x30]
mov edx, 0xc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400013c3
jmp 0x140001443
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.1400010d0
test eax, eax
jne 0x1400013ef
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x1400013f1
jmp 0x140001443
mov dword [rsp + 0x38], 1
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140001443
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, 0x1a
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp qword [rsp + 0x40], 0
je 0x140001466
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x48], 0
je 0x140001479
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x34]
add rsp, 0x58
ret
Function at 0x140001540
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
sub rsp, 0xf8
lea rcx, [0x1400050a0]
call fcn.140001650
call fcn.140001490
cmp eax, 0x522
jne 0x140001629
mov r9d, 0x40000
xor r8d, r8d
lea rdx, [0x140003098]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rcx, [rsp + 0x60]
call fcn.140001330
test eax, eax
je 0x140001591
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140001614
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov r9d, 0x40000
xor r8d, r8d
lea rdx, str.Success
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
add rsp, 0xf8
ret
Function at 0x4141c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41436b
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042e7a0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x41422e
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414241
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x414265
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414279
cmp rbx, 0x1000
jae 0x414238
nop
jmp 0x4142e9
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x41428d
xor edx, edx
jmp 0x4142e0
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042e7a0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop
test dl, dl
jne 0x41426f
jmp 0x414255
call fcn.0045dc00
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00433860
lea rax, [0x004a9dd4]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.00434160
mov rax, qword [rsp + 0x38]
call fcn.00433e60
lea rax, [0x004a9e64]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00434160
mov rax, qword [rsp + 0x30]
call fcn.00433e60
call fcn.00433ac0
call fcn.004338e0
lea rax, [0x004abc23]
mov ebx, 0x21
call fcn.004320e0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045a080
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004141c0