Function at 0x140151700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xc0
mov rax, qword [0x1402ba040]
xor rax, rsp
mov qword [rbp + 7], rax
mov r15d, dword [rbp + 0x77]
xor r13d, r13d
mov esi, dword [rbp + 0x7f]
mov ebx, r9d
mov qword [rbp - 0x11], r8
lea r9, [rbp - 0x31]
mov qword [rbp - 9], rdx
mov rdi, rcx
lea r8d, [r13 + 3]
mov qword [rbp - 0x39], r13
lea rdx, [rbp - 0x11]
mov qword [rbp - 0x41], r13
xor r12b, r12b
mov qword [rbp - 0x61], r13
mov r14d, r13d
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x51], r13
mov dword [rbp - 0x59], r13d
mov dword [rbp - 0x55], r13d
mov qword [rbp - 1], r13
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
nop word [rax + rax]
test eax, eax
js 0x140151adb
lfence
mov rdx, qword [rbp - 0x31]
lea r9, [rbp - 0x69]
lea r8, [rbp - 0x29]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x140151adb
call fcn.140151460
mov rdi, rax
test rax, rax
je 0x140151adb
mov rcx, qword [rax]
lea rdx, [rbp - 0x41]
mov rax, qword [rcx + 0x70]
mov rcx, rdi
call qword [case.0x14013b5a0.0]
test eax, eax
js 0x140151adb
mov rcx, qword [rbp - 0x41]
mov r8d, dword [rbp - 0x69]
mov rdx, qword [rbp - 0x29]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x14013b5a0.0]
test eax, eax
js 0x140151adb
lfence
sub ebx, 1
je 0x14015183a
sub ebx, 1
je 0x140151831
sub ebx, 1
je 0x140151828
cmp ebx, 1
je 0x14015181f
lea rdx, [0x140285948]
jmp 0x140151841
lea rdx, [0x140285968]
jmp 0x140151841
lea rdx, [0x140285908]
jmp 0x140151841
lea rdx, [0x140285918]
jmp 0x140151841
lea rdx, [0x140285928]
mov rax, qword [rdi]
lea r9, [rbp - 0x49]
lea r8, [0x140285988]
mov rcx, rdi
mov rax, qword [rax + 0x38]
call qword [case.0x14013b5a0.0]
nop dword [rax]
test eax, eax
js 0x140151adb
mov rcx, qword ds:[rbp - 0x49]
xor r8d, r8d
mov rdx, qword [rbp - 0x41]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x14013b5a0.0]
test eax, eax
js 0x140151adb
mov rcx, qword ds:[rbp - 0x49]
lea r8, [rbp - 0x51]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x14013b5a0.0]
test eax, eax
js 0x140151adb
mov rcx, qword ds:[rbp - 0x51]
lea rdx, [rbp - 0x21]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x14013b5a0.0]
test eax, eax
js 0x140151adb
mov rax, qword [rbp - 0x21]
cmp rax, qword [0x140285938]
jne 0x140151913
mov rax, qword [rbp - 0x19]
cmp rax, qword [0x140285940]
jne 0x140151913
mov rcx, qword ds:[rbp - 0x51]
lea r8, [rbp - 0x61]
lea rdx, [0x14020cab0]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x14013b5a0.0]
test eax, eax
js 0x140151adb
jmp 0x1401519a6
lfence
mov rax, qword [rdi]
lea rdx, [rbp - 0x69]
mov qword [rbp - 0x69], r13
mov rcx, rdi
mov rax, qword [rax + 0x50]
call qword [case.0x14013b5a0.0]
test eax, eax
js 0x140151adb
mov rcx, qword [rbp - 0x69]
lea r8, [0x140285938]
mov rdx, qword [rbp - 0x51]
xorps xmm0, xmm0
mov dword [rsp + 0x30], r13d
xor r9d, r9d
movsd qword [rsp + 0x28], xmm0
mov rax, qword [rcx]
mov qword [rsp + 0x20], r13
mov rax, qword [rax + 0x40]
call qword [case.0x14013b5a0.0]
mov rcx, qword [rbp - 0x69]
test eax, eax
mov rax, qword [rcx]
js 0x140151ad1
mov rax, qword [rax]
lea r8, [rbp - 0x61]
lea rdx, [0x14020cab0]
call qword [case.0x14013b5a0.0]
test eax, eax
js 0x140151adb
mov rcx, qword ds:[rbp - 0x69]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14013b5a0.0]
lea r8, [rbp - 0x39]
mov edx, esi
mov ecx, r15d
call fcn.1401513c0
mov r14, rax
test rax, rax
je 0x140151adb
mov rcx, qword ds:[rbp - 0x61]
lea r8, [rbp - 0x55]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x18]
lea rdx, [rbp - 0x59]
call qword [case.0x14013b5a0.0]
test eax, eax
js 0x140151a36
cmp dword [rbp - 0x59], r15d
jne 0x140151a36
cmp dword [rbp - 0x55], esi
jne 0x140151a36
mov rdx, qword ds:[rbp - 0x39]
lea r8d, [r15*4]
mov rcx, qword [rbp - 0x61]
mov qword [rsp + 0x20], rdx
xor edx, edx
imul esi, r15d
mov rax, qword [rcx]
shl esi, 2
mov rax, qword [rax + 0x38]
mov r9d, esi
call qword [case.0x14013b5a0.0]
mov r12d, eax
shr r12d, 0x1f
xor r12b, 1
jmp 0x140151adb
lfence
mov rax, qword [rdi]
lea rdx, [rbp - 0x69]
mov qword [rbp - 0x69], r13
mov rcx, rdi
mov rax, qword [rax + 0x58]
call qword [case.0x14013b5a0.0]
test eax, eax
js 0x140151adb
mov rcx, qword ds:[rbp - 0x69]
mov r9d, esi
cmp dword [0x1402baf40], 0x64
mov r8d, r15d
sbb edx, edx
mov rax, qword [rcx]
add edx, 4
mov dword [rsp + 0x20], edx
mov rdx, qword [rbp - 0x61]
mov rax, qword [rax + 0x40]
call qword [case.0x14013b5a0.0]
test eax, eax
js 0x140151aca
lfence
mov rdx, qword [rbp - 0x39]
lea r8d, [r15*4]
mov rcx, qword [rbp - 0x69]
mov qword [rsp + 0x20], rdx
xor edx, edx
imul esi, r15d
mov rax, qword [rcx]
shl esi, 2
mov rax, qword [rax + 0x38]
mov r9d, esi
call qword [case.0x14013b5a0.0]
movzx r12d, r12b
mov edx, 1
test eax, eax
cmovns r12d, edx
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14013b5a0.0]
mov rcx, qword ds:[rbp - 0x61]
test rcx, rcx
je 0x140151af2
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14013b5a0.0]
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x140151b08
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14013b5a0.0]
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140151b1e
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14013b5a0.0]
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140151b34
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14013b5a0.0]
test r12b, r12b
jne 0x140151b4b
test r14, r14
je 0x140151b47
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
jmp 0x140151b4e
mov rax, r14
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1401e0100
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret