joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001cb8
Capabilities:
Check if file exists
Create directory

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 ebp, r9d
mov sil, r8b
mov rbx, rdx
mov rdi, rcx
call fcn.1400040f4
xor r12d, r12d
cmp eax, r12d
je 0x140001d02
cmp rbx, r12
je 0x140001d02
cmp word [rbx], r12w
je 0x140001d02
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x140001d12
cmp rdi, r12
je 0x140001d43
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, r12d
je 0x140001d2e
cmp sil, r12b
je 0x140001d2a
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.140001a88
xor eax, eax
jmp 0x140001d48
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140001d43
cmp eax, 3
mov eax, 1
jne 0x140001d48
mov eax, 2
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x1400020e8
Capabilities:
Enumerate pe sections
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx r8d, byte [rcx]
mov rbx, rcx
lea rdi, [0x1400138e0]
lea rcx, str.Setup.rar
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 1]
lea rcx, str.Setup.zip
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 2]
lea rcx, str.Setup.cab
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 3]
lea rcx, str.Setup.arj
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 4]
lea rcx, str.Setup.lzh
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 5]
lea rcx, str.Setup.ace
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 6]
lea rcx, str.Setup.7z
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 7]
lea rcx, str.Setup.tar
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 8]
lea rcx, str.Setup.gz
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 9]
lea rcx, str.Setup.uue
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 0xa]
lea rcx, str.Setup.bz2
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 0xb]
lea rcx, str.Setup.jar
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 0xc]
lea rcx, str.Setup.iso
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 0xd]
lea rcx, str.Setup.z
mov rdx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 0x14]
lea rdi, str.SetupLinks
lea rdx, str.Desktop
mov rcx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 0x15]
lea rdx, str.StartMenu
mov rcx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 0x16]
lea rdx, str.Programs
mov rcx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 0x17]
lea rdi, str.Setup
lea rdx, str.ShellExt
mov rcx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 0x18]
lea rdx, str.CascadedMenu
mov rcx, rdi
call fcn.140004b6c
movzx r8d, byte [rbx + 0x19]
lea rdx, str.MenuIcons
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140004b6c
Function at 0x1400028f0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r8, [rsp + 0x38]
mov edx, 0x10
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x28]
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
mov eax, 0x1080
call fcn.140012000
sub rsp, rax
mov rax, qword [0x140019280]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov ebx, 0x400
lea r8, [rsp + 0x60]
mov r9, rbx
call fcn.1400041b0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140002983
xor al, al
jmp 0x1400029ec
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x860]
mov r8, rbx
call fcn.140005d44
lea rcx, [rsp + 0x860]
call fcn.140007fd4
xor ebx, ebx
lea rcx, [rsp + 0x20]
lea r8d, [rbx + 0x38]
xor edx, edx
mov word [rsp + rax*2 + 0x862], bx
call fcn.140008aa0
lea eax, [rbx + 0x14]
lea rcx, [rsp + 0x20]
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x860]
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, ebx
sete al
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.140008090
add rsp, 0x1080
pop rbx
ret
Function at 0x1400042dc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
xor edi, edi
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x1a]
xor ecx, ecx
mov word [rbx], di
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, edi
jne 0x14000435e
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, edi
je 0x14000435e
cmp word [rbx], di
je 0x14000435e
mov rcx, rbx
call fcn.140004180
lea rdx, [0x140013f18]
mov rcx, rbx
call fcn.140007b08
mov rdx, rbx
xor ecx, ecx
call fcn.140001a14
cmp al, dil
jne 0x140004377
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call fcn.140001cb8
cmp eax, edi
je 0x140004377
mov r8d, 0x400
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.1400042a4
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140004394
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
xor edi, edi
lea rax, [rsp + 0x50]
mov rbx, rcx
mov word [rcx], di
lea rdx, str.SoftwareWinRARPaths
lea r9d, [rdi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x14000440b
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [0x140014648]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbx], di
je 0x14000441f
mov rdx, rbx
xor ecx, ecx
call fcn.140001a14
cmp al, dil
jne 0x140004427
mov rcx, rbx
call fcn.1400042dc
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140004460
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x600
mov rax, qword [0x140019280]
xor rax, rsp
mov qword [rsp + 0x5f0], rax
xor ebp, ebp
mov rbx, rdx
mov rdi, rcx
cmp word [rdx], bp
je 0x14000454d
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x14000454d
mov esi, ebp
xor edx, edx
jmp 0x1400044f3
lea rax, [rsp + 0x60]
lea r8, str._s_s
lea rcx, [rsp + 0x1f0]
mov r9, rbx
mov edx, 0x200
mov qword [rsp + 0x20], rax
call fcn.140007768
lea rdx, [rsp + 0x1f0]
mov rcx, rdi
call fcn.140004460
inc esi
mov edx, esi
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0xc8
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebp
je 0x1400044b9
mov rcx, qword [rsp + 0x48]
call fcn.140004434
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebp
jne 0x14000454d
inc dword [0x14001ba48]
mov rcx, qword [rsp + 0x5f0]
xor rcx, rsp
call fcn.140008090
mov rbx, qword [rsp + 0x630]
add rsp, 0x600
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400045d0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x430
mov rax, qword [0x140019280]
xor rax, rsp
mov qword [rsp + 0x420], rax
lea r8, [rsp + 0x20]
mov r9d, 0x200
mov rbx, rcx
call fcn.140004570
test al, al
je 0x140004610
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140008090
add rsp, 0x430
pop rbx
ret

Function at 0x14000462c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x140019280]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, r8
lea r8, [rsp + 0x40]
mov r9d, 0x200
mov rdi, rcx
call fcn.140004570
test al, al
je 0x1400046a2
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0x20006
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400046a2
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call fcn.140004434
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140008090
mov rbx, qword [rsp + 0x478]
add rsp, 0x450
pop rdi
ret

Function at 0x1400046c4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.1400040f4
test eax, eax
jne 0x1400046ed
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140004708
and dword [0x14001ba48], 0
mov rdx, rbx
mov rcx, rdi
call fcn.140004460
cmp dword [0x14001ba48], 0
jne 0x1400046ed
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400048d8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
lea r8, [rsp + 0x30]
mov rbx, r9
call fcn.140004794
mov rdi, rax
test rax, rax
je 0x140004935
mov rcx, rbx
call fcn.140007fd4
mov r9d, 1
xor r8d, r8d
lea ecx, [rax + rax + 2]
mov rdx, rsi
mov dword [rsp + 0x28], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call fcn.140004434
jmp 0x140004939
mov ebx, dword [rsp + 0x30]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14000494c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov rbx, r8
lea r8, [rsp + 0x30]
call fcn.140004794
mov rdi, rax
test rax, rax
je 0x1400049a0
lea rax, [rsp + 0x68]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call fcn.140004434
jmp 0x1400049a4
mov ebx, dword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400049b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rbx, r9
mov r12, r8
call fcn.140004844
mov edi, dword [rsp + 0x88]
xor r13d, r13d
mov rbp, rax
mov sil, r13b
cmp rax, r13
je 0x140004a4a
lea ecx, [rdi + rdi]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rbp
mov rdx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rbp
cmp eax, r13d
sete sil
call fcn.140004434
cmp sil, r13b
je 0x140004a4a
mov ecx, dword [rsp + 0x30]
shr ecx, 1
cmp edi, r13d
jne 0x140004a3b
mov word [rbx], r13w
jmp 0x140004a5d
lea eax, [rdi - 1]
cmp ecx, eax
cmovb eax, ecx
mov word [rbx + rax*2], r13w
jmp 0x140004a5d
mov rdx, qword [rsp + 0x80]
mov r8, rdi
mov rcx, rbx
call fcn.140005d44
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov al, sil
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x140004a7c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov edi, r9d
mov rbx, r8
call fcn.140004844
mov rsi, rax
mov dword [rsp + 0x30], 4
test rax, rax
je 0x140004aea
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
test eax, eax
sete bl
call fcn.140004434
test bl, bl
je 0x140004aea
cmp dword [rsp + 0x30], 0
je 0x140004aea
mov edi, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x40
pop rdi
ret
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp 0x140004a7c
Function at 0x140004b54
Capabilities:
Set registry value

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp fcn.1400048d8

Function at 0x140004b6c
Capabilities:
Set registry value

Disassembly:
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp fcn.14000494c

Function at 0x140004bb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov edi, r9d
mov rbx, r8
call fcn.140004844
mov rsi, rax
mov dword [rsp + 0x30], 4
test rax, rax
je 0x140004aea
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
test eax, eax
sete bl
call fcn.140004434
test bl, bl
je 0x140004aea
cmp dword [rsp + 0x30], 0
je 0x140004aea
mov edi, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x40
pop rdi
ret
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp 0x140004a7c
Function at 0x140005910
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, 0x1060
call fcn.140012000
sub rsp, rax
mov rax, qword [0x140019280]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp rdx, rcx
je 0x140005950
mov rdx, rcx
mov rcx, rbx
call fcn.140005d44
lea rax, [rsp + 0x38]
lea rdx, str.SoftwareWinRARGeneral
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebp, ebp
cmp eax, ebp
jne 0x140005a34
mov rcx, rdi
call fcn.140007fd4
mov ecx, 0x3ff
lea r9, [rsp + 0x40]
sub ecx, eax
lea rax, [rsp + 0x30]
lea rdx, str.LanguageFolder
add ecx, ecx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x850]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x140005a29
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x850]
mov r8d, 0x400
mov word [rsp + 0x50], bp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x50]
call fcn.140004180
mov rcx, rdi
call fcn.14000424c
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.140007b08
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.140001a14
cmp al, bpl
je 0x140005a29
lea rdx, [rsp + 0x50]
mov r8, rsi
mov rcx, rbx
call fcn.140005d44
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140008090
mov rbx, qword [rsp + 0x1098]
add rsp, 0x1060
pop rdi
pop rsi
pop rbp
ret

Function at 0x140005b18
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x950
mov rax, qword [0x140019280]
xor rax, rsp
mov qword [rsp + 0x940], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
call fcn.1400058dc
test rdi, rdi
je 0x140005b61
lea rcx, [rsp + 0x140]
mov rdx, rdi
call fcn.140007b34
jmp 0x140005b77
lea rdx, [rsp + 0x140]
mov r8d, 0x400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x140]
call fcn.14000424c
lea rdx, str.rarlng.dll
mov rcx, rax
call fcn.140007b34
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x140]
mov r8d, 0x400
call fcn.140005910
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r8d, 2
cmp dword [rsp + 0x30], r8d
jne 0x140005bf0
cmp dword [rsp + 0x24], 5
ja 0x140005bde
jne 0x140005bf0
cmp dword [rsp + 0x28], 1
jbe 0x140005bf0
lea rcx, [rsp + 0x140]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x140005bfe
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [0x14001b9f0], rax
setne cl
mov byte [rsi], cl
mov rax, qword [0x14001b9f0]
test cl, cl
cmove rax, rbx
mov qword [0x14001b9e8], rbx
mov qword [0x14001b9f0], rax
mov rcx, qword [rsp + 0x940]
xor rcx, rsp
call fcn.140008090
lea r11, [rsp + 0x950]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400063cc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, rdx
mov rsi, rdx
call fcn.140007fd4
mov rbx, rax
lea rcx, [rax + rax + 4]
call fcn.140007b84
mov rdi, rax
test rax, rax
je 0x140006435
lea r8, [rbx + 1]
mov rdx, rax
mov rcx, rsi
call fcn.140005dc8
mov rcx, rdi
call fcn.140007c7c
mov r9, rbp
mov edx, 1
mov r8, rax
mov rcx, rdi
call fcn.140008d64
mov rcx, rdi
call fcn.140007c3c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140006544
Capabilities:
Copy file
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x830
mov rax, qword [0x140019280]
xor rax, rsp
mov qword [rsp + 0x820], rax
lea rdx, [rsp + 0x20]
lea rcx, str.sfxname
xor edi, edi
mov r8d, 0x400
mov word [rsp + 0x20], di
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, edi
je 0x1400065ee
cmp word [rsp + 0x20], di
je 0x1400065ee
lea rcx, [rsp + 0x20]
call fcn.14000424c
lea rdx, str.rarreg.key
mov rcx, rax
mov rbx, rax
call fcn.140007b34
lea rcx, [rsp + 0x20]
call fcn.140001a7c
cmp al, dil
jne 0x1400065d6
lea rdx, str.rarreg.txt
mov rcx, rbx
call fcn.140007b34
lea rcx, [rsp + 0x20]
call fcn.140001a7c
cmp al, dil
je 0x1400065ee
lea rdx, str.rarreg.key
lea rcx, [rsp + 0x20]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.140008090
mov rbx, qword [rsp + 0x840]
add rsp, 0x830
pop rdi
ret
Function at 0x140007a18
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov eax, edx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ecx, ecx
cmp eax, ecx
setne al
add rsp, 0x28
ret

Function at 0x140009e50
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140009cb8

Function at 0x14000a697
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140019280]
jne 0x1400080aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400080a6
repz ret
ror rcx, 0x10
jmp 0x14000a5f0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001f020]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14001f118]
mov qword [rsp + 0x58], r11
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 0x14000a675
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, [0x14001f020]
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 0x14000a697
mov rax, qword [rsp + 0x88]
mov qword [0x14001f118], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001f0b8], rax
mov rax, qword [0x14001f118]
mov qword [0x14001ef90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001f0a0], rax
mov dword [0x14001ef80], 0xc0000409
mov dword [0x14001ef84], 1
mov rax, qword [0x140019280]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140019288]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001f018], eax
mov ecx, 1
call fcn.14001017c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400156a0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001f018], 0
jne 0x14000a71e
mov ecx, 1
call fcn.14001017c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14000f904
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14000bc18
xor ebx, ebx
mov rdi, rax
cmp qword [0x14001f948], rbx
jne 0x14000fa0a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000fadf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000fadf
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14001f948], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14001f950], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14001f958], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14001f968], rax
test rax, rax
je 0x14000fa01
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14001f960], rax
jmp 0x14000fa11
mov rax, qword [0x14001f960]
jmp 0x14000fa18
mov rax, qword [0x14001f960]
mov r11, qword [0x14001f968]
cmp rax, rdi
je 0x14000fa80
cmp r11, rdi
je 0x14000fa80
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14001f968]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14000fa80
test rax, rax
je 0x14000fa80
call rsi
test rax, rax
je 0x14000fa7a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000fa7a
test byte [rsp + 0x38], 1
jne 0x14000fa80
bts ebp, 0x15
jmp 0x14000fabe
mov rcx, qword [0x14001f950]
cmp rcx, rdi
je 0x14000fabe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000fabe
call rax
mov rbx, rax
test rax, rax
je 0x14000fabe
mov rcx, qword [0x14001f958]
cmp rcx, rdi
je 0x14000fabe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000fabe
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14001f948]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000fadf
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000fae1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret