Function at 0x77ca1b14
Capabilities:
Check mutex on windows
Query environment variable

Disassembly:
call sym.ADVAPI32.dll_RevertToSelf
mov edi, eax
jmp 0x77ca2597
push dword [ebp - 0x4f4]
push ebx
call sym.ADVAPI32.dll_SetThreadToken
test eax, eax
jne 0x77ca25da
jmp 0x77ced758
push dword [ebp - 0x4f4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x77ca25e6
mov eax, dword [esi + 0x140]
cmp eax, dword [ebp - 0x518]
jne 0x77ced6e5
mov eax, dword [esi + 0x144]
cmp eax, dword [ebp - 0x514]
jne 0x77ced6e5
push dword [ebp - 0x500]
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x77ced6e5
push dword [ebp - 0x504]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x77ced6e5
push dword [ebp - 0x4f8]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x77ced6e5
push dword [ebp - 0x51c]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x77ced6e5
cmp esi, ebx
je 0x77ca2297
mov dword [ebp - 0x4e8], esi
mov byte [esi + 0x1cc], bl
mov byte [esi + 0x1cd], bl
jmp 0x77ca261b
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x558], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [0x77d2a6b0]
mov dword [ebp - 0x4d8], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [eax + 4]
mov dword [ebp - 0x510], eax
mov dword [ebp - 0x548], ebx
mov dword [ebp - 0x4e8], ebx
mov dword [ebp - 0x4f4], ebx
mov dword [ebp - 0x518], ebx
mov dword [ebp - 0x514], ebx
mov dword [ebp - 0x4e0], ebx
mov dword [ebp - 0x4d0], 0x1d0
mov dword [ebp - 0x4ec], ebx
mov dword [ebp - 0x50c], ebx
mov dword [ebp - 0x4dc], edi
mov dword [ebp - 0x54c], ebx
cmp esi, ebx
mov dword [ebp - 0x544], esi
je 0x77ca1bbd
push edi
push dword [esi + 0x150]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x77ca1bbd
mov dword [ebp - 0x54c], esi
mov esi, dword [esi]
jmp 0x77ca1b98
mov eax, 0x1708
push eax
push 0x142
push 0x77ca2978
mov dword [ebp - 0x4c8], eax
call fcn.77ca96e5
cmp eax, ebx
mov dword [ebp - 0x508], eax
je 0x77ced1b7
xor eax, eax
lea edi, [ebp - 0x568]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x77d2a7c0]
push 1
mov dword [ebp - 0x528], eax
mov dword [ebp - 0x52c], eax
lea eax, [ebp - 0x4c8]
push eax
push dword [ebp - 0x508]
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca2668
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x534], ebx
mov dword [ebp - 0x530], ebx
mov dword [ebp - 0x550], 0x3e8
mov dword [ebp - 0x4c8], 0x430
call fcn.77ca9780
mov esi, eax
cmp esi, ebx
jne 0x77ced57c
mov eax, dword [ebp - 0x4c8]
add eax, 8
and eax, 0xfffffff8
add eax, dword [ebp - 0x508]
cmp dword [ebp - 0x4cc], 2
push 8
mov dword [ebp - 0x500], eax
pop edi
je 0x77ca30ec
cmp dword [ebp - 0x4cc], 1
jne 0x77ced1be
push ebx
push dword [ebp - 0x500]
push 0x218
push ebx
push dword [ebp - 0x508]
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, 0x218
mov dword [ebp - 0x4c8], eax
ja 0x77ca31a4
cmp eax, ebx
je 0x77ca31a4
lea edi, [eax + eax + 2]
mov dword [ebp - 0x4c8], edi
add edi, 7
and edi, 0xfffffff8
lea eax, [edi + 0x1d0]
mov dword [ebp - 0x4d0], eax
mov eax, dword [ebp - 0x500]
add edi, eax
cmp esi, ebx
push 8
mov dword [ebp - 0x504], edi
pop edi
jne 0x77ca1daa
mov edi, dword [ebp - 0x504]
push ebx
lea eax, [ebp - 0x4c8]
push eax
push edi
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca2678
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 0x218
call fcn.77ca9780
mov esi, eax
cmp esi, ebx
jne 0x77ced1ee
cmp byte [edi], bl
je 0x77ced1ee
mov eax, dword [ebp - 0x4c8]
mov ecx, dword [ebp - 0x504]
lea edi, [eax + 8]
and edi, 0xfffffff8
mov byte [ecx + eax], bl
add dword [ebp - 0x4d0], edi
push 1
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca26c8
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 4
call fcn.77ca9780
mov esi, eax
cmp esi, ebx
je 0x77ca3103
mov eax, dword [0x77d2a7c0]
mov dword [ebp - 0x52c], eax
xor esi, esi
mov eax, dword [ebp - 0x504]
add edi, eax
cmp esi, ebx
mov dword [ebp - 0x51c], edi
mov dword [ebp - 0x4f0], 8
jne 0x77ca1e1b
push ebx
lea eax, [ebp - 0x4c8]
push eax
push edi
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca2680
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 0x218
call fcn.77ca9780
mov esi, eax
cmp esi, ebx
jne 0x77ced2a0
cmp byte [edi], bl
je 0x77ced2a0
mov eax, dword [ebp - 0x4c8]
add eax, 8
and eax, 0xfffffff8
mov dword [ebp - 0x4f0], eax
mov eax, dword [ebp - 0x4f0]
mov ecx, dword [ebp - 0x51c]
add eax, ecx
cmp esi, ebx
push 8
mov dword [ebp - 0x4f8], eax
pop edi
jne 0x77ca31f2
mov eax, dword [ebp - 0x4f0]
add dword [ebp - 0x4d0], eax
push ebx
lea eax, [ebp - 0x4c8]
push eax
push dword [ebp - 0x4f8]
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca2690
push dword [ebp - 0x4d8]
mov esi, 0x218
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], esi
call fcn.77ca9780
cmp eax, ebx
mov dword [ebp - 0x4d4], eax
je 0x77ced34e
push ebx
lea eax, [ebp - 0x4c8]
push eax
push dword [ebp - 0x4f8]
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca2688
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], esi
call fcn.77ca9780
xor esi, esi
cmp eax, ebx
mov dword [ebp - 0x4d4], eax
jne 0x77ced36e
mov edi, dword [ebp - 0x4c8]
add edi, 8
and edi, 0xfffffff8
add dword [ebp - 0x4d0], edi
inc esi
mov eax, dword [ebp - 0x4f8]
cmp byte [eax], bl
je 0x77ced36f
push esi
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca26e4
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 4
call fcn.77ca9780
test eax, eax
je 0x77ca3115
mov eax, dword [0x77d2a7c0]
mov dword [ebp - 0x528], eax
push esi
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca2794
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 4
call fcn.77ca9780
test eax, eax
jne 0x77ca3127
cmp dword [ebp - 0x4cc], 4
jne 0x77ca3127
push esi
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca1378
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 4
call fcn.77ca9780
test eax, eax
jne 0x77ca3132
cmp dword [ebp - 0x4cc], 4
jne 0x77ca3132
mov eax, dword [ebp - 0x4f8]
push esi
add edi, eax
lea eax, [ebp - 0x4c8]
push eax
push edi
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca2698
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4d4], edi
mov dword [ebp - 0x4f0], 8
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 0x430
call fcn.77ca9780
cmp eax, ebx
jne 0x77ca20a4
mov eax, dword [ebp - 0x4c8]
add eax, 8
and eax, 0xfffffff8
cmp dword [ebp - 0x4cc], esi
mov dword [ebp - 0x4f0], eax
jne 0x77ced525
mov esi, dword [ebp - 0x4d4]
xor edi, edi
cmp word [esi], bx
je 0x77ca20a4
cmp word [esi], 0x20
je 0x77ca313d
cmp edi, ebx
je 0x77ca2804
inc esi
inc esi
cmp word [esi], bx
jne 0x77ca204c
cmp edi, ebx
je 0x77ca20a4
cmp dword [ebp - 0x4e0], 0x40
jae 0x77ca209c
cmp edi, esi
je 0x77ca209c
cmp word [esi], bx
jne 0x77ca209c
push 0xa
push ebx
push edi
call sub.ntdll.dll_wcstoul
mov ecx, dword [ebp - 0x4e0]
add esp, 0xc
inc dword [ebp - 0x4e0]
mov dword [ebp + ecx*4 - 0x668], eax
xor edi, edi
cmp edi, ebx
jne 0x77ced428
mov ecx, dword [ebp - 0x4d4]
mov eax, dword [ebp - 0x4f0]
push 4
pop esi
add eax, ecx
push 1
mov dword [ebp - 0x4d4], eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca2708
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x554], ebx
mov dword [ebp - 0x4c8], esi
call fcn.77ca9780
cmp eax, ebx
je 0x77ced485
push 1
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x550]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca27b0
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], esi
mov dword [ebp - 0x4c8], esi
call fcn.77ca9780
push 0x10
pop edi
push 1
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca2738
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], edi
call fcn.77ca9780
cmp eax, ebx
je 0x77ced4a9
mov ecx, dword [0x77d2b29c]
and cl, 0xf
cmp cl, 4
jae 0x77ced4bb
xor eax, eax
lea edi, [ebp - 0x568]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x534]
stosd dword es:[edi], eax
push 1
stosd dword es:[edi], eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push 0x77ca2768
push dword [ebp - 0x4d8]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], 8
call fcn.77ca9780
mov ecx, eax
cmp ecx, ebx
je 0x77ced4e7
or eax, 0xffffffff
lea edi, [ebp - 0x534]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x77d2b29c]
and al, 0xf
cmp al, 4
jae 0x77ced4f9
mov edi, 0x800
push edi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x4f0]
push eax
push dword [ebp - 0x4dc]
push 0x218
push dword [ebp - 0x4d4]
call fcn.77ca13a4
cmp eax, ebx
jl 0x77ca2238
push 0x77ca26b0
push dword [ebp - 0x4e4]
push dword [ebp - 0x4f0]
call fcn.77cac425
or dword [ebp - 0x4fc], 0xffffffff
mov ecx, eax
and ecx, 0xffff
cmp eax, ebx
jl 0x77ca226b
lea eax, [ebp - 0x4fc]
push eax
push 0x20019
push ebx
push dword [ebp - 0x4d4]
push dword [ebp - 0x558]
call sym.ADVAPI32.dll_RegOpenKeyExW
mov ecx, eax
cmp ecx, ebx
je 0x77ca287a
mov dword [ebp - 0x4ec], ebx
mov dword [ebp - 0x4d4], ebx
xor esi, esi
cmp esi, ebx
jne 0x77ca31f2
mov esi, dword [ebp - 0x544]
cmp esi, ebx
jne 0x77c9d5a2
mov eax, dword [ebp - 0x510]
movzx eax, word [eax + 2]
mov dword [ebp - 0x4c8], eax
add eax, 7
and eax, 0xfffffff8
add dword [ebp - 0x4d0], eax
push dword [ebp - 0x4d0]
push 0x3c2
push 0x77ca2978
call fcn.77ca96e5
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x4e8], esi
je 0x77ced763
push edi
lea ecx, [ebp - 0x4e4]
push ecx
lea ecx, [ebp - 0x4d0]
push ecx
push dword [ebp - 0x504]
mov ecx, dword [ebp - 0x4d0]
add ecx, 0xfffffe30
lea eax, [esi + 0x1d0]
push ecx
push eax
mov dword [esi + 0xc], eax
call fcn.77ca29b8
cmp eax, ebx
jl 0x77ca31fe
mov edx, dword [ebp - 0x52c]
mov eax, dword [ebp - 0x4d0]
push edi
mov dword [esi + 0x24], edx
lea ecx, [eax + 8]
lea edx, [ebp - 0x4e4]
push edx
and ecx, 0xfffffff8
lea edx, [ebp - 0x4d0]
push edx
push dword [ebp - 0x4f8]
sub eax, ecx
add eax, dword [ebp - 0x4e4]
mov dword [esi + 0x1c], ecx
push eax
push ecx
call fcn.77ca29b8
cmp eax, ebx
jl 0x77ca31fe
mov edx, dword [ebp - 0x528]
mov eax, dword [ebp - 0x4d0]
push edi
mov dword [esi + 0x20], edx
lea ecx, [eax + 8]
lea edx, [ebp - 0x4e4]
push edx
and ecx, 0xfffffff8
lea edx, [ebp - 0x4d0]
push edx
push dword [ebp - 0x51c]
sub eax, ecx
add eax, dword [ebp - 0x4e4]
mov dword [esi + 0x2c], ecx
push eax
push ecx
call fcn.77ca29b8
cmp eax, ebx
jl 0x77ca31fe
mov eax, dword [ebp - 0x4d0]
lea ecx, [eax + 8]
push edi
and ecx, 0xfffffff8
lea edx, [ebp - 0x4e4]
push edx
sub eax, ecx
add eax, dword [ebp - 0x4e4]
lea edx, [ebp - 0x4d0]
push edx
push dword [ebp - 0x500]
shr eax, 1
push eax
push ecx
mov dword [esi + 0x34], ecx
call fcn.77ca13a4
cmp eax, ebx
jl 0x77ca31fe
mov eax, dword [ebp - 0x4d0]
mov ecx, dword [ebp - 0x4e4]
lea edi, [eax + 0xf]
and edi, 0xfffffff8
lea esi, [ecx + ecx]
sub esi, edi
add esi, eax
cmp dword [ebp - 0x4ec], ebx
jne 0x77ca2abd
mov eax, dword [ebp - 0x4e8]
push 0x800
mov dword [eax + 0x150], edi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x4d0]
push eax
push dword [ebp - 0x4dc]
shr esi, 1
push esi
push edi
call fcn.77ca13a4
cmp eax, ebx
jl 0x77ca31fe
cmp dword [ebp - 0x548], ebx
jne 0x77ced72a
cmp dword [ebp - 0x4e0], ebx
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [ebp - 0x4f4]
mov dword [eax + 0x148], ecx
mov ecx, dword [ebp - 0x4d8]
mov dword [eax + 0x38], ecx
lea edi, [eax + 0x160]
lea esi, [ebp - 0x568]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x534]
mov dword [eax + 0x170], ecx
mov ecx, dword [ebp - 0x530]
mov dword [eax + 0x174], ecx
mov dword [eax + 0x14c], 1
mov ecx, dword [ebp - 0x518]
mov dword [eax + 0x140], ecx
mov ecx, dword [ebp - 0x514]
mov dword [eax + 0x144], ecx
mov esi, eax
jbe 0x77ca24cc
mov eax, dword [ebp - 0x4e0]
mov dword [esi + 0x3c], eax
shl eax, 2
push eax
lea eax, [ebp - 0x668]
push eax
lea eax, [esi + 0x40]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov edi, 0x800
push edi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x4f0]
push eax
push dword [ebp - 0x4dc]
lea eax, [ebp - 0x4c4]
push 0x218
push eax
mov dword [esi + 0x158], ebx
mov dword [esi + 0x15c], ebx
call fcn.77ca13a4
test eax, eax
jl 0x77ca252c
push edi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x4f0]
push eax
push 0x77ca27d4
push dword [ebp - 0x4e4]
push dword [ebp - 0x4f0]
call fcn.77ca13a4
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
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4e4]
push dword [ebp - 0x4f0]
call fcn.77cac425
test eax, eax
jl 0x77ced736
lea eax, [ebp - 0x4f4]
push eax
push 1
push 4
mov dword [ebp - 0x4f4], ebx
mov dword [ebp - 0x4d4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call sym.ADVAPI32.dll_OpenThreadToken
mov edi, eax
cmp edi, ebx
jne 0x77c9d504
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4d4], eax
mov eax, dword [0x77d2a6cc]
cmp eax, ebx
je 0x77ca2e2d
mov dword [ebp - 0x538], ebx
mov dword [ebp - 0x53c], 0x77d2afe0
mov dword [ebp - 0x540], eax
lea eax, [ebp - 0x4c4]
push eax
push ebx
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp edi, ebx
mov dword [esi + 4], eax
jne 0x77c9d510
cmp dword [ebp - 0x4f4], ebx
jne 0x77c9d529
cmp dword [esi + 4], ebx
mov eax, dword [ebp - 0x550]
mov dword [esi + 0x1a8], eax
mov byte [esi + 0x1cc], 1
je 0x77ca260b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x77ca261b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jne 0x77ca31f2
mov eax, dword [0x77d2b288]
cmp eax, ebx
jne 0x77ced796
mov esi, dword [ebp - 0x4e8]
cmp esi, ebx
je 0x77ca263d
lea eax, [esi + 0x1b0]
mov dword [eax + 4], eax
mov dword [eax], eax
push dword [ebp - 0x508]
push 0x4ab
push 0x77ca2978
call fcn.77ca972d
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 0xc
mov edi, esi
jmp 0x77ca205e
cmp dword [ebp - 0x4fc], 0xffffffff
je 0x77ca2273
push 1
lea eax, [ebp - 0x4c8]
push eax
push ebx
lea eax, [ebp - 0x4cc]
push eax
push ebx
mov esi, 0x77ca2964
push esi
push dword [ebp - 0x4fc]
mov dword [ebp - 0x4c8], ebx
mov dword [ebp - 0x4cc], ebx
call fcn.77ca9780
cmp eax, ebx
je 0x77ca28c5
cmp eax, 0xea
jne 0x77ced695
cmp dword [ebp - 0x4cc], 1
jne 0x77ca3180
mov eax, dword [ebp - 0x4c8]
add eax, 2
push eax
push 0x36c
push 0x77ca2978
call fcn.77ca96e5
cmp eax, ebx
mov dword [ebp - 0x4ec], eax
je 0x77ced6a8
push 1
lea eax, [ebp - 0x4c8]
push eax
push dword [ebp - 0x4ec]
lea eax, [ebp - 0x4cc]
push eax
push ebx
push esi
push dword [ebp - 0x4fc]
mov dword [ebp - 0x4cc], ebx
call fcn.77ca9780
mov esi, eax
cmp esi, ebx
jne 0x77ced680
cmp dword [ebp - 0x4cc], 1
jne 0x77ca3192
mov eax, dword [ebp - 0x4c8]
inc eax
mov dword [ebp - 0x4d4], eax
add eax, 7
and eax, 0xfffffff8
add dword [ebp - 0x4d0], eax
push dword [ebp - 0x4fc]
call sym.ADVAPI32.dll_RegCloseKey
jmp 0x77ca2281
push dword [ebp - 0x4d4]
mov eax, dword [ebp - 0x4e8]
push dword [ebp - 0x4ec]
mov dword [eax + 0x10], edi
push edi
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x4d4]
add esp, 0xc
push dword [ebp - 0x4ec]
shr eax, 1
push 0x402
lea edi, [edi + eax*2 + 7]
push 0x77ca2978
and edi, 0xfffffff8
call fcn.77ca972d
mov eax, dword [ebp - 0x4d4]
add eax, 7
and eax, 0xfffffff8
mov dword [ebp - 0x4ec], ebx
sub esi, eax
jmp 0x77ca23fb
push dword [ebp - 0x4d4]
call fcn.77ca2e55
test eax, eax
mov dword [ebp - 0x538], ebx
je 0x77ced73f
mov eax, dword [0x77d2a6cc]
jmp 0x77ca25aa
push 0x218
push eax
push dword [ebp - 0x508]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x77ca1ca9
cmp dword [ebp - 0x4cc], 4
je 0x77ca1daa
jmp 0x77ca1d9d
cmp dword [ebp - 0x4cc], 4
je 0x77ca1f38
jmp 0x77ca1f2d
mov dword [ebp - 0x518], ebx
jmp 0x77ca1f84
mov dword [ebp - 0x514], ebx
jmp 0x77ca1fd0
cmp edi, ebx
je 0x77ca205e
cmp dword [ebp - 0x4e0], 0x40
jae 0x77ca205e
push 0xa
push ebx
push edi
mov word [esi], bx
call sub.ntdll.dll_wcstoul
mov ecx, dword [ebp - 0x4e0]
add esp, 0xc
inc dword [ebp - 0x4e0]
mov dword [ebp + ecx*4 - 0x668], eax
mov word [esi], 0x20
xor edi, edi
jmp 0x77ca205e
cmp dword [ebp - 0x4cc], 7
je 0x77ca28d2
jmp 0x77ced695
cmp dword [ebp - 0x4cc], 7
je 0x77ca2939
jmp 0x77ced680
mov esi, 0x482
jmp 0x77ca1cde
cmp esi, ebx
push 8
pop edi
je 0x77ca1d55
jmp 0x77ca1daa
cmp dword [ebp - 0x4d4], ebx
je 0x77ca1eee
jmp 0x77ca1f38
cmp dword [ebp - 0x4c8], edi
jne 0x77ca2170
jmp 0x77ca218e
cmp dword [ebp - 0x4c8], 8
jne 0x77ca21da
jmp 0x77ca21f4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x77ced5d6
and eax, 0xffff
jmp 0x77ca2611
xor eax, eax
jmp 0x77ca2654
mov eax, dword [0x77d2b29c]
and al, 0xf
cmp al, 1
mov esi, 0x482
jb 0x77ca1cde
push ebx
push esi
push ebx
push 0x12
push 0x18c
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x18
jmp 0x77ca1cde
mov eax, dword [0x77d2b29c]
and al, 0xf
cmp dword [ebp - 0x4dc], ebx
je 0x77ced22c
cmp al, 1
jb 0x77ced247
mov eax, dword [ebp - 0x510]
movzx eax, word [eax + 2]
push ebx
push eax
push dword [ebp - 0x4dc]
push esi
push 1
push 0x12
push 0x1a4
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x20
jmp 0x77ced247
cmp al, 1
jb 0x77ced247
push ebx
push esi
push ebx
push 0x12
push 0x1a8
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x18
push 0x77d265a0
push ebx
mov edi, 0xc0000bbb
push edi
mov dword [ebp - 0x50c], 1
call fcn.77cd91f2
test eax, eax
je 0x77ca31ae
mov eax, dword [ebp - 0x4dc]
push ebx
mov dword [ebp - 0x520], eax
lea eax, [ebp - 0x524]
push eax
push ebx
push 2
push ebx
push edi
push ebx
push 1
push dword [0x77d2a6a8]
mov dword [ebp - 0x524], 0x77ced7f4
call sym.ADVAPI32.dll_ReportEventW
jmp 0x77ca31ae
mov eax, dword [0x77d2b29c]
and al, 0xf
cmp dword [ebp - 0x4dc], ebx
je 0x77ced2de
cmp al, 1
jb 0x77ced2f9
mov eax, dword [ebp - 0x510]
movzx eax, word [eax + 2]
push ebx
push eax
push dword [ebp - 0x4dc]
push esi
push 1
push 0x12
push 0x1f5
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x20
jmp 0x77ced2f9
cmp al, 1
jb 0x77ced2f9
push ebx
push esi
push ebx
push 0x12
push 0x1f9
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x18
push 0x77d265a0
push ebx
mov edi, 0xc0000bbb
push edi
call fcn.77cd91f2
test eax, eax
je 0x77ced33f
mov eax, dword [ebp - 0x4dc]
push ebx
mov dword [ebp - 0x520], eax
lea eax, [ebp - 0x524]
push eax
push ebx
push 2
push ebx
push edi
push ebx
push 1
push dword [0x77d2a6a8]
mov dword [ebp - 0x524], 0x77ced7e8
call sym.ADVAPI32.dll_ReportEventW
mov dword [ebp - 0x50c], 1
jmp 0x77ca1e1b
mov edi, dword [ebp - 0x4c8]
add edi, 8
and edi, 0xfffffff8
add dword [ebp - 0x4d0], edi
xor esi, esi
inc esi
mov dword [ebp - 0x548], esi
jmp 0x77ca1ee0
inc esi
mov eax, dword [0x77d2b29c]
and al, 0xf
cmp dword [ebp - 0x4dc], ebx
je 0x77ced3b1
cmp al, 1
jb 0x77ced3d1
mov eax, dword [ebp - 0x510]
movzx eax, word [eax + 2]
push ebx
push eax
push dword [ebp - 0x4dc]
push dword [ebp - 0x4d4]
push esi
push 0x12
push 0x24e
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x20
jmp 0x77ced3d1
cmp al, 1
jb 0x77ced3d1
push ebx
push dword [ebp - 0x4d4]
push ebx
push 0x12
push 0x252
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x18
push 0x77d265a0
push ebx
push 0xc0000bbb
mov dword [ebp - 0x50c], esi
call fcn.77cd91f2
test eax, eax
je 0x77ca31be
mov eax, dword [ebp - 0x4dc]
push ebx
mov dword [ebp - 0x520], eax
lea eax, [ebp - 0x524]
push eax
push ebx
push 2
push ebx
push 0xc0000bbb
push ebx
push esi
push dword [0x77d2a6a8]
mov dword [ebp - 0x524], 0x77ced7d8
call sym.ADVAPI32.dll_ReportEventW
jmp 0x77ca31be
cmp word [edi], bx
je 0x77ca20a4
mov eax, dword [0x77d2b29c]
and al, 0xf
cmp al, 1
jb 0x77ced453
push ebx
push ebx
push ebx
push 0x12
push 0x2cc
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x18
push 0x77d265a0
push ebx
mov esi, 0xc0000bba
push esi
call fcn.77cd91f2
test eax, eax
je 0x77ca20a4
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push 1
push dword [0x77d2a6a8]
call sym.ADVAPI32.dll_ReportEventW
jmp 0x77ca20a4
cmp dword [ebp - 0x4cc], esi
jne 0x77ca20fd
cmp dword [ebp - 0x554], 1
jne 0x77ca20fd
mov dword [ebp - 0x4f4], esi
jmp 0x77ca20fd
cmp dword [ebp - 0x4cc], 3
je 0x77ca31cf
jmp 0x77ca2170
push ebx
push esi
lea ecx, [ebp - 0x4c8]
push ecx
push esi
lea ecx, [ebp - 0x4cc]
push ecx
push eax
push ebx
push 0x12
push 0x325
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x28
jmp 0x77ca2182
cmp dword [ebp - 0x4cc], 3
je 0x77ca31e0
jmp 0x77ca21da
push ebx
push esi
lea eax, [ebp - 0x4c8]
push eax
push esi
lea eax, [ebp - 0x4cc]
push eax
push ecx
push ebx
push 0x12
push 0x340
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x28
jmp 0x77ca21f4
cmp dword [ebp - 0x4cc], 7
jne 0x77ca209a
mov dword [ebp - 0x4e0], ebx
jmp 0x77ced571
cmp dword [ebp - 0x4e0], 0x40
jae 0x77ca209c
push 0xa
push ebx
push edi
call sub.ntdll.dll_wcstoul
mov ecx, dword [ebp - 0x4e0]
add esp, 0xc
inc dword [ebp - 0x4e0]
push edi
mov dword [ebp + ecx*4 - 0x668], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], bx
je 0x77ca209c
jmp 0x77ced53a
mov eax, dword [0x77d2b29c]
and al, 0xf
cmp dword [ebp - 0x4dc], ebx
je 0x77ced65c
cmp al, 1
jb 0x77ca31f2
mov eax, dword [ebp - 0x4dc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77ced5a0
sub eax, edx
push ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x4dc]
push esi
push 1
push 0x12
push 0x30a
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x20
jmp 0x77ca31f2
mov eax, dword [0x77d2b29c]
and al, 0xf
cmp al, 1
jb 0x77ced5f8
push ebx
push esi
push ebx
push 0x12
push 0x499
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x18
cmp dword [ebp - 0x50c], ebx
je 0x77ced613
push 1
push dword [ebp - 0x4dc]
push dword [ebp - 0x4d8]
call fcn.77d209f2
cmp dword [ebp - 0x4e8], ebx
je 0x77ced636
push dword [ebp - 0x4e8]
push 0x49e
push 0x77ca2978
call fcn.77ca972d
mov dword [ebp - 0x4e8], ebx
cmp dword [ebp - 0x4ec], ebx
je 0x77ca2628
push dword [ebp - 0x4ec]
push 0x4a2
push 0x77ca2978
call fcn.77ca972d
jmp 0x77ca2628
cmp al, 1
jb 0x77ca31f2
push ebx
push esi
push ebx
push 0x12
push 0x30e
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x18
jmp 0x77ca31f2
push dword [ebp - 0x4ec]
push 0x37c
push 0x77ca2978
call fcn.77ca972d
mov dword [ebp - 0x4d4], ebx
mov dword [ebp - 0x4ec], ebx
xor esi, esi
jmp 0x77ca2952
mov eax, dword [0x77d2b29c]
and al, 0xf
cmp al, 1
push 0xe
mov dword [ebp - 0x4d4], ebx
pop esi
jb 0x77ca2952
push ebx
push 4
lea eax, [ebp - 0x4c8]
push eax
push esi
push ebx
push 0x12
push 0x38e
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x20
jmp 0x77ca2952
mov eax, dword [ebp - 0x54c]
cmp eax, ebx
je 0x77ced6f5
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x77ced6fc
mov eax, dword [esi]
mov dword [0x77d2a6b0], eax
push 1
push esi
call fcn.77d20f1b
push dword [esi + 0x38]
call dword [sym.imp.ntdll.dll_NtClose]
dec dword [0x77d2a6b8]
push esi
push 0x3b3
push 0x77ca2978
call fcn.77ca972d
xor esi, esi
jmp 0x77c9d622
or dword [ebp - 0x4f4], 1
jmp 0x77ca243d
mov word [ebp - 0x44], bx
jmp 0x77ca255e
mov dword [ebp - 0x540], 0x5c
mov dword [ebp - 0x53c], 0x77d341b0
jmp 0x77ca25ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77ca25da
mov eax, dword [0x77d2b29c]
and al, 0xf
cmp al, 1
push 0xe
pop esi
jb 0x77ca31f2
push ebx
push dword [ebp - 0x4d0]
push ebx
push 0x12
push 0x478
push 0x77cf057c
call fcn.77d1cff0
add esp, 0x18
jmp 0x77ca2613
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
jae 0x77ced7c4
inc ecx
mov dword [eax], ecx
shl ecx, 7
add eax, ecx
mov ecx, dword [ebp - 0x4e8]
push dword [ecx + 0x150]
mov dword [ecx + 0x178], eax
push 0x20
push eax
call fcn.77cac425
jmp 0x77ca2628
inc dword [eax + 8]
mov eax, dword [ebp - 0x4e8]
mov dword [eax + 0x178], ebx
jmp 0x77ca2628