joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001610
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x14000a610]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rdx, [0x140001cb0]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0xf], 0
lea rax, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
movdqu xmmword [rbp + 0x27], xmm0
mov dword [rbp + 7], 0x30
mov dword [rbp + 0x1f], 0x240
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
test al, al
je 0x140001678
mov eax, 0xc0000001
jmp 0x14000177b
and dword [rsp + 0x50], 0
lea r9, [rbp - 0x19]
and qword [rsp + 0x48], 0
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x38], 1
mov edx, 0x80000000
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140001779
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x37]
and dword [rbp + 0x37], 0
lea rdx, [rbp - 0x19]
xor eax, eax
mov dword [rsp + 0x20], 5
xorps xmm0, xmm0
mov dword [rbp + 0x4b], eax
movups xmmword [rbp + 0x3b], xmm0
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x14000176f
mov eax, dword [rbp + 0x3f]
mov cl, 1
mov edx, eax
mov dword [0x14000a688], eax
call fcn.140001798
and qword [rsp + 0x40], 0
lea rcx, [rbp - 0x21]
and dword [rbp - 0x1d], 0
xor r9d, r9d
and dword [rbp - 0x21], 0
xor r8d, r8d
mov qword [rsp + 0x38], rcx
xor edx, edx
mov ecx, dword [0x14000a688]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [0x14000a680], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x140001779
mov rcx, qword [0x14000a680]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140001779
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140001a30
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret

