Function at 0x140004ee0
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 [0x1402bb040]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, rcx
mov byte [rsp + 0x20], 1
xor esi, esi
lea r9, [0x14023aad8]
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 0x140004f3a
mov al, 1
jmp 0x140005149
mov qword [rsp + 0x110], rdi
mov qword [rsp + 0xc0], r14
mov r14d, 0xffffffff
mov rdi, qword [0x1402c6000]
lea rdx, [0x14023b620]
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 0x140005110
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 0x140005110
mov rdx, qword [rbp - 0x59]
lea rax, [rbp - 0x49]
lea r9, [0x140021b60]
mov qword [rsp + 0x20], rax
mov r8, r15
mov rcx, rdi
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
cmp rax, 1
jne 0x140005110
test rbx, rbx
je 0x14000503e
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 0x14000503e
call fcn.140143da0
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 0x14000510d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000507b
xor ecx, ecx
call sym.SystemInformer.exe_Ordinal_1660
jmp 0x140005085
mov ecx, eax
call sym.SystemInformer.exe_Ordinal_1670
mov rdi, rax
mov r8d, 0xfffe
mov rcx, r15
test rax, rax
je 0x1400050d6
mov rax, qword [rax + 8]
lea r9, str.Unable_to_connect_to_the_session
mov qword [rsp + 0x28], rax
mov edx, 0x21
lea rax, [0x14023c43c]
mov qword [rsp + 0x20], rax
call sym.SystemInformer.exe_Ordinal_1699
mov esi, eax
lea rcx, [rdi - 0x10]
mov edx, r14d
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140005101
call fcn.140143da0
jmp 0x140005101
lea rax, str.Unable_to_connect_to_the_session
mov edx, 9
mov qword [rsp + 0x28], rax
lea r9, [0x14023aad8]
lea rax, [0x14023c43c]
mov qword [rsp + 0x20], rax
call sym.SystemInformer.exe_Ordinal_1699
mov esi, eax
cmp esi, 1
jne 0x140005110
xor esi, esi
jmp 0x140004f50
mov r13b, 1
test rbx, rbx
je 0x140005135
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 0x140005135
call fcn.140143da0
mov r14, qword [rsp + 0xc0]
movzx eax, r13b
mov rdi, qword [rsp + 0x110]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0xc8
pop r15
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret