joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002760
Capabilities:
Get geographical location
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r15
sub rsp, 0xd0
xor edx, edx
xor r8d, r8d
mov edi, ecx
cmp dword [0x140026060], edx
lea r12, [0x140026060]
je 0x1400027ae
mov rax, r12
cmp dword [rax], ecx
je 0x1400027ae
add r8, 1
add edx, 1
mov rax, r8
shl rax, 5
add rax, r12
cmp dword [rax], 0
jne 0x140002794
mov ebx, edx
shl rbx, 5
cmp dword [rbx + r12], 0
jne 0x1400027c7
lea rax, [0x140020990]
jmp 0x140002944
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.7zSfxString_d
lea rcx, [rsp + 0x30]
mov r8d, edi
mov ebp, eax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
or r15, 0xffffffffffffffff
test eax, eax
jne 0x14000286d
lea edx, [rsi + 2]
lea eax, [r15 + 3]
mul rdx
cmovo rax, r15
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea r8d, [rsi + 1]
lea rcx, [rsp + 0x30]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
ja 0x140002865
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140002865
mov rcx, qword [rbx + r12 + 0x18]
test rcx, rcx
je 0x14000285e
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140002865
mov rcx, qword [rbx + r12 + 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbx + r12 + 0x18], rdi
jmp 0x14000286d
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx + r12 + 0x18]
test rax, rax
jne 0x140002944
cmp qword [rbx + r12 + 0x10], rax
mov rdi, qword [rbx + r12 + 8]
je 0x1400028a1
call fcn.1400026f0
cmp eax, dword [0x140021814]
jne 0x1400028a1
mov rdi, qword [rbx + r12 + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea ecx, [rax + 3]
mov eax, 2
movsxd rdx, ecx
mul rdx
cmovo rax, r15
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov ecx, dword [0x140026004]
cmp ecx, 0xffffffff
mov qword [rbx + r12 + 0x18], rax
jne 0x14000291f
movzx ecx, word [0x140026c24]
and dword [0x140026004], 0
lea r8, [rsp + 0x90]
mov r9d, 0x1f
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x140002919
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wtol]
mov ecx, eax
mov dword [0x140026004], eax
jmp 0x14000291f
mov ecx, dword [0x140026004]
lea eax, [rsi + 2]
lea r9d, [rsi + 1]
mov r8, rdi
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + r12 + 0x18]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rax, qword [rbx + r12 + 0x18]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x140002a10
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x60
xor ebx, ebx
mov byte [rax + 0x15], 5
lea rax, [rax + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rax - 0x10], ebx
mov qword [rax], rbx
mov byte [rax - 8], bl
mov byte [rax - 7], bl
mov byte [rax - 6], bl
mov byte [rax - 5], bl
mov byte [rax - 4], bl
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
lea rcx, [rsp + 0x78]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
jne 0x140002a73
xor eax, eax
jmp 0x140002a9a
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret

Function at 0x140002c20
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x60
test rcx, rcx
mov rbx, rcx
jne 0x140002c32
xor eax, eax
jmp 0x140002c86
test byte [0x140026c84], 2
mov dword [rsp + 0x20], 0x40
jne 0x140002c81
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140002c81
cmp qword [rsp + 0x30], rbx
jae 0x140002c81
mov ecx, 0x2b
call fcn.140002760
mov rcx, rax
call fcn.14000c71c
cmp rax, 1
je 0x140002c7a
or dword [0x140026c84], 0xffffffff
jmp 0x140002c2e
or dword [0x140026c84], 2
mov eax, 1
add rsp, 0x60
pop rbx
ret

Function at 0x140003364
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
and qword [rax - 0x18], 0
and dword [rax - 0x10], 0
and dword [rax - 0xc], 0
mov rsi, rcx
lea rcx, [rax - 0x18]
mov edx, 3
call fcn.140001140
mov edi, dword [rsp + 0x2c]
cmp edi, 1
jg 0x1400033b2
lea rcx, [rsp + 0x20]
mov edx, 1
call fcn.140001140
mov edi, dword [rsp + 0x2c]
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140003453
lea ebp, [rax + 1]
cmp ebp, edi
jl 0x1400033e9
lea rcx, [rsp + 0x20]
mov edx, ebp
call fcn.140001140
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
mov r8d, ebp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edi, edi
cmp word [rbx], di
je 0x14000340f
mov rax, rbx
add rax, 2
add edi, 1
cmp word [rax], 0
jne 0x140003402
movsxd rax, edi
and word [rbx + rax*2], 0
lea rax, [rsp + 0x20]
cmp rax, rsi
je 0x140003453
mov rax, qword [rsi]
and dword [rsi + 8], 0
mov edx, edi
and word [rax], 0
mov rcx, rsi
call fcn.140001140
mov rcx, qword [rsi]
mov r11, rbx
movzx eax, word [r11]
add r11, 2
mov word [rcx], ax
add rcx, 2
test ax, ax
jne 0x14000343c
mov dword [rsi + 8], edi
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
Function at 0x140003a34
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140002ce8
lea rdx, [0x140020a6c]
lea rcx, [rsp + 0x20]
call fcn.140002d54
mov rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x140003b2e
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140001384
lea rcx, [rsp + 0x20]
mov dx, 0x5c
call fcn.1400014f8
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x20]
call fcn.140002d54
test byte [rsp + 0x30], 0x10
mov rbx, qword [rsp + 0x20]
je 0x140003af3
lea rdx, [0x140020a68]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003b0f
lea rdx, [0x140020a60]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003b0f
mov rcx, rbx
call fcn.140003a34
jmp 0x140003b0b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003b59
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140003b59
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140003a87
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003b59
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140003b59
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, 1
jmp 0x140003b63
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003b78
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140026d64], 0
mov rbx, rcx
je 0x140003b91
mov eax, 1
jmp 0x140003bc3
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003b8a
test al, 0x10
mov rcx, rbx
jne 0x140003bbe
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003bba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140003bc3
xor eax, eax
jmp 0x140003bc3
call fcn.140003a34
add rsp, 0x20
pop rbx
ret
Function at 0x140004718
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x20]
mov rdx, rbp
movsxd r13, eax
call fcn.140002ce8
cmp dword [rsp + 0x2c], 0
jg 0x14000475a
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140001140
cmp word [rbp + r13*2 - 2], 0x5c
mov rbx, qword [rsp + 0x20]
mov edi, 1
je 0x140004776
cmp word [rbp + r13*2 - 2], 0x2f
jne 0x140004780
and word [rbx + r13*2 - 2], 0
sub r13d, edi
movsxd r14, r13d
mov r12d, r13d
mov rsi, r14
jmp 0x1400047ae
cmp word [rbx + rsi*2], 0x2f
je 0x1400047a4
cmp word [rbx + rsi*2], 0x5c
je 0x1400047a4
sub r12d, edi
sub rsi, rdi
test rsi, rsi
jg 0x14000478b
test rsi, rsi
je 0x1400047ff
and word [rbx + rsi*2], 0
mov rcx, rbx
call fcn.140001ee4
test eax, eax
je 0x14000479f
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1400047e7
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400040b4
test eax, eax
jne 0x1400048a4
mov rcx, rbx
call fcn.140001ee4
test eax, eax
je 0x140004895
movsxd rsi, r12d
jmp 0x14000488e
cmp r13d, 2
jne 0x140004824
movzx eax, word [rbp]
or ax, 0x20
cmp ax, 0x61
jb 0x140004824
cmp ax, 0x7a
ja 0x140004824
cmp word [rbp + 2], 0x3a
je 0x1400048a6
mov r8, rbp
mov edx, 0xc
mov ecx, edi
call fcn.14000c7c4
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
jmp 0x1400048b0
mov eax, r13d
movsxd rcx, r12d
sub eax, r12d
lea rdx, [rbp + rcx*2]
lea rcx, [rbx + rcx*2]
add eax, edi
movsxd r8, eax
call sub.msvcrt.dll_memcpy
cmp word [rbx + rsi*2], 0
jmp 0x14000486e
cmp word [rbx + rsi*2], 0x5c
je 0x14000487d
cmp word [rbx + rsi*2], 0x2f
je 0x14000487d
add rsi, rdi
add r12d, edi
cmp word [rbx + rsi*2], 0
jne 0x140004862
and word [rbx + rsi*2], 0
mov rcx, rbx
call fcn.140001ee4
test eax, eax
je 0x140004895
cmp rsi, r14
jl 0x14000483f
jmp 0x1400048a6
mov r8, rbx
mov edx, 0xc
mov ecx, edi
call fcn.14000c7c4
xor edi, edi
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, edi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140005c28
Capabilities:
Check if file exists
Get common file path
Get file attributes

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
sub rsp, 0x20
and qword [rcx], 0
and dword [rcx + 8], 0
and dword [rcx + 0xc], 0
mov r12, rdx
mov edx, 3
mov rbx, rcx
call fcn.140001140
cmp dword [rbx + 0xc], 2
jg 0x140005c70
mov edx, 2
mov rcx, rbx
call fcn.140001140
mov rdx, qword [rbx]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rcx, qword [rbx]
and word [rcx], 0
and dword [rbx + 8], 0
test eax, eax
je 0x140005cd3
lea edi, [rax + 1]
cmp edi, dword [rbx + 0xc]
jl 0x140005c9f
mov edx, edi
mov rcx, rbx
call fcn.140001140
mov rdx, qword [rbx]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rcx, qword [rbx]
xor r11d, r11d
cmp word [rcx], r11w
je 0x140005cc7
mov rax, rcx
add rax, 2
add r11d, 1
cmp word [rax], 0
jne 0x140005cb9
movsxd rax, r11d
and word [rcx + rax*2], 0
mov dword [rbx + 8], r11d
movsxd rax, dword [rbx + 8]
xor edi, edi
lea esi, [rax + 0xf]
mov rbp, rax
cmp esi, dword [rbx + 0xc]
jl 0x140005cee
mov edx, esi
mov rcx, rbx
call fcn.140001140
mov rax, qword [rbx]
mov r8d, edi
mov rdx, r12
lea rcx, [rax + rbp*2]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rbx]
xor ecx, ecx
xor r11d, r11d
cmp word [rdx], cx
je 0x140005d23
mov rax, rdx
add rax, 2
add r11d, 1
add rcx, 1
cmp word [rax], 0
jne 0x140005d11
and word [rdx + rcx*2], 0
mov rcx, qword [rbx]
mov dword [rbx + 8], r11d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005d45
add edi, 1
cmp edi, 0xfff
jl 0x140005cdf
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret
Function at 0x140006178
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2d0
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.14001ed20
call fcn.1400026f0
mov ecx, 3
call fcn.140002760
mov ecx, 0x28
mov qword [0x140026c78], rax
call fcn.140002760
mov ecx, 2
mov qword [0x140026c70], rax
call fcn.140002760
mov ecx, 5
mov qword [0x140026c68], rax
call fcn.140002760
mov ecx, 0x15
mov qword [0x140026c60], rax
call fcn.140002760
mov ecx, 0x16
mov qword [0x140026c58], rax
call fcn.140002760
mov ecx, 0x17
mov qword [0x140026c50], rax
call fcn.140002760
and qword [0x140026c38], 0
and qword [0x140026c40], 0
mov qword [0x140026c48], rax
xor ebx, ebx
lea rdx, [rsp + 0xc0]
xor r9d, r9d
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140006398
lea rdx, str.7zSfxFolder_02d
lea rcx, [rsp + 0x40]
mov r8d, ebx
call qword [sym.imp.USER32.dll_wsprintfW]
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x20]
mov edx, 3
call fcn.140001140
and qword [rsp + 0x30], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x3c], 0
lea rcx, [rsp + 0x30]
mov edx, 3
call fcn.140001140
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140001384
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x30]
call fcn.140001384
mov ecx, 0x20
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
je 0x1400062db
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140002fc8
mov rdi, rax
jmp 0x1400062dd
xor edi, edi
lea rcx, [0x1400266b0]
call fcn.140014ea4
movsxd r11, dword [0x1400266bc]
mov rax, qword [0x1400266c0]
mov qword [rax + r11*8], rdi
add dword [0x1400266bc], 1
mov ebp, 5
lea rdi, str.CommonDesktop
cmp dword [rdi - 8], ebx
jne 0x14000637a
mov rdx, qword [rdi]
lea rcx, [rsp + 0x20]
call fcn.140001384
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x30]
call fcn.140001384
mov ecx, 0x20
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
je 0x140006353
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140002fc8
mov rsi, rax
jmp 0x140006355
xor esi, esi
lea rcx, [0x1400266b0]
call fcn.140014ea4
movsxd r11, dword [0x1400266bc]
mov rax, qword [0x1400266c0]
mov qword [rax + r11*8], rsi
add dword [0x1400266bc], 1
add rdi, 0x10
sub rbp, 1
jne 0x14000630e
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
add ebx, 1
cmp ebx, 0x40
jl 0x140006228
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140006a70
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x2c], 0
mov rdi, rcx
mov ebp, edx
mov esi, 3
lea rcx, [rsp + 0x20]
mov edx, esi
mov rbx, r8
call fcn.140001140
and qword [rsp + 0x30], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x3c], 0
lea rcx, [rsp + 0x30]
mov edx, esi
call fcn.140001140
mov esi, 0x70
lea rcx, [rsp + 0x40]
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x68], rbx
lea ebx, [rsi - 0x6f]
test bl, bpl
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], 0x740
mov dword [rsp + 0x70], ebx
je 0x140006b0a
and dword [rsp + 0x70], 0
mov dword [rsp + 0x44], 0x8740
lea rax, str.runas
test bpl, 2
lea rdx, [rsp + 0x20]
cmove rax, qword [rsp + 0x50]
mov rcx, rdi
mov qword [rsp + 0x50], rax
call fcn.1400063c0
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.140001384
cmp dword [rsp + 0x28], 0
jne 0x140006b52
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x20]
jmp 0x140006ba9
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140006b9c
bt ebp, 0x10
jb 0x140006b8c
mov rcx, qword [rsp + 0xa8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006b9e
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000700c
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x70
mov rdi, rcx
mov rcx, qword [rcx]
cmp word [rcx + 2], 0x3a
jne 0x140007232
cmp word [rcx + 4], 0x5c
je 0x14000703e
cmp word [rcx + 4], 0x2f
jne 0x140007232
movzx eax, word [rcx]
and word [rsp + 0x8e], 0
lea rcx, [rsp + 0x88]
mov word [rsp + 0x88], ax
mov word [rsp + 0x8a], 0x3a
mov word [rsp + 0x8c], 0x5c
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x14000722f
lea rdx, str.7ZSfx_03x.cmd
lea rcx, [rsp + 0x50]
call fcn.140005c28
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x140007225
and qword [rsp + 0x40], 0
and dword [rsp + 0x48], 0
and dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x40]
mov edx, 3
call fcn.140001140
lea rdx, str.:Repeat_r_n
lea rcx, [rsp + 0x40]
call fcn.140001384
lea rdx, str.del__
lea rcx, [rsp + 0x40]
call fcn.140002d54
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.1400013f0
lea rdx, [0x140021da8]
lea rcx, [rsp + 0x40]
call fcn.140002d54
lea rdx, str.if_exist__
lea rcx, [rsp + 0x40]
call fcn.140002d54
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.1400013f0
lea rdx, str.__goto_Repeat_r_n
lea rcx, [rsp + 0x40]
call fcn.140002d54
lea rdx, str.del__
lea rcx, [rsp + 0x40]
call fcn.140002d54
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400013f0
lea rdx, [0x140021da8]
lea rcx, [rsp + 0x40]
call fcn.140002d54
mov ebx, dword [rsp + 0x48]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov r8d, 1
call fcn.1400032c8
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rdx, qword [rax]
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140007211
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x80], eax
jne 0x140007211
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and dword [rsp + 0x28], 0
mov r8, qword [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x14000721b
mov rcx, qword [rsp + 0x50]
call fcn.140003b78
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rdi]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000724c
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.140003364
lea rdx, [0x140026cb8]
mov rcx, rbx
call fcn.14000550c
lea rdx, [0x140026cc8]
mov rcx, rbx
call fcn.140005684
lea rdx, [0x140021df8]
lea rcx, [rsp + 0x20]
call fcn.140002ce8
lea r8, [0x140026cf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400052b8
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.140003364

Function at 0x1400072b4
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140003364
lea rdx, [0x140026ca8]
mov rcx, rbx
call fcn.140005394
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000724c

Function at 0x1400072e0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
cmp dword [0x1400266bc], edi
jle 0x14000738b
xor ebx, ebx
mov rax, qword [0x1400266c0]
lea rcx, [rsp + 0x20]
mov rsi, qword [rbx + rax]
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x2c], 0
mov edx, dword [rsi + 0x18]
call fcn.140001140
mov r11, qword [rsi + 0x10]
mov rcx, qword [rsp + 0x20]
movzx eax, word [r11]
add r11, 2
mov word [rcx], ax
add rcx, 2
test ax, ax
jne 0x140007330
mov eax, dword [rsi + 0x18]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], eax
call fcn.1400072b4
mov r11, qword [0x1400266c0]
mov rcx, qword [rbx + r11]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
add edi, 1
add rbx, 8
cmp edi, dword [0x1400266bc]
jl 0x1400072ff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140009a9c
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rcx, rax
mov qword [rbx], rax
call fcn.140009a08
add rsp, 0x30
pop rbx
ret
Function at 0x14000c250
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x510
mov rdi, rcx
mov rcx, qword [rcx + 8]
mov edx, 0x4b6
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14000218c
mov r11d, dword [rsp + 0x3c]
mov ebx, 1
sub r11d, dword [rsp + 0x34]
mov r8d, ebx
mov edx, 0x4b6
add r11d, 2
mov rcx, rdi
mov dword [rdi + 0x80], r11d
call fcn.140009f50
mov r8d, ebx
mov ebx, 0x4b7
mov rcx, rdi
mov edx, ebx
call fcn.140009f50
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x250]
lea rcx, [rsp + 0x40]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x103
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11, qword [rsp + 0x250]
mov rcx, qword [rdi + 8]
mov edx, ebx
mov qword [rdi + 0x70], r11
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r8, [0x14000a81c]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, rdi
mov qword [rdi + 0x78], rax
call fcn.14000bdd0
mov rcx, rdi
mov ebx, eax
call fcn.14000acdc
mov eax, ebx
mov rbx, qword [rsp + 0x520]
add rsp, 0x510
pop rdi
ret