Function at 0x77ca95c9
Capabilities:
Get hostname
Query environment variable

Disassembly:
cmp eax, 2
jne 0x77ca3088
mov edi, 0x77d2a73c
jmp 0x77ca9900
push 0x77d2a73c
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x77ca160c
xor eax, eax
jmp 0x77ca962f
cmp ecx, dword [ebp - 0x180]
ja 0x77ca968d
jmp 0x77ca98d0
mov dword [0x77d2a700], ebx
jmp 0x77ca1534
cmp dword [ebp - 0x168], esi
jne 0x77ca157c
jmp 0x77ca1582
cmp dword [0x77d2a6a4], ebx
jne 0x77ca15d4
jmp 0x77ca15da
push 4
pop esi
push 1
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x168]
push eax
push ebx
push 0x77ca4cb0
push dword [0x77d2a62c]
mov dword [ebp - 0x174], esi
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x178], ebx
call fcn.77ca9780
test eax, eax
je 0x77caa02d
cmp dword [0x77d2a6ac], ebx
mov dword [ebp - 0x164], ebx
jne 0x77ca15fb
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edi, 0x77d2a700
push edi
push ebx
mov dword [0x77d2a700], ebx
call esi
inc dword [0x77d2a700]
mov eax, dword [0x77d2a700]
add eax, eax
push eax
push 0x16f
push 0x77ca12b4
call fcn.77ca96e5
cmp eax, ebx
mov dword [0x77d2a6ac], eax
je 0x77c9d575
push edi
push eax
call esi
test eax, eax
je 0x77c9d575
mov eax, dword [0x77d2a700]
mov ecx, dword [0x77d2a6ac]
mov word [ecx + eax*2], bx
mov eax, dword [0x77d2a700]
lea eax, [eax + eax + 2]
mov dword [0x77d2a700], eax
push dword [0x77d2a62c]
call fcn.77ca2c75
push 4
pop esi
push 1
lea eax, [ebp - 0x174]
push eax
push 0x77d2a65c
lea eax, [ebp - 0x168]
push eax
push ebx
push 0x77ca2c48
push dword [0x77d2a62c]
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x174], esi
call fcn.77ca9780
test eax, eax
je 0x77c9d580
mov dword [0x77d2a65c], esi
cmp dword [0x77d2b28c], ebx
jne 0x77ca1597
test byte [0x77d2a65c], 0x10
jne 0x77caa05c
push 4
pop esi
push 1
lea eax, [ebp - 0x174]
push eax
push 0x77d2a6a4
lea eax, [ebp - 0x168]
push eax
push ebx
push 0x77ca1688
push dword [0x77d2a62c]
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x174], esi
call fcn.77ca9780
cmp eax, ebx
je 0x77caa24a
mov dword [0x77d2a6a4], ebx
cmp dword [0x77d2a6a4], 1
je 0x77ca15fb
mov dword [0x77d2abb0], ebx
mov dword [0x77d2abb4], ebx
mov dword [0x77d2abb8], ebx
mov dword [0x77d2a6a0], ebx
call fcn.77ca16b5
cmp byte [0x77d2a6bc], bl
jne 0x77c9d54d
cmp dword [ebp + 8], 0x80000004
mov byte [0x77d2a6bc], 1
jne 0x77ca1632
mov eax, dword [ebp - 0x180]
mov dword [0x77d2a710], eax
mov eax, dword [ebp - 0x17c]
mov dword [0x77d2a714], eax
mov esi, 0x11c
push esi
lea eax, [ebp - 0x160]
push ebx
push eax
mov dword [0x77d2a6b4], ebx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x160]
push eax
mov dword [ebp - 0x160], esi
call dword [sym.imp.ntdll.dll_RtlGetVersion]
cmp eax, ebx
mov dword [ebp - 0x170], eax
jl 0x77ca3088
cmp byte [ebp - 0x46], 1
jne 0x77ca3088
mov dword [0x77d2a660], ebx
jmp 0x77ca3088
push dword [0x77d2a628]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp + 8], 0x80000004
je 0x77ca30b4
cmp dword [ebp - 0x164], 0x422
je 0x77ca30b4
push 0x77d2a73c
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [0x77d2a624]
cmp eax, ebx
je 0x77ca969f
push eax
jmp 0x77ca9699
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x77d2a624], ebx
push esi
push edi
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x164], ebx
mov edi, 0x77d2a73c
je 0x77ca9990
mov eax, dword [0x77d2a784]
cmp eax, ebx
je 0x77c9d55d
cmp eax, 0xffffffff
je 0x77c9d55d
imul eax, eax, 0xffffd8f0
cdq
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], edx
lea eax, [ebp - 0x188]
push eax
push ebx
push dword [0x77d2a624]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, ebx
mov dword [ebp - 0x170], eax
jne 0x77ca9ffb
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp byte [0x77d2a6bc], bl
je 0x77ca98d0
mov ecx, dword [0x77d2b290]
add ecx, dword [0x77d2a710]
mov eax, dword [0x77d2b294]
adc eax, dword [0x77d2a714]
cmp eax, dword [ebp - 0x17c]
jb 0x77ca98d0
jbe 0x77c9d564
mov dword [ebp - 0x164], ebx
push dword [0x77d2a624]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x77d2b29c]
and al, 0xf
cmp al, 4
jae 0x77caa25b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x164]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 4
mov eax, dword [0x77d2a628]
cmp eax, ebx
je 0x77ca99c9
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [0x77d2a6bc], bl
jne 0x77c9d53a
cmp eax, 1
jne 0x77ca3088
cmp dword [0x77d2a62c], ebx
je 0x77ca99e6
mov eax, 0x208
push eax
push ebx
mov esi, 0x77d2a400
push esi
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x168], ebx
call sub.ntdll.dll_memset
add esp, 0xc
push 1
lea eax, [ebp - 0x174]
push eax
push esi
lea eax, [ebp - 0x168]
push eax
push ebx
push 0x77ca997c
push dword [0x77d2a62c]
call fcn.77ca9780
test eax, eax
jne 0x77ca1475
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [0x77d2a624]
cmp eax, ebx
je 0x77ca996e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 0x164], ebx
jmp 0x77ca969f
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
cmp esi, ebx
je 0x77ca969f
push ebx
push esi
push 0x77d2a624
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x77ca9fe0
cmp dword [0x77d2a624], ebx
jne 0x77ca9600
jmp 0x77ca9fec
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [0x77d2a628], eax
jne 0x77ca98e4
jmp 0x77caa00c
lea eax, [ebp - 0x16c]
push eax
push 0x20019
push ebx
push 0x77ca9a38
push 0x80000002
mov dword [ebp - 0x16c], ebx
call sym.ADVAPI32.dll_RegOpenKeyExW
cmp eax, ebx
mov dword [ebp - 0x164], eax
jne 0x77ca30b4
push ebx
push dword [ebp - 0x16c]
push 0x77d2a62c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x77ca990c
jmp 0x77caa01d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x77ca99b8
mov dword [ebp - 0x164], 0x54f
jmp 0x77ca969f
push eax
call fcn.77ca96ca
mov dword [ebp - 0x164], eax
jmp 0x77ca969f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x164], eax
jmp 0x77ca9693
push dword [ebp - 0x16c]
call sym.ADVAPI32.dll_RegCloseKey
jmp 0x77ca990c
cmp dword [ebp - 0x168], esi
jne 0x77ca14ba
cmp dword [ebp - 0x178], 1
jne 0x77ca14ba
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp - 0x164], 0x422
jmp 0x77ca15fb
push 0x10
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call sub.ntdll.dll__ultow
add esp, 0xc
mov esi, 0x800
push esi
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x16c]
push eax
push 0x77caa290
push 0x104
mov edi, 0x77d349c0
push edi
call fcn.77ca13a4
cmp eax, ebx
jl 0x77caa12e
push esi
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x170]
push dword [ebp - 0x16c]
call fcn.77ca13a4
cmp eax, ebx
jl 0x77caa12e
push esi
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x16c]
push eax
push 0x77caa284
push dword [ebp - 0x170]
push dword [ebp - 0x16c]
call fcn.77ca13a4
cmp eax, ebx
jl 0x77caa12e
push 0x104
mov esi, 0x77d347a0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x77caa12e
cmp eax, 0x104
ja 0x77caa12e
push ebx
push 0x14000100
push 4
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x77d2b28c], eax
jmp 0x77caa133
mov eax, dword [0x77d2b28c]
cmp eax, 0xffffffff
je 0x77caa21c
cmp eax, ebx
je 0x77caa21c
push edi
mov edi, 0x4000
push edi
push ebx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [0x77d3470c], eax
je 0x77caa1eb
push edi
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [0x77d2b288], eax
je 0x77caa1aa
mov esi, eax
cmp dword [esi + 0xc], 0x1234567
je 0x77ca1597
push edi
push ebx
push esi
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [esi], ebx
mov dword [esi + 4], 0x7f
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 0x1234567
jmp 0x77ca1597
mov eax, dword [0x77d2b29c]
and eax, 0xf
cmp al, 3
jb 0x77caa1cd
push ebx
push ebx
push ebx
push 0xa
push 0x1eb
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x18
push dword [0x77d3470c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x77d2b28c]
mov dword [0x77d3470c], ebx
call esi
jmp 0x77caa23f
mov eax, dword [0x77d2b29c]
and eax, 0xf
cmp al, 3
jb 0x77caa20e
push ebx
push ebx
push ebx
push 0xa
push 0x1f4
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x18
push dword [0x77d2b28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x77caa23f
mov eax, dword [0x77d2b29c]
and eax, 0xf
cmp al, 3
jb 0x77caa23f
push ebx
push ebx
push ebx
push 0xa
push 0x1fb
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x18
mov dword [0x77d2b28c], ebx
jmp 0x77ca1597
cmp dword [ebp - 0x168], esi
je 0x77c9d591
jmp 0x77ca15da
push ebx
push 4
push 0x77d2a73c
push dword [ebp - 0x170]
push ebx
push 0xa
push 0x251
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x20
jmp 0x77ca96ae