joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400117fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140011812
mov al, 1
jmp 0x140011872
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140011823
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011870
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000dd08
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011870
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011870
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011870
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011872
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400128b0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c3d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001293a
cmp byte [rbp - 0x21], r15b
je 0x140012935
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012970
call fcn.140009174
test eax, eax
jne 0x14001295c
cmp byte [rbp - 0x21], r15b
je 0x140012954
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012970
cmp byte [rbp - 0x21], r15b
je 0x14001296d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000b9b8
test eax, eax
jne 0x140012a10
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c3d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400129af
cmp byte [rbp - 0x21], r15b
je 0x1400129e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400129e4
call fcn.140009174
test eax, eax
jne 0x1400129d0
cmp byte [rbp - 0x21], r15b
je 0x1400129c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400129e4
cmp byte [rbp - 0x21], r15b
je 0x1400129e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000b9b8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012a10
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012a13
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012a21
mov rcx, rdi
call fcn.140008f24
cmp byte [rbp + 0x3f], r15b
je 0x140012a30
mov rcx, qword [rbp + 0x27]
call fcn.140008f24
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140014fa0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014fc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014fc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002e34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002e7e
mov ecx, GetWindowThreadProcessId
cmp word [rax], cx
jne 0x140002e7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002e7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002e7e
cmp dword [rcx + 0x84], 0xe
jbe 0x140002e7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002e80
xor al, al
add rsp, 0x28
ret
Function at 0x14000fc7f
Capabilities:
Access peb ldr_data
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword gs:[0x60]
xor r11d, r11d
mov rsi, r8
mov ebp, edx
mov rdi, qword [rax + 0x10]
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
movzx eax, word [rbx + 0x14]
lea r9, [rbx + 0x18]
movzx r10d, word [rbx + 6]
add r9, rax
test r10, r10
je 0x14000fd3e
mov dword [rsp + 0x78], 0x6544302e
mov byte [rsp + 0x7c], 0x76
movups xmm2, xmmword [r9]
lea rcx, [rsp + 0x78]
movups xmm0, xmmword [r9 + 0x10]
movsd xmm1, qword [r9 + 0x20]
movd edx, xmm2
movups xmmword [rsp + 0x20], xmm2
movsd qword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x30], xmm0
test dl, dl
je 0x14000fd26
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x20]
sub r8, rax
movzx eax, dl
nop
movzx edx, al
cmp al, byte [rcx]
jne 0x14000fd26
movzx eax, byte [r8 + rcx + 1]
inc rcx
movzx edx, al
test al, al
jne 0x14000fd0f
cmp dl, byte [rcx]
lea rdx, [rsp + 0x20]
cmovne rdx, r11
add r9, 0x28
mov r11, rdx
sub r10, 1
jne 0x14000fcd1
mov eax, dword [r11 + 0xc]
mov rdx, rsi
mov ecx, dword [rbx + 8]
mov eax, dword [rax + rdi]
xor eax, dword [rbx + 0x68]
ror eax, cl
mov ecx, ebp
add rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp rax
Function at 0x140003e00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xe8
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14004d0e8]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x90]
call fcn.14001afe0
nop
lea rcx, [rsp + 0x20]
call fcn.140001e10
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.140025270
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x90]
call fcn.140024810
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.140004bb0
nop
lea rax, [0x1400496ac]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 4
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0x58]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0x108]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x100]
call fcn.1400186f0
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0xb0]
call fcn.14001bd90
nop
lea rcx, [rsp + 0x90]
call fcn.14001bdc0
nop
mov rcx, qword [rsp + 0x108]
call fcn.14001bd90
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140029880
add rsp, 0xe8
pop rdi
pop rsi
ret
Function at 0x140003f90
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.Environment
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004098
mov rcx, qword [rsp + 0x78]
call fcn.14003023c
lea rax, [rax + rax + 2]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000406d
lea rdx, str._INFO__User_environment_variable
lea rcx, [0x140083b00]
call fcn.140005150
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.140005150
lea rdx, str._set_to
mov rcx, rax
call fcn.140005150
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.140005150
mov qword [rsp + 0x48], rax
lea rdx, [0x140018220]
mov rcx, qword [rsp + 0x48]
call fcn.14001c290
jmp 0x140004096
lea rdx, str._ERROR__Failed_to_set_user_environment_variable.
lea rcx, [0x140083c30]
call fcn.140004ca0
mov qword [rsp + 0x50], rax
lea rdx, [0x140018220]
mov rcx, qword [rsp + 0x50]
call fcn.14001c290
jmp 0x1400040c1
lea rdx, str._ERROR__Failed_to_open_the_Registry_key.
lea rcx, [0x140083c30]
call fcn.140004ca0
mov qword [rsp + 0x58], rax
lea rdx, [0x140018220]
mov rcx, qword [rsp + 0x58]
call fcn.14001c290
add rsp, 0x68
ret

Function at 0x140004160
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor r8d, r8d
lea rdx, str._USERPROFILE_AppDataRoaminglua
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140004190
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor r8d, r8d
lea rdx, str._USERPROFILE_AppDataRoaminglua_bin
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400041c0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor r8d, r8d
lea rdx, str._USERPROFILE_AppDataRoamingluainclude
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400041f0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor r8d, r8d
lea rdx, str._USERPROFILE_AppDataRoamingluarocks
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
xor eax, eax
add rsp, 0x28
ret
Function at 0x140004220
Capabilities:
Download url
Receive data

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, str.AppDataRoaminglua_binlua5.1.dll
mov rcx, qword [rsp + 0x30]
call fcn.14001aed0
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140003e00
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400248e0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.https:__github.com_justdie386_installer_files_releases_download_test_lua5.1.dll
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
lea rcx, [rsp + 0x68]
call fcn.14001bd90
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140029880
add rsp, 0x98
ret

Function at 0x1400042c0
Capabilities:
Download url
Receive data

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, str.AppDataRoaminglua_binlua5.1.exe
mov rcx, qword [rsp + 0x30]
call fcn.14001aed0
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140003e00
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400248e0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.https:__github.com_justdie386_installer_files_releases_download_test_lua5.1.exe
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
lea rcx, [rsp + 0x68]
call fcn.14001bd90
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140029880
add rsp, 0x98
ret

Function at 0x140004360
Capabilities:
Download url
Receive data

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, str.AppDataRoaminglua_binlua5.1.lib
mov rcx, qword [rsp + 0x30]
call fcn.14001aed0
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140003e00
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400248e0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.https:__github.com_justdie386_installer_files_releases_download_test_lua5.1.lib
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
lea rcx, [rsp + 0x68]
call fcn.14001bd90
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140029880
add rsp, 0x98
ret
Function at 0x140004400
Capabilities:
Download url
Receive data

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, str.AppDataRoamingluaincludeluaconf.h
mov rcx, qword [rsp + 0x30]
call fcn.14001aed0
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140003e00
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400248e0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.https:__github.com_justdie386_installer_files_releases_download_test_luaconf.h
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
lea rcx, [rsp + 0x68]
call fcn.14001bd90
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140029880
add rsp, 0x98
ret

Function at 0x1400044a0
Capabilities:
Download url
Receive data

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, str.AppDataRoamingluaincludelauxlib.h
mov rcx, qword [rsp + 0x30]
call fcn.14001aed0
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140003e00
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400248e0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.https:__github.com_justdie386_installer_files_releases_download_test_lauxlib.h
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
lea rcx, [rsp + 0x68]
call fcn.14001bd90
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140029880
add rsp, 0x98
ret

Function at 0x140004540
Capabilities:
Download url
Receive data

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, str.AppDataRoamingluaincludelualib.h
mov rcx, qword [rsp + 0x30]
call fcn.14001aed0
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140003e00
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400248e0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.https:__github.com_justdie386_installer_files_releases_download_test_lualib.h
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
lea rcx, [rsp + 0x68]
call fcn.14001bd90
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140029880
add rsp, 0x98
ret
Function at 0x1400045e0
Capabilities:
Download url
Receive data

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, str.AppDataRoamingluaincludelua.h
mov rcx, qword [rsp + 0x30]
call fcn.14001aed0
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140003e00
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400248e0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.https:__github.com_justdie386_installer_files_releases_download_test_lua.h
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
lea rcx, [rsp + 0x68]
call fcn.14001bd90
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140029880
add rsp, 0x98
ret

Function at 0x140004680
Capabilities:
Download url
Receive data

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, str.AppDataRoaminglua_binluarocks.exe
mov rcx, qword [rsp + 0x30]
call fcn.14001aed0
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140003e00
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400248e0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.https:__github.com_justdie386_installer_files_releases_download_test_luarocks.exe
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
lea rcx, [rsp + 0x68]
call fcn.14001bd90
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140029880
add rsp, 0x98
ret

Function at 0x140004720
Capabilities:
Download url
Receive data

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, str.AppDataRoamingluarocksconfig.lua
mov rcx, qword [rsp + 0x30]
call fcn.14001aed0
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140003e00
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400248e0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.https:__github.com_justdie386_installer_files_releases_download_test_config.lua
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
lea rcx, [rsp + 0x68]
call fcn.14001bd90
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140029880
add rsp, 0x98
ret
Function at 0x1400047c0
Capabilities:
Download url
Receive data

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, [0x140049eb0]
mov rcx, qword [rsp + 0x30]
call fcn.14001aed0
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140003e00
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400248e0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.https:__github.com_llvm_llvm_project_releases_download_llvmorg_17.0.3_LLVM_17.0.3_win64.exe
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
lea rcx, [rsp + 0x68]
call fcn.14001bd90
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140029880
add rsp, 0x98
ret

Function at 0x1400048f0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rdx, [0x140049f50]
mov rcx, qword [rsp + 0x30]
call fcn.14001aed0
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140003e00
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400248e0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rsp + 0x68]
call fcn.14001bd90
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140029880
add rsp, 0x98
ret

Function at 0x1400049a0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, str.AppDataRoamingllvm_setup.exe
mov rcx, qword [rsp + 0x20]
call fcn.14001aed0
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.140003e00
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1400248e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x58]
call fcn.14001bd90
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140029880
add rsp, 0x88
ret
Function at 0x14002a580
Capabilities:
Parse pe header

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

Function at 0x1400341fc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140033ff8

Function at 0x14003991c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140039932
mov al, 1
jmp 0x140039992
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140039943
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140039990
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003de68
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140039990
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140039990
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140039990
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140039992
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003b07c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140029fd0
sub rsp, rax
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400393d4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003b0cb
mov rax, rbp
jmp 0x14003b1d3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x84c60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003b564
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x84c60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003b1cf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003b1cf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003b564
test rax, rax
js 0x14003b1cf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003b1cf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003b1c1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003b1c1
cmp byte [rcx], 0xd
jne 0x14003b1a7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003b1b6
cmp byte [rcx + 1], 0xa
jne 0x14003b1b6
inc rcx
jmp 0x14003b1b6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x82b20]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003b189
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003b1d3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140029880
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret