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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x920
mov eax, dword [rcx]
mov rdi, rcx
cmp eax, dword [0x14002baa8]
je 0x140001104
cmp eax, 0xeedfade
je 0x140001104
mov rax, qword [0x14002baa0]
xor ebx, ebx
test rax, rax
je 0x14000105d
cmp word [0x14002baa2], bx
je 0x14000104e
call rax
mov qword [0x14002baa0], rax
mov ecx, eax
call fcn.140002c2c
mov rcx, rax
jmp 0x1400010ee
mov ecx, 0x27
call fcn.140002c2c
mov r9, qword [rdi + 0x10]
mov r8d, dword [rdi]
lea rcx, [rsp + 0x120]
mov rdx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
cmp dword [rdi + 0x18], ebx
jbe 0x1400010bb
lea rsi, [rdi + 0x20]
mov r8, qword [rsi]
lea rdx, str._t0x_p_n
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
inc ebx
add rsi, 8
cmp ebx, dword [rdi + 0x18]
jb 0x140001088
cmp byte [str.___Install__UTF_8_], 0x3b
je 0x1400010e6
mov ecx, 3
call fcn.140002c2c
lea rdx, [rsp + 0x120]
xor r9d, r9d
mov r8, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1400010f3
lea rcx, [rsp + 0x120]
call fcn.14000b6f4
call fcn.140005940
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea r11, [rsp + 0x920]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400014e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x140001505
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + VariantCopy]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140001514
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
lea rcx, [rdi + 0x20]
mov rdx, rsi
mov qword [rdi + 0x18], rbx
call fcn.140018880
mov eax, dword [rdi + 0x28]
cmp dword [rdi + 0x2c], eax
jne 0x140001535
lea rcx, [rdi + 0x20]
call fcn.140018178
mov edx, dword [rdi + 0x28]
mov rcx, qword [rdi + 0x20]
mov r8d, 0x5c
mov word [rcx + rdx*2], r8w
inc edx
lea rax, [rsp + 0x58]
mov word [rcx + rdx*2], bp
mov dword [rdi + 0x28], edx
mov qword [rsp + 0x28], rax
lea r8, [0x140001334]
xor edx, edx
mov r9, rdi
xor ecx, ecx
mov qword [0x14002bab0], rdi
mov dword [0x14002bac0], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14002bab8], rax
test rax, rax
je 0x1400015b3
cmp dword [0x14002bb54], 2
je 0x1400015a0
call fcn.14000b5f4
mov rax, qword [0x14002bab8]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [0x14002bab8]
mov r8d, dword [0x14002bac0]
mov qword [0x14002bc30], rbp
test r8d, r8d
je 0x140001615
cmp r8d, 1
je 0x140001607
cmp r8d, 2
je 0x140001600
cmp r8d, 3
je 0x1400015f9
cmp r8d, 0x67
jle 0x1400015e8
cmp r8d, 0x6b
jle 0x140001686
mov edx, 0x14
xor ecx, ecx
call fcn.14000b850
jmp 0x140001686
mov edx, 0x12
jmp 0x14000160c
mov edx, 0x13
jmp 0x14000160c
mov edx, reloc.COMCTL32.dll_InitCommonControls
xor ecx, ecx
call fcn.14000b850
jmp 0x140001686
cmp dword [0x14002bc2c], ebp
mov ecx, ebp
mov dword [rsp + 0x50], ecx
jne 0x140001686
test rax, rax
je 0x140001646
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [rsp + 0x50]
test eax, eax
je 0x140001646
test ecx, ecx
jne 0x140001646
xor eax, eax
jmp 0x14000168b
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x14000165d
mov r8d, ecx
mov edx, 0x21
jmp 0x1400015ed
movzx ecx, cx
cmp ecx, 0xe
jne 0x14000166e
cmp dword [0x14002bb58], 0xffffffff
je 0x140001686
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, dword [rsp + 0x50]
mov edx, 0x22
lea ecx, [rdx - 0x21]
call fcn.14000b850
mov eax, 0x80004005
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x140002028
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000206f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140002056
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140002074
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000206f
test al, 0x10
jne 0x14000206f
mov ecx, 0xb7
jmp 0x14000204c
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14000223c
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 0x1400026e8
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 [0x14002bae0]
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 0x140002751
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 0x140002787
test rsi, rsi
je 0x140002768
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 0x140002787
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x14000280d
cmp dword [0x14002bae4], 0
jne 0x14000280b
mov rcx, qword [0x14002bae8]
lea rdx, str.SetProcessPreferredUILanguages
mov dword [0x14002bae4], 1
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx r8d, word [0x14002bae0]
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 0x1400027fd
mov rcx, qword [0x14002bae8]
lea rdx, str.SetThreadPreferredUILanguages
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14000280b
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 0x140002bb8
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
movzx edx, word [0x14002bae0]
test dx, dx
jne 0x140002c24
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edx, 0x3ff
movzx ecx, ax
mov word [0x14002bae0], ax
and cx, dx
cmp cx, 9
je 0x140002beb
movzx eax, ax
jmp 0x140002c27
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
jne 0x140002c1d
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, dword [0x140025af4]
movzx edx, word [0x14002bae0]
cmp eax, ecx
cmove dx, cx
mov word [0x14002bae0], dx
jmp 0x140002c24
movzx edx, word [0x14002bae0]
movzx eax, dx
add rsp, 0x28
ret
Function at 0x140002c2c
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 [0x14002b060], edx
lea r12, [0x14002b060]
je 0x140002c78
mov rax, r12
cmp dword [rax], ecx
je 0x140002c78
inc r8
inc edx
mov rax, r8
shl rax, 5
add rax, r12
cmp dword [rax], 0
jne 0x140002c60
mov ebx, edx
shl rbx, 5
cmp dword [rbx + r12], 0
jne 0x140002c91
lea rax, [0x140024c04]
jmp 0x140002e0e
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 0x140002d37
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 0x140002d2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140002d2f
mov rcx, qword [rbx + r12 + 0x18]
test rcx, rcx
je 0x140002d28
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140002d2f
mov rcx, qword [rbx + r12 + 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbx + r12 + 0x18], rdi
jmp 0x140002d37
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 0x140002e0e
mov rdi, qword [rbx + r12 + 8]
cmp qword [rbx + r12 + 0x10], rax
je 0x140002d6b
call fcn.140002bb8
cmp eax, dword [0x140025af4]
jne 0x140002d6b
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 [0x14002b004]
mov qword [rbx + r12 + 0x18], rax
cmp ecx, 0xffffffff
jne 0x140002de9
movzx ecx, word [0x14002bae0]
and dword [0x14002b004], 0
lea r8, [rsp + 0x90]
mov r9d, 0x1f
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x140002de3
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wtol]
mov ecx, eax
mov dword [0x14002b004], eax
jmp 0x140002de9
mov ecx, dword [0x14002b004]
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 0x140002ecc
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 0x140002f43
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 0x140003180
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.140018824
lea rdx, [0x140024ce4]
lea rcx, [rsp + 0x20]
call fcn.140018910
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 0x1400032b1
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140018880
mov r11d, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], r11d
jne 0x140003206
lea rcx, [rsp + 0x20]
call fcn.140018178
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.140018910
test byte [rsp + 0x30], 0x10
je 0x140003272
lea rdx, [0x140024ce0]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003292
lea rdx, [0x140024cd8]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003292
mov rcx, qword [rsp + 0x20]
call fcn.140003180
jmp 0x14000328e
mov rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400032eb
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400032eb
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400031de
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x14002bb90]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400032eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1400032eb
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, 1
jmp 0x1400032f7
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 0x140003310
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x270
cmp dword [0x14002bc4c], 0
mov rbx, rcx
je 0x14000332c
mov eax, 1
jmp 0x140003370
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140003325
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test byte [rsp + 0x20], 0x10
mov rcx, rbx
jne 0x14000336b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003367
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140003370
xor eax, eax
jmp 0x140003370
call fcn.140003180
add rsp, 0x270
pop rbx
ret
Function at 0x140003ae4
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.140018288
mov rbx, qword [rsi]
lea rcx, [rsp + 0x20]
mov edx, 1
call fcn.140003890
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebp, ebp
test eax, eax
je 0x140003b84
mov rdi, qword [rsi]
lea ebx, [rax + 1]
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.140003890
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 0x140003b6b
mov rax, rcx
add rax, 2
inc r11d
cmp word [rax], bp
jne 0x140003b5f
mov eax, r11d
mov dword [rsp + 0x28], r11d
lea rdx, [rsp + 0x20]
mov word [rcx + rax*2], bp
mov rcx, rsi
call fcn.1400182fc
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 0x140003edc
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.140018824
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140003890
xor r15d, r15d
cmp word [r13 + r12*2 - 2], 0x5c
mov rdi, rax
lea ebx, [r15 + 1]
je 0x140003f39
cmp word [r13 + r12*2 - 2], 0x2f
jne 0x140003f42
mov word [rax + r12*2 - 2], r15w
sub r12d, ebx
movsxd r14, r12d
mov ebp, r12d
mov rcx, rax
mov rsi, r14
jmp 0x140003f73
cmp word [rdi + rsi*2], 0x2f
je 0x140003f67
cmp word [rdi + rsi*2], 0x5c
je 0x140003f67
sub ebp, ebx
sub rsi, rbx
test ebp, ebp
jg 0x140003f50
test ebp, ebp
je 0x140003fc1
mov word [rdi + rsi*2], r15w
mov rcx, rdi
call fcn.140002028
test eax, eax
je 0x140003f63
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 0x140003fa9
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140003a5c
test eax, eax
jne 0x140004068
mov rcx, rdi
call fcn.140002028
test eax, eax
je 0x140004059
movsxd rsi, ebp
jmp 0x140004052
cmp r12d, 2
jne 0x140003fe8
movzx eax, word [r13]
or ax, 0x20
cmp ax, 0x61
jb 0x140003fe8
cmp ax, 0x7a
ja 0x140003fe8
cmp word [r13 + 2], 0x3a
je 0x14000406b
mov r8, r13
mov edx, 0xc
mov ecx, ebx
call fcn.14000b850
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
jmp 0x140004077
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 0x140004033
cmp word [rdi + rsi*2], 0x5c
je 0x140004041
cmp word [rdi + rsi*2], 0x2f
je 0x140004041
add rsi, rbx
add ebp, ebx
cmp word [rdi + rsi*2], r15w
jne 0x140004027
mov rcx, rdi
mov word [rdi + rsi*2], r15w
call fcn.140002028
test eax, eax
je 0x140004059
cmp rsi, r14
jl 0x140004005
jmp 0x14000406b
mov r8, rdi
mov edx, 0xc
mov ecx, ebx
call fcn.14000b850
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 0x1400044a4
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.140018288
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor r12d, r12d
mov esi, eax
test eax, eax
jle 0x140004500
lea edx, [rsi + 1]
mov rcx, rdi
call fcn.140003890
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 0x140004778
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.140018288
lea edx, [rdi + 2]
mov rcx, rbp
call fcn.140003890
lea edx, [rdi + 2]
mov rcx, rbp
call fcn.140003890
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 0x1400047f1
mov rcx, r11
add rcx, 2
inc eax
cmp word [rcx], dx
jne 0x1400047e6
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 0x140004eec
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 [0x14002bae8], rax
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.1400220e0
call fcn.140002bb8
mov ecx, 3
call fcn.140002c2c
mov ecx, 0x28
mov qword [0x14002bb38], rax
call fcn.140002c2c
mov ecx, 2
mov qword [0x14002bb30], rax
call fcn.140002c2c
mov ecx, 5
mov qword [0x14002bb28], rax
call fcn.140002c2c
mov ecx, 0x15
mov qword [0x14002bb20], rax
call fcn.140002c2c
mov ecx, 0x16
mov qword [0x14002bb18], rax
call fcn.140002c2c
mov ecx, 0x17
mov qword [0x14002bb10], rax
call fcn.140002c2c
and qword [0x14002baf8], 0
and qword [0x14002bb00], 0
mov qword [0x14002bb08], 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 0x14000501f
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.1400048fc
lea rdi, str.CommonDesktop
mov esi, 5
cmp dword [rdi - 8], ebx
jne 0x140005016
mov rcx, qword [rdi]
lea rdx, [rsp + 0x80]
xor r8d, r8d
call fcn.1400048fc
add rdi, 0x10
dec rsi
jne 0x140004ffe
inc ebx
cmp ebx, 0x40
jl 0x140004fab
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000503c
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140003ae4
lea rdx, [0x14002bb90]
mov rcx, rbx
call fcn.140003468
lea rdx, [0x14002bba0]
mov rcx, rbx
call fcn.140003554
mov rcx, rbx
call fcn.1400023e8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140003ae4

