Function at 0x14000c540
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0xcb8]
sub rsp, 0xdb8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xc90], rax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov edx, 0x1c
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x14000ce2c
mov rdx, rax
mov qword [rsp + 0xdd8], rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
xor ecx, ecx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000ce24
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000ce24
mov qword [rsp + 0xdd0], rsi
mov edx, edi
mov ecx, 2
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14000ce1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14000ce1c
mov r8d, esi
mov qword [rsp + 0xda8], r14
mov rdx, rbx
mov rcx, rax
call fcn.140020ec0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r14d, 1
lea r8, [rsp + 0x70]
xor ebx, ebx
mov edx, r14d
mov rcx, rdi
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x14000ce5b
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x14000ce14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rbx
lea r9, [0x14002bf78]
mov qword [rsp + 0x20], rax
mov r8d, r14d
lea rcx, [0x140022490]
xor edx, edx
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14000ce50
mov rcx, qword [rsp + 0x60]
mov r8d, r14d
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x14000ce50
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x68], ebx
mov rax, qword [rcx]
call qword [rax + 0x60]
test eax, eax
js 0x14000ce50
cmp dword [rsp + 0x68], r14d
jne 0x14000ce50
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x78], rbx
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
test eax, eax
js 0x14000ce50
mov rdx, qword [rsp + 0x78]
lea r8, [rbp - 0x80]
lea rcx, [0x1400224a0]
mov qword [rbp - 0x80], rbx
call qword [sym.imp.WindowsCodecs.dll_WICConvertBitmapSource]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rdi]
mov rcx, rdi
mov rsi, qword [rbp - 0x80]
call qword [rax + 0x10]
test rsi, rsi
je 0x14000ce14
mov rax, qword [rsi]
lea r8, [rsp + 0x6c]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], ebx
mov rcx, rsi
mov dword [rsp + 0x6c], ebx
call qword [rax + 0x18]
test eax, eax
js 0x14000ce45
mov ecx, dword [rsp + 0x70]
test ecx, ecx
je 0x14000ce45
mov eax, dword [rsp + 0x6c]
test eax, eax
je 0x14000ce45
xorps xmm0, xmm0
mov dword [rbp - 0x24], ecx
neg eax
mov qword [rsp + 0xde0], r12
mov qword [rsp + 0xdb0], r13
xor ecx, ecx
movdqu xmmword [rbp - 0x14], xmm0
mov dword [rbp - 0x20], eax
mov r13d, 0x20
mov qword [rbp - 4], rbx
mov dword [rbp - 0x28], 0x28
mov qword [rbp - 0x1c], 0x200001
call qword [sym.imp.USER32.dll_GetDC]
mov dword [rsp + 0x28], ebx
lea r9, [rbp - 0x78]
mov rcx, rax
mov qword [rbp - 0x78], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x28]
mov rdi, rax
call qword [sym.imp.GDI32.dll_CreateDIBSection]
mov rdx, rdi
xor ecx, ecx
mov r12, rax
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rsi
test r12, r12
jne 0x14000c7e6
mov rax, qword [rsi]
call qword [rax + 0x10]
jmp 0x14000ce04
mov eax, dword [rsp + 0x70]
xor edx, edx
mov r10, qword [rsi]
lea r8d, [rax*4]
mov rax, qword [rbp - 0x78]
mov r9d, r8d
mov qword [rsp + 0x20], rax
imul r9d, dword [rsp + 0x6c]
call qword [r10 + 0x38]
test eax, eax
mov rcx, rsi
mov rax, qword [rsi]
js 0x14000c7de
mov qword [rsp + 0xda0], r15
call qword [rax + 0x10]
mov rax, qword [sym.imp.USER32.dll_DefWindowProcA]
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x20], xmm0
mov edx, 0x7f00
movdqa xmmword [rbp + 0x40], xmm1
xor ecx, ecx
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x30], rbx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x10]
lea rax, str.Splash
mov qword [rbp + 0x50], rax
call qword [sym.imp.USER32.dll_RegisterClassA]
mov rdx, qword [rbp + 0x50]
mov r9d, 0x90000080
mov qword [rsp + 0x58], rbx
xor r8d, r8d
mov qword [rsp + 0x50], rbx
mov ecx, 0x80000
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea r8, [rbp - 0x70]
mov edx, r13d
mov rcx, r12
mov r15, rax
call qword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [rbp - 0x6c]
mov edx, r14d
mov dword [rsp + 0x60], ecx
mov ecx, dword [rbp - 0x68]
mov dword [rsp + 0x64], ecx
mov rcx, rbx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.USER32.dll_MonitorFromPoint]
xor ecx, ecx
lea rdx, [rbp - 0x50]
xorps xmm0, xmm0
mov qword [rbp - 0x30], rcx
movups xmmword [rbp - 0x50], xmm0
mov rcx, rax
mov dword [rbp - 0x50], 0x28
movups xmmword [rbp - 0x40], xmm0
call qword [sym.imp.USER32.dll_GetMonitorInfoA]
mov eax, dword [rbp - 0x34]
xor ecx, ecx
sub eax, dword [rbp - 0x3c]
sub eax, dword [rsp + 0x60]
cdq
sub eax, edx
sar eax, 1
add eax, dword [rbp - 0x3c]
mov dword [rbp - 0x80], eax
mov eax, dword [rbp - 0x30]
sub eax, dword [rbp - 0x38]
sub eax, dword [rsp + 0x64]
cdq
sub eax, edx
sar eax, 1
add eax, dword [rbp - 0x38]
mov dword [rbp - 0x7c], eax
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r14, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rcx, rax
mov rdx, r12
mov rsi, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x68], ebx
mov rdi, rax
mov word [rsp + 0x6a], 0x1ff
mov dword [rsp + 0x40], 2
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x80]
mov rdx, r14
mov qword [rsp + 0x20], rsi
mov rcx, r15
call qword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
lea rsi, str.TEMPonefile_PID_splash_feedback.tmp
mov qword [0x140030de0], r15
mov qword [rsp + 0x60], rsi
lea rdi, [0x140053e50]
mov r14d, 0x1000
mov word [0x140053e50], bx
mov rax, rbx
mov ecx, 0x7b
cmp cx, 0x7b
jne 0x14000c9fb
lea rax, [rbp + 0x90]
mov word [rbp + 0x90], bx
jmp 0x14000cda7
movzx ecx, word [rsi]
cmp cx, 0x7d
jne 0x14000cd86
lea rdx, [0x14002a7d8]
mov word [rax], bx
lea rcx, [rbp + 0x90]
xor r13b, r13b
call fcn.140014ed0
test eax, eax
jne 0x14000ca39
mov rdx, rdi
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r13b, 1
jmp 0x14000cd4c
lea rdx, [0x14002a7e8]
lea rcx, [rbp + 0x90]
call fcn.140014ed0
test eax, eax
jne 0x14000caac
mov rsi, r14
call fcn.140010c24
mov rcx, qword [rax]
mov rax, rdi
mov rdx, qword [rcx]
cmp word [rdi], bx
je 0x14000ca7c
nop word [rax + rax]
add rax, 2
dec rsi
cmp word [rax], bx
jne 0x14000ca70
movzx ecx, word [rdx]
test cx, cx
je 0x14000caa4
cmp rsi, 1
jb 0x14000ce66
add rdx, 2
mov word [rax], cx
add rax, 2
dec rsi
movzx ecx, word [rdx]
test cx, cx
jne 0x14000ca84
mov word [rax], bx
jmp 0x14000cd47
lea rdx, str.PROGRAM_BASE
lea rcx, [rbp + 0x90]
call fcn.140014ed0
test eax, eax
jne 0x14000cb38
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdi + rax*2], bx
jne 0x14000cad0
mov r8, r14
lea rdx, str.PROGRAM
sub r8, rax
mov rcx, rdi
call fcn.14000a730
test al, al
je 0x14000cdfc
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdi + rax*2], bx
jne 0x14000cb00
cmp rax, 4
jb 0x14000cd4c
lea rsi, [rdi + rax*2]
lea rcx, [rsi - 8]
lea rdx, str..exe
call fcn.140014ed0
test eax, eax
jne 0x14000cd47
mov word [rsi - 8], bx
jmp 0x14000cd47
lea rdx, [0x14002a848]
lea rcx, [rbp + 0x90]
call fcn.140014ed0
test eax, eax
jne 0x14000cc0c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x14002a7d4]
mov edx, 0x80
mov r9d, eax
lea rcx, [rbp + 0x10]
call fcn.140001060
lea r12, [rbp + 0x10]
mov r15, r14
mov rsi, rdi
cmp word [rdi], bx
je 0x14000cb8c
add rsi, 2
dec r15
cmp word [rsi], bx
jne 0x14000cb80
movzx eax, byte [rbp + 0x10]
test al, al
je 0x14000cd47
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x6c], al
lea rdx, [rsp + 0x6c]
mov byte [rsp + 0x6d], bl
lea rcx, [rsp + 0x68]
call fcn.1400109b0
cmp rax, 1
jne 0x14000ce6c
mov rax, r15
mov rcx, rsi
cmp word [rsi], bx
je 0x14000cbde
add rcx, 2
dec rax
cmp word [rcx], bx
jne 0x14000cbd2
cmp rax, 1
jb 0x14000ce6c
movzx eax, word [rsp + 0x68]
inc r12
mov word [rcx], ax
add rsi, 2
dec r15
mov word [rcx + 2], bx
movzx eax, byte [r12]
test al, al
jne 0x14000cba0
jmp 0x14000cd47
lea rdx, [0x14002a850]
lea rcx, [rbp + 0x90]
call fcn.140014ed0
test eax, eax
jne 0x14000cc2a
mov edx, 0x28
jmp 0x14000cc46
lea rdx, str.CACHE_DIR
lea rcx, [rbp + 0x90]
call fcn.140014ed0
test eax, eax
jne 0x14000cc61
mov edx, 0x1c
mov r8, r14
mov rcx, rdi
call fcn.14000a670
test al, al
je 0x14000cdfc
mov r13b, 1
jmp 0x14000cd4c
lea rdx, str.TIME
lea rcx, [rbp + 0x90]
call fcn.140014ed0
test eax, eax
jne 0x14000cdfc
lea rcx, [rbp - 0x78]
mov qword [rbp - 0x78], rbx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rbp - 0x78]
lea r8, str._lld
mov edx, 0x400
lea rcx, [rbp + 0x890]
call fcn.140001060
lea r12, [rbp + 0x890]
mov r15, r14
mov rsi, rdi
cmp word [rdi], bx
je 0x14000cccc
nop dword [rax + rax]
add rsi, 2
dec r15
cmp word [rsi], bx
jne 0x14000ccc0
movzx eax, byte [rbp + 0x890]
test al, al
je 0x14000cd47
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x70], al
lea rdx, [rsp + 0x70]
mov byte [rsp + 0x71], bl
lea rcx, [rsp + 0x78]
call fcn.1400109b0
cmp rax, 1
jne 0x14000ce72
mov rcx, r15
mov rax, rsi
cmp word [rsi], bx
je 0x14000cd1e
add rax, 2
dec rcx
cmp word [rax], bx
jne 0x14000cd12
cmp rcx, 1
jb 0x14000ce72
movzx ecx, word [rsp + 0x78]
inc r12
mov word [rax], cx
add rsi, 2
mov word [rax + 2], bx
dec r15
movzx eax, byte [r12]
test al, al
jne 0x14000cce0
mov rsi, qword [rsp + 0x60]
cmp word [rdi], bx
je 0x14000cd5d
add rdi, 2
dec r14
cmp word [rdi], bx
jne 0x14000cd51
test r13b, r13b
je 0x14000cd81
cmp word [rdi - 2], 0x5c
jne 0x14000cd81
nop dword [rax]
sub rdi, 2
inc r14
mov word [rdi], bx
cmp word [rdi - 2], 0x5c
je 0x14000cd70
mov rax, rbx
jmp 0x14000cda7
test rax, rax
je 0x14000cd94
mov word [rax], cx
add rax, 2
jmp 0x14000cda7
cmp r14, 1
jb 0x14000cdfc
mov word [rdi], cx
add rdi, 2
dec r14
mov word [rdi], bx
movzx ecx, word [rsi + 2]
add rsi, 2
mov qword [rsp + 0x60], rsi
test cx, cx
jne 0x14000c9e2
mov qword [rsp + 0x30], rbx
lea rcx, [0x140053e50]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov r8d, 2
mov word [rdi], bx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x140030dd4], 1
mov r15, qword [rsp + 0xda0]
mov r13, qword [rsp + 0xdb0]
mov r12, qword [rsp + 0xde0]
mov r14, qword [rsp + 0xda8]
mov rsi, qword [rsp + 0xdd0]
mov rdi, qword [rsp + 0xdd8]
mov rcx, qword [rbp + 0xc90]
xor rcx, rsp
call fcn.14000ce90
add rsp, 0xdb8
pop rbx
pop rbp
ret
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
jmp 0x14000ce14
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
jmp 0x14000ce14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14000ce14
call fcn.140010674
int3
call fcn.140010674
int3
call fcn.140010674
int3