Function at 0x140001848
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
movzx r9d, word [rcx + 0x14]
xor r10d, r10d
movzx ebx, word [rcx + 6]
add r9, 0x18
add r9, rcx
test ebx, ebx
je 0x140001884
mov r11d, dword [r9 + 0xc]
cmp r11d, edx
ja 0x140001878
mov ecx, dword [r9 + 8]
add ecx, r11d
cmp ecx, edx
ja 0x14000188d
add r9, 0x28
inc r10d
cmp r10d, ebx
jl 0x140001864
or eax, 0xffffffff
mov rbx, qword [rsp + 8]
ret
mov eax, dword [r9 + 0x14]
sub eax, r11d
add edx, eax
or eax, 0xffffffff
cmp edx, r8d
cmovb eax, edx
jmp 0x140001887
Function at 0x14000101c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400010d6
cmp byte [rbx], 0
je 0x1400010d6
mov edx, 0x5c
mov rcx, rbx
call fcn.140008af0
mov rbx, rax
test rax, rax
je 0x1400010d6
mov rcx, rsi
mov byte [rax], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1400010a2
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140001098
test rdi, rdi
je 0x140001098
lea rdx, str.CreateDirectory___s_
lea ecx, [rax + 5]
mov r8, rsi
call rdi
jmp 0x1400010a2
mov rdx, rsi
mov ecx, 1
call rdi
test bpl, 0x10
jne 0x1400010c9
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400010c9
lea rdx, str.CreateDirectory___s_
mov r8, rsi
mov ecx, 5
call rdi
mov byte [rbx], 0x5c
add rbx, 1
jne 0x140001042
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140001dcc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rcx
lea r8, [0x140038640]
lea rdx, str.PYTHONHOME_s
lea rcx, [rsp + 0x190]
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x190]
call fcn.140009db8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140001ee6
mov r9d, dword [0x1400385a8]
mov r8d, dword [0x14003836c]
lea rdx, str.SOFTWAREPythonPythonCore_d._dInstallPath
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x140001e9b
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x140001e9b
xor eax, eax
jmp 0x140001ee6
xor eax, eax
or rdx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
mov rcx, rdx
repne scasb al, byte [rdi]
movzx eax, word [0x1400276a8]
mov rcx, rdx
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasb al, byte [rdi]
xor ecx, ecx
mov al, byte [rbx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x140001eca
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400091a0
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x2b0
pop rdi
ret
Function at 0x140001f08
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rdx, str.PyImport_ImportModule
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyObject_SetAttrString
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyObject_GetAttrString
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyCFunction_New
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_BuildValue
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyArg_ParseTuple
mov rcx, rbx
mov rbp, rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyErr_Format
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyLong_FromVoidPtr
mov rcx, rbx
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov qword [rsp + 0x70], rax
cmp rdi, rbx
je 0x14000208d
cmp rsi, rbx
je 0x14000208d
cmp r14, rbx
je 0x14000208d
cmp r15, rbx
je 0x14000208d
cmp rbp, rbx
je 0x14000208d
cmp r12, rbx
je 0x14000208d
cmp r13, rbx
je 0x14000208d
lea rcx, str.builtins
call rdi
mov rdi, rax
cmp rax, rbx
je 0x140002068
lea rdx, str.ValueError
mov rcx, rax
call rsi
lea rdx, str.OSError
mov rcx, rdi
mov qword [0x140038390], rax
call rsi
lea rbp, str.create_shortcut
mov rsi, rbp
mov qword [0x140038748], rax
movsxd rcx, ebx
xor edx, edx
shl rcx, 5
add rcx, rbp
call r15
mov rdx, qword [rsi]
mov rcx, rdi
mov r8, rax
call r14
inc ebx
add rsi, 0x20
cmp ebx, 6
jb 0x14000203d
mov rbp, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
mov qword [0x140038610], rbp
mov qword [0x140037328], r12
mov qword [0x140038370], rax
xor eax, eax
mov qword [0x140037330], r13
jmp 0x140002092
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002360
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
and qword [r9], 0
mov r14d, edx
mov r15, rcx
xor edx, edx
xor ecx, ecx
mov rsi, r9
mov r13, r8
mov ebp, 1
call fcn.140025b04
and qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, ebp
mov rcx, rax
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80000080
mov r12, rax
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0xfffffff5
mov rbx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, rbx
mov ecx, edi
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, rbx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
lea rcx, [0x140037220]
call fcn.140001dcc
mov rdi, rax
test rax, rax
je 0x14000243a
mov r9, r13
mov r8d, r14d
mov rdx, r15
mov rcx, rax
call fcn.1400020a8
mov rcx, rdi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000244f
call fcn.14000a4d0
lea rdx, str._Could_not_load_Python_
lea rcx, [rax + 0x60]
call fcn.14000a2b0
mov rdx, qword [rsp + 0x98]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, qword [rsp + 0x40]
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, 0x1000
cmp eax, edi
jae 0x140002493
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [rdi + 1]
movsxd rcx, eax
call fcn.140009a5c
xor r13d, r13d
mov qword [rsi], rax
cmp rax, r13
je 0x1400024ed
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x98], r13d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rsi]
lea r9, [rsp + 0x98]
mov r8d, edi
mov rcx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x98]
mov rax, qword [rsi]
mov byte [r11 + rax], r13b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea r11, [rsp + 0x50]
mov eax, ebp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140002520
Capabilities:
Link many functions at runtime

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
push r13
push r14
sub rsp, 0x20
mov r14, rdx
lea rdx, str.Py_Initialize
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_SetProgramName
mov rcx, r12
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_Finalize
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyRun_SimpleString
mov rcx, r12
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyErr_Print
mov rcx, r12
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test r13, r13
je 0x1400025df
test rbx, rbx
je 0x1400025df
test rdi, rdi
je 0x1400025df
test rbp, rbp
je 0x1400025df
test rax, rax
je 0x1400025df
lea rcx, [0x1400383a0]
call rbx
call r13
mov rcx, r12
call fcn.140001f08
mov rcx, r14
call rbp
mov ebx, eax
test eax, eax
je 0x1400025d9
call rsi
call rdi
mov eax, ebx
jmp 0x1400025e2
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x140002604
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xe0
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
call fcn.140025b04
and qword [rsp + 0x30], 0
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0xc0000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80000080
mov r14, rax
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0xfffffff5
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r12d, 0xfffffff4
mov ecx, r12d
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, rsi
mov ecx, edi
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, rsi
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
lea rcx, [0x140037220]
call fcn.140001dcc
mov rdi, rax
test rax, rax
jne 0x1400026e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Cant_load_Python_for_pre_install_script___d_
lea rcx, [rsp + 0x50]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x50]
call fcn.140001834
or eax, 0xffffffff
jmp 0x1400027eb
mov rdx, rbx
mov rcx, rax
call fcn.140002520
mov rcx, rdi
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, rbp
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, r13
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
test r12d, r12d
je 0x1400027d6
or rcx, 0xffffffffffffffff
xor eax, eax
lea rbx, str.Running_the_pre_installation_script_failed_r_n
mov rdi, rbx
xor edx, edx
repne scasb al, byte [rdi]
not rcx
lea r13, [rcx - 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov eax, 0x1000
cmp ebp, 0xffffffff
cmove ebp, eax
lea eax, [rbp + r13 + 1]
movsxd rcx, eax
call fcn.140009a5c
mov rdi, rax
test rax, rax
je 0x1400027ca
and dword [rsp + 0x40], 0
mov rdx, rax
sub rdx, rbx
mov cl, byte [rbx]
mov byte [rdx + rbx], cl
inc rbx
test cl, cl
jne 0x140002773
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
movsxd rdx, r13d
lea r9, [rsp + 0x40]
add rdx, rdi
mov r8d, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
mov rcx, rdi
add eax, r13d
mov byte [rax + rdi], 0
call fcn.140001834
mov rcx, rdi
call fcn.1400099cc
jmp 0x1400027d6
lea rcx, str.Out_of_memory_
call fcn.140001834
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, r12d
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400091a0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140002a9c
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
mov rsi, rdx
mov dword [rax - 0x20], 0x80
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002ae5
xor eax, eax
jmp 0x140002b4e
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov rcx, rbx
lea r8d, [r9 + 2]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, 0xffffffffffffffff
je 0x140002ae1
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsi], ebp
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140002bd8
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x160
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r13, qword [rsp + 0x1c0]
mov eax, edx
xor r14d, r14d
sub edx, dword [rax + rcx - 6]
mov r12, r9
sub edx, dword [rax + rcx - 0xa]
mov qword [r13], r14
mov qword [r9], r14
sub edx, 0x22
movsxd rbx, edx
add rbx, rcx
cmp dword [rax + rcx - 0x16], 0x6054b50
jne 0x140002d4d
cmp dword [rbx], 0x1234567b
je 0x140002c4d
lea rdx, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
xor ecx, ecx
call fcn.140002818
jmp 0x140002d4f
cmp edx, r14d
jl 0x140002d4d
cmp dword [rbx + 8], r14d
je 0x140002c74
movsxd rax, dword [rbx + 4]
mov rcx, rbx
sub rcx, rax
movsxd rax, dword [rbx + 8]
sub rcx, rax
mov qword [0x140037358], rcx
sub edx, dword [rbx + 8]
lea rdi, [rbx + 4]
mov ebp, 0x104
sub edx, dword [rdi]
mov rcx, rbp
mov dword [r8], edx
movsxd rax, dword [rdi]
sub rbx, rax
call fcn.140009a5c
mov rsi, rax
cmp rax, r14
je 0x140002d4d
lea rdx, [rsp + 0x40]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, r14d
je 0x140002d39
lea rdx, [0x140027d08]
lea rcx, [rsp + 0x40]
mov r9, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, r14d
je 0x140002d39
mov r9d, dword [rdi]
xor r8d, r8d
mov qword [rsp + 0x30], r14
lea ecx, [r8 + 2]
mov rdx, rsi
mov word [rsp + 0x28], r14w
mov word [rsp + 0x20], r14w
call fcn.1400010f0
mov rbp, rax
cmp rax, r14
je 0x140002d4d
movsxd r8, dword [rdi]
mov rdx, rbx
mov rcx, rax
call fcn.14000a7e0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
add rcx, rbx
call fcn.14001e984
mov rcx, rbp
mov qword [r13], rax
mov qword [r12], rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 1
jmp 0x140002d4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_create_temporary_file
mov ecx, eax
call fcn.140002818
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400091a0
add rsp, 0x160
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003250
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x160
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, rdx
lea rax, [rsp + 0x48]
mov rdi, r8
mov r12, rcx
lea rdx, str.SoftwarePythonPythonCore
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rax
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400032b0
xor eax, eax
jmp 0x140003431
and qword [rsp + 0x38], rsi
and qword [rsp + 0x30], rsi
and qword [rsp + 0x28], rsi
and qword [rsp + 0x20], rsi
mov dword [rsp + 0x40], 0x50
xor edx, edx
jmp 0x140003404
inc esi
mov dword [rsp + 0x40], 0x50
test rdi, rdi
je 0x14000330f
cmp byte [rdi], 0
je 0x14000330f
lea rdx, [rsp + 0x60]
mov rax, rdi
sub rdx, rdi
movzx ecx, byte [rax]
movzx r8d, byte [rax + rdx]
sub ecx, r8d
jne 0x140003307
inc rax
test r8d, r8d
jne 0x1400032f2
test ecx, ecx
jne 0x1400033ea
lea r8, [rsp + 0x60]
lea rdx, str.Python_Version__s__found_in_registry_
lea rcx, [rsp + 0x100]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [rsp + 0x60]
lea rdx, str.SoftwarePythonPythonCore_sInstallPath
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r11, [rsp + 0x50]
lea rdx, [rsp + 0xb0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400033ea
mov ecx, 0x110
call fcn.140009a5c
mov dword [rsp + 0x44], 0x105
mov rbx, rax
test rax, rax
je 0x1400033df
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400033df
lea r9, [rsp + 0x100]
xor r8d, r8d
mov edx, 0x180
mov rcx, r12
call qword [sym.imp.USER32.dll_SendMessageA]
mov r9, rbx
mov edx, 0x19a
mov rcx, r12
movsxd r8, eax
mov qword [rbx + 0x108], rbp
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov edx, esi
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1400032d3
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400091a0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400041f0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea r9, [0x140027838]
lea r8, [0x140037100]
lea rdx, str.runas
xor ecx, ecx
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x140004268
lea rdx, str.Failed_to_start_elevated_process__ShellExecute_returned__d_
lea rcx, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, str.Setup
lea rdx, [rsp + 0x30]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400091a0
add rsp, 0xc8
ret

Function at 0x1400042a0
Capabilities:
Create process on windows
Resume thread
Self delete

Disassembly:
push rbx
sub rsp, 0x310
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rsp + 0x300], rax
lea rdx, [rsp + 0xe0]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rsp + 0xe0]
lea rdx, str._s.bat
lea rcx, [rsp + 0x1f0]
call fcn.14000c710
lea rdx, [0x140028384]
lea rcx, [rsp + 0x1f0]
call fcn.14000c6a0
lea rdx, str.:Repeat_n
mov rcx, rax
mov rbx, rax
call fcn.14000a2b0
lea r8, [rsp + 0xe0]
lea rdx, str.del___s__n
mov rcx, rbx
call fcn.14000a2b0
lea r8, [rsp + 0xe0]
lea rdx, str.if_exist___s__goto_Repeat_n
mov rcx, rbx
call fcn.14000a2b0
lea r8, [rsp + 0x1f0]
lea rdx, str.del___s__n
mov rcx, rbx
call fcn.14000a2b0
mov rcx, rbx
call fcn.14000ac40
mov ebx, 0x68
lea rcx, [rsp + 0x70]
mov r8, rbx
xor edx, edx
call fcn.140008b20
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [0x1400276a8]
lea rdx, [rsp + 0x1f0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], 0x44
mov dword [rsp + 0xac], 1
mov word [rsp + 0xb0], bx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
je 0x14000442d
mov rcx, qword [rsp + 0x58]
lea edx, [rbx - 0xf]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea edx, [rbx + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1400091a0
add rsp, 0x310
pop rbx
ret