Function at 0x75b85f79
Capabilities:
Get hostname
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x380
mov eax, dword [0x75b8e004]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x75b8e51c], ebx
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x374], ebx
jne 0x75b85fcd
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
cmp edi, ebx
je 0x75b86498
push ebx
push edi
push 0x75b8e51c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x75b86001
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x75b8e3a4]
cmp eax, ebx
je 0x75b860a8
cmp eax, 0xffffffff
je 0x75b860a8
imul eax, eax, 0xffffd8f0
cdq
mov dword [ebp - 0x380], eax
mov dword [ebp - 0x37c], edx
lea eax, [ebp - 0x380]
jmp 0x75b860aa
mov dword [0x75b8e51c], edi
mov eax, dword [0x75b8e518]
inc dword [0x75b8e518]
test eax, eax
jne 0x75b86488
cmp dword [0x75b8e534], ebx
jne 0x75b8603c
push 0x75b8e534
push 0x20019
push ebx
push 0x75b864d8
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExW
mov edx, 0x75b8ef80
xor eax, eax
push 1
mov edi, edx
mov ecx, 0x82
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x370]
push eax
push edx
lea eax, [ebp - 0x36c]
push eax
push ebx
push 0x75b86598
push dword [0x75b8e534]
mov dword [ebp - 0x370], 0x208
mov dword [ebp - 0x36c], ebx
call fcn.75b87e91
test eax, eax
jne 0x75b860d3
push 0x75b8e518
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [0x75b8e51c]
cmp eax, ebx
je 0x75b8609d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 0x374], ebx
jmp 0x75b86498
xor eax, eax
push eax
push ebx
push dword [0x75b8e51c]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
cmp esi, ebx
je 0x75b86007
push esi
call fcn.75b87e50
mov dword [ebp - 0x374], eax
jmp 0x75b86498
push 4
pop esi
push 1
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x36c]
push eax
push ebx
push 0x75b82684
push dword [0x75b8e534]
mov dword [ebp - 0x370], esi
mov dword [ebp - 0x36c], ebx
mov dword [ebp - 0x378], ebx
call fcn.75b87e91
test eax, eax
jne 0x75b8613a
cmp dword [ebp - 0x36c], esi
jne 0x75b8613a
cmp dword [ebp - 0x378], 1
jne 0x75b8613a
dec dword [0x75b8e518]
mov dword [ebp - 0x374], 0x422
jmp 0x75b8644f
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edi, 0x75b8ef68
push edi
push dword [0x75b8e520]
mov dword [0x75b8ef68], ebx
call esi
inc dword [0x75b8ef68]
mov eax, dword fs:[0x18]
mov ecx, dword [0x75b8ef68]
mov eax, dword [eax + 0x30]
add ecx, ecx
push ecx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, ebx
mov dword [0x75b8e520], eax
jne 0x75b86188
mov dword [0x75b8ef68], ebx
jmp 0x75b861ad
push edi
push eax
call esi
test eax, eax
je 0x75b86180
mov eax, dword [0x75b8ef68]
mov ecx, dword [0x75b8e520]
mov word [ecx + eax*2], bx
mov eax, dword [0x75b8ef68]
lea eax, [eax + eax + 2]
mov dword [0x75b8ef68], eax
push dword [0x75b8e534]
call fcn.75b858fe
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 4
pop esi
push 1
mov dword [0x75b8e52c], eax
lea eax, [ebp - 0x370]
push eax
push 0x75b8e3a8
lea eax, [ebp - 0x36c]
push eax
push ebx
push 0x75b86570
push dword [0x75b8e534]
mov dword [ebp - 0x36c], ebx
mov dword [ebp - 0x370], esi
call fcn.75b87e91
test eax, eax
jne 0x75b86209
cmp dword [ebp - 0x36c], esi
je 0x75b86213
mov dword [0x75b8e3a8], 0x10
cmp dword [0x75b8e53c], ebx
jne 0x75b863bb
test byte [0x75b8e3a8], 0x10
je 0x75b863bb
push 0x75b865c8
mov esi, 0x75b8f1a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x10
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call sub.msvcrt.dll__ultow
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push esi
call edi
push 0x75b865b8
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x24c]
push eax
call edi
push 0x75b865ac
lea eax, [ebp - 0x24c]
push eax
call edi
push 0x104
mov edi, 0x75b8ed60
push edi
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push 0x14000100
push 4
push ebx
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x75b8e53c], eax
je 0x75b86395
push esi
mov esi, 0x4000
push esi
push ebx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [0x75b8e540], eax
je 0x75b86367
push esi
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [0x75b8e544], eax
je 0x75b86329
mov edx, eax
mov esi, 0x1234567
cmp dword [edx + 0xc], esi
je 0x75b863bb
mov ecx, 0x1000
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], ebx
mov dword [edx + 4], 0x7f
mov dword [edx + 8], ebx
mov dword [edx + 0xc], esi
jmp 0x75b863bb
cmp dword [0x75b8e4f0], 3
jb 0x75b86349
push ebx
push ebx
push ebx
push 0xa
push 0x227
push 0x75b825c8
call fcn.75b85e47
add esp, 0x18
push dword [0x75b8e540]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x75b8e53c]
mov dword [0x75b8e540], ebx
call esi
jmp 0x75b863b5
cmp dword [0x75b8e4f0], 3
jb 0x75b86387
push ebx
push ebx
push ebx
push 0xa
push 0x230
push 0x75b825c8
call fcn.75b85e47
add esp, 0x18
push dword [0x75b8e53c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x75b863b5
cmp dword [0x75b8e4f0], 3
jb 0x75b863b5
push ebx
push ebx
push ebx
push 0xa
push 0x237
push 0x75b825c8
call fcn.75b85e47
add esp, 0x18
mov dword [0x75b8e53c], ebx
call fcn.75b899df
push dword [0x75b8e52c]
xor esi, esi
inc esi
mov dword [0x75b8e548], esi
mov dword [0x75b8e528], ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
pop edi
push esi
lea eax, [ebp - 0x370]
push eax
push 0x75b8e510
lea eax, [ebp - 0x36c]
push eax
push ebx
push 0x75b86548
push dword [0x75b8e534]
mov dword [ebp - 0x36c], ebx
mov dword [ebp - 0x370], edi
call fcn.75b87e91
cmp eax, ebx
jne 0x75b86423
cmp dword [ebp - 0x36c], edi
jne 0x75b86429
cmp dword [0x75b8e510], ebx
je 0x75b86429
mov dword [0x75b8e510], ebx
cmp dword [0x75b8e510], esi
je 0x75b86449
mov dword [0x75b8e4d8], ebx
mov dword [0x75b8e4dc], ebx
mov dword [0x75b8e4e0], ebx
mov dword [0x75b8e508], ebx
mov dword [ebp - 0x374], ebx
push 0x47
pop ecx
xor eax, eax
lea edi, [ebp - 0x368]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x368]
push eax
mov dword [ebp - 0x368], 0x11c
call dword [sym.imp.ntdll.dll_RtlGetVersion]
mov esi, eax
cmp esi, ebx
jl 0x75b86488
cmp byte [ebp - 0x24e], 1
jne 0x75b86488
mov dword [0x75b8e3ac], ebx
mov eax, dword [0x75b8e51c]
cmp eax, ebx
je 0x75b86498
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [0x75b8e4f0], 4
jb 0x75b864bf
push ebx
push 4
push 0x75b8e518
push esi
push ebx
push 0xa
push 0x281
push 0x75b825c8
call fcn.75b85e47
add esp, 0x20
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x374]
pop edi
pop esi
pop ebx
call fcn.75b8c8aa
leave
ret