joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a91d0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x103f0]
mov eax, 0x104f0
call fcn.1400de970
sub rsp, rax
movzx r14d, dl
mov rdi, rcx
cmp qword [rcx + 0x10], 0
jne 0x1400a920e
xor eax, eax
jmp 0x1400a93f4
mov byte [rcx], 1
xor ebx, ebx
cmp qword [0x14012c628], rdi
je 0x1400a9229
mov qword [0x14012c628], rdi
mov dword [0x14012c638], ebx
cmp qword [0x14012c630], rbx
jne 0x1400a924c
mov ecx, 0xfa0
call fcn.14009d960
test rax, rax
je 0x1400a9411
mov qword [0x14012c630], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
mov r8, qword [0x1401241d8]
sub r8, 0xffffffffffffff80
mov rdx, rax
mov rcx, rdi
call fcn.1400a9660
mov r15, rax
test rax, rax
jne 0x1400a927d
mov ecx, ebx
mov dword [0x14012c638], ebx
jmp 0x1400a9283
mov ecx, dword [0x14012c638]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov dword [rbp - 0x64], ebx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x40], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm1
test r14b, r14b
je 0x1400a92b2
test r15, r15
mov byte [rbp - 0x67], 0
je 0x1400a92b6
mov byte [rbp - 0x67], 1
mov r8, qword [0x14012c630]
mov qword [rbp - 0x50], r8
mov dword [rbp - 0x48], ecx
mov rax, qword [0x1401241d8]
lea rdx, [0x140100be0]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rdx
test rax, rax
je 0x1400a92f6
sub rax, 0xffffffffffffff80
mov qword [rsp + 0x28], rax
jmp 0x1400a92fb
mov qword [rsp + 0x28], rbx
mov qword [rbp - 0x78], rdi
mov dword [rsp + 0x20], reloc.WSOCK32.dll_recv
test ecx, ecx
setg dil
nop dword [rax]
test r15, r15
je 0x1400a9346
mov edx, ebx
test ecx, ecx
jle 0x1400a932f
mov rax, r8
nop
cmp qword [rax], rsi
je 0x1400a9346
inc edx
add rax, 8
cmp edx, ecx
jl 0x1400a9320
cmp ecx, 0x1f4
jge 0x1400a9346
movsxd rax, ecx
mov qword [r8 + rax*8], rsi
inc ecx
mov dword [0x14012c638], ecx
mov dword [rbp - 0x48], ecx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400a73a0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
jne 0x1400a937d
test dil, dil
je 0x1400a93e7
mov ecx, ebx
mov dword [0x14012c638], ebx
xor dil, dil
mov r8, qword [0x14012c630]
jmp 0x1400a9310
xor edx, edx
call fcn.1400a63b0
mov ecx, ebx
mov rbx, qword [rbp - 0x60]
mov r8, qword [0x14012c630]
movsxd rdx, dword [0x14012c638]
test edx, edx
jle 0x1400a93af
mov rax, r8
nop
cmp qword [rax], rbx
je 0x1400a93c7
inc ecx
add rax, 8
cmp ecx, edx
jl 0x1400a93a0
cmp edx, 0x1f4
jge 0x1400a93c7
mov qword [r8 + rdx*8], rbx
inc edx
mov dword [0x14012c638], edx
mov rbx, qword [rbp - 0x60]
mov rax, qword [0x1401241d8]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a93e7
mov edx, 1
call fcn.1400016f0
mov rbx, qword [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.1400c5338
mov rax, rbx
lea r11, [rsp + 0x104f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140010e00
int3
Function at 0x1400a9420
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x104f0
call fcn.1400de970
sub rsp, rax
movzx ebp, dl
mov rdi, rcx
mov byte [rcx], 0
xor ebx, ebx
cmp qword [0x14012c628], rcx
je 0x1400a945e
mov qword [0x14012c628], rcx
mov dword [0x14012c638], ebx
cmp qword [0x14012c630], rbx
jne 0x1400a9481
mov ecx, 0xfa0
call fcn.14009d960
test rax, rax
je 0x1400a9659
mov qword [0x14012c630], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
je 0x1400a94b6
nop dword [rax]
mov rsi, rax
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
jne 0x1400a94a0
mov r8, qword [0x1401241d8]
sub r8, 0xffffffffffffff80
mov rdx, rsi
mov rcx, rdi
call fcn.1400a9660
test rax, rax
je 0x1400a94db
mov ecx, ebx
mov dword [0x14012c638], ebx
jmp 0x1400a94e1
mov ecx, dword [0x14012c638]
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
lea rax, [0x140100be0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x9c], ebx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0xd0], xmm1
test bpl, bpl
je 0x1400a952b
test ecx, ecx
mov byte [rsp + 0x99], 0
je 0x1400a9533
mov byte [rsp + 0x99], 1
mov rax, qword [0x14012c630]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], ecx
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x1400a9780]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400a95e2
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rcx, rax
xor edx, edx
call fcn.1400a63b0
mov rdx, qword [rsp + 0xa0]
mov r8, qword [0x14012c630]
movsxd rcx, dword [0x14012c638]
test ecx, ecx
jle 0x1400a95b0
mov rax, r8
cmp qword [rax], rdx
je 0x1400a95c4
inc ebx
add rax, 8
cmp ebx, ecx
jl 0x1400a95a1
cmp ecx, 0x1f4
jge 0x1400a95c4
mov qword [r8 + rcx*8], rdx
inc ecx
mov dword [0x14012c638], ecx
mov rax, qword [0x1401241d8]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a9636
mov edx, 1
call fcn.1400016f0
jmp 0x1400a9636
mov eax, dword [0x14012c638]
test eax, eax
je 0x1400a961c
cmp eax, 1
setg al
mov dword [0x14012c638], ebx
test al, al
je 0x1400a9636
mov rax, qword [0x14012c630]
mov qword [rax], rsi
mov dword [0x14012c638], 1
xor edx, edx
mov rcx, rdi
call fcn.1400a9420
jmp 0x1400a9636
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
xor edx, edx
call fcn.1400a63b0
nop
mov rcx, qword [rsp + 0x30]
call fcn.1400c5338
lea r11, [rsp + 0x104f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140010e00
int3
Function at 0x1400bef1c
Capabilities:
Parse pe header

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

Function at 0x1400d384c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400d36b7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d36b7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d36b7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d36b7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d36b7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d36b7
cmp dword [rcx + 0xf8], 0
je 0x1400d36b7
mov ecx, ebx
call fcn.1400d3768
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400d3544
nop
cmp dword [rbp + 0x20], 0
je 0x1400d3705
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400d3710
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400d3648
Function at 0x1400d915c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400d91e3
mov rsi, rbx
cmp word [rax], bp
je 0x1400d91a2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d918c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d9188
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d5d58
mov rdi, rax
test rax, rax
je 0x1400d91d0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400e2370
mov rbp, rdi
xor ecx, ecx
call fcn.1400d5d1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400de8a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400de8c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400de8c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
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.14000a2b0
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
mov r8, rsi
lea rdx, str.CreateDirectory___s_
lea ecx, [rax + 5]
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
mov r8, rsi
lea rdx, str.CreateDirectory___s_
mov ecx, 5
call rdi
mov byte [rbx], 0x5c
add rbx, 1
jne 0x140001042
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001d80
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 r14
push r15
sub rsp, 0x20
mov r15d, edx
mov rbx, rcx
lea rdx, str.Py_Initialize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_SetProgramName
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_Finalize
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyRun_SimpleString
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PySys_GetObject
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_OptimizeFlag
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
cmp qword [0x14008aa20], rcx
jne 0x140001e1e
xor eax, eax
jmp 0x140001e65
test rdi, rdi
je 0x140001e62
test rsi, rsi
je 0x140001e62
test rbp, rbp
je 0x140001e62
test r14, r14
je 0x140001e62
test r12, r12
je 0x140001e62
test rax, rax
je 0x140001e62
test r15d, r15d
setne cl
mov dword [rax], ecx
lea rcx, [0x14008b5a0]
call rsi
call rdi
mov edx, r15d
mov rcx, r14
call fcn.140001b8c
mov ebx, eax
call rbp
mov eax, ebx
jmp 0x140001e65
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 r15
pop r14
pop r12
ret
Function at 0x140002368
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea r8, [0x14008b8e0]
mov dword [rsp + 0x30], 0x104
lea rdx, str.PYTHONHOME_s
lea rcx, [rbp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rbp + 0xa0]
call fcn.140013f9c
lea rbx, [0x14008b360]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x14000248b
mov r9d, dword [0x14008b8a0]
lea rax, [0x14007aba2]
mov r8d, dword [0x14008b7b8]
lea rdx, str.SOFTWAREPythonPythonCore_d._d_sInstallPath
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0x30]
mov rcx, 0xffffffff80000001
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x140002444
lea r9, [rsp + 0x30]
mov rcx, 0xffffffff80000002
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x140002444
xor eax, eax
jmp 0x14000248b
lea rcx, [rbp - 0x70]
dec rcx
inc rcx
cmp byte [rcx], 0
jne 0x14000244b
movzx eax, word [0x14007aba0]
mov word [rcx], ax
lea rcx, [rbp - 0x70]
dec rcx
inc rcx
cmp byte [rcx], 0
jne 0x140002464
xor edx, edx
mov al, byte [rbx + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x14000246e
xor edx, edx
lea rcx, [rbp - 0x70]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140009140
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rbp
ret
Function at 0x1400024ac
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 r12, 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 r13, 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 r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyLong_FromVoidPtr
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov qword [rsp + 0x70], rax
test rdi, rdi
je 0x140002631
test rsi, rsi
je 0x140002631
test r12, r12
je 0x140002631
test r13, r13
je 0x140002631
test rbp, rbp
je 0x140002631
test r14, r14
je 0x140002631
test r15, r15
je 0x140002631
lea rcx, str.builtins
call rdi
mov rdi, rax
test rax, rax
je 0x14000260c
lea rdx, str.ValueError
mov rcx, rax
call rsi
lea rdx, str.OSError
mov qword [0x14008b468], rax
mov rcx, rdi
call rsi
lea rbp, str.create_shortcut
mov qword [0x14008b7b0], rax
mov rsi, rbp
movsxd rcx, ebx
xor edx, edx
shl rcx, 5
add rcx, rbp
call r13
mov rdx, qword [rsi]
mov r8, rax
mov rcx, rdi
call r12
inc ebx
lea rsi, [rsi + 0x20]
cmp ebx, 6
jb 0x1400025e1
mov rbp, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
mov qword [0x14008b890], rax
xor eax, eax
mov qword [0x14008b8d8], rbp
mov qword [0x14008cb80], r14
mov qword [0x14008b7a8], r15
jmp 0x140002636
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 0x1400028e4
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
and qword [r9], 0
mov r12, rcx
xor ecx, ecx
xor edx, edx
mov rsi, r9
mov r15, r8
mov ebp, 1
call fcn.14004abe4
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80000080
mov r8d, ebp
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, rax
mov r14, rax
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 r13, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, rbx
mov ecx, edi
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, rbx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
call fcn.140002368
mov rdi, rax
test rax, rax
je 0x1400029ab
mov r9, r15
mov rdx, r12
mov rcx, rax
call fcn.14000264c
mov rcx, rdi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400029c4
mov ecx, 2
call fcn.1400133d8
mov rcx, rax
lea rdx, str._Could_not_load_Python_
call fcn.1400017a0
mov rdx, r13
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, qword [rsp + 0x98]
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 0x140002a06
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.1400454b8
xor r15d, r15d
mov qword [rsi], rax
test rax, rax
je 0x140002a5f
xor r9d, r9d
mov dword [rsp + 0x88], r15d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rsi]
lea r9, [rsp + 0x88]
mov r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x88]
mov rax, qword [rsi]
mov byte [rcx + rax], r15b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rbx, qword [rsp + 0x80]
mov eax, ebp
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002a8c
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 r14
push r15
sub rsp, 0x20
mov r12, rdx
mov r14, rcx
lea rdx, str.Py_Initialize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_SetProgramName
mov rcx, r14
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_Finalize
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyRun_SimpleString
mov rcx, r14
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyErr_Print
mov rcx, r14
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test r15, r15
je 0x140002b4b
test rbx, rbx
je 0x140002b4b
test rdi, rdi
je 0x140002b4b
test rbp, rbp
je 0x140002b4b
test rax, rax
je 0x140002b4b
lea rcx, [0x14008b5a0]
call rbx
call r15
mov rcx, r14
call fcn.1400024ac
mov rcx, r12
call rbp
mov ebx, eax
test eax, eax
je 0x140002b45
call rsi
call rdi
mov eax, ebx
jmp 0x140002b4e
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 r15
pop r14
pop r12
ret
Function at 0x140002b70
Capabilities:
Delete file
Get file size
Read file on windows

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 r14
push r15
sub rsp, 0xe0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdi, qword [0x14008b8a8]
xor edx, edx
xor ecx, ecx
call fcn.14004abe4
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80000080
mov edx, 0xc0000000
mov rcx, rax
mov dword [rsp + 0x20], 2
mov r14, rax
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, 0xfffffff5
mov rsi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, 0xfffffff4
mov r15, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, rsi
mov ecx, ebx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, rsi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
call fcn.140002368
mov rbx, rax
test rax, rax
jne 0x140002c53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Cant_load_Python_for_pre_install_script___d_
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x50]
call fcn.140001afc
or eax, 0xffffffff
jmp 0x140002d3c
mov rdx, rdi
mov rcx, rbx
call fcn.140002a8c
mov rcx, rbx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, r15
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, r12
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
test ebp, ebp
je 0x140002d28
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, 0x1000
cmp edi, 0xffffffff
cmove edi, eax
lea eax, [rdi + 0x2d]
movsxd rcx, eax
call fcn.1400454b8
mov rbx, rax
test rax, rax
je 0x140002d1c
and dword [rsp + 0x40], 0
lea rdx, str.Running_the_pre_installation_script_failed_r_n
sub rax, rdx
mov cl, byte [rdx]
mov byte [rax + rdx], cl
inc rdx
test cl, cl
jne 0x140002cc7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x2c]
lea r9, [rsp + 0x40]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
mov rcx, rbx
add eax, 0x2c
mov byte [rax + rbx], 0
call fcn.140001afc
mov rcx, rbx
call fcn.1400301c8
jmp 0x140002d28
lea rcx, str.Out_of_memory_
call fcn.140001afc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebp
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140009140
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14000300c
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
lea rcx, [0x14008ba00]
xor r9d, r9d
mov dword [rax - 0x20], 0x80
mov edx, 0x80000000
mov dword [rax - 0x28], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140003059
xor eax, eax
jmp 0x1400030c5
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
and qword [rsp + 0x28], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rbx
mov esi, eax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140003055
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov dword [0x14008b8cc], esi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret