Function at 0x76aa895b
Capabilities:
Access the windows event log
Check for peb beingdebugged flag
Check mutex on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xeec
mov eax, dword [0x76aae004]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xdc4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xda8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0xdac], eax
xor eax, eax
mov edx, dword [ebp + 0xc]
mov ecx, 0x82
lea edi, [ebp - 0x760]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xddc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x76aae3b0]
mov dword [ebp - 0xd90], eax
mov dword [ebp - 0xd84], eax
xor esi, esi
inc esi
push esi
xor ebx, ebx
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x760]
push eax
lea eax, [ebp - 0xd7c]
push eax
push ebx
push 0x76aa9820
push edx
mov dword [ebp - 0xda4], edx
mov dword [ebp - 0xdec], ebx
mov dword [ebp - 0xdc0], ebx
mov dword [ebp - 0xd9c], ebx
mov dword [ebp - 0xdc8], ebx
mov dword [ebp - 0xda0], ebx
mov dword [ebp - 0xdcc], ebx
mov dword [ebp - 0xd7c], ebx
mov dword [ebp - 0xd80], 0x208
mov dword [ebp - 0xdbc], ebx
mov dword [ebp - 0xdb8], ebx
mov dword [ebp - 0xd98], 0x3e8
call fcn.76aa7e91
mov edi, eax
cmp edi, ebx
jne 0x76aa9311
cmp dword [ebp - 0xd7c], 2
jne 0x76aa8a5f
mov esi, 0x104
push esi
lea eax, [ebp - 0x968]
push eax
lea eax, [ebp - 0x760]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x76aa8a88
cmp dword [ebp - 0xd7c], esi
jne 0x76aa8bf0
push ebx
lea eax, [ebp - 0x968]
push eax
mov esi, 0x104
push esi
push ebx
lea eax, [ebp - 0x760]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, esi
mov dword [ebp - 0xd80], eax
ja 0x76aa8b59
cmp eax, ebx
je 0x76aa8b59
lea eax, [eax + eax + 2]
add eax, 7
and eax, 0xfffffff8
push 0x41
add eax, 0x1a8
pop ecx
mov dword [ebp - 0xd8c], eax
xor eax, eax
push ebx
lea edi, [ebp - 0x24c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0xd7c]
push eax
push ebx
push 0x76aa9830
push dword [ebp - 0xda4]
mov dword [ebp - 0xd7c], ebx
mov dword [ebp - 0xd80], esi
call fcn.76aa7e91
mov edi, eax
cmp edi, ebx
jne 0x76aa8b05
cmp byte [ebp - 0x24c], bl
jne 0x76aa8c87
cmp dword [0x76aae538], 1
jl 0x76aa8c7a
cmp dword [ebp - 0xdac], ebx
je 0x76aa8c1d
cmp dword [0x76aae4f0], 1
jb 0x76aa8c3d
mov eax, dword [ebp - 0xda8]
movzx eax, word [eax + 2]
push ebx
push eax
push dword [ebp - 0xdac]
push edi
push 1
push 0x12
push 0x15f
push 0x76aa25c8
call fcn.76aa5e47
add esp, 0x20
jmp 0x76aa8c3d
mov edi, 0x482
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x76aae4f0], 1
jb 0x76aa8b85
push ebx
push edi
push ebx
push 0x12
push 0x3d9
push 0x76aa25c8
call fcn.76aa5e47
add esp, 0x18
cmp dword [ebp - 0xdcc], ebx
je 0x76aa8b9e
push dword [ebp - 0xdac]
push dword [ebp - 0xda4]
call fcn.76aa7de8
mov esi, dword [ebp - 0xdc0]
cmp esi, ebx
je 0x76aa8bbe
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor esi, esi
cmp dword [ebp - 0xda0], ebx
je 0x76aa8bdf
mov eax, dword fs:[0x18]
push dword [ebp - 0xda0]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.76aac8aa
leave
ret 0xc
cmp dword [0x76aae4f0], esi
mov edi, 0x482
jb 0x76aa8b5e
push ebx
push edi
push ebx
push 0x12
push 0x14b
push 0x76aa25c8
call fcn.76aa5e47
add esp, 0x18
jmp 0x76aa8b5e
cmp dword [0x76aae4f0], 1
jb 0x76aa8c3d
push ebx
push edi
push ebx
push 0x12
push 0x163
push 0x76aa25c8
call fcn.76aa5e47
add esp, 0x18
mov ecx, dword [ebp - 0xdac]
push ebx
mov dword [ebp - 0xdb0], ecx
lea ecx, [ebp - 0xdb4]
push ecx
push ebx
push 2
push ebx
push 0xc0000bbb
xor eax, eax
inc eax
push ebx
push eax
push dword [0x76aae514]
mov dword [ebp - 0xdcc], eax
mov dword [ebp - 0xdb4], 0x76aa99d0
call sub.ADVAPI32.dll_ReportEventW
cmp edi, ebx
jne 0x76aa8b5e
mov esi, 0x104
mov eax, dword [ebp - 0xd80]
push 4
pop edi
add eax, 7
and eax, 0xfffffff8
add dword [ebp - 0xd8c], eax
push 1
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0xd84]
push eax
lea eax, [ebp - 0xd7c]
push eax
push ebx
push 0x76aa9890
push dword [ebp - 0xda4]
mov dword [ebp - 0xd7c], ebx
mov dword [ebp - 0xd80], edi
call fcn.76aa7e91
cmp eax, ebx
jne 0x76aa8cdc
cmp dword [ebp - 0xd7c], edi
je 0x76aa8ce7
mov eax, dword [0x76aae3b0]
mov dword [ebp - 0xd84], eax
push 0x41
pop ecx
xor eax, eax
push ebx
lea edi, [ebp - 0x350]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0xd7c]
push eax
push ebx
push 0x76aa9838
push dword [ebp - 0xda4]
mov dword [ebp - 0xd7c], ebx
mov dword [ebp - 0xd80], esi
call fcn.76aa7e91
mov edi, eax
cmp edi, ebx
jne 0x76aa8d39
cmp byte [ebp - 0x350], bl
jne 0x76aa8ddb
xor esi, esi
inc esi
cmp dword [0x76aae538], esi
jl 0x76aa8ddb
cmp dword [ebp - 0xdac], ebx
je 0x76aa8d82
cmp dword [0x76aae4f0], esi
jb 0x76aa8da1
mov eax, dword [ebp - 0xda8]
movzx eax, word [eax + 2]
push ebx
push eax
push dword [ebp - 0xdac]
push edi
push esi
push 0x12
push 0x1ad
push 0x76aa25c8
call fcn.76aa5e47
add esp, 0x20
jmp 0x76aa8da1
cmp dword [0x76aae4f0], esi
jb 0x76aa8da1
push ebx
push edi
push ebx
push 0x12
push 0x1b1
push 0x76aa25c8
call fcn.76aa5e47
add esp, 0x18
mov eax, dword [ebp - 0xdac]
push ebx
mov dword [ebp - 0xdb0], eax
lea eax, [ebp - 0xdb4]
push eax
push ebx
push 2
push ebx
push 0xc0000bbb
push ebx
push esi
push dword [0x76aae514]
mov dword [ebp - 0xdb4], 0x76aa99c4
call sub.ADVAPI32.dll_ReportEventW
mov dword [ebp - 0xdcc], esi
cmp edi, ebx
jne 0x76aa8b5e
mov eax, dword [ebp - 0xd80]
add eax, 7
push 0x41
and eax, 0xfffffff8
add dword [ebp - 0xd8c], eax
pop ecx
xor eax, eax
push ebx
lea edi, [ebp - 0x148]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0xd7c]
push eax
push ebx
push 0x76aa9848
push dword [ebp - 0xda4]
mov esi, 0x104
mov dword [ebp - 0xd7c], ebx
mov dword [ebp - 0xd80], esi
call fcn.76aa7e91
mov edi, eax
cmp edi, ebx
jne 0x76aa8e5d
mov eax, dword [ebp - 0xd80]
add eax, 7
and eax, 0xfffffff8
add dword [ebp - 0xd8c], eax
xor esi, esi
inc esi
mov dword [ebp - 0xdec], esi
jmp 0x76aa8eb8
push 0x41
pop ecx
xor eax, eax
push ebx
lea edi, [ebp - 0x148]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0xd7c]
push eax
push ebx
push 0x76aa9840
push dword [ebp - 0xda4]
mov dword [ebp - 0xd7c], ebx
mov dword [ebp - 0xd80], esi
call fcn.76aa7e91
mov edi, eax
xor esi, esi
cmp edi, ebx
jne 0x76aa8ec5
mov eax, dword [ebp - 0xd80]
add eax, 7
and eax, 0xfffffff8
add dword [ebp - 0xd8c], eax
inc esi
cmp byte [ebp - 0x148], bl
je 0x76aa8ec6
jmp 0x76aa8f69
inc esi
cmp dword [0x76aae538], esi
jl 0x76aa8f65
cmp dword [ebp - 0xdac], ebx
je 0x76aa8f0c
cmp dword [0x76aae4f0], esi
jb 0x76aa8f2b
mov eax, dword [ebp - 0xda8]
movzx eax, word [eax + 2]
push ebx
push eax
push dword [ebp - 0xdac]
push edi
push esi
push 0x12
push 0x201
push 0x76aa25c8
call fcn.76aa5e47
add esp, 0x20
jmp 0x76aa8f2b
cmp dword [0x76aae4f0], esi
jb 0x76aa8f2b
push ebx
push edi
push ebx
push 0x12
push 0x205
push 0x76aa25c8
call fcn.76aa5e47
add esp, 0x18
mov eax, dword [ebp - 0xdac]
push ebx
mov dword [ebp - 0xdb0], eax
lea eax, [ebp - 0xdb4]
push eax
push ebx
push 2
push ebx
push 0xc0000bbb
push ebx
push esi
push dword [0x76aae514]
mov dword [ebp - 0xdcc], esi
mov dword [ebp - 0xdb4], 0x76aa99b4
call sub.ADVAPI32.dll_ReportEventW
cmp edi, ebx
jne 0x76aa8fb6
push 4
pop edi
push esi
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0xd90]
push eax
lea eax, [ebp - 0xd7c]
push eax
push ebx
push 0x76aa98ac
push dword [ebp - 0xda4]
mov dword [ebp - 0xd7c], ebx
mov dword [ebp - 0xd80], edi
call fcn.76aa7e91
test eax, eax
jne 0x76aa8fab
cmp dword [ebp - 0xd7c], edi
je 0x76aa8fb6
mov eax, dword [0x76aae3b0]
mov dword [ebp - 0xd90], eax
xor eax, eax
push esi
mov ecx, 0x82
lea edi, [ebp - 0x558]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0xd7c]
push eax
push ebx
push 0x76aa9850
push dword [ebp - 0xda4]
mov dword [ebp - 0xd7c], ebx
mov dword [ebp - 0xd80], 0x208
call fcn.76aa7e91
cmp eax, ebx
jne 0x76aa90c0
cmp dword [ebp - 0xd7c], 7
je 0x76aa9030
cmp word [ebp - 0x558], bx
lea eax, [ebp - 0x558]
je 0x76aa902c
cmp word [eax], 0x20
jne 0x76aa9025
mov word [eax], bx
inc eax
inc eax
cmp word [eax], bx
jne 0x76aa901c
mov word [eax + 2], bx
cmp word [ebp - 0x558], bx
lea edi, [ebp - 0x558]
mov dword [ebp - 0xdc8], ebx
je 0x76aa90c0
cmp dword [ebp - 0xdc8], 0x40
jae 0x76aa907d
push 0xa
push ebx
push edi
call sub.msvcrt.dll_wcstoul
mov ecx, dword [ebp - 0xdc8]
add esp, 0xc
inc dword [ebp - 0xdc8]
push edi
mov dword [ebp + ecx*4 - 0xeec], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], bx
jne 0x76aa9045
cmp word [edi], bx
je 0x76aa90c0
cmp dword [0x76aae538], esi
jl 0x76aa90c0
cmp dword [0x76aae4f0], esi
jb 0x76aa90a9
push ebx
push ebx
push ebx
push 0x12
push 0x24d
push 0x76aa25c8
call fcn.76aa5e47
add esp, 0x18
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xc0000bba
push ebx
push esi
push dword [0x76aae514]
call sub.ADVAPI32.dll_ReportEventW
push 4
pop edi
push esi
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0xd94]
push eax
lea eax, [ebp - 0xd7c]
push eax
push ebx
push 0x76aa98d0
push dword [ebp - 0xda4]
mov dword [ebp - 0xd7c], ebx
mov dword [ebp - 0xd94], ebx
mov dword [ebp - 0xd80], edi
call fcn.76aa7e91
cmp eax, ebx
jne 0x76aa9116
cmp dword [ebp - 0xd7c], edi
jne 0x76aa9116
cmp dword [ebp - 0xd94], esi
jne 0x76aa9116
mov dword [ebp - 0xd9c], edi
push esi
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0xd98]
push eax
lea eax, [ebp - 0xd7c]
push eax
push ebx
push 0x76aa9960
push dword [ebp - 0xda4]
mov dword [ebp - 0xd7c], edi
mov dword [ebp - 0xd80], edi
call fcn.76aa7e91
push 0x10
pop edi
push esi
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0xddc]
push eax
lea eax, [ebp - 0xd7c]
push eax
push ebx
push 0x76aa9900
push dword [ebp - 0xda4]
mov dword [ebp - 0xd7c], ebx
mov dword [ebp - 0xd80], edi
call fcn.76aa7e91
cmp eax, ebx
jne 0x76aa9194
cmp dword [ebp - 0xd7c], 3
jne 0x76aa9194
cmp dword [ebp - 0xd80], edi
je 0x76aa91d2
cmp dword [0x76aae4f0], 4
jb 0x76aa91c6
push ebx
push 4
lea ecx, [ebp - 0xd80]
push ecx
push 4
lea ecx, [ebp - 0xd7c]
push ecx
push eax
push ebx
push 0x12
push 0x2a2
push 0x76aa25c8
call fcn.76aa5e47
add esp, 0x28
xor eax, eax
lea edi, [ebp - 0xddc]
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 - 0xdbc]
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0xdbc]
push eax
lea eax, [ebp - 0xd7c]
push eax
push ebx
push 0x76aa9930
push dword [ebp - 0xda4]
mov dword [ebp - 0xd7c], ebx
mov dword [ebp - 0xd80], 8
call fcn.76aa7e91
mov ecx, eax
cmp ecx, ebx
jne 0x76aa922b
cmp dword [ebp - 0xd7c], 3
jne 0x76aa922b
cmp dword [ebp - 0xd80], 8
je 0x76aa9268
or eax, 0xffffffff
cmp dword [0x76aae4f0], 4
lea edi, [ebp - 0xdbc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jb 0x76aa9268
push ebx
push 4
lea eax, [ebp - 0xd80]
push eax
push 4
lea eax, [ebp - 0xd7c]
push eax
push ecx
push ebx
push 0x12
push 0x2bd
push 0x76aa25c8
call fcn.76aa5e47
add esp, 0x28
push dword [ebp - 0xdac]
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x76aa9868
lea eax, [ebp - 0xb70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xd88]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0xb70]
push eax
push dword [ebp - 0xdc4]
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x76aa9432
push esi
lea eax, [ebp - 0xd80]
push eax
push ebx
lea eax, [ebp - 0xd7c]
push eax
push ebx
mov edi, 0x76aa987c
push edi
push dword [ebp - 0xd88]
mov dword [ebp - 0xd80], ebx
mov dword [ebp - 0xd7c], ebx
call fcn.76aa7e91
cmp eax, ebx
je 0x76aa92ed
cmp eax, 0xea
jne 0x76aa92fe
cmp dword [ebp - 0xd7c], esi
je 0x76aa9353
cmp dword [ebp - 0xd7c], 7
je 0x76aa9353
mov dword [ebp - 0xdc4], ebx
mov dword [ebp - 0xda0], ebx
xor edi, edi
jmp 0x76aa9425
cmp dword [0x76aae4f0], esi
jb 0x76aa8b5e
lea eax, [ebp - 0x760]
push ebx
push eax
call sub.msvcrt.dll_wcslen
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x760]
push eax
push edi
push 1
push 0x12
push 0x287
push 0x76aa25c8
call fcn.76aa5e47
add esp, 0x20
jmp 0x76aa8b5e
mov eax, dword fs:[0x18]
push dword [ebp - 0xd80]
mov eax, dword [eax + 0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, ebx
mov dword [ebp - 0xda0], eax
je 0x76aa93ee
push esi
lea eax, [ebp - 0xd80]
push eax
push dword [ebp - 0xda0]
lea eax, [ebp - 0xd7c]
push eax
push ebx
push edi
push dword [ebp - 0xd88]
mov dword [ebp - 0xd7c], ebx
call fcn.76aa7e91
mov edi, eax
cmp edi, ebx
jne 0x76aa93d0
cmp dword [ebp - 0xd7c], esi
je 0x76aa93b6
cmp dword [ebp - 0xd7c], 7
jne 0x76aa93d0
mov eax, dword [ebp - 0xd80]
mov dword [ebp - 0xdc4], eax
add eax, 7
and eax, 0xfffffff8
add dword [ebp - 0xd8c], eax
jmp 0x76aa9425
mov eax, dword fs:[0x18]
push dword [ebp - 0xda0]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x76aa92fe
cmp dword [0x76aae4f0], esi
push 0xe
mov dword [ebp - 0xda0], ebx
mov dword [ebp - 0xdc4], ebx
pop edi
jb 0x76aa9425
push ebx
push 4
lea eax, [ebp - 0xd80]
push eax
push edi
push ebx
push 0x12
push 0x306
push 0x76aa25c8
call fcn.76aa5e47
add esp, 0x20
push dword [ebp - 0xd88]
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x76aa9440
mov dword [ebp - 0xda0], ebx
mov dword [ebp - 0xdc4], ebx
xor edi, edi
cmp edi, ebx
jne 0x76aa8b5e
mov eax, dword [ebp - 0xda8]
movzx eax, word [eax + 2]
mov dword [ebp - 0xd80], eax
add eax, 7
and eax, 0xfffffff8
add dword [ebp - 0xd8c], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0xd8c]
mov eax, dword [eax + 0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0xdc0], edi
je 0x76aa979f
lea eax, [ebp - 0x24c]
lea esi, [edi + 0x1a8]
push eax
push esi
mov dword [edi + 0xc], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + esi + 8]
mov eax, dword [ebp - 0xd84]
mov dword [edi + 0x24], eax
lea eax, [ebp - 0x148]
and esi, 0xfffffff8
push eax
push esi
mov dword [edi + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + esi + 8]
mov eax, dword [ebp - 0xd90]
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x350]
and esi, 0xfffffff8
push eax
push esi
mov dword [edi + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + esi + 8]
lea eax, [ebp - 0x968]
and esi, 0xfffffff8
push eax
push esi
mov dword [edi + 0x34], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 9]
and esi, 0xfffffff8
cmp dword [ebp - 0xda0], ebx
mov dword [ebp - 0xda8], esi
je 0x76aa9597
mov eax, dword [ebp - 0xdc0]
mov edi, esi
mov esi, dword [ebp - 0xda0]
mov dword [eax + 0x10], edi
mov eax, dword [ebp - 0xdc4]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xda8]
shr eax, 1
lea eax, [ecx + eax*2 + 7]
and eax, 0xfffffff8
mov dword [ebp - 0xda8], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0xda0]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [ebp - 0xdc0]
mov esi, dword [ebp - 0xda8]
mov dword [ebp - 0xda0], ebx
push dword [ebp - 0xdac]
mov dword [edi + 0x148], esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp - 0xdec], ebx
je 0x76aa95c0
or dword [ebp - 0xd9c], 1
mov eax, dword [ebp - 0xdc0]
mov ecx, dword [ebp - 0xd9c]
mov dword [eax + 0x140], ecx
mov ecx, dword [ebp - 0xda4]
mov dword [eax + 0x38], ecx
lea edi, [eax + 0x158]
lea esi, [ebp - 0xddc]
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 - 0xdbc]
mov dword [eax + 0x168], ecx
mov ecx, dword [ebp - 0xdb8]
mov dword [eax + 0x16c], ecx
mov ecx, dword [ebp - 0xdc8]
cmp ecx, ebx
mov dword [eax + 0x144], 1
jbe 0x76aa9625
lea esi, [ebp - 0xeec]
lea edi, [eax + 0x40]
mov dword [eax + 0x3c], ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xdc0]
mov edi, 0x800
push edi
lea eax, [ebp - 0xd9c]
push eax
lea eax, [ebp - 0xda8]
push eax
push dword [ebp - 0xdac]
lea eax, [ebp - 0xd78]
push 0x208
push 0x104
push eax
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
call fcn.76aa84f2
test eax, eax
jl 0x76aa9690
push edi
lea eax, [ebp - 0xd9c]
push eax
lea eax, [ebp - 0xda8]
push eax
push 0x76aa9984
push dword [ebp - 0xd9c]
push dword [ebp - 0xda8]
call fcn.76aa8923
push 0x10
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call sub.msvcrt.dll__ultow
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0xd9c]
push dword [ebp - 0xda8]
call fcn.76aa8901
test eax, eax
jge 0x76aa96c2
mov word [ebp - 0x44], bx
lea eax, [ebp - 0xd9c]
push eax
push 1
push 4
mov dword [ebp - 0xd9c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call sub.ADVAPI32.dll_OpenThreadToken
mov edi, eax
cmp edi, ebx
je 0x76aa96ec
call sub.ADVAPI32.dll_RevertToSelf
mov edi, eax
mov eax, dword [0x76aae564]
cmp eax, ebx
jne 0x76aa9721
call fcn.76aa8696
test eax, eax
mov dword [ebp - 0xde0], ebx
je 0x76aa970b
mov eax, dword [0x76aae564]
jmp 0x76aa9727
mov dword [ebp - 0xde8], 0x5c
mov dword [ebp - 0xde4], 0x76aae3b8
jmp 0x76aa9737
mov dword [ebp - 0xde0], ebx
mov dword [ebp - 0xde8], eax
mov dword [ebp - 0xde4], 0x76aaec00
lea eax, [ebp - 0xd78]
push eax
push ebx
lea eax, [ebp - 0xde8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp edi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
je 0x76aa976b
push dword [ebp - 0xd9c]
push ebx
call sub.ADVAPI32.dll_SetThreadToken
test eax, eax
jne 0x76aa976b
call edi
cmp dword [ebp - 0xd9c], ebx
je 0x76aa977f
push dword [ebp - 0xd9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 4], ebx
mov eax, dword [ebp - 0xd98]
mov dword [esi + 0x1a0], eax
je 0x76aa9799
call edi
cmp eax, 0xb7
je 0x76aa97d9
call edi
mov edi, eax
jmp 0x76aa97d1
cmp dword [0x76aae4f0], 1
push 0xe
pop edi
jb 0x76aa8b5e
push ebx
push dword [ebp - 0xd8c]
push ebx
push 0x12
push 0x3bc
push 0x76aa25c8
call fcn.76aa5e47
mov esi, dword [ebp - 0xdc0]
add esp, 0x18
cmp edi, ebx
jne 0x76aa8b5e
mov eax, dword [0x76aae544]
cmp eax, ebx
je 0x76aa8bdf
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
jae 0x76aa980f
inc ecx
mov dword [eax], ecx
push 0x20
push dword [esi + 0x148]
shl ecx, 7
add eax, ecx
push eax
mov dword [esi + 0x170], eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x76aa8bdf
inc dword [eax + 8]
mov dword [esi + 0x170], ebx
jmp 0x76aa8bdf