Function at 0x1400083f0
Capabilities:
Compare security identifiers
Enumerate processes
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0x310], rax
xor r13d, r13d
mov r15, rdx
mov esi, r13d
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x40]
lea edx, [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r14d, [r13 + 1]
test eax, eax
je 0x140008667
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14000848d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14000848d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008667
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140008667
mov r9d, dword [rsp + 0x48]
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov r8, rbx
mov edx, r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140008653
mov rdx, qword [rbx]
lea r9, [rbp - 0x70]
mov eax, 0x104
lea r8, [rbp - 0x40]
mov dword [rbp - 0x70], eax
xor ecx, ecx
mov dword [rbp - 0x58], eax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x200]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x140008653
mov rcx, qword [rbx]
lea rdx, [rbp - 0x68]
mov dword [rbp - 0x68], 0x101
mov dword [rbp - 0x64], 0x5000000
mov dword [rbp - 0x60], reloc.WS2_32.dll_select
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140008653
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor edx, edx
or edi, 0xffffffff
mov esi, eax
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400085ca
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400085c1
lea rdx, str.explorer.exe
lea rcx, [rbp - 0x14]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400085af
mov ecx, dword [rbp - 0x38]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1400085af
cmp dword [rbp - 0x70], esi
je 0x1400085be
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140008580
mov edi, dword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
mov edx, r14d
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140008601
mov r8d, edi
mov edx, r14d
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140008601
mov esi, r13d
jmp 0x140008667
lea r8, [rsp + 0x40]
mov edx, reloc.WS2_32.dll_inet_addr
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140008623
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400085fc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x14000863f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008618
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, r14d
jmp 0x140008667
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
lea rcx, [rsp + 0x50]
movups xmmword [rsp + 0x50], xmm0
mov rbx, r13
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x1400087f0
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x14000873b
mov qword [rsp + 0x38], r13
or r9d, 0xffffffff
mov qword [rsp + 0x30], r13
xor edx, edx
mov dword [rsp + 0x28], r13d
xor ecx, ecx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
test eax, eax
jle 0x140008725
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140008725
mov r8, qword [rsp + 0x60]
or r9d, 0xffffffff
mov qword [rsp + 0x38], r13
xor edx, edx
mov qword [rsp + 0x30], r13
xor ecx, ecx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x14000871c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, eax
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharLowerBuffA]
mov rdx, r15
mov rcx, rdi
call fcn.140007e20
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rsp + 0x60], r13
mov r14d, 1
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14000874d
mov rbx, rax
mov qword [rsp + 0x58], r13
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140008762
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rsp + 0x68], r13
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
test rax, rax
jne 0x140008790
test rbx, rbx
je 0x1400087e6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400087e6
mov r9d, 4
mov dword [rbp - 0x54], r13d
lea r8, [rbp - 0x54]
mov rcx, rdi
lea edx, [r9 + 0x54]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea r9, [rsp + 0x70]
mov qword [rbp - 0x80], r13
mov r8, r12
mov dword [rbp - 0x78], r13d
mov rdx, rbx
mov dword [rbp - 0x74], r14d
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.1400081b0
test rbx, rbx
je 0x1400087dd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x1400087f0
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.14000c390
mov rbx, qword [rsp + 0x470]
add rsp, 0x420
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret