joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000162c
Capabilities:
Delete file
Get common file path

Disassembly:
jmp 0x1400769c0
sub rsp, 0x478
mov rax, qword [0x140099d40]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rdx, [rsp + 0x250]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x140076ad7
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x14008be68]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140076ad7
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 0x4000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xc0000000
mov qword [rsp + 0x470], rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140076a6d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x140076a99
xor edx, edx
mov qword [rsp + 0x480], rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov ebx, eax
test eax, eax
jns 0x140076ab9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400012c1
add rsp, 0x478
ret
lea rdx, [0x14008be74]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
test rax, rax
jne 0x140076a91
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
jmp 0x140076a8f
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400012c1
add rsp, 0x478
ret
Function at 0x1400769c0
Capabilities:
Delete file
Get common file path

Disassembly:
jmp 0x1400769c0
sub rsp, 0x478
mov rax, qword [0x140099d40]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rdx, [rsp + 0x250]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x140076ad7
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x14008be68]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140076ad7
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 0x4000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xc0000000
mov qword [rsp + 0x470], rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140076a6d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x140076a99
xor edx, edx
mov qword [rsp + 0x480], rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov ebx, eax
test eax, eax
jns 0x140076ab9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400012c1
add rsp, 0x478
ret
lea rdx, [0x14008be74]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
test rax, rax
jne 0x140076a91
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
jmp 0x140076a8f
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400012c1
add rsp, 0x478
ret

Function at 0x140077610
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [r8 + 8], 0
mov rbx, r8
mov rdi, rdx
mov esi, ecx
je 0x14007765f
mov ecx, dword [r8 + 0x10]
cmp ecx, dword [0x140099ae8]
jl 0x140077641
xor edx, edx
call fcn.140076c50
mov rax, qword [0x1403122e0]
mov r8, qword [0x140099af0]
mov qword [rax + 8], r8
mov edx, dword [rbx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.1400013de
mov rdx, rdi
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14000142e
Function at 0x140077770
Capabilities:
Delete file

Disassembly:
jmp 0x140077770
sub rsp, 0x28
movsxd rax, dword [rcx + 4]
cmp eax, 0x64
jge 0x140077828
mov qword [rsp + 0x30], rbx
lea rbx, [rax + rax*2]
shl rbx, 4
lea rax, [0x140311020]
add rbx, rax
mov qword [rsp + 0x20], rdi
mov rdx, qword [rbx]
test rdx, rdx
je 0x14007780c
cmp dword [rbx + 0x2c], 1
je 0x1400777de
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400777bd
movzx eax, byte [rax]
sub al, 0x44
test al, 0xdf
je 0x1400777de
cmp dword [rbx + 0x28], 1
jne 0x1400777c8
call fcn.1400013a7
cmp qword [rbx + 8], 0
lea rdi, [rbx + 8]
je 0x140077803
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400777fa
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rbx + 8]
lea rdi, [rbx + 8]
test rcx, rcx
je 0x140077803
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx], 0
jmp 0x140077810
lea rdi, [rbx + 8]
mov dword [rbx + 0x24], 0
mov rbx, qword [rsp + 0x30]
mov qword [rdi], 0
mov rdi, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140077930
Capabilities:
Terminate process

Disassembly:
jmp 0x140077930
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
test edx, edx
jle 0x1400779b0
mov ecx, 2
mov qword [rsp + 0x30], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.STOP
call fcn.140001514
mov esi, ebx
nop dword [rax]
nop dword [rax + rax]
movsx ebx, byte [rdi]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
lea rdi, [rdi + 1]
sub rsi, 1
jne 0x140077970
lea ecx, [rsi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._statement_executed_n
call fcn.140001514
mov rsi, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140078a30
Capabilities:
Query environment variable

Disassembly:
jmp 0x140078a30
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0x130
mov rax, qword [0x140099d40]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov ebp, r9d
mov rsi, rdx
mov r14, rcx
test r8d, r8d
jle 0x140078b4a
xor ebx, ebx
lea rax, [rsp + 0x20]
mov rdx, r14
lea rcx, [rsp + 0x20]
sub rdx, rax
cmp ebx, r8d
je 0x140078b08
movzx eax, byte [rdx + rcx]
mov byte [rcx], al
cmp al, 0x20
je 0x140078b08
inc ebx
inc rcx
cmp ebx, 0x100
jb 0x140078a76
movsxd rax, ebx
movsxd rcx, r8d
mov qword [rsp + 0x160], rdi
cmp rax, rcx
jge 0x140078ac1
nop dword [rax]
cmp byte [rax + r14], 0x20
je 0x140078ac1
inc ebx
inc rax
cmp rax, rcx
jl 0x140078ab0
lea ecx, [rbx + 1]
lea rdx, str.getenv_
call fcn.140001172
movsxd rbx, ebx
mov rdx, r14
mov r8, rbx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rcx, rdi
mov byte [rbx + rdi], 0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x160]
jmp 0x140078b26
movsxd rax, ebx
cmp rax, 0x100
jae 0x140078b7f
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rbx, rbx
je 0x140078b4a
movzx ecx, byte [rbx]
test cl, cl
je 0x140078b4a
sub rbx, rsi
mov eax, ebp
dec ebp
test eax, eax
jle 0x140078b4a
mov byte [rsi], cl
inc rsi
movzx ecx, byte [rbx + rsi]
test cl, cl
jne 0x140078b35
test ebp, ebp
jle 0x140078b5b
mov r8d, ebp
mov dl, 0x20
mov rcx, rsi
call fcn.140080100
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400012c1
mov rbx, qword [rsp + 0x168]
add rsp, 0x130
pop r14
pop rsi
pop rbp
ret
call fcn.140001456
int3
Function at 0x14007a8b0
Capabilities:
Terminate process

Disassembly:
jmp 0x14007a8b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movsxd rbx, ecx
mov rdi, rdx
cmp ebx, 0x63
ja 0x14007a8da
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x14007a94c
lea eax, [rbx + 1]
mov ecx, 2
cmp eax, 0x84
ja 0x14007a931
cmp ebx, 0xffffffff
jne 0x14007a908
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str._s:_end_of_file_n
mov rcx, rax
call fcn.140001514
jmp 0x14007a94c
lea rsi, str.error_in_format
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rsi + rbx*8 - 0x320]
lea rdx, str._s:__s_n
mov rcx, rax
mov r8, rdi
call fcn.140001514
jmp 0x14007a94c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebx
lea rdx, str._s:_illegal_error_number__d_n
mov rcx, rax
mov r8, rdi
call fcn.140001514
mov rcx, qword [0x1403122e0]
test rcx, rcx
je 0x14007a9dc
lea rax, [0x140311020]
sub rcx, rax
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
mov ecx, 2
mov rbx, rdx
sar rbx, 3
mov rax, rbx
shr rax, 0x3f
add rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.apparent_state:_unit__d
mov rcx, rax
call fcn.140001514
mov rax, qword [0x1403122e0]
lea rbx, str._unnamed__n
mov ecx, 2
mov rdi, qword [rax + 8]
lea rax, str.named__s_n
test rdi, rdi
cmovne rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.140001514
jmp 0x14007a9f6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.apparent_state:_internal_I_O_n
call fcn.140001514
cmp qword [0x140310fd0], 0
je 0x14007aa21
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140310fd0]
lea rdx, str.last_format:__s_n
mov rcx, rax
call fcn.140001514
cmp dword [0x140312318], 0
lea rax, str.external
lea rbp, str.internal
mov ecx, 2
cmovne rbp, rax
lea rsi, str.unformatted
cmp dword [0x140312310], 0
lea rax, str.formatted
lea rdi, str.direct
cmovne rsi, rax
lea rbx, str.writing
cmp dword [0x140312314], 0
lea rax, str.sequential
cmovne rdi, rax
cmp dword [0x14031231c], 0
lea rax, str.reading
cmovne rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x28], rbp
lea rdx, str.lately__s__s__s__s
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r9, rdi
mov r8, rbx
call fcn.140001514
mov edx, 1
lea rcx, [0x14008c5a8]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.140001393
Function at 0x14007aef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xorps xmm0, xmm0
mov byte [rcx], 0x20
comisd xmm0, xmm1
mov rdi, rcx
movaps xmm2, xmm1
jbe 0x14007af13
xorps xmm1, xmmword [0x14008bf00]
comisd xmm0, xmm2
mov eax, 0x2d
mov ecx, 0x20
cmovbe eax, ecx
ucomisd xmm1, xmm0
mov byte [rdi + 1], al
jp 0x14007af4f
jne 0x14007af4f
mov byte [rdi + 2], 0x30
lea rdx, [rdi + 3]
mov byte [rdx], 0x2e
inc rdx
mov byte [rdx], 0
sub edx, edi
mov eax, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movaps xmm2, xmm1
lea rdx, str._.9G
movq r8, xmm1
lea rcx, [rdi + 2]
call fcn.140001537
movzx ecx, byte [rdi + 2]
movzx eax, cl
cmp cl, 0x30
je 0x14007b017
sub al, 0x49
cmp al, 0x25
ja 0x14007afa8
movabs rdx, 0x2100000021
bt rdx, rax
jae 0x14007afa8
lea rdx, [rdi + 2]
inc rdx
cmp byte [rdx], 0
jne 0x14007af91
sub edx, edi
mov eax, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rdx, [rdi + 2]
movzx eax, cl
test cl, cl
je 0x14007af37
lea rdx, [rdi + 2]
cmp al, 0x2e
je 0x14007b000
cmp al, 0x45
je 0x14007afcf
movzx eax, byte [rdx + 1]
inc rdx
test al, al
jne 0x14007afb7
jmp 0x14007af37
mov cl, 0x45
mov byte [rdx], 0x2e
nop dword [rax]
nop dword [rax + rax]
inc rdx
movzx eax, cl
movzx ecx, byte [rdx]
mov byte [rdx], al
test al, al
jne 0x14007afe0
sub edx, edi
mov eax, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
inc rdx
cmp byte [rdx], 0
jne 0x14007b000
sub edx, edi
mov eax, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rdi + 3]
lea rdx, [rdi + 2]
mov byte [rdi + 2], al
test al, al
je 0x14007b03d
lea rdx, [rdi + 2]
nop word [rax + rax]
movzx ecx, byte [rdx + 2]
inc rdx
mov byte [rdx], cl
test cl, cl
jne 0x14007b030
mov rbx, qword [rsp + 0x30]
sub edx, edi
mov eax, edx
add rsp, 0x20
pop rdi
ret

Function at 0x14007c990
Capabilities:
Terminate process

Disassembly:
jmp 0x14007c990
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, edx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, [0x14008c624]
mov rcx, rax
call fcn.140001514
test edi, edi
je 0x14007c9ff
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
call fcn.1400010c8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
xor edx, edx
lea ecx, [rdx + 0x16]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14007cb60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rax, qword [0x140099d40]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov edi, edx
mov r15d, 0x200
cmp edx, r15d
mov rbp, r8
mov ebx, edx
mov r14, rcx
cmovg edi, r15d
mov r9, rcx
movsxd rsi, edi
lea rcx, [rsp + 0x20]
mov rdx, rsi
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x14007cc0a
nop dword [rax + rax]
mov r9, rbp
lea rcx, [rsp + 0x20]
mov r8d, 1
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test rax, rax
je 0x14007cc33
sub ebx, edi
test ebx, ebx
jle 0x14007cc0a
cmp ebx, r15d
lea rcx, [rsp + 0x20]
mov edi, ebx
mov r9, r14
cmovg edi, r15d
mov r8d, 1
movsxd rsi, edi
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x14007cbc0
xor eax, eax
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400012c1
mov rbx, qword [rsp + 0x278]
add rsp, 0x230
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
jmp 0x14007cc0c

Function at 0x14007ded0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov dword [0x140310bb4], ecx
mov ecx, 8
mov qword [0x140310ba0], rdx
lea rdx, [0x14007df80]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
lea rdx, [0x14007dfa0]
mov ecx, 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
lea rdx, [0x14007dfc0]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
cmp rax, 1
jne 0x14007df29
mov rdx, rax
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
lea rdx, [0x14007dfe0]
mov ecx, 0xf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
call fcn.140001050
lea rcx, [fcn.1400010c8]
call fcn.14000123a
call fcn.140001460
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14007fb20
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007fb20
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007fb6a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007fb6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007fb6a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007fb6a
cmp dword [rcx + 0x84], 0xe
jbe 0x14007fb6a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007fb6c
xor al, al
add rsp, 0x28
ret
Function at 0x140006028
Capabilities:
Accept command line arguments

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 rbp
mov rbp, rsp
sub rsp, 0x40
mov rdi, r9
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r14d, r14d
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], rax
mov rcx, rax
mov qword [rbp - 0x18], r14
lea rdx, [rbp - 0x18]
mov dword [rbp - 0x20], r14d
call fcn.140013000
mov ebx, eax
test eax, eax
js 0x1400060ee
jmp 0x1400060cd
mov rcx, qword [rbp - 0x18]
mov edx, 0xfffd
movzx eax, word [rcx]
sub ax, 0x2d
test dx, ax
jne 0x14000612f
lea rbx, [rcx + 2]
mov rdx, rbx
lea rcx, str.standalone
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400060b3
mov dword [rsi], 1
jmp 0x1400060cd
mov rdx, rbx
lea rcx, str.standalone:temp
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140006118
mov dword [rdi], 1
mov rcx, qword [rbp - 0x10]
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x18]
call fcn.140013000
mov ebx, eax
test eax, eax
je 0x14000607a
test eax, eax
cmovns ebx, r14d
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400060fc
call fcn.140010d78
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
mov rdx, rbx
lea rcx, str.standalone:delete
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, 0x80070057
jmp 0x1400060ee
mov ebx, 0x80070057
jmp 0x1400060f2
Function at 0x14000e644
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10b8]
mov eax, 0x11b8
call fcn.1400149f0
sub rsp, rax
mov rax, qword [0x1400380c8]
xor rax, rsp
mov qword [rbp + 0x10a0], rax
mov rdi, qword [rbp + 0x1110]
mov rsi, r8
and qword [rsp + 0x38], 0
mov r15, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x1154
lea rcx, [rsp + 0x40]
and qword [rdi], 0
mov r14, r9
call fcn.140015780
or r9, 0xffffffffffffffff
mov dword [rsp + 0x40], 0x1154
mov r8, rbx
mov dword [rsp + 0x44], 7
mov edx, 0x80
lea rcx, [rsp + 0x48]
call fcn.140018aa0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1048
mov qword [rsp + 0x28], rax
lea rdx, str.Path
lea rax, [rbp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000e77e
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], rax
lea rdx, str.Priority
lea rax, [rbp + 0x1090]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000e77e
lea r9, [rsp + 0x38]
mov r8, r14
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14000e580
mov ebx, eax
test eax, eax
js 0x14000e77e
mov rax, qword [rsp + 0x38]
xor edx, edx
mov qword [rdi], rax
xor ebx, ebx
mov qword [rsp + 0x38], rdx
jmp 0x14000e783
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14000e79d
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
mov rcx, qword [rbp + 0x10a0]
xor rcx, rsp
call fcn.1400148f0
add rsp, 0x11b8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000eba0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [rcx + 0x258]
mov esi, edx
cmp rcx, 0xffffffffffffffff
jne 0x14000ebcb
lea ebx, [rcx + 2]
jmp 0x14000eca5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
test esi, esi
je 0x14000eca5
cmp dword [rdi + 0x18], ebx
jne 0x14000eca5
and qword [rsp + 0x30], rbx
lea rcx, [rdi + 0x34]
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x258], rax
mov esi, 0x80070000
cmp rax, 0xffffffffffffffff
jne 0x14000ec36
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000eca5
mov rdx, qword [rdi + 0x248]
xor r9d, r9d
mov rcx, qword [rdi + 0x258]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14000ec68
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000eca5
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14000ec8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000eca5
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x248]
mov r8, rdx
mov r9, qword [rcx]
call qword [r9 + 0xa0]
mov rcx, qword [rdi + 0x258]
cmp rcx, 0xffffffffffffffff
je 0x14000ecc0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001019c
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
and qword [r11 + 0x18], 0
mov rdi, rcx
and dword [rsp + 0x78], 0
mov rax, qword [rdx + 8]
test rax, rax
je 0x1400101d2
lea r8, [r11 + 0x18]
mov rdx, rax
xor ecx, ecx
call fcn.140010400
mov ebx, eax
test eax, eax
jmp 0x140010238
mov r9d, dword [rdx + 0x1c]
lea rax, [rsp + 0x80]
mov r8d, dword [rdx + 0x18]
lea rcx, [rdx + 0x10]
mov qword [rsp + 0x50], rax
mov eax, dword [rdx + 0x34]
mov dword [rsp + 0x48], eax
mov eax, dword [rdx + 0x30]
mov dword [rsp + 0x40], eax
mov eax, dword [rdx + 0x2c]
mov dword [rsp + 0x38], eax
mov eax, dword [rdx + 0x28]
mov dword [rsp + 0x30], eax
mov eax, dword [rdx + 0x24]
mov dword [rsp + 0x28], eax
mov eax, dword [rdx + 0x20]
mov dl, byte [rdx + 0x16]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14001023a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010275
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14001026c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010275
xor ebx, ebx
cmp dword [rsp + 0x78], ebx
sete bl
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140010288
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140010400
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
mov r14d, 0x44
mov r15, rdx
mov dword [rbp - 0x10], r14d
mov r12, rcx
mov dword [rbp + 0x48], 0xff
mov ecx, r14d
mov r13, r8
lea edx, [r14 - 0x43]
call fcn.14001452c
mov rdi, rax
test rax, rax
jne 0x140010457
mov ebx, 0x8007000e
jmp 0x140010557
mov edx, dword [rbp + 0x48]
lea rcx, [rbp - 8]
call fcn.140010794
mov ebx, eax
test eax, eax
js 0x140010557
lea rax, [rbp - 0xc]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x10]
lea rax, [rbp + 0x48]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rcx, r12
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14001054f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001053d
cmp dword [rbp - 0x10], r14d
jbe 0x1400104ea
mov edx, dword [rbp - 0x10]
lea r8d, [rax - 0x79]
mov rcx, rdi
call fcn.140014590
mov r14, rax
test rax, rax
jne 0x1400104e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010557
mov rdi, r14
cmp dword [rbp + 0x48], 0xff
jbe 0x140010505
mov edx, dword [rbp + 0x48]
lea rcx, [rbp - 8]
call fcn.140010794
mov ebx, eax
test eax, eax
js 0x140010557
lea rax, [rbp - 0xc]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x10]
lea rax, [rbp + 0x48]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rcx, r12
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14001054f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010557
mov qword [r13], rdi
xor edi, edi
xor ebx, ebx
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140010565
call fcn.140010d78
test rdi, rdi
je 0x140010572
mov rcx, rdi
call fcn.140014560
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret