Function at 0x1007b160
Capabilities:
Get proxy
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x129c
call fcn.1008e430
mov eax, dword [0x100b5004]
xor eax, esp
mov dword [esp + 0x1298], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x88], 0x104
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push str.wtsapi32.dll
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1007b2ba
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1007b2ba
push str.userenv.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1007b2ba
push 0x100ac8fc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1007b2ba
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x14]
call esi
test eax, eax
je 0x1007b2ba
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
mov ecx, 1
lea eax, [esp + 0x88]
mov esi, 0
push eax
lea eax, [esp + 0x19c]
cmovne esi, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [esp + 0x84], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x74], xmm0
lea eax, [esp + 0x198]
movlpd qword [esp + 0x7c], xmm0
mov dword [esp + 0x68], 0x20
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], 1
test esi, esi
je 0x1007b292
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x28]
call dword [esp + 0x14]
test eax, eax
lea eax, [esp + 0x28]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
je 0x1007b2c8
push dword [esp + 0x94]
jmp 0x1007b2cd
lea eax, [esp + 0x28]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1007b61b
push 0x1000
push eax
lea eax, [esp + 0x2a8]
push eax
call fcn.1007d2d0
add esp, 0xc
mov dword [esp + 0x8c], 0xfff
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x2a4]
push eax
push esi
push esi
push str.ProxyServer
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x1007b61b
push str.wininet
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x1007b343
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1007b619
push str.InternetCrackUrlA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1007b362
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1007b619
push 0x3c
lea eax, [esp + 0x30]
push 0
push eax
call fcn.1007d2d0
lea eax, [esp + 0x2ac]
push 0x100ac938
push eax
call fcn.10094710
add esp, 0x14
test eax, eax
lea eax, [esp + 0x2a0]
je 0x1007b5b5
push str.http
push eax
call fcn.10094710
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1007b3b5
push str.http
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebx, eax
lea eax, [esp + 0x2a0]
push str.https
push eax
call fcn.10094710
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
je 0x1007b3e1
push str.https
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [esp + 0xc], eax
lea eax, [esp + 0x2a0]
push str.socks
push eax
call fcn.10094710
mov ecx, eax
add esp, 8
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x1007b40f
push str.socks
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [esp + 0x10], eax
test ebx, ebx
je 0x1007b499
push 0x3b
push ebx
call fcn.1007d430
add esp, 8
test eax, eax
je 0x1007b429
mov byte [eax], 0
push ebx
lea eax, [esp + 0x94]
push str.http:___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [esp + 0x2c], 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0x40
push eax
push 0
push 0
lea eax, [esp + 0x9c]
push eax
call dword [esp + 0x24]
test eax, eax
je 0x1007b499
cmp dword [esp + 0x38], 0xffffffff
je 0x1007b499
mov ecx, dword [esp + 0x20]
mov ax, word [esp + 0x44]
push edi
push dword [esp + 0x1c]
mov word [edi + 0x41], ax
mov eax, dword [ecx]
push dword [esp + 0x24]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x1007b61b
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x1007b527
push 0x3b
push ebx
call fcn.1007d430
add esp, 8
test eax, eax
je 0x1007b4b7
mov byte [eax], 0
push ebx
lea eax, [esp + 0x94]
push str.https:___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [esp + 0x2c], 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0x40
push eax
push 0
push 0
lea eax, [esp + 0x9c]
push eax
call dword [esp + 0x24]
test eax, eax
je 0x1007b527
cmp dword [esp + 0x38], 0xffffffff
je 0x1007b527
mov ecx, dword [esp + 0x20]
mov ax, word [esp + 0x44]
push edi
push dword [esp + 0x1c]
mov word [edi + 0x41], ax
mov eax, dword [ecx]
push dword [esp + 0x24]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x1007b61b
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1007b61b
push 0x3b
push ebx
call fcn.1007d430
add esp, 8
test eax, eax
je 0x1007b545
mov byte [eax], 0
push ebx
lea eax, [esp + 0x94]
push str.https:_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [esp + 0x2c], 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0x40
push eax
push 0
push 0
lea eax, [esp + 0x9c]
push eax
call dword [esp + 0x24]
test eax, eax
je 0x1007b61b
cmp dword [esp + 0x38], 0xffffffff
je 0x1007b61b
mov ecx, dword [esp + 0x20]
mov ax, word [esp + 0x44]
push edi
push dword [esp + 0x1c]
mov word [edi + 0x41], ax
mov eax, dword [ecx]
push dword [esp + 0x24]
call dword [eax + 0x10]
jmp 0x1007b619
push eax
lea eax, [esp + 0x94]
push str.http:___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [esp + 0x2c], 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0x40
push eax
push 0
push 0
lea eax, [esp + 0x9c]
push eax
call dword [esp + 0x24]
test eax, eax
je 0x1007b61b
cmp dword [esp + 0x38], 0xffffffff
je 0x1007b61b
mov ax, word [esp + 0x44]
mov ecx, ebx
push edi
push dword [esp + 0x1c]
mov word [edi + 0x41], ax
mov eax, dword [ebx]
push dword [esp + 0x24]
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1007b632
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1007b641
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x12a4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0xc