Function at 0x140004ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xc8
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, rcx
mov byte [rsp + 0x20], 1
xor esi, esi
lea r9, [0x140231658]
xor ecx, ecx
mov qword [rbp - 0x51], rsi
mov r8d, 0xffffffff
mov ebx, esi
mov r12d, edx
xor r13b, r13b
call qword [sym.imp.WINSTA.dll_WinStationConnectW]
test al, al
je 0x140004cfa
mov al, 1
jmp 0x140004f09
mov qword [rsp + 0x110], rdi
mov qword [rsp + 0xc0], r14
mov r14d, 0xffffffff
mov rdi, qword [0x1402bfd08]
lea rdx, [0x140232280]
lea rcx, str.Connect_to_session
mov qword ds:[rbp - 0x41], rdx
mov qword [rbp - 0x49], rcx
lea rax, [rbp - 0x51]
lea rdx, [rbp + 7]
mov qword [rbp - 0x31], 0
mov rcx, rdi
mov qword [rbp - 0x21], 2
lea r9, [rbp - 0x61]
mov qword [rbp - 1], rsi
mov r8d, 3
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov qword [rbp + 7], 5
mov qword [rbp + 0xf], 0x9b
mov qword [rbp + 0x17], rsi
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x140004ed0
lfence
mov rdx, qword [rbp - 0x61]
lea r9, [rbp - 0x65]
lea r8, [rbp - 0x59]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x140004ed0
mov rdx, qword [rbp - 0x59]
lea rax, [rbp - 0x49]
lea r9, [0x14001fd00]
mov qword [rsp + 0x20], rax
mov r8, r15
mov rcx, rdi
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
cmp rax, 1
jne 0x140004ed0
test rbx, rbx
je 0x140004dfe
mov rdi, qword [rbx + 8]
xor eax, eax
mov rcx, qword [rbx]
rep stosb byte [rdi], al
lea rcx, [rbx - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140004dfe
call fcn.14013d2a0
mov rbx, qword [rbp - 0x51]
mov r8d, 0xffffffff
mov edx, r12d
mov byte [rsp + 0x20], 1
xor ecx, ecx
mov r9, qword [rbx + 8]
call qword [sym.imp.WINSTA.dll_WinStationConnectW]
nop dword [rax]
test al, al
jne 0x140004ecd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004e3b
xor ecx, ecx
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x140004e45
mov ecx, eax
call sym.SystemInformer.exe_PhGetWin32Message
mov rdi, rax
mov r8d, 0xfffe
mov rcx, r15
test rax, rax
je 0x140004e96
mov rax, qword [rax + 8]
lea r9, str.Unable_to_connect_to_the_session
mov qword [rsp + 0x28], rax
mov edx, 0x21
lea rax, [0x140232c58]
mov qword [rsp + 0x20], rax
call sym.SystemInformer.exe_PhShowMessage2
mov esi, eax
lea rcx, [rdi - 0x10]
mov edx, r14d
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140004ec1
call fcn.14013d2a0
jmp 0x140004ec1
lea rax, str.Unable_to_connect_to_the_session
mov edx, 9
mov qword [rsp + 0x28], rax
lea r9, [0x140231658]
lea rax, [0x140232c58]
mov qword [rsp + 0x20], rax
call sym.SystemInformer.exe_PhShowMessage2
mov esi, eax
cmp esi, 1
jne 0x140004ed0
xor esi, esi
jmp 0x140004d10
mov r13b, 1
test rbx, rbx
je 0x140004ef5
mov rdi, qword [rbx + 8]
xor eax, eax
mov rcx, qword [rbx]
rep stosb byte [rdi], al
lea rcx, [rbx - 0x10]
lock xadd dword [rcx + 8], r14d
cmp r14d, 1
jne 0x140004ef5
call fcn.14013d2a0
mov r14, qword [rsp + 0xc0]
movzx eax, r13b
mov rdi, qword [rsp + 0x110]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1401dd6a0
add rsp, 0xc8
pop r15
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret