Function at 0x77ccf5a3
Capabilities:
Check for peb beingdebugged flag

Disassembly:
xor eax, eax
jmp 0x77ccf669
mov dword [ebp - 0x20], 6
jmp 0x77ccf7f7
push 0x58
push 0x77ccf858
call fcn.77cd5e30
xor esi, esi
mov word [ebp - 0x60], si
xor eax, eax
lea edi, [ebp - 0x5e]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x3c], esi
cmp dword [ebp + 0x18], esi
jne 0x77cd953c
cmp dword [ebp + 0x20], esi
je 0x77ccf5e7
cmp dword [ebp + 0x24], esi
je 0x77cd953c
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x77cd953c
cmp dword [ebp + 0x10], esi
je 0x77cd953c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call fcn.77cd5e99
mov ebx, eax
mov dword [ebp + 8], ebx
cmp ebx, esi
je 0x77cb3e02
mov word [ebp - 0x60], si
mov eax, dword [edi]
lea eax, [eax + eax + 2]
cmp eax, 0xfffe
ja 0x77ce4de1
mov ax, word [edi]
inc ax
add ax, ax
mov word [ebp - 0x5e], ax
mov eax, dword fs:[0x18]
movzx ecx, word [ebp - 0x5e]
push ecx
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x5c], eax
cmp eax, esi
je 0x77ce4dec
mov eax, dword [ebp + 0x24]
cmp eax, esi
je 0x77cb3dfb
mov eax, dword [eax]
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x4c], eax
test bl, 1
jne 0x77ce4df8
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.77cbf6c2
mov dword [ebp - 0x20], eax
push 0xfffffffffffffffe
pop edi
cmp dword [ebp - 0x20], 0
jne 0x77ccf898
cmp dword [ebp + 0x24], 0
je 0x77ccf795
cmp dword [ebp - 0x24], 1
jne 0x77cd9523
mov eax, dword [ebp + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov eax, dword fs:[0x18]
push dword [ebp + 0x18]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
mov esi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
call esi
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x77ce4f92
and dword [ebp - 0x30], 0
test bl, 1
jne 0x77ce4fa1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.77cbf6c2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 8]
ja 0x77ce511c
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeToMultiByteSize]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x24]
cmp eax, dword [ecx]
ja 0x77cd7b1c
xor esi, esi
cmp dword [ebp - 0x20], esi
jne 0x77ccf774
cmp dword [ebp + 0x20], esi
je 0x77ccf774
mov dword [ebp - 0x44], esi
push dword [ebp + 8]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
push dword [ebp + 0x20]
call dword [sym.imp.ntdll.dll_RtlUnicodeToMultiByteN]
cmp eax, esi
jl 0x77ce5130
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x77ccf795
mov edx, dword [ebp + 0x24]
cmp dword [edx], eax
jbe 0x77ccf795
test eax, eax
jbe 0x77ccf795
add eax, ecx
cmp byte [eax - 1], 0
jne 0x77ce513f
cmp dword [ebp - 0x20], 0
jne 0x77ccf8aa
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x77ccf7ab
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x77ccf7b7
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
cmp dword [ebp - 0x20], 0
jne 0x77ccf7f7
cmp word [ebp - 0x60], 2
jb 0x77ccf7c9
add word [ebp - 0x60], 0xfffe
mov esi, dword [ebp + 0x14]
mov ax, word [esi]
mov word [ebp - 0x66], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
test eax, eax
jl 0x77ce5147
movzx eax, word [ebp - 0x68]
mov dword [esi], eax
xor esi, esi
cmp dword [ebp - 0x5c], esi
je 0x77ccf814
push dword [ebp - 0x5c]
push esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x2c], esi
je 0x77ccf82f
push dword [ebp - 0x2c]
push esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x28], esi
jne 0x77ce5156
cmp dword [ebp - 0x38], esi
jne 0x77ce5171
cmp dword [ebp - 0x3c], esi
jne 0x77ce517f
mov eax, dword [ebp - 0x20]
call fcn.77cd5e80
ret 0x20
cmp dword [ebp - 0x20], 0xea
jne 0x77ccf795
jmp 0x77ccf6a7
cmp dword [ebp - 0x20], 0xea
jne 0x77ccf7b7
jmp 0x77ccf79f
cmp dword [ebp + 0x20], 0
je 0x77ccf741
jmp 0x77ce5124
cmp dword [ebp - 0x24], 2
je 0x77ccf6bb
cmp dword [ebp - 0x24], 7
je 0x77ccf6bb
jmp 0x77ccf795
push 0x57
pop eax
jmp 0x77ccf84d
mov word [ebp - 0x5e], 0xfffe
jmp 0x77ccf639
mov dword [ebp - 0x20], 8
jmp 0x77ccf7f7
mov esi, ebx
push 0xfffffffffffffffe
pop edi
and esi, edi
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.77d1296e
test eax, eax
jne 0x77ce4e67
cmp dword [ebp - 0x40], 5
jb 0x77ce4e19
cmp dword [ebp - 0x40], 0xa
jbe 0x77ce4e67
mov byte [ebp - 0x19], 1
mov eax, dword fs:[0x18]
mov ecx, dword [ebp + 0x18]
add ecx, 2
push ecx
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x77ce4dec
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xc]
push esi
call fcn.77d106d3
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
jmp 0x77ce4ec3
mov byte [ebp - 0x19], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xc]
push esi
call fcn.77d106d3
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
jmp 0x77ce4f6d
test eax, eax
je 0x77ce4ece
cmp eax, 0xea
jne 0x77ce4ee3
cmp dword [ebp + 0x18], 0x7fff0000
jbe 0x77ce4ee3
mov dword [ebp - 0x20], 0xd
jmp 0x77ccf7f7
test eax, eax
jne 0x77ce4f23
cmp dword [ebp - 0x24], 1
je 0x77ce4ef9
cmp dword [ebp - 0x24], 7
je 0x77ce4ef9
cmp dword [ebp - 0x24], 2
jne 0x77ce4f03
cmp dword [ebp + 0x18], 2
jb 0x77ce4f03
sub dword [ebp + 0x18], 2
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x4c]
ja 0x77ce4f1c
push eax
push dword [ebp - 0x28]
push dword [ebp + 0x20]
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x77ce4f23
mov dword [ebp - 0x20], 0xd
mov eax, dword fs:[0x18]
push dword [ebp - 0x28]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [ebp - 0x28], 0
jmp 0x77ccf69d
cmp dword [ebp - 0x20], 0
je 0x77ce4f80
cmp dword [ebp - 0x20], 0xea
jne 0x77ccf69d
cmp dword [ebp + 0x18], 0x7fff0000
jbe 0x77ccf69d
jmp 0x77ce4ed7
mov dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jmp 0x77ccf774
cmp byte [ebp - 0x19], 0
je 0x77ce50a2
mov eax, dword fs:[0x18]
mov ecx, dword [ebp + 0x18]
add ecx, 2
push ecx
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call esi
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x77ce4fd5
mov dword [ebp - 0x20], 8
jmp 0x77ccf719
mov dword [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xc]
and ebx, edi
push ebx
call fcn.77d106d3
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
jmp 0x77ce502a
test eax, eax
je 0x77ce5035
cmp eax, 0xea
jne 0x77ce5042
cmp dword [ebp + 0x18], 0x7fff0000
ja 0x77ce4ed7
test eax, eax
jne 0x77ce5082
cmp dword [ebp - 0x24], 1
je 0x77ce5058
cmp dword [ebp - 0x24], 7
je 0x77ce5058
cmp dword [ebp - 0x24], 2
jne 0x77ce5062
cmp dword [ebp + 0x18], 2
jb 0x77ce5062
sub dword [ebp + 0x18], 2
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 8]
ja 0x77ce507b
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x77ce5082
mov dword [ebp - 0x20], 0xd
push dword [ebp - 0x28]
push 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [ebp - 0x28], 0
jmp 0x77ccf719
mov dword [ebp - 4], 3
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xc]
and ebx, edi
push ebx
call fcn.77d106d3
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
jmp 0x77ce50f7
cmp dword [ebp - 0x20], 0
je 0x77ce510a
cmp dword [ebp - 0x20], 0xea
jne 0x77ccf719
cmp dword [ebp + 0x18], 0x7fff0000
jbe 0x77ccf719
jmp 0x77ce4ed7
mov eax, dword [ebp + 8]
jmp 0x77ccf725
mov dword [ebp - 0x20], 0xea
jmp 0x77ccf741
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x20], eax
jmp 0x77ccf76e
mov byte [eax], 0
jmp 0x77ccf795
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x20], eax
jmp 0x77ccf7f7
push dword [ebp - 0x28]
push esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x77ccf838
lea eax, [ebp - 0x38]
push eax
call fcn.77cd6449
jmp 0x77ccf841
mov esi, 0x77d26580
push esi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push dword [ebp - 0x3c]
call fcn.77cbf2f9
push esi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x77ccf84a