Function at 0x140005080
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140003ae4
lea rdx, [0x14002bb80]
mov rcx, rbx
call fcn.14000337c
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000503c

Function at 0x140005e6c
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rsi, rcx
lea rcx, [rbp - 0x39]
mov rbx, r8
mov edi, edx
call fcn.140018288
lea rcx, [rbp - 0x29]
call fcn.140018288
xor edx, edx
lea rcx, [rbp - 0x19]
lea r8d, [rdx + 0x70]
call sub.msvcrt.dll_memset
mov qword [rbp + 0xf], rbx
mov ebx, 1
mov dword [rbp - 0x19], 0x70
mov dword [rbp - 0x15], 0x740
mov dword [rbp + 0x17], ebx
test bl, dil
je 0x140005eda
and dword [rbp + 0x17], 0
mov dword [rbp - 0x15], 0x8740
mov rcx, qword [0x14002bad8]
lea rax, str.runas
test dil, 2
cmove rax, qword [rbp - 9]
mov edx, 5
mov qword [rbp - 0x11], rcx
mov qword [rbp - 9], rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.USER32.dll_BringWindowToTop]
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.140005370
lea rcx, [rbp - 0x29]
mov rdx, rax
call fcn.140018880
cmp dword [rbp - 0x31], 0
je 0x140005f6b
mov rax, qword [rbp - 0x39]
lea rcx, [rbp - 0x19]
mov qword [rbp - 1], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp + 7], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140005f69
bt edi, 0x10
jb 0x140005f5d
mov rcx, qword [rbp + 0x4f]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x4f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005f6b
xor ebx, ebx
mov rcx, qword [rbp - 0x29]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rbp - 0x39]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret