Function at 0x1400020c0
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 [0x14000b008]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rbp, [0x14000ccc0]
mov r8d, 0x608
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r14d, r14d
test eax, eax
jne 0x140002198
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 0x140002216
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 0x140002216
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbp + rax*2], r14w
jne 0x1400021a0
cmp rax, 4
jbe 0x1400021d0
mov r8d, 4
lea rdx, [0x14000b470]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
mov eax, 1
je 0x1400021d3
mov eax, r14d
test eax, eax
lea rcx, [0x14000ccc8]
lea rdx, [0x14000c480]
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 0x1400021f0
mov edx, 0x5c
lea rcx, [0x14000c480]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov word [rax], r14w
call fcn.140002d00
test eax, eax
jne 0x1400022ab
lea ecx, [rax + 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
mov eax, 0xffffffff
jmp 0x140002471
xor edx, edx
mov qword [rsp + 0x470], rsi
lea rcx, [0x14000c6a0]
mov qword [rsp + 0x478], rdi
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea r8, [0x14000b2d0]
mov edx, 1
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rax
test rax, rax
je 0x1400023a2
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 0x140002399
mov edx, esi
mov qword [rsp + 0x38], r14
mov rcx, rax
call fcn.140003510
mov rsi, rax
test rax, rax
je 0x140002399
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea rcx, [0x14000b2c0]
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, qword [0x14000c268]
lea rdx, [0x14000b2c0]
mov qword [rbx + 0x10], rcx
mov r9, rbx
lea rcx, str._AddMemoryModule__s___p______p__d__n
mov qword [rbx + 8], rax
mov r8, rsi
mov qword [rbx], rsi
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x20], 1
mov qword [0x14000c268], rbx
mov dword [rsp + 0x20], 1
call fcn.1400049c0
mov rbx, qword [rbx]
jmp 0x1400023b2
lea rcx, [0x14000b2c0]
jmp 0x1400023a9
lea rcx, [0x14000b2b0]
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 0x1400023e5
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 0x140002233
mov rcx, rbx
call fcn.140007900
test eax, eax
jns 0x140002408
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.FATAL_ERROR:_Failed_to_load_some_Python_symbols
jmp 0x140002233
mov rcx, rbx
call fcn.1400025e0
lea rdx, [0x140005110]
lea rcx, str._memimporter
call sym.run_py3.10_win_amd64.exe_PyImport_AppendInittab
mov rcx, rbp
call sym.run_py3.10_win_amd64.exe_Py_SetProgramName
lea rcx, [0x14000c6a0]
call sym.run_py3.10_win_amd64.exe_Py_SetPath
call sym.run_py3.10_win_amd64.exe_Py_Initialize
lea rcx, str.console_exe
call sym.run_py3.10_win_amd64.exe_PyUnicode_FromString
mov rbx, rax
test rax, rax
je 0x14000246f
mov rdx, rax
lea rcx, [0x14000b20c]
call sym.run_py3.10_win_amd64.exe_PySys_SetObject
sub qword [rbx], 1
jne 0x14000246f
mov rdx, qword [rbx + 8]
mov rcx, rbx
call qword [rdx + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400010d0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret