Function at 0x7ff7c008de50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
push rbp
push rsi
lea rbp, [r11 - 0x68]
sub rsp, 0x158
mov rax, qword [0x7ff7c01ca008]
xor rax, rsp
mov qword [rbp + 0x10], rax
movzx eax, byte [rbp + 0x90]
xor esi, esi
mov qword [r11 - 0x18], rbx
xorps xmm0, xmm0
mov qword [r11 - 0x20], rdi
mov rbx, rcx
mov qword [r11 - 0x30], r13
xor dil, dil
mov byte [rsp + 0x44], al
mov r13d, esi
xor eax, eax
mov qword [r11 - 0x38], r14
mov qword [rbp - 0x28], rax
mov r14d, esi
mov dword [rbp - 0x20], eax
lea rax, [0x7ff7c0185388]
mov dword [rbp - 0x50], edx
lea rdx, [rbp - 8]
mov dword [rbp - 0x4c], r8d
lea r8d, [rsi + 3]
mov qword [rbp], r9
lea r9, [rbp - 0x68]
mov qword [r11 - 0x40], r15
mov r15d, esi
mov qword [rbp - 8], rax
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x50], esi
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x70], rsi
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x80], rsi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x58], rsi
mov qword [rbp + 8], rsi
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
nop dword [rax + rax]
test eax, eax
js 0x7ff7c008e16f
mov rdx, qword [rbp - 0x68]
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_LdrAccessResource]
nop dword [rax]
test eax, eax
js 0x7ff7c008e16f
mov rcx, qword [0x7ff7c01d3cd0]
lea edx, [rsi + 4]
mov rdi, qword [rbp - 0x60]
mov qword [rsp + 0x140], r12
mov r12d, dword [rbp - 0x78]
mov r8d, r12d
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
mov r8d, r12d
mov rdx, rdi
mov rcx, rax
mov r14, rax
call fcn.7ff7c0125120
lea rcx, [0x7ff7c0185390]
call fcn.7ff7c00c47c0
test rax, rax
jne 0x7ff7c008df8f
lea rcx, [0x7ff7c0185390]
call qword [sym.imp.kernel32.dll_LoadLibraryW]
test rax, rax
je 0x7ff7c008dfb8
lea r9, [rsp + 0x48]
mov rcx, rax
lea r8, [0x7ff7c01479b0]
lea rdx, [0x7ff7c01853d8]
call fcn.7ff7c00c5bf0
nop word [rax + rax]
test eax, eax
js 0x7ff7c008e163
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
call qword [case.0x7ff7c00c1f48.0]
nop
test eax, eax
js 0x7ff7c008e163
mov rcx, qword ds:[rbp - 0x80]
mov r8d, r12d
mov rdx, r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x7ff7c00c1f48.0]
test eax, eax
js 0x7ff7c008e163
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, [0x7ff7c01853c8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [case.0x7ff7c00c1f48.0]
test eax, eax
js 0x7ff7c008e163
mov rcx, qword [rsp + 0x68]
mov r12d, 1
mov rdx, qword [rbp - 0x80]
mov r8d, r12d
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x7ff7c00c1f48.0]
test eax, eax
js 0x7ff7c008e163
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [case.0x7ff7c00c1f48.0]
test eax, eax
js 0x7ff7c008e163
nop dword [rax]
cmp dword [rsp + 0x50], r12d
jb 0x7ff7c008e163
mov rcx, qword ds:[rsp + 0x68]
lea r8, [rsp + 0x60]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x7ff7c00c1f48.0]
test eax, eax
js 0x7ff7c008e163
mov rcx, qword ds:[rsp + 0x60]
lea rdx, [rbp - 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x7ff7c00c1f48.0]
test eax, eax
js 0x7ff7c008e163
cmp byte [rsp + 0x44], sil
lea rax, [0x7ff7c01853b8]
lea rbx, [0x7ff7c01853e8]
cmovne rbx, rax
mov rax, qword [rbp - 0x18]
cmp rax, qword [rbx]
jne 0x7ff7c008e0f7
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbx + 8]
jne 0x7ff7c008e0f7
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
jmp 0x7ff7c008e296
mov rcx, qword ds:[rsp + 0x48]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], rsi
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [case.0x7ff7c00c1f48.0]
test eax, eax
js 0x7ff7c008e163
mov rcx, qword [rsp + 0x58]
xorps xmm0, xmm0
mov rdx, qword [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x30], esi
mov r8, rbx
movsd qword [rsp + 0x28], xmm0
mov rax, qword [rcx]
mov qword [rsp + 0x20], rsi
mov rax, qword [rax + 0x40]
call qword [case.0x7ff7c00c1f48.0]
mov rcx, qword [rsp + 0x58]
test eax, eax
mov rax, qword [rcx]
jns 0x7ff7c008e257
mov rax, qword [rax + 0x10]
call qword [case.0x7ff7c00c1f48.0]
mov edi, dword [rsp + 0x40]
mov r12, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x150]
test rcx, rcx
je 0x7ff7c008e18e
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x7ff7c00c1f48.0]
nop
test r13, r13
je 0x7ff7c008e19e
mov rcx, r13
call qword [sym.imp.GDI32.dll_DeleteDC]
mov r13, qword [rsp + 0x138]
test r15, r15
je 0x7ff7c008e1b6
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x128]
test rcx, rcx
je 0x7ff7c008e1d6
mov rax, qword ds:[rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x7ff7c00c1f48.0]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x7ff7c008e1ec
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x7ff7c00c1f48.0]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x7ff7c008e203
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x7ff7c00c1f48.0]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x7ff7c008e21a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x7ff7c00c1f48.0]
test r14, r14
je 0x7ff7c008e236
mov rcx, qword [0x7ff7c01d3cd0]
mov r8, r14
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r14, qword [rsp + 0x130]
test dil, dil
mov rdi, qword [rsp + 0x148]
je 0x7ff7c008e389
mov rax, rsi
jmp 0x7ff7c008e398
mov rax, qword [rax]
lea r8, [rsp + 0x78]
lea rdx, [0x7ff7c01479a0]
call qword [case.0x7ff7c00c1f48.0]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x7ff7c00c1f48.0]
mov rcx, qword ds:[rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x7ff7c00c1f48.0]
mov eax, dword [rbp - 0x50]
xor ecx, ecx
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x4c]
neg eax
mov dword [rbp - 0x48], 0x28
mov dword [rbp - 0x40], eax
mov qword [rbp - 0x3c], 0x200001
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r15, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea r9, [rbp - 0x70]
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, [rbp - 0x48]
mov rcx, r15
mov r13, rax
call qword [sym.imp.GDI32.dll_CreateDIBSection]
mov rcx, qword [rsp + 0x48]
mov rsi, rax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x58]
lea rdx, [rsp + 0x70]
call qword [case.0x7ff7c00c1f48.0]
test eax, eax
js 0x7ff7c008e163
mov rcx, qword ds:[rsp + 0x70]
mov r9d, dword [rbp - 0x4c]
mov r8d, dword [rbp - 0x50]
mov dword [rsp + 0x20], 3
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x40]
mov rdx, qword [rsp + 0x78]
call qword [case.0x7ff7c00c1f48.0]
test eax, eax
js 0x7ff7c008e163
mov r8d, dword ds:[rbp - 0x50]
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rsp + 0x70]
mov r9d, dword [rbp - 0x4c]
imul r9d, r8d
lea r8d, [r8*4]
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x58]
mov rax, qword [rcx]
shl r9d, 2
mov rax, qword [rax + 0x38]
call qword [case.0x7ff7c00c1f48.0]
mov edi, dword [rsp + 0x40]
test eax, eax
movzx edi, dil
cmovns edi, r12d
jmp 0x7ff7c008e167
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.7ff7c0121390
add rsp, 0x158
pop rsi
pop rbp
ret