Function at 0x77c9e42e
Capabilities:
Get hostname
Query environment variable

Disassembly:
cmp eax, 2
jne 0x77c9adaa
mov edi, 0x77d1e704
jmp 0x77c98ca6
push 0x77d1e704
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x77c9920f
xor eax, eax
jmp 0x77c9e494
cmp ecx, dword [ebp - 0x180]
ja 0x77c9e4f2
jmp 0x77c98c76
mov dword [0x77d1e6bc], ebx
jmp 0x77c99137
cmp dword [ebp - 0x168], esi
jne 0x77c9917f
jmp 0x77c99185
cmp dword [0x77d1e660], ebx
jne 0x77c991d7
jmp 0x77c991dd
cmp dword [ebp - 0x164], 0x422
je 0x77c9adc3
push 0x77d1e704
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x77c9adc3
mov eax, dword [0x77d1e5c8]
cmp eax, ebx
je 0x77c9a711
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [0x77d1e678], bl
jne 0x77c8612c
cmp eax, 1
jne 0x77c9adaa
cmp dword [0x77d1e5cc], ebx
je 0x77c9a72e
mov eax, 0x208
push eax
push ebx
mov esi, 0x77d1e3a0
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 0x77c98d20
push dword [0x77d1e5cc]
call fcn.77c9e52f
test eax, eax
jne 0x77c99078
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [0x77d1e5c4]
cmp eax, ebx
je 0x77c98d14
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 0x164], ebx
jmp 0x77c9e504
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 0x77c9e884
push dword [0x77d1e5cc]
mov dword [ebp - 0x174], esi
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x178], ebx
call fcn.77c9e52f
test eax, eax
je 0x77c9f92d
cmp dword [0x77d1e668], ebx
mov dword [ebp - 0x164], ebx
jne 0x77c991fe
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edi, 0x77d1e6bc
push edi
push ebx
mov dword [0x77d1e6bc], ebx
call esi
inc dword [0x77d1e6bc]
mov eax, dword [0x77d1e6bc]
add eax, eax
push eax
push 0x16f
push 0x77c98d54
call fcn.77c9e393
cmp eax, ebx
mov dword [0x77d1e668], eax
je 0x77c86167
push edi
push eax
call esi
test eax, eax
je 0x77c86167
mov eax, dword [0x77d1e6bc]
mov ecx, dword [0x77d1e668]
mov word [ecx + eax*2], bx
mov eax, dword [0x77d1e6bc]
lea eax, [eax + eax + 2]
mov dword [0x77d1e6bc], eax
push dword [0x77d1e5cc]
call fcn.77c9a819
push 4
pop esi
push 1
lea eax, [ebp - 0x174]
push eax
push 0x77d1e614
lea eax, [ebp - 0x168]
push eax
push ebx
push 0x77c9a7ec
push dword [0x77d1e5cc]
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x174], esi
call fcn.77c9e52f
test eax, eax
je 0x77c86172
mov dword [0x77d1e614], esi
cmp dword [0x77d1f23c], ebx
jne 0x77c9919a
test byte [0x77d1e614], 0x10
jne 0x77c9f95c
push 4
pop esi
push 1
lea eax, [ebp - 0x174]
push eax
push 0x77d1e660
lea eax, [ebp - 0x168]
push eax
push ebx
push 0x77c99288
push dword [0x77d1e5cc]
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x174], esi
call fcn.77c9e52f
cmp eax, ebx
je 0x77c9fb4a
mov dword [0x77d1e660], ebx
cmp dword [0x77d1e660], 1
je 0x77c991fe
mov dword [0x77d1eb50], ebx
mov dword [0x77d1eb54], ebx
mov dword [0x77d1eb58], ebx
mov dword [0x77d1e65c], ebx
call fcn.77c992b5
cmp byte [0x77d1e678], bl
jne 0x77c8613f
cmp dword [ebp + 8], 0x80000004
mov byte [0x77d1e678], 1
jne 0x77c99235
mov eax, dword [ebp - 0x180]
mov dword [0x77d1e6c8], eax
mov eax, dword [ebp - 0x17c]
mov dword [0x77d1e6cc], eax
mov esi, 0x11c
push esi
lea eax, [ebp - 0x160]
push ebx
push eax
mov dword [0x77d1e670], 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 0x77c9adaa
cmp byte [ebp - 0x46], 1
jne 0x77c9adaa
mov dword [0x77d1e618], ebx
jmp 0x77c9adaa
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
cmp esi, ebx
je 0x77c9e504
push ebx
push esi
push 0x77d1e5c4
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x77c9f8e0
cmp dword [0x77d1e5c4], ebx
jne 0x77c9e465
jmp 0x77c9f8ec
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [0x77d1e5c8], eax
jne 0x77c98c8a
jmp 0x77c9f90c
lea eax, [ebp - 0x16c]
push eax
push 0x20019
push ebx
push 0x77c9a780
push 0x80000002
mov dword [ebp - 0x16c], ebx
call sym.ADVAPI32.dll_RegOpenKeyExW
cmp eax, ebx
mov dword [ebp - 0x164], eax
jne 0x77c9adc3
push ebx
push dword [ebp - 0x16c]
push 0x77d1e5cc
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x77c98cb2
jmp 0x77c9f91d
push dword [0x77d1e5c8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp + 8], 0x80000004
jne 0x77c86194
mov eax, dword [0x77d1e5c4]
cmp eax, ebx
je 0x77c9e504
push eax
jmp 0x77c9e4fe
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x77d1e5c4], ebx
push esi
push edi
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x164], ebx
mov edi, 0x77d1e704
je 0x77c9a6d8
mov eax, dword [0x77d1e784]
cmp eax, ebx
je 0x77c8614f
cmp eax, 0xffffffff
je 0x77c8614f
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 [0x77d1e5c4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, ebx
mov dword [ebp - 0x170], eax
jne 0x77c9f8fb
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp byte [0x77d1e678], bl
je 0x77c98c76
mov ecx, dword [0x77d1f250]
add ecx, dword [0x77d1e6c8]
mov eax, dword [0x77d1f254]
adc eax, dword [0x77d1e6cc]
cmp eax, dword [ebp - 0x17c]
jb 0x77c98c76
jbe 0x77c86156
mov dword [ebp - 0x164], ebx
push dword [0x77d1e5c4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 4
jae 0x77c9fb5b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x164]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x77c9a700
mov dword [ebp - 0x164], 0x54f
jmp 0x77c9e504
push eax
call fcn.77c9e871
mov dword [ebp - 0x164], eax
jmp 0x77c9e504
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x164], eax
jmp 0x77c9e4f8
push dword [ebp - 0x16c]
call sym.ADVAPI32.dll_RegCloseKey
jmp 0x77c98cb2
cmp dword [ebp - 0x168], esi
jne 0x77c990bd
cmp dword [ebp - 0x178], 1
jne 0x77c990bd
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp - 0x164], 0x422
jmp 0x77c991fe
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 0x77c9fb90
push 0x104
mov edi, 0x77d28a00
push edi
call fcn.77c98d9f
cmp eax, ebx
jl 0x77c9fa2e
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.77c98d9f
cmp eax, ebx
jl 0x77c9fa2e
push esi
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x16c]
push eax
push 0x77c9fb84
push dword [ebp - 0x170]
push dword [ebp - 0x16c]
call fcn.77c98d9f
cmp eax, ebx
jl 0x77c9fa2e
push 0x104
mov esi, 0x77d287e0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x77c9fa2e
cmp eax, 0x104
ja 0x77c9fa2e
push ebx
push 0x14000100
push 4
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x77d1f23c], eax
jmp 0x77c9fa33
mov eax, dword [0x77d1f23c]
cmp eax, 0xffffffff
je 0x77c9fb1c
cmp eax, ebx
je 0x77c9fb1c
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 [0x77d28744], eax
je 0x77c9faeb
push edi
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [0x77d1f238], eax
je 0x77c9faaa
mov esi, eax
cmp dword [esi + 0xc], 0x1234567
je 0x77c9919a
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 0x77c9919a
mov eax, dword [0x77d1f248]
and eax, 0xf
cmp al, 3
jb 0x77c9facd
push ebx
push ebx
push ebx
push 0xa
push 0x1eb
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
push dword [0x77d28744]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x77d1f23c]
mov dword [0x77d28744], ebx
call esi
jmp 0x77c9fb3f
mov eax, dword [0x77d1f248]
and eax, 0xf
cmp al, 3
jb 0x77c9fb0e
push ebx
push ebx
push ebx
push 0xa
push 0x1f4
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
push dword [0x77d1f23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x77c9fb3f
mov eax, dword [0x77d1f248]
and eax, 0xf
cmp al, 3
jb 0x77c9fb3f
push ebx
push ebx
push ebx
push 0xa
push 0x1fb
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
mov dword [0x77d1f23c], ebx
jmp 0x77c9919a
cmp dword [ebp - 0x168], esi
je 0x77c86183
jmp 0x77c991dd
push ebx
push 4
push 0x77d1e704
push dword [ebp - 0x170]
push ebx
push 0xa
push 0x251
push 0x77ce207c
call fcn.77d1169e
add esp, 0x20
jmp 0x77c9e513