Function at 0x140036d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1ffc0]
mov eax, 0x200c0
call fcn.1400d7ad0
sub rsp, rax
xor eax, eax
movzx r15d, r9b
mov qword [rsp + 0x30], rax
mov rsi, r8
mov dword [rsp + 0x38], eax
mov r12, rdx
mov byte [rsp + 0x3c], al
mov r13, rcx
test r8, r8
je 0x1400371cb
cmp word [r8], ax
je 0x1400371cb
mov edi, dword [0x140114ac8]
mov eax, dword [0x140114ae4]
cmp edi, eax
jl 0x140036e57
cmp edi, 0xffff
jl 0x140036df0
lea r8, [0x1400da7a4]
lea rdx, str.Too_many_includes.
call fcn.140057630
jmp 0x1400371cd
test eax, eax
je 0x140036e06
lea edi, [rax + rax]
cmp edi, 0xffff
jle 0x140036e0b
mov edi, 0xffff
jmp 0x140036e0b
mov edi, WSAAsyncSelect
mov rcx, qword [0x140114ac0]
movsxd rdx, edi
shl rdx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rcx, rax
test rax, rax
jne 0x140036e42
lea r8, [0x1400da7a4]
mov rcx, r13
lea rdx, str.Out_of_memory.
call fcn.140057630
jmp 0x1400371cd
mov dword [0x140114ae4], edi
mov edi, dword [0x140114ac8]
mov qword [0x140114ac0], rax
jmp 0x140036e5e
mov rcx, qword [0x140114ac0]
mov rbx, qword [rbp + 0x20018]
movsxd r14, edi
test rbx, rbx
je 0x140036f1f
mov rdi, 0xffffffffffffffff
test r14d, r14d
jne 0x140036e83
mov qword [rcx + r14*8], rsi
jmp 0x140036ee1
cmp word [rbx], 0
je 0x140036ed6
mov rcx, rdi
nop dword [rax]
cmp word [rbx + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140036e90
lea rcx, [rcx*2 + 2]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [0x140114ac0]
mov rdx, rax
mov qword [rcx + r14*8], rax
test rax, rax
je 0x140036e27
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140036ec1
jmp 0x140036ee1
mov rax, qword [0x140117b78]
mov qword [rcx + r14*8], rax
mov qword [rsp + 0x30], rsi
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x140036ee6
add edi, edi
lea rdx, [rsp + 0x30]
mov r9d, 0x4b0
mov dword [rsp + 0x38], edi
mov r8d, reloc.WSOCK32.dll_ioctlsocket
mov rcx, r12
call fcn.1400b7b90
inc dword [0x140114ac8]
mov eax, 3
jmp 0x1400371cd
test edi, edi
jne 0x140036f2f
mov rax, qword [r13 + 0xbb0]
mov qword [rcx], rax
jmp 0x140036f8c
lea r9, [rbp + 0x20000]
mov edx, 0x8000
lea r8, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test r15b, r15b
jne 0x140036f86
test edi, edi
jle 0x140036f86
xor eax, eax
mov edi, eax
nop word [rax + rax]
mov rcx, qword [0x140114ac0]
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx + rdi*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140037216
inc rdi
cmp rdi, r14
jl 0x140036f60
mov edi, dword [0x140114ac8]
mov rcx, qword [0x140113b00]
test rcx, rcx
je 0x1400371ee
test edi, edi
jne 0x1400371ee
mov rdx, qword [0x1401149f8]
test rdx, rdx
jne 0x140037013
mov rdx, rcx
mov rcx, qword [0x140113af8]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x38], eax
test eax, eax
je 0x1400371b0
mov rdx, qword [0x140113b00]
mov rcx, qword [0x140113af8]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400371b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400371b0
mov rdx, qword [0x1401149f8]
test rdx, rdx
je 0x140037040
mov rcx, qword [0x140113b00]
test rcx, rcx
jne 0x140037021
mov dword [rsp + 0x38], ecx
jmp 0x1400371b2
mov eax, dword [rcx + 4]
mov dword [rsp + 0x38], eax
test eax, eax
je 0x1400371b0
mov eax, dword [rcx]
add rax, qword [rdx]
mov qword [rsp + 0x30], rax
je 0x1400371b0
cmp dword [rax], 0x4034b50
jne 0x140037120
call fcn.1400055d0
test al, al
je 0x1400371cb
xor eax, eax
lea rdi, [0x140111ae0]
mov edx, eax
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdi]
lea ecx, [rdx + 1]
inc edx
lea rdi, [rdi + 8]
mov word [rax], cx
cmp edx, 0xa
jl 0x140037070
mov r8d, dword [rsp + 0x38]
lea r9, [0x140111ae0]
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp + 0x20000]
call fcn.1400be240
mov edi, eax
test eax, eax
je 0x140037120
lea r15d, [rdi + 2]
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, qword [rbp + 0x20000]
mov r8d, edi
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rcx, rax
mov byte [rsp + 0x3c], 1
mov esi, edi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x30]
xor ecx, ecx
mov word [rdi + rax], cx
test edi, edi
je 0x1400370ed
mov rdi, rbx
xor eax, eax
mov ecx, esi
rep stosb byte [rdi], al
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [rsp + 0x38], r15d
call fcn.1400055d0
test al, al
je 0x1400371cb
mov rcx, qword [0x140113b28]
call fcn.14002db20
mov rcx, qword [0x140113b20]
call fcn.14002db20
mov r9d, 0xfde9
lea rdx, [rsp + 0x30]
mov r8d, reloc.WSOCK32.dll_ioctlsocket
mov rcx, r12
call fcn.1400b7b90
test r14d, r14d
jle 0x1400371a3
lea rax, [rsp + 0x40]
mov rdi, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rax + rdi*2 + 2], 0
lea rdi, [rdi + 1]
jne 0x140037150
lea rcx, [rdi*2 + 2]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [0x140114ac0]
mov rdi, rax
mov qword [rcx + r14*8], rax
test rax, rax
je 0x140036e27
lea rcx, [rsp + 0x40]
nop word [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdi], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x140037190
inc dword [0x140114ac8]
mov eax, 3
jmp 0x1400371cd
xor ecx, ecx
mov qword [rsp + 0x20], rcx
xorps xmm3, xmm3
lea rcx, str.Could_not_extract_script_from_EXE.
mov r8, rsi
xor edx, edx
call fcn.1400c1280
xor eax, eax
lea r11, [rsp + 0x200c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r9d, dword [0x140113a8c]
mov r8d, 0x30c
mov rdx, rsi
mov rcx, r12
call fcn.1400b7b90
test al, al
jne 0x140037139
cmp byte [rbp + 0x20010], al
je 0x14003721d
mov eax, 1
jmp 0x1400371cd
lea rax, str.Include
mov qword [rsp + 0x20], rsi
test r14d, r14d
lea r9, str.Script
lea r8, str._s_file___s__cannot_be_opened.
mov edx, 0x8040
cmovg r9, rax
lea rcx, [rbp + 0xff40]
call fcn.1400ba350
lea r8, [0x1400da7a4]
mov rcx, r13
lea rdx, [rbp + 0xff40]
call fcn.140057630
jmp 0x1400371cd