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

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x14001d0cb
mov qword [r8], 0
call fcn.14001d220
mov rbx, rax
test rax, rax
jne 0x14001d0e1
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14001d1ee
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001d1ee
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14001d1ee
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001d1ee
mov rsi, rdi
cmp rdi, 0xffffffffffffffff
je 0x14001d1ee
mov rdx, qword [0x140088630]
lea rcx, [rdi + rbp]
call qword [0x140087740]
mov rdi, rax
mov rax, qword [0x140088620]
test rax, rax
je 0x14001d17b
inc dword [rax + 0xf0]
test rdi, rdi
je 0x14001d1ee
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rsi
je 0x14001d1c6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140088620]
test rax, rax
je 0x14001d1b4
dec dword [rax + 0xf0]
mov rdx, qword [0x140088630]
mov rcx, rdi
call qword [0x140087748]
jmp 0x14001d1f7
test ebp, ebp
jle 0x14001d1d8
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14001d1e9
mov qword [r14], rsi
mov rax, rdi
jmp 0x14001d1f9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret

Function at 0x14001d640
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14001d69d
lea rbx, [0x140056ac0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14001d684
cmp r10, 2
jb 0x14001d684
cmp byte [r9], r8b
jne 0x14001d684
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14001d660
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14001d6df
lea rbx, [0x140056ac0]
cmp r8b, 0x23
jne 0x14001d6c3
cmp byte [r9], r8b
jne 0x14001d6c3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14001d6b0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x14001f2d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5db8], 0
lea rbx, [rcx + 0x5dc0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001f377
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001f32a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14002d790
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14002d0c0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5db8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5dc8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140088628]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001f37f
mov rcx, rbx
call fcn.14002d0c0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400277e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x140088620]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5d14], ecx
test rbx, rbx
je 0x14002784f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.140027860
lea rdx, [0x140058424]
mov rcx, rbx
mov rdi, rax
call fcn.14001d220
mov rbx, rax
test rax, rax
je 0x14002784a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x14002bb90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x140088620]
cmp byte [rbx + 0x5d11], 0
jne 0x14002bcec
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14002bce5
lea rdx, [0x140058420]
mov qword [rsp + 0x40], rdi
call fcn.14001d220
mov rdi, rax
test rax, rax
je 0x14002bce0
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14002bccd
xor edx, edx
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14002bccd
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14002bccd
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14002bccd
cmp rsi, 0xffffffffffffffff
je 0x14002bccd
mov rdx, qword [0x140088630]
mov rcx, rsi
call qword [0x140087740]
mov rbp, rax
mov rax, qword [0x140088620]
test rax, rax
je 0x14002bc6a
inc dword [rax + 0xf0]
test rbp, rbp
je 0x14002bccd
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x14002bc93
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14002bca9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14002bca9
mov rdx, rsi
mov rcx, rbp
call fcn.14001ee30
mov rax, qword [0x140088620]
test rax, rax
je 0x14002bcbb
dec dword [rax + 0xf0]
mov rdx, qword [0x140088630]
mov rcx, rbp
call qword [0x140087748]
jmp 0x14002bcd6
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5d11], 1
movss xmm0, dword [rbx + 0x5d14]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14002bd2f
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5d14], xmm0
jb 0x14002bd2f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14002bd1e
call fcn.1400277e0
jmp 0x14002bd25
mov byte [rbx + 0xd6], 1
mov dword [rbx + 0x5d14], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140043e70
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
call fcn.14001c420
test rax, rax
je 0x140043e8e
call fcn.14001c800
mov rbx, qword [rax + 0x88]
jmp 0x140043e90
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140043ebb
mov dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret

Function at 0x140044a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140088620]
mov rcx, qword [rax + 0x4bd8]
mov r10, qword [rax + 0x3f08]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x168]
movss xmm4, dword [rcx + 0x168]
movss xmm3, dword [rcx + 0x16c]
movss xmm2, dword [rcx + 0x170]
movss xmm1, dword [rcx + 0x174]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a0]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x240], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a0]
mov rcx, qword [rcx + 0x198]
add rsp, 0x38
jmp 0x140039e70

Function at 0x140044b50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140088620]
mov rcx, qword [rax + 0x4bd8]
mov r9, qword [rax + 0x3f08]
movups xmm0, xmmword [r9 + 0x240]
movups xmmword [rcx + 0x168], xmm0
mov rax, qword [r9 + 0x2a0]
movups xmm0, xmmword [rcx + 0x148]
movss xmm4, dword [rcx + 0x148]
movss xmm3, dword [rcx + 0x14c]
movss xmm2, dword [rcx + 0x150]
movss xmm1, dword [rcx + 0x154]
movups xmmword [r9 + 0x240], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x226]
mov rcx, qword [rcx + 0x198]
mov rdx, qword [r9 + 0x2a0]
add rsp, 0x38
jmp 0x140039e70
Function at 0x140050a10
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140050bc1
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14000a970
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140050b86
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140050b00
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140050b75
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140050b3d
mov r10, qword [rdx]
cmp r10, rax
je 0x140050b37
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140050b75
cmp r9, rdx
je 0x140050b51
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140050b9b
cmp r9, rdx
jne 0x140050b42
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140050ab0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140050b75
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3

Function at 0x14005196c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400519b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400519b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400519b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400519b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400519b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400519b8
xor al, al
add rsp, 0x28
ret
Function at 0x140001024
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 0x1400010dd
cmp byte [rbx], 0
je 0x1400010dd
mov edx, 0x5c
mov rcx, rbx
call fcn.140008cf8
mov rbx, rax
test rax, rax
je 0x1400010dd
mov rcx, rsi
mov byte [rax], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1400010aa
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1400010a0
test rdi, rdi
je 0x1400010a0
lea rdx, str.CreateDirectory___s_
lea ecx, [rax + 5]
mov r8, rsi
call rdi
jmp 0x1400010aa
mov rdx, rsi
mov ecx, 1
call rdi
test bpl, 0x10
jne 0x1400010d1
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400010d1
lea rdx, str.CreateDirectory___s_
mov r8, rsi
mov ecx, 5
call rdi
mov byte [rbx], 0x5c
inc rbx
jne 0x14000104a
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 0x140001d9c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, rcx
lea r8, [0x1400388e0]
lea rdx, str.PYTHONHOME_s
lea rcx, [rbp + 0x90]
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rbp + 0x90]
call fcn.140009f68
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140001eac
mov r9d, dword [0x140038848]
mov r8d, dword [0x14003860c]
lea rdx, str.SOFTWAREPythonPythonCore_d._dInstallPath
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0x20]
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x140001e6d
lea r9, [rsp + 0x20]
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x140001e6d
xor eax, eax
jmp 0x140001eac
xor eax, eax
or rdx, 0xffffffffffffffff
lea rdi, [rbp - 0x80]
mov rcx, rdx
repne scasb al, byte [rdi]
movzx eax, word [0x140026688]
mov rcx, rdx
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rbp - 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 0x140001e94
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400093b0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140001ed0
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
test rdi, rdi
je 0x140002055
test rsi, rsi
je 0x140002055
test r14, r14
je 0x140002055
test r15, r15
je 0x140002055
test rbp, rbp
je 0x140002055
test r12, r12
je 0x140002055
test r13, r13
je 0x140002055
lea rcx, str.builtins
call rdi
mov rdi, rax
test rax, rax
je 0x140002030
lea rdx, str.ValueError
mov rcx, rax
call rsi
lea rdx, str.OSError
mov rcx, rdi
mov qword [0x140038630], rax
call rsi
lea rbp, str.create_shortcut
mov rsi, rbp
mov qword [0x1400389e8], 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 0x140002005
mov rbp, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
mov qword [0x1400388b0], rbp
mov qword [0x1400375c8], r12
mov qword [0x140038610], rax
xor eax, eax
mov qword [0x1400375d0], r13
jmp 0x14000205a
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 0x14000230c
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.140024834
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, [0x1400374c0]
call fcn.140001d9c
mov rdi, rax
test rax, rax
je 0x1400023e6
mov r9, r13
mov r8d, r14d
mov rdx, r15
mov rcx, rax
call fcn.140002070
mov rcx, rdi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400023fb
call fcn.14000a5a0
lea rdx, str._Could_not_load_Python_
lea rcx, [rax + 0x60]
call fcn.14000a3c8
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 0x14000243f
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.140009c30
xor r13d, r13d
mov qword [rsi], rax
test rax, rax
je 0x140002499
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 0x1400024cc
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 0x14000258b
test rbx, rbx
je 0x14000258b
test rdi, rdi
je 0x14000258b
test rbp, rbp
je 0x14000258b
test rax, rax
je 0x14000258b
lea rcx, [0x140038640]
call rbx
call r13
mov rcx, r12
call fcn.140001ed0
mov rcx, r14
call rbp
mov ebx, eax
test eax, eax
je 0x140002585
call rsi
call rdi
mov eax, ebx
jmp 0x14000258e
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 0x1400025b0
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 rdi, rcx
xor edx, edx
xor ecx, ecx
call fcn.140024834
and qword [rsp + 0x30], 0
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0xc0000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80000080
mov r12, rax
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, 0xfffffff5
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, 0xfffffff4
mov ecx, ebp
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, rsi
mov ecx, ebx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, rsi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
lea rcx, [0x1400374c0]
call fcn.140001d9c
mov rbx, rax
test rax, rax
jne 0x14000268f
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.140001814
or eax, 0xffffffff
jmp 0x14000277b
mov rdx, rdi
mov rcx, rax
call fcn.1400024cc
mov rcx, rbx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, r13
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, r14
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
test ebp, ebp
je 0x140002767
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.140009c30
mov rbx, rax
test rax, rax
je 0x14000275b
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 0x140002703
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 r11d, dword [rsp + 0x40]
mov rcx, rbx
add r11d, 0x2c
mov byte [r11 + rbx], 0
call fcn.140001814
mov rcx, rbx
call fcn.140009ba0
jmp 0x140002767
lea rcx, str.Out_of_memory_
call fcn.140001814
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebp
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400093b0
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