Function at 0x140005d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov r15, rcx
mov ecx, 0x10000
movzx edi, dl
call fcn.140024a2c
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.140006410
xor ebx, ebx
lea rcx, [0x140000000]
mov r8d, ebx
nop dword [rax + rax]
movzx eax, byte [r8 + rcx + 0xbac60]
inc r8
mov byte [rsp + r8 + 0x3f], al
movzx eax, byte [r8 + rcx + 0xbac67]
mov byte [rsp + r8 + 0x47], al
cmp r8, 8
jl 0x140005dc0
mov ebp, 4
lea rdx, str.AU3_
lea rcx, [rsp + 0x50]
mov r8d, ebp
call fcn.140024af0
cmp qword [r15 + 0x10], rbx
jne 0x140005f2c
mov qword [rsp + 0xa8], r12
cmp byte [r15 + 0x20], bl
jne 0x1400432f9
mov rcx, qword [r15]
call fcn.140029b60
mov r12d, eax
mov rdi, qword [rsp + 0x30]
nop word [rax + rax]
cmp byte [r15 + 0x20], bl
jne 0x140005faf
mov ecx, 0x10000
mov rax, qword [r15]
movsxd r9, ecx
mov r8d, 1
mov rdx, rdi
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140005fec
mov r13, rax
cmp eax, 0x18
jl 0x140005f02
lea ecx, [rax - 0x14]
mov r11d, ebx
movsxd rsi, ecx
test ecx, ecx
jle 0x140005eca
mov rax, qword [rsp + 0x30]
lea r14, [rsp + 0x42]
mov rdi, 0xfffffffffffffffe
neg r14
lea rcx, [rax + 2]
sub rdi, rax
nop
mov r9d, ebx
mov r10, rbx
lea r8, [rsp + 0x40]
lea rax, [r14 + rcx]
add r8, r10
movzx edx, byte [rax + r8]
cmp byte [r8], dl
je 0x140005ef1
cmp r9d, 0x14
je 0x140043340
inc rcx
inc r11d
lea rax, [rdi + rcx]
cmp rax, rsi
jl 0x140005e90
mov rdi, qword [rsp + 0x30]
cmp byte [r15 + 0x20], bl
jne 0x140005f02
mov rdx, qword [r15]
mov r9d, 1
add r12d, 0xffffffec
lea r8d, [r9 - 0x15]
mov rcx, r15
add r12d, r13d
call fcn.140005fc4
jmp 0x140005e30
movzx eax, byte [rcx + r10 - 1]
cmp byte [r8 + 1], al
je 0x140005f77
inc r9d
jmp 0x140005eac
mov ebp, 3
mov ebx, ebp
lea rcx, [rsp + 0x30]
call fcn.1400063e4
mov r12, qword [rsp + 0xa8]
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
test dil, dil
je 0x1400432eb
lea r8, [r15 + 0x18]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x140005e08
mov rcx, qword [r15 + 0x10]
xor r9d, r9d
lea r8, [0x1400ab2d8]
lea edx, [r9 + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
je 0x140005e08
jmp 0x140043270
movzx eax, byte [rcx + r10]
cmp byte [r8 + 2], al
je 0x140005f8b
add r9d, 2
jmp 0x140005eac
movzx eax, byte [rcx + r10 + 1]
cmp byte [r8 + 3], al
jne 0x140005fb9
movzx eax, byte [rcx + r10 + 2]
cmp byte [r8 + 4], al
je 0x140043329
add r9d, ebp
jmp 0x140005eac
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
jmp 0x140005e3f
add r9d, 3
jmp 0x140005eac
mov rcx, qword [r15 + 0x10]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140005e08
mov rcx, qword [r15 + 0x10]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140005e08
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140005e08
mov rcx, qword [r15 + 0x18]
xor r9d, r9d
mov r8d, edi
mov r10, qword [rcx]
mov rdx, rax
call qword [r10 + reloc.OLEAUT32.dll_RegisterActiveObject]
mov rcx, qword [r15 + 0x18]
xor r9d, r9d
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0xb0], rbx
call qword [rax + SafeArrayCreateEx]
mov byte [r15 + 0x20], 1
jmp 0x140005e08
mov rcx, r15
call fcn.140079c84
nop
jmp 0x140005e08
mov rcx, qword [r15 + 0x18]
lea r9, [rsp + 0xb8]
mov r8d, 1
mov rax, qword [rcx]
mov rdx, rbx
mov qword [rsp + 0xb0], rbx
call qword [rax + SafeArrayCreateEx]
mov r12d, dword [rsp + 0xb8]
jmp 0x140005e25
add r10, 5
add r9d, 5
cmp r10, 0x14
jl 0x140005e96
jmp 0x140005eac
mov rdx, qword [r15]
lea r8d, [r11 + 0x14]
xor r9d, r9d
add r8d, r12d
mov rcx, r15
call fcn.140005fc4
mov rax, qword [r15]
lea rdx, [rsp + 0xa0]
mov r9d, 1
mov r8, rbp
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140005fec
cmp dword [rsp + 0xa0], 0x36304145
jne 0x140005f07
jmp 0x140005f09