joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003bc0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe60
xor edi, edi
lea rcx, [rsp + 0x220]
mov ebx, edi
call fcn.1400030d0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
lea rdx, str.HookType
call fcn.140005428
test rax, rax
je 0x140003cd1
add rax, 9
je 0x140003c38
movzx ecx, byte [rax]
mov edx, edi
test cl, cl
je 0x140003c31
lea r8, [rsp + 0x20]
sub r8, rax
cmp cl, 0x20
je 0x140003c31
cmp edx, 0xff
jae 0x140003c31
mov byte [r8 + rax], cl
inc edx
movzx ecx, byte [rax + 1]
inc rax
test cl, cl
jne 0x140003c13
movsxd rax, edx
mov byte [rsp + rax + 0x20], bl
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
lea rdx, str.ProcessID
call fcn.140005428
test rax, rax
je 0x140003cd1
add rax, 0xa
je 0x140003c98
movzx ecx, byte [rax]
mov edx, edi
test cl, cl
je 0x140003c8e
lea r8, [rsp + 0x120]
sub r8, rax
cmp cl, 0x20
je 0x140003c8e
cmp edx, 0xff
jae 0x140003c8e
mov byte [r8 + rax], cl
inc edx
movzx ecx, byte [rax + 1]
inc rax
test cl, cl
jne 0x140003c70
movsxd rax, edx
mov byte [rsp + rax + 0x120], bl
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call fcn.14003b528
xor edx, edx
lea rcx, [rsp + 0x120]
mov ebx, eax
lea r8d, [rdx + 0x10]
call fcn.14003b528
mov r8d, ebx
lea rcx, [rsp + 0x220]
mov edx, eax
call fcn.140003140
mov ebx, eax
lea rcx, [rsp + 0x220]
call fcn.140003100
cmp ebx, 1
mov rbx, qword [rsp + 0xe70]
setne dil
mov eax, edi
add rsp, 0xe60
pop rdi
ret

Function at 0x1400047f4
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004b354
xor eax, eax
jmp 0x14004b417
mov rbp, rbx
cmp word [rax], si
je 0x14004b379
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004b360
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004b35c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140043820
movsxd r14, eax
test eax, eax
jne 0x14004b3b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004b34d
mov rcx, r14
call fcn.140044338
mov rdi, rax
test rax, rax
jne 0x14004b3d0
xor ecx, ecx
call fcn.1400442fc
jmp 0x14004b3ac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140043820
test eax, eax
jne 0x14004b401
mov rcx, rdi
call fcn.1400442fc
jmp 0x14004b40b
xor ecx, ecx
call fcn.1400442fc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x40b5d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov r14, r8
mov rbx, rdx
mov rax, qword [rcx + 8]
mov r10, qword [rax + 8]
mov r9, rax
cmp byte [r10 + 0x19], 0
jne 0x40b62a
mov r11, qword [rdx]
mov rcx, qword [r10 + 0x20]
cmp rcx, r11
jl 0x40b61f
jne 0x40b617
mov rcx, qword [rdx + 8]
cmp qword [r10 + 0x28], rcx
jl 0x40b61f
mov r9, r10
mov r10, qword [r10]
jmp 0x40b623
mov r10, qword [r10 + 0x10]
cmp byte [r10 + 0x19], 0
je 0x40b602
mov qword [rsp + 0x70], rax
cmp r9, rax
je 0x40b64c
mov rcx, qword [rdx]
mov rdx, qword [r9 + 0x20]
cmp rcx, rdx
jl 0x40b64c
jne 0x40b64f
mov rcx, qword [r9 + 0x28]
cmp qword [rbx + 8], rcx
jge 0x40b64f
mov r9, rax
mov qword [rsp + 0x88], rax
cmp r9, rax
je 0x40b753
mov rsi, qword [r9 + 0x30]
mov qword [rsp + 0x38], rsi
mov rdi, qword [r9 + 0x38]
mov qword [rsp + 0x40], rdi
test rdi, rdi
je 0x40b68b
mov eax, 1
lock xadd dword [rdi + 8], eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
xor edx, edx
lea rcx, [rsi + 0xb0]
call qword [sym.imp.dvacore.dll_public:_void___cdecl_dvacore::threads::RecursiveMutex::Lock_char_const____ptr64_const___ptr64]
mov rax, qword [rsi + 0xb8]
mov r8, qword [rax + 8]
mov rcx, rax
cmp byte [r8 + 0x19], 0
jne 0x40b6da
mov r9, qword [r14]
mov rdx, qword [r8 + 0x1c]
cmp rdx, r9
jl 0x40b6cf
jne 0x40b6c7
mov rdx, qword [r14 + 8]
cmp qword [r8 + 0x24], rdx
jl 0x40b6cf
mov rcx, r8
mov r8, qword [r8]
jmp 0x40b6d3
mov r8, qword [r8 + 0x10]
cmp byte [r8 + 0x19], 0
je 0x40b6b2
mov qword [rsp + 0x28], rax
cmp rcx, rax
je 0x40b6fc
mov rdx, qword [r14]
mov r8, qword [rcx + 0x1c]
cmp rdx, r8
jl 0x40b6fc
jne 0x40b6ff
mov rdx, qword [rcx + 0x24]
cmp qword [r14 + 8], rdx
jge 0x40b6ff
mov rcx, rax
mov qword [rsp + 0x30], rax
cmp rcx, rax
je 0x40b70d
mov byte [rcx + 0x3c], 1
lea rcx, [rsi + 0xb0]
call qword [sym.imp.dvacore.dll_public:_void___cdecl_dvacore::threads::RecursiveMutex::Unlock_void_const___ptr64]
nop
test rdi, rdi
je 0x40b753
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x40b753
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x40b753
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x45d870
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2b8], rbx
mov rax, qword [0x004f5230]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x30], edi
lea r8d, [rdi + 0xd]
lea rdx, str.AdobeCommon_
lea rcx, [rsp + 0x60]
call qword [sym.imp.dvacore.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_dvacore::utility::SmallBlockAllocator::STLAllocator_wchar_t_____cdecl_dvacore::utility::AsciiToUTF16_char_const____ptr64__unsigned_long_long_unsigned___int64__]
nop
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x801a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
cmp word [rsp + 0x80], di
jne 0x45d914
mov r8d, edi
jmp 0x45d92b
lea rax, [rsp + 0x80]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x45d920
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.0045e650
nop
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ASLFoundation.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_dvacore::utility::SmallBlockAllocator::STLAllocator_wchar_t_____cdecl_ASL::PathUtils::AddTrailingSlash_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_dvacore::utility::SmallBlockAllocator::STLAllocator_wchar_t___const____ptr64_]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x45d96b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.dvacore.dll_void___cdecl_dvacore::utility::SmallBlockAllocator::Dispose_void____ptr64__unsigned_long_long_unsigned___int64__]
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x45d99d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.dvacore.dll_void___cdecl_dvacore::utility::SmallBlockAllocator::Dispose_void____ptr64__unsigned_long_long_unsigned___int64__]
nop
mov rax, rbx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.00483ff0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x2a0
pop rdi
ret
Function at 0x14000f880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
invalid
std
invalid
nop
push rcx
in eax, dx
movabs al, byte [0x46d0fe9516e0978b]
mov cl, byte [rbp + 0x6a]
mov byte [rdi - 6], dh
div byte [r10 + rbx*8 - 0x77]
sti
jge 0x1400c3f06
call 0x190eb6989
fidivr dword [rcx + 0x50]
adc eax, 0x68652213
jmp 0x1400c3f1a
or dword [rbp + rax*4 - 0x215fe78a], esp
and eax, ebx
invalid
insb byte [rdi], dx
invalid

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140011253
Capabilities:
Terminate process

Disassembly:
jmp 0x140014050
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:
Parse pe header

Disassembly:
jmp 0x1400153a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400153c0
xor al, al
jmp 0x140015441
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400153d3
xor al, al
jmp 0x140015441
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 0x1400153fd
xor al, al
jmp 0x140015441
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015411
xor al, al
jmp 0x140015441
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015423
xor al, al
jmp 0x140015441
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001543f
xor al, al
jmp 0x140015441
mov al, 1
add rsp, 0x38
ret
Function at 0xe48210
Capabilities:
Decompress data using aplib

Disassembly:
call 0xe48397
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xe48241
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xe48227
add dl, dl
jne 0xe4824e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xe482ae
xor eax, eax
add dl, dl
jne 0xe4825d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xe48365
add dl, dl
jne 0xe4826e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe4827b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe48288
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe48295
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xe482a2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xe48236
mov eax, 1
add dl, dl
jne 0xe482be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe482cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xe482b3
sub eax, ebx
mov ebx, 1
jne 0xe48304
mov ecx, 1
add dl, dl
jne 0xe482e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe482f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xe482db
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xe48236
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe48320
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe4832d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xe48315
cmp eax, 0x7d00
jae 0xe48353
cmp eax, 0x500
jb 0xe4834e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xe48236
cmp eax, 0x7f
ja 0xe48356
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xe48236
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xe4838a
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 0xe48236
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400292ec
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c9b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c9b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002943c
cmp rax, 0xffffffffffffffff
je 0x14002943c
xor edi, edi
test rbp, rbp
jle 0x1400293e7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f2e0
mov rbx, rax
test rax, rax
jne 0x140029374
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400293dd
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a2e8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d690
cmp eax, 0xffffffff
je 0x1400293bd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029384
mov edx, r15d
mov ecx, r14d
call fcn.14001a2e8
jmp 0x1400293dd
cmp byte [rsi + 0x38], dil
je 0x1400293d4
cmp dword [rsi + 0x34], 5
jne 0x1400293d4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400293dd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b07c
jmp 0x140029450
jns 0x140029450
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c9b4
cmp rax, 0xffffffffffffffff
jne 0x140029408
cmp byte [rsi + 0x30], dil
je 0x140029450
mov edi, dword [rsi + 0x2c]
jmp 0x140029450
mov ecx, r14d
call fcn.1400187a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029450
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029450
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029449
mov eax, dword [rsi + 0x2c]
jmp 0x14002944e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c9b4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x141044000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x14104400a
jmp 0x14104600f
jmp fcn.140c4e058
Function at 0x140005fec
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, [rsp + 0x30]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
call fcn.140019720
mov ebx, eax
test eax, eax
js 0x1400060de
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.140019720
mov ebx, eax
test eax, eax
jne 0x1400060d8
mov rcx, qword [rsp + 0x28]
mov eax, 0x2f
cmp ax, word [rcx]
je 0x14000607e
mov eax, 0x2d
cmp ax, word [rcx]
jne 0x1400060ba
lea rbx, [rcx + 2]
lea rcx, str.standalone
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x14000609e
mov dword [rsi], 1
jmp 0x140006046
lea rcx, str.standalone:temp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400060c1
mov dword [rdi], 1
jmp 0x140006046
mov ebx, 0x80070057
jmp 0x1400060e3
lea rcx, str.standalone:delete
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, 0x80070057
jmp 0x1400060de
test ebx, ebx
cmovns ebx, r14d
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400060ed
call fcn.140016048
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x14000e3e8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
push rbx
push rsi
push rdi
push r14
push r15
mov eax, 0x11b8
call fcn.140010958
sub rsp, rax
mov rax, qword [0x140027098]
xor rax, rsp
mov qword [rbp - 0x40], rax
mov rdi, qword [rbp + 0x30]
and qword [rsp + 0x38], 0
mov rbx, rcx
and qword [rdi], 0
mov rsi, r8
mov r15, rdx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x1154
mov r14, r9
call fcn.140010880
lea rcx, [rsp + 0x48]
or r9, 0xffffffffffffffff
mov r8, rbx
mov edx, 0x80
mov dword [rsp + 0x40], 0x1154
mov dword [rsp + 0x44], 7
call fcn.140010790
lea rax, [rsp + 0x30]
lea rdx, str.Path
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x148]
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x30], 0x1048
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000e518
lea rax, [rsp + 0x30]
lea rdx, str.Priority
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000e518
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r8, r14
mov rcx, rsi
call fcn.14000e324
mov ebx, eax
test eax, eax
js 0x14000e518
mov rax, qword [rsp + 0x38]
xor edx, edx
xor ebx, ebx
mov qword [rdi], rax
mov qword [rsp + 0x38], rdx
jmp 0x14000e51d
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14000e537
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 - 0x40]
xor rcx, rsp
call fcn.140010528
add rsp, 0x11b8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140010008
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [rcx + 0x258]
xor ebx, ebx
mov esi, edx
cmp rcx, 0xffffffffffffffff
jne 0x14001003b
lea ebx, [rcx + 2]
jmp 0x140010115
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
test esi, esi
je 0x140010115
cmp dword [rdi + 0x18], ebx
jne 0x140010115
and qword [rsp + 0x30], rbx
and dword [rsp + 0x28], ebx
lea rcx, [rdi + 0x34]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, 0x80070000
mov qword [rdi + 0x258], rax
cmp rax, 0xffffffffffffffff
jne 0x1400100a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010115
mov rdx, qword [rdi + 0x248]
mov rcx, qword [rdi + 0x258]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400100d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010115
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400100fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010115
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x248]
mov r9, qword [rcx]
mov r8, rdx
call qword [r9 + 0xa0]
mov rcx, qword [rdi + 0x258]
cmp rcx, 0xffffffffffffffff
je 0x140010130
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret

Function at 0x1400104a8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov r11d, dword [r8]
mov rbx, rdx
mov r9, rcx
and r11d, 0xfffffff8
test byte [r8], 4
mov r10, rcx
je 0x1400104d6
mov eax, dword [r8 + 8]
movsxd r10, dword [r8 + 4]
neg eax
add r10, rcx
movsxd rcx, eax
and r10, rcx
movsxd rax, r11d
mov rdx, qword [rax + r10]
mov rax, qword [rbx + 0x10]
mov ecx, dword [rax + 8]
add rcx, qword [rbx + 8]
test byte [rcx + 3], 0xf
je 0x1400104fa
movzx eax, byte [rcx + 3]
and eax, 0xfffffff0
cdqe
add r9, rax
xor r9, rdx
mov rcx, r9
add rsp, 0x20
pop rbx
jmp fcn.140010528
Function at 0x1400125bb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140027098]
jne 0x140010542
rol rcx, 0x10
test cx, 0xffff
jne 0x14001053e
repz ret
ror rcx, 0x10
jmp 0x140012514
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140028c60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140028d58]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140012599
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140028c60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400125bb
mov rax, qword [rsp + 0x88]
mov qword [0x140028d58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140028cf8], rax
mov rax, qword [0x140028d58]
mov qword [0x140028bd0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140028ce0], rax
mov dword [0x140028bc0], 0xc0000409
mov dword [0x140028bc4], 1
mov rax, qword [0x140027098]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400270a0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140028c58], eax
mov ecx, 1
call fcn.1400147a4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140022610]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140028c58], 0
jne 0x140012642
mov ecx, 1
call fcn.1400147a4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret