Function at 0x140001a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
movsxd r12, r8d
lea r13, [0x14002d8a0]
mov rdx, r13
mov r8d, 0x608
xor ecx, ecx
mov r15, r9
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
test eax, eax
jne 0x140001a86
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.Retrieving_module_name
call fcn.140001070
jmp 0x140001b04
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r13 + rax*2], di
jne 0x140001a90
cmp rax, 4
jbe 0x140001abf
mov r8d, 4
lea rdx, [0x140026518]
mov rcx, r13
call fcn.14000eeec
test eax, eax
mov eax, 1
je 0x140001ac1
mov eax, edi
test eax, eax
lea rcx, [0x14002d8a8]
lea rdx, [0x14002d060]
cmove rcx, r13
sub rdx, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140001ae0
mov edx, 0x5c
lea rcx, [0x14002d060]
call fcn.140005f00
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 0x140001b2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Could_not_locate_script_resource:
jmp 0x140001ba2
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001b4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Could_not_load_script_resource:
jmp 0x140001ba2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14002d040], rax
mov rdx, rax
mov qword [0x14002dea8], rax
test rax, rax
jne 0x140001b7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Could_not_lock_script_resource:
jmp 0x140001ba2
cmp dword [rdx], 0x78563412
lea rcx, [rdx + 0x10]
mov eax, dword [rax + 0xc]
mov qword [0x14002d040], rcx
mov dword [0x14002d03c], eax
je 0x140001bcf
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
add rsp, 0x260
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
mov qword [rsp + 0x290], rbx
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x2a0], rsi
mov qword [rsp + 0x2a8], r14
nop
inc rax
cmp byte [rdx + rax + 0x10], dil
jne 0x140001bf0
add rax, 0x11
add rax, rdx
add rdx, 0x10
mov qword [0x14002d040], rax
cmp byte [rdx], dil
je 0x140001c37
mov qword [rsp + 0x20], rdx
lea r9, [0x14002d060]
mov edx, 0x608
lea r8, str._s_S
lea rcx, [0x14002d280]
call fcn.140001380
jmp 0x140001c4c
mov r8d, 0x608
lea rdx, [0x14002d280]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [0x14002d280]
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea r8, [0x140026698]
mov edx, 1
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
je 0x140001ce6
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, r14
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140001cd4
mov edx, r14d
mov qword [rsp + 0x38], rdi
mov rcx, rax
call fcn.140002a00
test rax, rax
je 0x140001cd4
mov rdx, rax
lea rcx, [0x140026698]
call fcn.140003200
mov rbx, qword [rax]
jmp 0x140001ced
lea rcx, [0x140026698]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
jmp 0x140001ced
mov rbx, qword [rbp + 0x198]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r14, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2a0]
test rbx, rbx
jne 0x140001d17
lea rdx, str.FATAL_ERROR:_Could_not_load_python_library
jmp 0x140002250
mov r10, qword [0x14002cde8]
mov qword [0x14002cf08], rbx
test r10, r10
je 0x140001d4f
nop word [rax + rax]
mov rax, qword [r10]
cmp rbx, rax
je 0x140002198
cmp rbx, qword [rax + 8]
je 0x140002198
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001d30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140027020]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
lea rcx, [0x1400036a0]
cmove rax, rcx
mov rax, qword [rax]
mov qword [sym.run_w_py3.11_win_amd64.exe_PyExc_SystemError], rax
test rax, rax
je 0x140002249
lea rdx, [0x140027038]
mov rcx, rbx
call fcn.1400036e0
mov rcx, qword [rax]
mov qword [sym.run_w_py3.11_win_amd64.exe_PyExc_ImportError], rcx
test rcx, rcx
je 0x140002249
lea rdx, [0x140027050]
mov rcx, rbx
call fcn.1400036e0
mov rcx, qword [rax]
mov qword [sym.run_w_py3.11_win_amd64.exe_PyExc_RuntimeError], rcx
test rcx, rcx
je 0x140002249
mov rcx, rbx
call fcn.140001600
mov rax, qword [0x14002ce60]
test rax, rax
jne 0x140001dfe
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026cd0]
call fcn.1400036e0
mov qword [0x14002ce60], rax
lea rdx, [0x140003ec0]
lea rcx, str._memimporter
call rax
mov rax, qword [0x14002cf48]
test rax, rax
jne 0x140001e34
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026ef8]
call fcn.1400036e0
mov qword [0x14002cf48], rax
lea rcx, [rbp - 0x50]
call rax
mov rax, qword [0x14002cfc0]
mov dword [rbp + 0x58], edi
mov dword [rbp + 0x10], edi
mov dword [rbp + 0xe0], 1
test rax, rax
jne 0x140001e70
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026f18]
call fcn.1400036e0
mov qword [0x14002cfc0], rax
mov r8, r12
lea rdx, [rbp - 0x50]
mov r9, r15
lea rcx, [rbp - 0x70]
call rax
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [0x14002cf88]
movaps xmmword [rsp + 0x60], xmm0
test rax, rax
jne 0x140001ed1
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026f60]
call fcn.1400036e0
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x40]
mov qword [0x14002cf88], rax
lea rcx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
call rax
test eax, eax
jne 0x1400021c9
mov rax, qword [0x14002cfb8]
test rax, rax
jne 0x140001f10
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026f30]
call fcn.1400036e0
mov qword [0x14002cfb8], rax
mov r9, r13
lea r8, [rbp + 0xc0]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call rax
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [0x14002cf88]
movaps xmmword [rsp + 0x40], xmm0
test rax, rax
jne 0x140001f75
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026f60]
call fcn.1400036e0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x60]
mov qword [0x14002cf88], rax
lea rcx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
call rax
test eax, eax
jne 0x1400021c9
mov rax, qword [0x14002ceb0]
test rax, rax
jne 0x140001fb4
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026fb0]
call fcn.1400036e0
mov qword [0x14002ceb0], rax
lea r8, [0x14002d280]
lea rdx, [rbp + 0xe8]
lea rcx, [rbp - 0x70]
call rax
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [0x14002cf88]
movaps xmmword [rsp + 0x40], xmm0
test rax, rax
jne 0x140002019
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026f60]
call fcn.1400036e0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x60]
mov qword [0x14002cf88], rax
lea rcx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
call rax
test eax, eax
jne 0x1400021c9
mov rax, qword [0x14002ce28]
test rax, rax
jne 0x140002058
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026f98]
call fcn.1400036e0
mov qword [0x14002ce28], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call rax
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [0x14002cf88]
movaps xmmword [rsp + 0x40], xmm0
test rax, rax
jne 0x1400020b3
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026f60]
call fcn.1400036e0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x60]
mov qword [0x14002cf88], rax
lea rcx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
call rax
test eax, eax
jne 0x1400021c9
mov rax, qword [0x14002cf10]
test rax, rax
jne 0x1400020f2
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026f88]
call fcn.1400036e0
mov qword [0x14002cf10], rax
lea rcx, [rbp - 0x50]
call rax
mov rcx, qword gs:[0x60]
call sym.run_w_py3.11_win_amd64.exe_PyLong_FromUnsignedLongLong
mov rbx, rax
mov rax, qword [0x14002cf28]
test rax, rax
jne 0x14000212f
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026fc8]
call fcn.1400036e0
mov qword [0x14002cf28], rax
mov rdx, rbx
lea rcx, [0x140026740]
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 0x140002191
mov rax, qword [0x14002cf28]
test rax, rax
jne 0x140002175
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026fc8]
call fcn.1400036e0
mov qword [0x14002cf28], rax
mov rdx, rbx
lea rcx, [0x140026744]
call rax
sub qword [rbx], 1
jne 0x140002191
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
xor eax, eax
jmp 0x14000225f
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.1400031e0
mov rcx, qword [r10]
lea rdx, [0x140027020]
call fcn.140002f70
jmp 0x140001d79
mov rax, qword [0x14002cf10]
test rax, rax
jne 0x1400021ef
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026f88]
call fcn.1400036e0
mov qword [0x14002cf10], rax
lea rcx, [rbp - 0x50]
call rax
mov rax, qword [0x14002cfc8]
test rax, rax
jne 0x14000221b
mov rcx, qword [0x14002cf08]
lea rdx, [0x140026f78]
call fcn.1400036e0
mov qword [0x14002cfc8], rax
movups xmm0, xmmword [rbp - 0x80]
lea rcx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x50], xmm0
call rax
test eax, eax
je 0x140002277
movups xmm0, xmmword [rsp + 0x70]
psrldq xmm0, 8
movd eax, xmm0
jmp 0x14000225f
lea rdx, str.FATAL_ERROR:_Failed_to_load_some_Python_symbols
mov ecx, 0xffffffff
call fcn.140001070
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
movups xmm0, xmmword [rbp - 0x80]
lea rcx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x50], xmm0
call sym.run_w_py3.11_win_amd64.exe_Py_ExitStatusException
int3