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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x72
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e8]
mov rax, qword [0x140254140]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, [0x14026b545]
call fcn.1400a9448
mov dword [rbp + 4], 0
movzx eax, word [rbp + 0x2b0]
mov r8d, 0x1389
mov edx, eax
mov rcx, qword [rbp + reloc.SHELL32.dll_IsUserAnAdmin]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400c512f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.FindResourceA
mov rcx, qword [rbp + 0x2a0]
call fcn.1400c66b0
mov dword [rbp + 0x1a4], eax
mov rcx, qword [rbp + 0x2b8]
call fcn.1400a5c3a
mov eax, dword [rbp + 0x1a4]
jmp 0x1400c538e
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + reloc.SHELL32.dll_IsUserAnAdmin]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1400c5184
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.LoadResource
mov rcx, qword [rbp + 0x2a0]
call fcn.1400c66b0
mov dword [rbp + 0x1c4], eax
mov rcx, qword [rbp + 0x2b8]
call fcn.1400a5c3a
mov eax, dword [rbp + 0x1c4]
jmp 0x1400c538e
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + reloc.SHELL32.dll_IsUserAnAdmin]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jne 0x1400c51e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r8d, dword [rbp + 4]
lea rdx, str.SizeofResource
mov rcx, qword [rbp + 0x2a0]
call fcn.1400c66b0
mov dword [rbp + 0x1e4], eax
mov rcx, qword [rbp + 0x2b8]
call fcn.1400a5c3a
mov eax, dword [rbp + 0x1e4]
jmp 0x1400c538e
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x1400c5247
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r8d, dword [rbp + 4]
lea rdx, str.LockResource
mov rcx, qword [rbp + 0x2a0]
call fcn.1400c66b0
mov dword [rbp + 0x204], eax
mov rcx, qword [rbp + 0x2b8]
call fcn.1400a5c3a
mov eax, dword [rbp + 0x204]
jmp 0x1400c538e
mov rcx, qword [rbp + 0x2b8]
call fcn.1400a55e6
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0xffffffffffffffff
je 0x1400c5324
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xc4]
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400c5315
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r8d, dword [rbp + 4]
lea rdx, str.WriteFileA
mov rcx, qword [rbp + 0x2a0]
call fcn.1400c66b0
mov dword [rbp + 0x224], eax
mov rcx, qword [rbp + 0x2b8]
call fcn.1400a5c3a
mov eax, dword [rbp + 0x224]
jmp 0x1400c538e
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400c5368
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r8d, dword [rbp + 4]
lea rdx, str.CreateFileA
mov rcx, qword [rbp + 0x2a0]
call fcn.1400c66b0
mov dword [rbp + 0x244], eax
mov rcx, qword [rbp + 0x2b8]
call fcn.1400a5c3a
mov eax, dword [rbp + 0x244]
jmp 0x1400c538e
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [rbp + 0x264], 0
mov rcx, qword [rbp + 0x2b8]
call fcn.1400a5c3a
mov eax, dword [rbp + 0x264]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140204c50]
call fcn.1400a8836
mov rax, rdi
mov rcx, qword [rbp + 0x278]
xor rcx, rbp
call fcn.1400a714d
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret