Function at 0x140001c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
movsxd r14, r8d
lea r15, [0x14002d880]
mov rdx, r15
mov r8d, 0x608
xor ecx, ecx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
test eax, eax
jne 0x140001c98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.Retrieving_module_name
call fcn.140001070
jmp 0x140001d14
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r15 + rax*2], di
jne 0x140001ca0
cmp rax, 4
jbe 0x140001cce
mov r8d, 4
lea rdx, [0x140026518]
mov rcx, r15
call fcn.14000ef5c
test eax, eax
mov eax, 1
je 0x140001cd0
mov eax, edi
test eax, eax
lea rcx, [0x14002d888]
lea rdx, [0x14002d040]
cmove rcx, r15
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140001cf0
mov edx, 0x5c
lea rcx, [0x14002d040]
call fcn.140005f70
mov word [rax], di
lea r8, str.PYTHONSCRIPT
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
jne 0x140001d3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Could_not_locate_script_resource:
jmp 0x140001db2
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001d5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Could_not_load_script_resource:
jmp 0x140001db2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14002d020], rax
mov rdx, rax
mov qword [0x14002de88], rax
test rax, rax
jne 0x140001d8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Could_not_lock_script_resource:
jmp 0x140001db2
cmp dword [rdx], 0x78563412
lea rcx, [rdx + 0x10]
mov eax, dword [rax + 0xc]
mov qword [0x14002d020], rcx
mov dword [0x14002d01c], eax
je 0x140001dd4
lea rdx, str.Bug:_Invalid_script_resource
mov ecx, edi
call fcn.140001070
lea rdx, str.FATAL_ERROR:_Could_not_locate_script
mov ecx, 0xffffffff
call fcn.140001070
mov eax, 0xffffffff
jmp 0x1400023ac
mov qword [rsp + 0x270], rbx
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax + 0x10], dil
jne 0x140001de3
add rax, 0x11
add rax, rdx
add rdx, 0x10
mov qword [0x14002d020], rax
cmp byte [rdx], dil
je 0x140001e2a
mov qword [rsp + 0x20], rdx
lea r9, [0x14002d040]
mov edx, 0x608
lea r8, str._s_S
lea rcx, [0x14002d260]
call fcn.140001380
jmp 0x140001e3f
mov r8d, 0x608
lea rdx, [0x14002d260]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.140001a30
mov rbx, rax
test rax, rax
jne 0x140001e58
lea rdx, str.FATAL_ERROR:_Could_not_load_python_library
jmp 0x140002395
mov r10, qword [0x14002cdc8]
mov qword [0x14002cee8], rbx
test r10, r10
je 0x140001e8f
nop dword [rax + rax]
mov rax, qword [r10]
cmp rbx, rax
je 0x1400022dc
cmp rbx, qword [rax + 8]
je 0x1400022dc
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001e70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140027090]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
lea rcx, [0x1400037f0]
cmove rax, rcx
mov rax, qword [rax]
mov qword [sym.run_w_py3.11_win_amd64.exe_PyExc_SystemError], rax
test rax, rax
je 0x14000238e
lea rdx, [0x1400270a8]
mov rcx, rbx
call fcn.140003830
mov rcx, qword [rax]
mov qword [sym.run_w_py3.11_win_amd64.exe_PyExc_ImportError], rcx
test rcx, rcx
je 0x14000238e
lea rdx, [0x1400270c0]
mov rcx, rbx
call fcn.140003830
mov rcx, qword [rax]
mov qword [sym.run_w_py3.11_win_amd64.exe_PyExc_RuntimeError], rcx
test rcx, rcx
je 0x14000238e
mov rcx, rbx
call fcn.140001600
mov rax, qword [0x14002ce40]
test rax, rax
jne 0x140001f3e
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026d40]
call fcn.140003830
mov qword [0x14002ce40], rax
lea rdx, [0x140003f30]
lea rcx, str._memimporter
call rax
mov rax, qword [0x14002cf28]
test rax, rax
jne 0x140001f74
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026f68]
call fcn.140003830
mov qword [0x14002cf28], rax
lea rcx, [rbp - 0x60]
call rax
mov rax, qword [0x14002cfa0]
mov dword [rbp + 0x48], edi
mov dword [rbp], edi
mov dword [rbp + 0xd0], 1
test rax, rax
jne 0x140001fb0
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026f88]
call fcn.140003830
mov qword [0x14002cfa0], rax
mov r8, r14
lea rdx, [rbp - 0x60]
mov r9, rsi
lea rcx, [rbp - 0x80]
call rax
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [0x14002cf68]
movaps xmmword [rsp + 0x50], xmm0
test rax, rax
jne 0x140002012
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026fd0]
call fcn.140003830
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x30]
mov qword [0x14002cf68], rax
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
call rax
test eax, eax
jne 0x14000230d
mov rax, qword [0x14002cf98]
test rax, rax
jne 0x140002051
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026fa0]
call fcn.140003830
mov qword [0x14002cf98], rax
mov r9, r15
lea r8, [rbp + 0xb0]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call rax
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [0x14002cf68]
movaps xmmword [rsp + 0x30], xmm0
test rax, rax
jne 0x1400020b7
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026fd0]
call fcn.140003830
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x50]
mov qword [0x14002cf68], rax
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
call rax
test eax, eax
jne 0x14000230d
mov rax, qword [0x14002ce90]
test rax, rax
jne 0x1400020f6
mov rcx, qword [0x14002cee8]
lea rdx, [0x140027020]
call fcn.140003830
mov qword [0x14002ce90], rax
lea r8, [0x14002d260]
lea rdx, [rbp + 0xd8]
lea rcx, [rbp - 0x80]
call rax
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [0x14002cf68]
movaps xmmword [rsp + 0x30], xmm0
test rax, rax
jne 0x14000215c
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026fd0]
call fcn.140003830
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x50]
mov qword [0x14002cf68], rax
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
call rax
test eax, eax
jne 0x14000230d
mov rax, qword [0x14002ce08]
test rax, rax
jne 0x14000219b
mov rcx, qword [0x14002cee8]
lea rdx, [0x140027008]
call fcn.140003830
mov qword [0x14002ce08], rax
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call rax
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [0x14002cf68]
movaps xmmword [rsp + 0x30], xmm0
test rax, rax
jne 0x1400021f7
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026fd0]
call fcn.140003830
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x50]
mov qword [0x14002cf68], rax
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
call rax
test eax, eax
jne 0x14000230d
mov rax, qword [0x14002cef0]
test rax, rax
jne 0x140002236
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026ff8]
call fcn.140003830
mov qword [0x14002cef0], rax
lea rcx, [rbp - 0x60]
call rax
mov rcx, qword gs:[0x60]
call sym.run_w_py3.11_win_amd64.exe_PyLong_FromUnsignedLongLong
mov rbx, rax
mov rax, qword [0x14002cf08]
test rax, rax
jne 0x140002273
mov rcx, qword [0x14002cee8]
lea rdx, [0x140027038]
call fcn.140003830
mov qword [0x14002cf08], rax
mov rdx, rbx
lea rcx, [0x140026790]
call rax
lea rcx, str.windows_exe
call sym.run_w_py3.11_win_amd64.exe_PyUnicode_FromString
mov rbx, rax
test rax, rax
je 0x1400022d5
mov rax, qword [0x14002cf08]
test rax, rax
jne 0x1400022b9
mov rcx, qword [0x14002cee8]
lea rdx, [0x140027038]
call fcn.140003830
mov qword [0x14002cf08], rax
mov rdx, rbx
lea rcx, [0x140026794]
call rax
sub qword [rbx], 1
jne 0x1400022d5
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
xor eax, eax
jmp 0x1400023a4
mov eax, dword [r10 + 0x20]
lea rcx, str._FindMemoryModule__s___p______s__d__n
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.140003330
mov rcx, qword [r10]
lea rdx, [0x140027090]
call fcn.1400030c0
jmp 0x140001eb9
mov rax, qword [0x14002cef0]
test rax, rax
jne 0x140002333
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026ff8]
call fcn.140003830
mov qword [0x14002cef0], rax
lea rcx, [rbp - 0x60]
call rax
mov rax, qword [0x14002cfa8]
test rax, rax
jne 0x14000235f
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026fe8]
call fcn.140003830
mov qword [0x14002cfa8], rax
movups xmm0, xmmword [rsp + 0x70]
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x40], xmm0
call rax
test eax, eax
je 0x1400023c5
movups xmm0, xmmword [rsp + 0x60]
psrldq xmm0, 8
movd eax, xmm0
jmp 0x1400023a4
lea rdx, str.FATAL_ERROR:_Failed_to_load_some_Python_symbols
mov ecx, 0xffffffff
call fcn.140001070
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x270]
lea r11, [rsp + 0x250]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
movups xmm0, xmmword [rsp + 0x70]
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x40], xmm0
call sym.run_w_py3.11_win_amd64.exe_Py_ExitStatusException
int3