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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x10080
call fcn.1401110b0
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x100d0], rbx
mov rdi, r9
mov rsi, r8
mov r12, rdx
mov rbp, rcx
mov rcx, r9
call fcn.140013c70
mov rcx, rdi
test al, al
je 0x14005ee76
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.140109ef0
jmp 0x14005ee7b
call fcn.14010998c
cmp eax, 1
sete al
cmp word [r12], 0
jne 0x14005eeea
cmp word [rsi], 0
jne 0x14005eeea
cmp byte [0x140174dc0], 0
je 0x14005eedb
mov rcx, qword [0x140174de8]
test rcx, rcx
je 0x14005eebe
mov r8, qword [0x140174de0]
xor edx, edx
call fcn.14010ec60
mov rcx, qword [0x140174de8]
call fcn.140108f48
xor ebx, ebx
mov qword [0x140174de8], rbx
mov qword [0x140174de0], rbx
mov dword [0x140174df0], ebx
mov qword [0x140174df8], rbx
xor edx, edx
mov rcx, rbp
call fcn.14003ca30
jmp 0x14005f234
xor ebx, ebx
mov dword [rsp + 0x70], ebx
mov ebp, ebx
mov qword [rsp + 0x68], rbx
mov r15d, ebx
mov qword [rsp + 0x60], rbx
test al, al
jne 0x14005ef1c
mov rcx, rsi
call fcn.1400793d0
test al, al
je 0x14005ef1c
movzx edi, byte [rsp + 0x100c8]
jmp 0x14005f203
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14005f1ed
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
dec rcx
mov eax, 0x7fff
cmp rcx, 0x8000
cmovae rcx, rax
lea r8, [rcx + rcx + 2]
mov rdx, r12
lea rcx, [rsp + 0x80]
call fcn.140109100
lea rcx, [rsp + 0x80]
call fcn.14010aae0
mov rax, rbx
cmp byte [0x140174dc0], al
je 0x14005efc0
mov rdx, qword [0x140174dd0]
lea rcx, [rsp + 0x60]
call fcn.14001b090
mov rbp, qword [rsp + 0x68]
mov rcx, rbp
call fcn.14010aae0
mov r15, qword [rsp + 0x60]
mov r13, rbx
mov r12, rbx
mov rsi, qword [0x140174de8]
test rsi, rsi
je 0x14005efde
mov rdi, qword [0x140174df8]
jmp 0x14005f0ff
lea rdx, [rsp + 0x80]
test rax, rax
cmovne rdx, rax
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r13, rax
test rax, rax
je 0x14005f1ed
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14005f1ed
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x14005f1ed
mov rsi, rax
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
movzx ecx, byte [0x140174dc2]
mov eax, 1
cmp byte [0x140174dc1], 0
cmovne ecx, eax
mov byte [0x140174dc2], cl
cmp byte [0x140174dc0], 0
je 0x14005f1be
test cl, cl
je 0x14005f0ff
mov qword [0x140174df8], rdi
mov edx, edi
lea rcx, [0x140174de0]
call fcn.14001ad10
test rax, rax
je 0x14005f1ed
test rdi, rdi
je 0x14005f0bb
mov rcx, qword [0x140174de8]
test rcx, rcx
je 0x14005f0bb
cmp qword [0x140174de0], rdi
jb 0x14005f0bb
mov r8d, edi
mov rdx, rsi
call fcn.140109100
mov rsi, qword [0x140174de8]
jmp 0x14005f0be
mov rsi, rbx
cmp byte [0x140174dc1], 0
je 0x14005f0ff
cmp rdi, 0x1e
jb 0x14005f1ed
mov eax, dword [rsi]
cmp eax, 0x4034b50
je 0x14005f0e5
cmp eax, 0xfbfcb4af
jne 0x14005f1ed
xor r8d, r8d
mov rdx, rdi
lea rcx, [0x140174de0]
call fcn.1400ab560
test al, al
je 0x14005f1ed
cmp byte [0x140174dc0], 0
je 0x14005f1be
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x50], rbx
mov r8, rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
test rdi, rdi
je 0x14005f1a5
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x80]
mov r8, rsi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1400aaaf0
test eax, eax
je 0x14005f15e
mov rbx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
jmp 0x14005f1a5
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x100c8]
mov r8d, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dil
test rbx, rbx
je 0x14005f1f5
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, rbx
call fcn.14010ec60
mov rcx, rbx
call fcn.140108f48
jmp 0x14005f1f5
test rbx, rbx
je 0x14005f1ed
xor edx, edx
mov rcx, rbx
call fcn.14010ec60
mov rcx, rbx
call fcn.140108f48
jmp 0x14005f1ed
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x100c8]
mov rdx, r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dil
jmp 0x14005f1f5
movzx edi, byte [rsp + 0x100c8]
test r14, r14
je 0x14005f203
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
sete dl
mov rcx, qword [rsp + 0x100c0]
call fcn.14003ca30
mov edi, eax
test rbp, rbp
je 0x14005f232
mov r8, r15
xor edx, edx
mov rcx, rbp
call fcn.14010ec60
mov rcx, rbp
call fcn.140108f48
mov eax, edi
mov rbx, qword [rsp + 0x100d0]
add rsp, 0x10080
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret