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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x140077008]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rbx, r9
mov r14, rcx
xor r15d, r15d
lea rcx, [rsp + 0x70]
call fcn.140002300
nop
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x1400038c6
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
call fcn.140003c40
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140003740
nop
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140003900
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140002b40
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xa8], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x98], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xa8], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140003991
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000398c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003b2b
call fcn.1400041f4
movdqa xmm0, xmmword [0x1400738b0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x1400039e9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003b31
call fcn.1400041f4
lea r8, [0x1400737b0]
mov edx, 0x66
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
mov rdx, rax
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140003aba
mov rdx, rbx
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
lea rcx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 0x10
cmovae rcx, qword [rsp + 0x98]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003aba
mov dword [rsp + 0x90], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x90]
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003aba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov bl, 1
jmp 0x140003abc
xor bl, bl
mov rdx, qword [rsp + 0xb0]
cmp rdx, 0x10
jb 0x140003afb
inc rdx
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003af6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003b25
call fcn.1400041f4
movzx eax, bl
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140004190
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14000c988
nop
call fcn.14000c988
nop
call fcn.14000c988
int3