Function at 0x140001b10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
movsxd r12, r8d
lea r13, [0x14000a240]
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 0x140001b65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.Retrieving_module_name
call fcn.140001070
jmp 0x140001be5
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r13 + rax*2], di
jne 0x140001b70
cmp rax, 4
jbe 0x140001ba0
mov r8d, 4
lea rdx, str.__
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
mov eax, 1
je 0x140001ba2
mov eax, edi
test eax, eax
lea rcx, [0x14000a248]
lea rdx, [0x140009a00]
cmove rcx, r13
sub rdx, rcx
nop dword [rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140001bc0
mov edx, 0x5c
lea rcx, [0x140009a00]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
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 0x140001c0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Could_not_locate_script_resource:
jmp 0x140001c83
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001c30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Could_not_load_script_resource:
jmp 0x140001c83
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400099f0], rax
mov rdx, rax
mov qword [0x14000a848], rax
test rax, rax
jne 0x140001c60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.Could_not_lock_script_resource:
jmp 0x140001c83
cmp dword [rdx], 0x78563412
lea rcx, [rdx + 0x10]
mov eax, dword [rax + 0xc]
mov qword [0x1400099f0], rcx
mov dword [0x1400099ec], eax
je 0x140001cb0
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 + 0x298], rsi
mov qword [rsp + 0x2a0], r14
nop
inc rax
cmp byte [rcx + rax], dil
jne 0x140001cd0
add rax, 0x11
add rax, rdx
mov qword [0x1400099f0], rax
cmp byte [rcx], dil
je 0x140001d12
mov qword [rsp + 0x20], rcx
lea r9, [0x140009a00]
lea rcx, [0x140009c20]
mov edx, 0x608
lea r8, str._s_S
call fcn.140001390
jmp 0x140001d27
mov r8d, 0x608
lea rdx, [0x140009c20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [0x140009c20]
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea r8, str.python310.dll
mov edx, 1
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
je 0x140001daf
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 0x140001daf
mov edx, r14d
mov qword [rsp + 0x38], rdi
mov rcx, rax
call fcn.1400028b0
test rax, rax
je 0x140001daf
mov rdx, rax
lea rcx, str.python310.dll
call fcn.1400031c0
mov rbx, qword [rax]
jmp 0x140001dbf
lea rcx, str.python310.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r14, qword [rsp + 0x2a0]
mov rsi, qword [rsp + 0x298]
test rbx, rbx
jne 0x140001de9
lea rdx, str.FATAL_ERROR:_Could_not_load_python_library
jmp 0x1400022d5
mov r10, qword [0x1400097a8]
mov qword [0x1400098c8], rbx
test r10, r10
je 0x140001e12
nop dword [rax]
cmp rbx, qword [r10]
je 0x140002228
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001e00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140006f08]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
lea rcx, [0x140003660]
cmove rax, rcx
mov rax, qword [rax]
mov qword [sym.run_w_py3.10_win_amd64.exe_PyExc_SystemError], rax
test rax, rax
je 0x1400022ce
lea rdx, [0x140006f20]
mov rcx, rbx
call fcn.1400036a0
mov rcx, qword [rax]
mov qword [sym.run_w_py3.10_win_amd64.exe_PyExc_ImportError], rcx
test rcx, rcx
je 0x1400022ce
lea rdx, [0x140006f38]
mov rcx, rbx
call fcn.1400036a0
mov rcx, qword [rax]
mov qword [sym.run_w_py3.10_win_amd64.exe_PyExc_RuntimeError], rcx
test rcx, rcx
je 0x1400022ce
mov rcx, rbx
call fcn.140001700
mov rax, qword [0x140009820]
test rax, rax
jne 0x140001ec1
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006bb8]
call fcn.1400036a0
mov qword [0x140009820], rax
lea rdx, [0x140003da0]
lea rcx, str._memimporter
call rax
mov rax, qword [0x140009908]
test rax, rax
jne 0x140001ef7
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006de0]
call fcn.1400036a0
mov qword [0x140009908], rax
lea rcx, [rbp - 0x30]
call rax
mov rax, qword [0x140009980]
mov dword [rbp + 0x68], edi
mov dword [rbp + 0x20], edi
mov dword [rbp + 0xe8], 1
test rax, rax
jne 0x140001f33
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006e00]
call fcn.1400036a0
mov qword [0x140009980], rax
mov r8, r12
lea rdx, [rbp - 0x30]
mov r9, r15
lea rcx, [rbp - 0x50]
call rax
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x40], xmm1
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [0x140009948]
movaps xmmword [rsp + 0x60], xmm0
test rax, rax
jne 0x140001f98
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006e48]
call fcn.1400036a0
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x40]
mov qword [0x140009948], rax
lea rcx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
call rax
test eax, eax
jne 0x140002259
mov rax, qword [0x140009978]
test rax, rax
jne 0x140001fd7
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006e18]
call fcn.1400036a0
mov qword [0x140009978], rax
mov r9, r13
lea r8, [rbp + 0xc8]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call rax
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [0x140009948]
movaps xmmword [rsp + 0x40], xmm0
test rax, rax
jne 0x140002040
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006e48]
call fcn.1400036a0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x60]
mov qword [0x140009948], rax
lea rcx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
call rax
test eax, eax
jne 0x140002259
mov rax, qword [0x140009870]
test rax, rax
jne 0x14000207f
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006e98]
call fcn.1400036a0
mov qword [0x140009870], rax
lea r8, [0x140009c20]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x50]
call rax
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [0x140009948]
movaps xmmword [rsp + 0x40], xmm0
test rax, rax
jne 0x1400020e8
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006e48]
call fcn.1400036a0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x60]
mov qword [0x140009948], rax
lea rcx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
call rax
test eax, eax
jne 0x140002259
mov rax, qword [0x1400097e8]
test rax, rax
jne 0x140002127
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006e80]
call fcn.1400036a0
mov qword [0x1400097e8], rax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call rax
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [0x140009948]
movaps xmmword [rsp + 0x40], xmm0
test rax, rax
jne 0x140002186
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006e48]
call fcn.1400036a0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x60]
mov qword [0x140009948], rax
lea rcx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
call rax
test eax, eax
jne 0x140002259
mov rax, qword [0x1400098d0]
test rax, rax
jne 0x1400021c5
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006e70]
call fcn.1400036a0
mov qword [0x1400098d0], rax
lea rcx, [rbp - 0x30]
call rax
lea rcx, str.windows_exe
call sym.run_w_py3.10_win_amd64.exe_PyUnicode_FromString
mov rbx, rax
test rax, rax
je 0x140002221
mov rax, qword [0x1400098e8]
test rax, rax
jne 0x140002205
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006eb0]
call fcn.1400036a0
mov qword [0x1400098e8], rax
mov rdx, rbx
lea rcx, str.frozen
call rax
sub qword [rbx], 1
jne 0x140002221
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
xor eax, eax
jmp 0x1400022e4
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.1400031a0
mov rcx, qword [r10]
lea rdx, [0x140006f08]
call fcn.140002f10
jmp 0x140001e3c
mov rax, qword [0x1400098d0]
test rax, rax
jne 0x14000227f
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006e70]
call fcn.1400036a0
mov qword [0x1400098d0], rax
lea rcx, [rbp - 0x30]
call rax
mov rax, qword [0x140009988]
test rax, rax
jne 0x1400022ab
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006e60]
call fcn.1400036a0
mov qword [0x140009988], rax
movups xmm0, xmmword [rsp + 0x70]
lea rcx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rbp - 0x80]
movaps xmmword [rsp + 0x50], xmm0
call rax
test eax, eax
je 0x1400022fc
mov eax, dword [rbp - 0x58]
jmp 0x1400022e4
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 [rsp + 0x70]
lea rcx, [rbp - 0x70]
movaps xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [rbp - 0x80]
movaps xmmword [rbp - 0x60], xmm0
call sym.run_w_py3.10_win_amd64.exe_Py_ExitStatusException
int3