Function at 0x140036aa0
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.1400f3640
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 0x140036f0b
cmp word [r8], ax
je 0x140036f0b
mov edi, dword [0x1401437e8]
mov eax, dword [0x140143804]
cmp edi, eax
jl 0x140036b96
cmp edi, 0xffff
jl 0x140036b30
lea r8, [0x140103574]
lea rdx, str.Too_many_includes.
call fcn.1400570c0
jmp 0x140036f0d
test eax, eax
je 0x140036b46
lea edi, [rax + rax]
cmp edi, 0xffff
jle 0x140036b4b
mov edi, 0xffff
jmp 0x140036b4b
mov edi, WSAAsyncSelect
mov rcx, qword [0x1401437e0]
movsxd rdx, edi
shl rdx, 3
call fcn.1400dc230
mov rcx, rax
test rax, rax
jne 0x140036b81
lea r8, [0x140103574]
mov rcx, r13
lea rdx, str.Out_of_memory.
call fcn.1400570c0
jmp 0x140036f0d
mov dword [0x140143804], edi
mov edi, dword [0x1401437e8]
mov qword [0x1401437e0], rax
jmp 0x140036b9d
mov rcx, qword [0x1401437e0]
mov rbx, qword [rbp + 0x20018]
movsxd r14, edi
test rbx, rbx
je 0x140036c5e
mov rdi, 0xffffffffffffffff
test r14d, r14d
jne 0x140036bc2
mov qword [rcx + r14*8], rsi
jmp 0x140036c20
cmp word [rbx], 0
je 0x140036c15
mov rcx, rdi
nop dword [rax + rax]
cmp word [rbx + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140036bd0
lea rcx, [rcx*2 + 2]
call fcn.1400dc214
mov rcx, qword [0x1401437e0]
mov rdx, rax
mov qword [rcx + r14*8], rax
test rax, rax
je 0x140036b66
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140036c00
jmp 0x140036c20
mov rax, qword [0x140146898]
mov qword [rcx + r14*8], rax
mov qword [rsp + 0x30], rsi
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x140036c25
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.1400b72c0
inc dword [0x1401437e8]
mov eax, 3
jmp 0x140036f0d
test edi, edi
jne 0x140036c6e
mov rax, qword [r13 + 0xbb0]
mov qword [rcx], rax
jmp 0x140036ccc
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 0x140036cc6
test edi, edi
jle 0x140036cc6
xor eax, eax
mov edi, eax
nop word [rax + rax]
mov rcx, qword [0x1401437e0]
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx + rdi*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140036f56
inc rdi
cmp rdi, r14
jl 0x140036ca0
mov edi, dword [0x1401437e8]
mov rcx, qword [0x140142820]
test rcx, rcx
je 0x140036f2e
test edi, edi
jne 0x140036f2e
mov rdx, qword [0x140143718]
test rdx, rdx
jne 0x140036d53
mov rdx, rcx
mov rcx, qword [0x140142818]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x38], eax
test eax, eax
je 0x140036ef0
mov rdx, qword [0x140142820]
mov rcx, qword [0x140142818]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140036ef0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140036ef0
mov rdx, qword [0x140143718]
test rdx, rdx
je 0x140036d80
mov rcx, qword [0x140142820]
test rcx, rcx
jne 0x140036d61
mov dword [rsp + 0x38], ecx
jmp 0x140036ef2
mov eax, dword [rcx + 4]
mov dword [rsp + 0x38], eax
test eax, eax
je 0x140036ef0
mov eax, dword [rcx]
add rax, qword [rdx]
mov qword [rsp + 0x30], rax
je 0x140036ef0
cmp dword [rax], 0x4034b50
jne 0x140036e5e
call fcn.1400055c0
test al, al
je 0x140036f0b
xor eax, eax
lea rdi, [0x14013f4e0]
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 0x140036db0
mov r8d, dword [rsp + 0x38]
lea r9, [0x14013f4e0]
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp + 0x20000]
call fcn.1400bd8d0
mov edi, eax
test eax, eax
je 0x140036e5e
lea r15d, [rdi + 2]
mov ecx, r15d
call fcn.1400dc214
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 fcn.1400d8380
mov rax, qword [rsp + 0x30]
xor ecx, ecx
mov word [rdi + rax], cx
test edi, edi
je 0x140036e2c
mov rdi, rbx
xor eax, eax
mov ecx, esi
rep stosb byte [rdi], al
mov rcx, rbx
call fcn.1400dc21c
mov dword [rsp + 0x38], r15d
call fcn.1400055c0
test al, al
je 0x140036f0b
mov rcx, qword [0x140142848]
call fcn.14002d9b0
mov rcx, qword [0x140142840]
call fcn.14002d9b0
mov r9d, 0xfde9
lea rdx, [rsp + 0x30]
mov r8d, reloc.WSOCK32.dll_ioctlsocket
mov rcx, r12
call fcn.1400b72c0
test r14d, r14d
jle 0x140036ee3
lea rax, [rsp + 0x40]
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rax + rdi*2 + 2], 0
lea rdi, [rdi + 1]
jne 0x140036e90
lea rcx, [rdi*2 + 2]
call fcn.1400dc214
mov rcx, qword [0x1401437e0]
mov rdi, rax
mov qword [rcx + r14*8], rax
test rax, rax
je 0x140036b66
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 0x140036ed0
inc dword [0x1401437e8]
mov eax, 3
jmp 0x140036f0d
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.1400c0900
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 [0x1401427ac]
mov r8d, 0x30c
mov rdx, rsi
mov rcx, r12
call fcn.1400b72c0
test al, al
jne 0x140036e77
cmp byte [rbp + 0x20010], al
je 0x140036f5d
mov eax, 1
jmp 0x140036f0d
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.1400b9a60
lea r8, [0x140103574]
mov rcx, r13
lea rdx, [rbp + 0xff40]
call fcn.1400570c0
jmp 0x140036f0d