Function at 0x140047d60
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x710
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rsp + 0x700], rax
xor r14d, r14d
mov ebp, edx
xor ebx, ebx
mov r15, rcx
mov rcx, qword [str._0_n_]
lea rdi, str._0_n_
cmp rcx, rdi
je 0x140047dc9
test byte [rcx + 0x1c], 4
je 0x140047dc9
cmp byte [rcx + 0x19], 5
jb 0x140047dc9
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x2e]
lea r8, [0x1400940c0]
call fcn.14000459c
mov ecx, 0x50
call fcn.14006a264
mov rsi, rax
test rax, rax
jne 0x140047e13
mov rcx, qword [str._0_n_]
cmp rcx, rdi
je 0x140047e09
test byte [rcx + 0x1c], 4
je 0x140047e09
lea edi, [rax + 2]
cmp byte [rcx + 0x19], dil
jb 0x140047e09
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x2f]
lea r8, [0x1400940c0]
call fcn.14000459c
mov eax, 8
jmp 0x140048247
mov edi, 0x50
xor edx, edx
mov r8d, edi
mov rcx, rsi
call sub.msvcrt.dll_memset
lea rcx, [0x1400a7500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov dword [rsi], edi
mov edi, 2
mov eax, dword [0x1400a75e0]
mov dword [rsi + 0x40], eax
mov eax, dword [0x1400a75c0]
mov dword [rsi + 0x20], eax
mov eax, dword [0x1400a75a4]
mov dword [rsi + 4], eax
mov eax, dword [0x1400a75a8]
and qword [rsi + 0x10], rbx
mov dword [rsi + 8], eax
mov rcx, qword [0x1400a75b8]
test rcx, rcx
je 0x140047ec7
call fcn.14006bd20
mov qword [rsi + 0x18], rax
test rax, rax
jne 0x140047ec7
lea ebx, [rdi + 6]
mov rcx, qword [str._0_n_]
lea rbp, str._0_n_
cmp rcx, rbp
je 0x1400481d9
test byte [rcx + 0x1c], 4
je 0x1400481d9
cmp byte [rcx + 0x19], dil
jb 0x1400481d9
lea edx, [rdi + 0x2e]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400940c0]
call fcn.14000459c
jmp 0x1400481d9
mov rcx, qword [0x1400a75c8]
test rcx, rcx
je 0x140047f14
call fcn.14006bd20
mov qword [rsi + 0x28], rax
test rax, rax
jne 0x140047f14
lea ebx, [rax + 8]
mov rcx, qword [str._0_n_]
lea rbp, str._0_n_
cmp rcx, rbp
je 0x1400481d9
test byte [rcx + 0x1c], 4
je 0x1400481d9
cmp byte [rcx + 0x19], dil
jb 0x1400481d9
lea edx, [rax + 0x31]
jmp 0x140047eb2
mov rcx, qword [0x1400a75d0]
test rcx, rcx
je 0x140047f64
call fcn.14006bd20
mov qword [rsi + 0x30], rax
test rax, rax
jne 0x140047f64
lea ebx, [rax + 8]
mov rcx, qword [str._0_n_]
lea rbp, str._0_n_
cmp rcx, rbp
je 0x1400481d9
test byte [rcx + 0x1c], 4
je 0x1400481d9
cmp byte [rcx + 0x19], dil
jb 0x1400481d9
lea edx, [rax + 0x32]
jmp 0x140047eb2
mov r9d, 0x2001f
lea rdx, str.SoftwareMicrosoftFaxReceipts
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.14006f790
mov r14, rax
test rax, rax
jne 0x140047fdd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
lea rbp, str._0_n_
cmp rcx, rbp
je 0x1400481d9
test byte [rcx + 0x1c], 4
je 0x1400481d9
cmp byte [rcx + 0x19], dil
jb 0x1400481d9
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x33]
mov r9d, eax
lea r8, [0x1400940c0]
call fcn.1400238ac
jmp 0x1400481d9
and qword [rsp + 0x20], rbx
lea r8, [0x1400926f8]
mov rcx, rax
call fcn.140083d0c
mov qword [rsi + 0x38], rax
test rax, rax
jne 0x140048030
lea ebx, [rax + 8]
mov rcx, qword [str._0_n_]
lea rbp, str._0_n_
cmp rcx, rbp
je 0x1400481d9
test byte [rcx + 0x1c], 4
je 0x1400481d9
cmp byte [rcx + 0x19], dil
jb 0x1400481d9
lea edx, [rax + 0x34]
jmp 0x140047eb2
test ebp, ebp
je 0x1400481cf
cmp dword [0x1400a75a8], edi
jne 0x1400481cf
mov rcx, qword [0x1400a75e8]
test rcx, rcx
jne 0x140048175
xor edx, edx
lea rcx, [rsp + 0x2f0]
mov r8d, 0x402
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x2a2
call sub.msvcrt.dll_memset
mov rcx, qword [0x1400a75d0]
lea r9, [rsp + 0x40]
mov r8d, 0x201
mov dword [rsp + 0x20], 0x151
lea rdx, [rsp + 0x2f0]
call qword [sym.imp.credui.dll_CredUIParseUserNameW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x1400480f7
mov rcx, qword [str._0_n_]
lea rbp, str._0_n_
cmp rcx, rbp
je 0x1400481d9
test byte [rcx + 0x1c], 4
je 0x1400481d9
cmp byte [rcx + 0x19], dil
jb 0x1400481d9
mov edx, 0x35
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400940c0]
mov r9d, eax
call fcn.140004994
jmp 0x1400481d9
mov r8, qword [rsi + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x2f0]
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
nop dword [rax + rax]
test eax, eax
jne 0x140048169
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
lea rbp, str._0_n_
cmp rcx, rbp
je 0x1400481d9
test byte [rcx + 0x1c], 4
je 0x1400481d9
cmp byte [rcx + 0x19], dil
jb 0x1400481d9
mov edx, 0x36
jmp 0x1400480df
mov rcx, qword [rsp + 0x30]
mov qword [0x1400a75e8], rcx
lea r8, [rsp + 0x38]
mov edx, 3
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
nop dword [rax + rax]
test eax, eax
jne 0x1400481c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
lea rbp, str._0_n_
cmp rcx, rbp
je 0x1400481d9
test byte [rcx + 0x1c], 4
je 0x1400481d9
cmp byte [rcx + 0x19], dil
jb 0x1400481d9
mov edx, 0x37
jmp 0x1400480df
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0x48], rax
mov qword [r15], rsi
lea rbp, str._0_n_
lea rcx, [0x1400a7500]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
test r14, r14
je 0x140048234
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test eax, eax
je 0x140048234
mov rcx, qword [str._0_n_]
cmp rcx, rbp
je 0x140048234
test byte [rcx + 0x1c], 4
je 0x140048234
cmp byte [rcx + 0x19], dil
jb 0x140048234
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400940c0]
mov edx, 0x38
mov r9d, eax
call fcn.1400238ac
test ebx, ebx
je 0x140048245
mov edx, 1
mov rcx, rsi
call fcn.140047c20
mov eax, ebx
mov rcx, qword [rsp + 0x700]
xor rcx, rsp
call fcn.140001b10
lea r11, [rsp + 0x710]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret