Function at 0x1400018e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x460
mov rax, qword [0x140009008]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rbp, [0x14000a200]
mov r8d, 0x608
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r14d, r14d
test eax, eax
jne 0x1400019b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [r14 + 2]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Retrieving_module_name
call fcn.140001010
test ebx, ebx
je 0x140001a36
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r14d
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1100
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov r8d, 0x400
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [r14 + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140001010
jmp 0x140001a36
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbp + rax*2], r14w
jne 0x1400019c0
cmp rax, 4
jbe 0x1400019f0
mov r8d, 4
lea rdx, [0x1400063f8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
mov eax, 1
je 0x1400019f3
mov eax, r14d
test eax, eax
lea rcx, [0x14000a208]
lea rdx, [0x1400099c0]
cmove rcx, rbp
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140001a10
mov edx, 0x5c
lea rcx, [0x1400099c0]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov word [rax], r14w
lea r8, str.PYTHONSCRIPT
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
jne 0x140001ae2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Could_not_locate_script_resource:
call fcn.140001010
test ebx, ebx
je 0x140001b61
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r14d
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1100
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov r8d, 0x400
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140001010
jmp 0x140001b61
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001b03
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.Could_not_load_script_resource:
jmp 0x140001b5c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400099a0], rax
mov rdx, rax
mov qword [0x14000a808], rax
test rax, rax
jne 0x140001b33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.Could_not_lock_script_resource:
jmp 0x140001b5c
cmp dword [rdx], 0x78563412
lea rcx, [rdx + 0x10]
mov eax, dword [rax + 0xc]
mov qword [0x1400099a0], rcx
mov dword [0x14000999c], eax
je 0x140001be6
lea rdx, str.Bug:_Invalid_script_resource
xor ecx, ecx
call fcn.140001060
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.FATAL_ERROR:_Could_not_locate_script
mov rcx, rax
call fcn.140001010
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
xor edx, edx
mov ecx, 0x1100
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov r8d, 0x400
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140001010
jmp 0x140001f22
mov qword [rsp + 0x470], rsi
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x478], rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], r14b
jne 0x140001c00
add rax, 0x11
add rax, rdx
mov qword [0x1400099a0], rax
cmp byte [rcx], r14b
je 0x140001c42
mov qword [rsp + 0x20], rcx
lea r9, [0x1400099c0]
lea rcx, [0x140009be0]
mov edx, 0x608
lea r8, str._s_S
call fcn.140001160
jmp 0x140001c57
mov r8d, 0x608
lea rdx, [0x140009be0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [0x140009be0]
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea r8, [0x140006578]
mov edx, 1
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rax
test rax, rax
je 0x140001cdd
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rsi
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140001cdd
mov edx, esi
mov qword [rsp + 0x38], r14
mov rcx, rax
call fcn.140002720
test rax, rax
je 0x140001cdd
mov rdx, rax
lea rcx, [0x140006578]
call fcn.140003030
mov rbx, qword [rax]
jmp 0x140001ced
lea rcx, [0x140006578]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x478]
mov rsi, qword [rsp + 0x470]
test rbx, rbx
jne 0x140001d20
lea ecx, [rbx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.FATAL_ERROR:_Could_not_load_python_library
jmp 0x140001b73
mov r10, qword [0x1400097a8]
mov qword [0x1400098b8], rbx
test r10, r10
je 0x140001d45
cmp rbx, qword [r10]
je 0x140001ee0
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001d33
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140006e08]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
lea rcx, [0x1400034d0]
cmove rax, rcx
mov rax, qword [rax]
mov qword [sym.run_py3.8_win_amd64.exe_PyExc_SystemError], rax
test rax, rax
je 0x140001f11
lea rdx, [0x140006e20]
mov rcx, rbx
call fcn.140003510
mov rcx, qword [rax]
mov qword [sym.run_py3.8_win_amd64.exe_PyExc_ImportError], rcx
test rcx, rcx
je 0x140001f11
lea rdx, [0x140006e38]
mov rcx, rbx
call fcn.140003510
mov rcx, qword [rax]
mov qword [sym.run_py3.8_win_amd64.exe_PyExc_RuntimeError], rcx
test rcx, rcx
je 0x140001f11
mov rcx, rbx
call fcn.1400014d0
mov rax, qword [0x140009810]
test rax, rax
jne 0x140001df4
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006b98]
call fcn.140003510
mov qword [0x140009810], rax
lea rdx, [0x140003bf0]
lea rcx, str._memimporter
call rax
mov rax, qword [0x1400098a0]
test rax, rax
jne 0x140001e2a
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006ae8]
call fcn.140003510
mov qword [0x1400098a0], rax
mov rcx, rbp
call rax
mov rax, qword [0x1400098e0]
test rax, rax
jne 0x140001e55
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006a88]
call fcn.140003510
mov qword [0x1400098e0], rax
lea rcx, [0x140009be0]
call rax
mov rax, qword [0x1400098f0]
test rax, rax
jne 0x140001e84
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006aa8]
call fcn.140003510
mov qword [0x1400098f0], rax
call rax
lea rcx, str.console_exe
call sym.run_py3.8_win_amd64.exe_PyUnicode_FromString
mov rbx, rax
test rax, rax
je 0x140001edc
mov rax, qword [0x1400098d0]
test rax, rax
jne 0x140001ec0
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006da8]
call fcn.140003510
mov qword [0x1400098d0], rax
mov rdx, rbx
lea rcx, str.frozen
call rax
sub qword [rbx], 1
jne 0x140001edc
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
xor eax, eax
jmp 0x140001f27
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.140003010
mov rcx, qword [r10]
lea rdx, [0x140006e08]
call fcn.140002d80
jmp 0x140001d6f
lea rdx, str.FATAL_ERROR:_Failed_to_load_some_Python_symbols
mov ecx, 0xffffffff
call fcn.140001060
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140004b40
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret