joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003b6c
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov byte [rsp + 0x40], cl
mov ecx, 0xfffffff5
mov word [rsp + 0x41], 0xa0d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x38
ret

Function at 0x140003c20
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov rbx, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140015d4c
lea rdx, [0x14002324c]
lea rcx, [rsp + 0x20]
call fcn.140015ef8
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor esi, esi
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140003d51
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140015de4
mov r11d, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], r11d
jne 0x140003ca6
lea rcx, [rsp + 0x20]
call fcn.140015a68
mov r11d, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov eax, r11d
inc r11d
mov edx, 0x5c
mov word [rcx + rax*2], dx
mov word [rcx + r11*2], si
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x5c]
mov dword [rsp + 0x28], r11d
call fcn.140015ef8
test byte [rsp + 0x30], 0x10
je 0x140003d12
lea rdx, [0x140023248]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003d32
lea rdx, [0x140023240]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003d32
mov rcx, qword [rsp + 0x20]
call fcn.140003c20
jmp 0x140003d2e
mov rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003d8b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140003d8b
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140003c7e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x140029b88]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003d8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140003d8b
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, 1
jmp 0x140003d97
mov rcx, qword [rsp + 0x20]
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 rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140003db0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x270
cmp dword [0x140029d3c], 0
mov rbx, rcx
je 0x140003dcc
mov eax, 1
jmp 0x140003e10
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140003dc5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test byte [rsp + 0x20], 0x10
mov rcx, rbx
jne 0x140003e0b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003e07
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140003e10
xor eax, eax
jmp 0x140003e10
call fcn.140003c20
add rsp, 0x270
pop rbx
ret

Function at 0x1400044d8
Capabilities:
Extract resource via kernel32 functions

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, 0x70
mov r12, rcx
xor ecx, ecx
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx r9d, word [0x140029ae8]
mov r8, rbp
mov rdx, r12
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
mov rbx, rax
test rax, rax
jne 0x140004541
mov r9d, 0x409
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
mov rbx, rax
test rax, rax
je 0x140004577
test rsi, rsi
je 0x140004558
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
mov qword [rsi], r11
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140004577
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x1400045fd
cmp dword [0x140029aec], 0
jne 0x1400045fb
mov rcx, qword [0x140029b38]
lea rdx, str.SetProcessPreferredUILanguages
mov dword [0x140029aec], 1
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx r8d, word [0x140029ae8]
and qword [rsp + 0x28], 0
lea rdx, str._04X_c_04X_c
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov rbx, rax
mov dword [rsp + 0x20], 0x409
call qword [sym.imp.USER32.dll_wsprintfW]
test rbx, rbx
jne 0x1400045ed
mov rcx, qword [0x140029b38]
lea rdx, str.SetThreadPreferredUILanguages
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400045fb
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 4]
call rbx
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x1400049a8
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
movzx edx, word [0x140029ae8]
test dx, dx
jne 0x140004a14
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edx, 0x3ff
movzx ecx, ax
mov word [0x140029ae8], ax
and cx, dx
cmp cx, 9
je 0x1400049db
movzx eax, ax
jmp 0x140004a17
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
jne 0x140004a0d
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, dword [0x140024158]
movzx edx, word [0x140029ae8]
cmp eax, ecx
cmove dx, cx
mov word [0x140029ae8], dx
jmp 0x140004a14
movzx edx, word [0x140029ae8]
movzx eax, dx
add rsp, 0x28
ret
Function at 0x140004a1c
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 [0x140029190], edx
lea r12, [0x140029190]
je 0x140004a68
mov rax, r12
cmp dword [rax], ecx
je 0x140004a68
inc r8
inc edx
mov rax, r8
shl rax, 5
add rax, r12
cmp dword [rax], 0
jne 0x140004a50
mov ebx, edx
shl rbx, 5
cmp dword [rbx + r12], 0
jne 0x140004a81
lea rax, [0x140023090]
jmp 0x140004bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SfxString_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 0x140004b27
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 0x140004b1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004b1f
mov rcx, qword [rbx + r12 + 0x18]
test rcx, rcx
je 0x140004b18
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004b1f
mov rcx, qword [rbx + r12 + 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbx + r12 + 0x18], rdi
jmp 0x140004b27
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 0x140004bfe
mov rdi, qword [rbx + r12 + 8]
cmp qword [rbx + r12 + 0x10], rax
je 0x140004b5b
call fcn.1400049a8
cmp eax, dword [0x140024158]
jne 0x140004b5b
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 [0x140029114]
mov qword [rbx + r12 + 0x18], rax
cmp ecx, 0xffffffff
jne 0x140004bd9
movzx ecx, word [0x140029ae8]
and dword [0x140029114], 0
lea r8, [rsp + 0x90]
mov r9d, 0x1f
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x140004bd3
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wtol]
mov ecx, eax
mov dword [0x140029114], eax
jmp 0x140004bd9
mov ecx, dword [0x140029114]
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 0x140004ca8
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rbp + 0x10], ebx
mov qword [rbp + 0x20], rbx
mov dword [rbp + 0x18], ebx
mov dword [rsp + 0x20], ebx
mov word [rbp + 0x1c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140004d1f
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rbp
ret

Function at 0x140005104
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, 0x20
lea rax, [0x140023238]
mov rsi, rcx
mov qword [rcx], rax
add rcx, 8
call fcn.140015d14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x140005156
lea rcx, [rsi + 8]
mov edx, eax
call fcn.140005090
mov ecx, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdx, qword [rsi + 8]
mov eax, ebp
cmp word [rdx], bp
je 0x14000516f
mov rcx, rdx
add rcx, 2
inc eax
cmp word [rcx], bp
jne 0x140005164
mov rbx, qword [rsp + 0x30]
mov dword [rsi + 0x10], eax
mov word [rdx + rax*2], bp
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400051c0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12, rdx
mov rdi, rcx
call fcn.140015d14
mov edx, 2
mov rcx, rdi
call fcn.140005090
mov ecx, 1
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rcx, qword [rdi]
xor r13d, r13d
mov dword [rdi + 8], r13d
mov word [rcx], r13w
test eax, eax
je 0x14000524b
lea ebx, [rax + 1]
mov rcx, rdi
mov edx, ebx
call fcn.140005090
mov ecx, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r11, qword [rdi]
mov eax, r13d
cmp word [r11], r13w
je 0x140005243
mov rcx, r11
add rcx, 2
inc eax
cmp word [rcx], r13w
jne 0x140005237
mov dword [rdi + 8], eax
mov word [r11 + rax*2], r13w
movsxd rax, dword [rdi + 8]
mov ebx, r13d
lea esi, [rax + 0xf]
mov rbp, rax
mov edx, esi
mov rcx, rdi
call fcn.140005090
mov r8d, ebx
mov rdx, r12
lea rcx, [rax + rbp*2]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r11, qword [rdi]
mov ecx, r13d
mov rax, r13
cmp word [r11], r13w
je 0x14000528d
inc rax
inc ecx
cmp word [r11 + rax*2], r13w
jne 0x140005281
mov dword [rdi + 8], ecx
mov word [r11 + rax*2], r13w
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400052ad
inc ebx
cmp ebx, 0xfff
jl 0x140005258
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1400054ac
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
mov rsi, rcx
lea rcx, [rax - 0x18]
call fcn.140015d14
mov rbx, qword [rsi]
lea rcx, [rsp + 0x20]
mov edx, 1
call fcn.140005090
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebp, ebp
test eax, eax
je 0x14000554c
mov rdi, qword [rsi]
lea ebx, [rax + 1]
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.140005090
mov r8d, ebx
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, qword [rsp + 0x20]
mov r11d, ebp
cmp word [rcx], bp
je 0x140005533
mov rax, rcx
add rax, 2
inc r11d
cmp word [rax], bp
jne 0x140005527
mov eax, r11d
mov dword [rsp + 0x28], r11d
lea rdx, [rsp + 0x20]
mov word [rcx + rax*2], bp
mov rcx, rsi
call fcn.140015e74
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140005800
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x20]
mov rdx, r13
movsxd r12, eax
call fcn.140015d4c
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140005090
xor r15d, r15d
cmp word [r13 + r12*2 - 2], 0x5c
mov rdi, rax
lea ebx, [r15 + 1]
je 0x14000585d
cmp word [r13 + r12*2 - 2], 0x2f
jne 0x140005866
mov word [rax + r12*2 - 2], r15w
sub r12d, ebx
movsxd r14, r12d
mov ebp, r12d
mov rcx, rax
mov rsi, r14
jmp 0x140005897
cmp word [rdi + rsi*2], 0x2f
je 0x14000588b
cmp word [rdi + rsi*2], 0x5c
je 0x14000588b
sub ebp, ebx
sub rsi, rbx
test ebp, ebp
jg 0x140005874
test ebp, ebp
je 0x1400058e5
mov word [rdi + rsi*2], r15w
mov rcx, rdi
call fcn.1400038e0
test eax, eax
je 0x140005887
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1400058cd
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140005424
test eax, eax
jne 0x14000598c
mov rcx, rdi
call fcn.1400038e0
test eax, eax
je 0x14000597d
movsxd rsi, ebp
jmp 0x140005976
cmp r12d, 2
jne 0x14000590c
movzx eax, word [r13]
or ax, 0x20
cmp ax, 0x61
jb 0x14000590c
cmp ax, 0x7a
ja 0x14000590c
cmp word [r13 + 2], 0x3a
je 0x14000598f
mov r8, r13
mov edx, 0xc
mov ecx, ebx
call fcn.14000c52c
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
jmp 0x14000599b
mov eax, r12d
movsxd rcx, ebp
sub eax, ebp
lea rdx, [r13 + rcx*2]
lea rcx, [rdi + rcx*2]
add eax, ebx
movsxd r8, eax
call sub.msvcrt.dll_memcpy
cmp word [rdi + rsi*2], r15w
jmp 0x140005957
cmp word [rdi + rsi*2], 0x5c
je 0x140005965
cmp word [rdi + rsi*2], 0x2f
je 0x140005965
add rsi, rbx
add ebp, ebx
cmp word [rdi + rsi*2], r15w
jne 0x14000594b
mov rcx, rdi
mov word [rdi + rsi*2], r15w
call fcn.1400038e0
test eax, eax
je 0x14000597d
cmp rsi, r14
jl 0x140005929
jmp 0x14000598f
mov r8, rdi
mov edx, 0xc
mov ecx, ebx
call fcn.14000c52c
mov ebx, r15d
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140005dc8
Capabilities:
Get graphical window text

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
mov rbp, rdx
mov rdi, rcx
call fcn.140015d14
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor r12d, r12d
mov esi, eax
test eax, eax
jle 0x140005e24
lea edx, [rsi + 1]
mov rcx, rdi
call fcn.140005090
lea r8d, [rsi + 1]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rax, qword [rdi]
mov dword [rdi + 8], esi
mov word [rax + rsi*2], r12w
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x14000609c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbp, rcx
lea rdx, [rax + 8]
mov rcx, rsi
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, rbp
mov edi, eax
call fcn.140015d14
lea edx, [rdi + 2]
mov rcx, rbp
call fcn.140005090
lea edx, [rdi + 2]
mov rcx, rbp
call fcn.140005090
lea r8d, [rdi + 1]
mov rcx, rsi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r11, qword [rbp]
xor edx, edx
mov eax, edx
cmp word [r11], dx
je 0x140006115
mov rcx, r11
add rcx, 2
inc eax
cmp word [rcx], dx
jne 0x14000610a
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
mov dword [rbp + 8], eax
mov word [r11 + rax*2], dx
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140006ae8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x290
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140029b38], rax
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.14001fa60
call fcn.1400049a8
mov ecx, 3
call fcn.140004a1c
mov ecx, 0x28
mov qword [0x140029b40], rax
call fcn.140004a1c
mov ecx, 2
mov qword [0x140029b18], rax
call fcn.140004a1c
mov ecx, 5
mov qword [0x140029af0], rax
call fcn.140004a1c
mov ecx, 0x15
mov qword [0x140029af8], rax
call fcn.140004a1c
mov ecx, 0x16
mov qword [0x140029b28], rax
call fcn.140004a1c
mov ecx, 0x17
mov qword [0x140029b10], rax
call fcn.140004a1c
and qword [0x140029b30], 0
and qword [0x140029b20], 0
mov qword [0x140029b08], rax
xor ebx, ebx
lea rdx, [rsp + 0x80]
xor r9d, r9d
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140006c1b
lea rdx, str.SfxFolder_02d
lea rcx, [rsp + 0x20]
mov r8d, ebx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.14000641c
lea rdi, str.CommonDesktop
mov esi, 5
cmp dword [rdi - 8], ebx
jne 0x140006c12
mov rcx, qword [rdi]
lea rdx, [rsp + 0x80]
xor r8d, r8d
call fcn.14000641c
add rdi, 0x10
dec rsi
jne 0x140006bfa
inc ebx
cmp ebx, 0x40
jl 0x140006ba7
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140006c38
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400054ac
lea rdx, [0x140029b88]
mov rcx, rbx
call fcn.140004000
lea rdx, [0x140029ba8]
mov rcx, rbx
call fcn.1400040ec
mov rcx, rbx
call fcn.1400041d8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400054ac

Function at 0x140006c7c
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400054ac
lea rdx, [0x140029ce0]
mov rcx, rbx
call fcn.140003f14
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140006c38
Function at 0x140007408
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], rsi
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x70
mov rdi, rcx
mov rcx, qword [rcx]
mov edx, 0x3a
cmp word [rcx + 2], dx
jne 0x1400075ee
lea r8d, [rdx + 0x22]
cmp word [rcx + 4], r8w
je 0x140007448
cmp word [rcx + 4], 0x2f
jne 0x1400075ee
movzx eax, word [rcx]
lea rcx, [rbp + 0x28]
xor r12d, r12d
mov dword [rbp + 0x2a], 0x5c003a
mov word [rbp + 0x2e], r12w
mov word [rbp + 0x28], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1400075eb
lea rdx, str.7ZSfx_03x.cmd
lea rcx, [rbp - 0x20]
call fcn.1400051c0
mov rcx, qword [rbp - 0x20]
mov qword [rsp + 0x30], r12
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]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400075e2
lea rcx, [rbp - 0x30]
call fcn.140015d14
lea rdx, str.:Repeat_r_n
lea rcx, [rbp - 0x30]
call fcn.140015de4
lea rdx, str.del__
lea rcx, [rbp - 0x30]
call fcn.140015ef8
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.140015f60
lea rdx, [0x140024308]
lea rcx, [rbp - 0x30]
call fcn.140015ef8
lea rdx, str.if_exist__
lea rcx, [rbp - 0x30]
call fcn.140015ef8
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.140015f60
lea rdx, str.__goto_Repeat_r_n
lea rcx, [rbp - 0x30]
call fcn.140015ef8
lea rdx, str.del__
lea rcx, [rbp - 0x30]
call fcn.140015ef8
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.140015f60
lea rdx, [0x140024308]
lea rcx, [rbp - 0x30]
call fcn.140015ef8
mov ebx, dword [rbp - 0x28]
lea r8d, [r12 + 1]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.140005354
lea r9, [rbp + 0x20]
mov r8d, ebx
mov rdx, qword [rax]
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp - 0x10]
mov ebx, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400075d0
mov eax, dword [rbp - 0x28]
cmp dword [rbp + 0x20], eax
jne 0x1400075d0
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r8, qword [rbp - 0x20]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x1400075d9
mov rcx, qword [rbp - 0x20]
call fcn.140003db0
mov rcx, qword [rbp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rbp - 0x20]
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 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x140007764
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
cmp dword [0x140029b80], ebx
jle 0x1400077ce
mov edi, ebx
mov rax, qword [0x140029b78]
lea rcx, [rsp + 0x20]
mov rdx, qword [rdi + rax]
add rdx, 0x10
call fcn.140015da8
lea rcx, [rsp + 0x20]
call fcn.140006c7c
mov r11, qword [0x140029b78]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rdi + r11]
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_
inc ebx
add rdi, 8
cmp ebx, dword [0x140029b80]
jl 0x14000777a
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret