Function at 0x140004f00
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 [0x1402ba040]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, rcx
mov byte [rsp + 0x20], 1
xor esi, esi
lea r9, [0x1402332cc]
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 0x140004f5a
mov al, 1
jmp 0x140005169
mov qword [rsp + 0x110], rdi
mov qword [rsp + 0xc0], r14
mov r14d, 0xffffffff
mov rdi, qword [0x1402c4fc8]
lea rdx, [0x1402363c0]
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 0x140005130
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 0x140005130
mov rdx, qword [rbp - 0x59]
lea rax, [rbp - 0x49]
lea r9, [0x14001fe40]
mov qword [rsp + 0x20], rax
mov r8, r15
mov rcx, rdi
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
cmp rax, 1
jne 0x140005130
test rbx, rbx
je 0x14000505e
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 0x14000505e
call fcn.14013fb00
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 0x14000512d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000509b
xor ecx, ecx
call sym.SystemInformer.exe_QiGetNtMessage
jmp 0x1400050a5
mov ecx, eax
call sym.SystemInformer.exe_QiGetWin32Message
mov rdi, rax
mov r8d, 0xfffe
mov rcx, r15
test rax, rax
je 0x1400050f6
mov rax, qword [rax + 8]
lea r9, str.Unable_to_connect_to_the_session
mov qword [rsp + 0x28], rax
mov edx, 0x21
lea rax, [0x140236d98]
mov qword [rsp + 0x20], rax
call sym.SystemInformer.exe_QiShowMessage2
mov esi, eax
lea rcx, [rdi - 0x10]
mov edx, r14d
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140005121
call fcn.14013fb00
jmp 0x140005121
lea rax, str.Unable_to_connect_to_the_session
mov edx, 9
mov qword [rsp + 0x28], rax
lea r9, [0x1402332cc]
lea rax, [0x140236d98]
mov qword [rsp + 0x20], rax
call sym.SystemInformer.exe_QiShowMessage2
mov esi, eax
cmp esi, 1
jne 0x140005130
xor esi, esi
jmp 0x140004f70
mov r13b, 1
test rbx, rbx
je 0x140005155
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 0x140005155
call fcn.14013fb00
mov r14, qword [rsp + 0xc0]
movzx eax, r13b
mov rdi, qword [rsp + 0x110]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1401e0100
add rsp, 0xc8
pop r15
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret