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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rdi, r8
xor bl, bl
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140001cdc
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001cdc
mov qword [rsp + 0x320], r14
mov rcx, rax
mov qword [rsp + 0x328], r15
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rsi
xor ecx, ecx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov qword [rsp + 0x70], rdi
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdi + rax*2], 0
jne 0x140001b10
xor r15d, r15d
mov dword [rbp - 0x78], 0x30
mov dword [rsp + 0x50], r15d
lea r9, [rsp + 0x78]
mov qword [rsp + 0x48], r15
lea r8, [rbp - 0x48]
add ax, ax
mov dword [rsp + 0x40], 0x40
mov dword [rsp + 0x38], r15d
lea rcx, [rbp + 0x238]
mov word [rsp + 0x6a], ax
xorps xmm2, xmm2
mov word [rsp + 0x68], ax
mov edx, 0x100002
lea rax, [rsp + 0x68]
mov dword [rsp + 0x30], 1
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x70], r15
movups xmm0, xmmword [rbp - 0x78]
mov dword [rbp - 0x60], r15d
movups xmm1, xmmword [rbp - 0x68]
mov dword [rsp + 0x28], r15d
movups xmmword [rbp - 0x48], xmm0
mov qword [rsp + 0x20], r15
movups xmmword [rbp - 0x38], xmm1
movups xmmword [rbp - 0x28], xmm2
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov edi, eax
test eax, eax
jne 0x140001c7c
mov rcx, qword [rbp + 0x238]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], r15
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov edi, eax
cmp eax, 0x103
jne 0x140001c1d
mov rcx, qword [rbp + 0x238]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
jne 0x140001c6d
cmp dword [rsp + 0x78], r15d
jne 0x140001c6d
mov rcx, qword [rbp + 0x238]
mov bl, 1
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x140001ccc
lea rcx, [0x140003330]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov r8d, edi
mov ecx, 0x1800
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9d, 0x10
lea r8, [0x140003348]
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x140001ccc
lea rcx, [0x140003330]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov r8d, edi
mov ecx, 0x1800
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9d, 0x10
lea r8, [0x140003360]
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov r14, qword [rsp + 0x320]
mov r15, qword [rsp + 0x328]
movzx eax, bl
mov rbx, qword [rsp + 0x330]
add rsp, 0x300
pop rdi
pop rsi
pop rbp
ret