Function at 0x77ca8a0b
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov dword [ebp - 0x20], 6
jmp 0x77ca8c5f
push 0x57
pop eax
jmp 0x77ca8cb5
xor eax, eax
jmp 0x77ca8ad1
push 0x58
push 0x77ca8cc0
call fcn.77cc73d0
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 0x77ca321a
cmp dword [ebp + 0x20], esi
je 0x77ca8a4f
cmp dword [ebp + 0x24], esi
je 0x77ca321a
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x77ca321a
cmp dword [ebp + 0x10], esi
je 0x77ca321a
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call fcn.77cc741a
mov ebx, eax
mov dword [ebp + 8], ebx
cmp ebx, esi
je 0x77ca320e
mov word [ebp - 0x60], si
mov eax, dword [edi]
lea eax, [eax + eax + 2]
cmp eax, 0xfffe
ja 0x77cd646f
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 0x77cd647a
mov eax, dword [ebp + 0x24]
cmp eax, esi
je 0x77ca3a54
mov eax, dword [eax]
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x4c], eax
test bl, 1
jne 0x77cd6486
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.77ca95e4
mov dword [ebp - 0x20], eax
push 0xfffffffffffffffe
pop edi
cmp dword [ebp - 0x20], 0
jne 0x77ca8d00
cmp dword [ebp + 0x24], 0
je 0x77ca8bfd
cmp dword [ebp - 0x24], 1
jne 0x77cd6620
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 0x77cd6639
and dword [ebp - 0x30], 0
test bl, 1
jne 0x77cd6648
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.77ca95e4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 8]
ja 0x77cd67c3
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 0x77cd67cb
xor esi, esi
cmp dword [ebp - 0x20], esi
jne 0x77ca8bdc
cmp dword [ebp + 0x20], esi
je 0x77ca8bdc
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 0x77cd67e1
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x77ca8bfd
mov edx, dword [ebp + 0x24]
cmp dword [edx], eax
jbe 0x77ca8bfd
test eax, eax
jbe 0x77ca8bfd
add eax, ecx
cmp byte [eax - 1], 0
jne 0x77cd67f0
cmp dword [ebp - 0x20], 0
jne 0x77ca8d12
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x77ca8c13
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x77ca8c1f
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
cmp dword [ebp - 0x20], 0
jne 0x77ca8c5f
cmp word [ebp - 0x60], 2
jb 0x77ca8c31
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 0x77cd67f8
movzx eax, word [ebp - 0x68]
mov dword [esi], eax
xor esi, esi
cmp dword [ebp - 0x5c], esi
je 0x77ca8c7c
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 0x77ca8c97
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 0x77cd6807
cmp dword [ebp - 0x38], esi
jne 0x77cd6822
cmp dword [ebp - 0x3c], esi
jne 0x77cd6830
mov eax, dword [ebp - 0x20]
call fcn.77cc73b0
ret 0x20
cmp dword [ebp - 0x20], 0xea
jne 0x77ca8bfd
jmp 0x77ca8b0f
cmp dword [ebp - 0x20], 0xea
jne 0x77ca8c1f
jmp 0x77ca8c07
mov word [ebp - 0x5e], 0xfffe
jmp 0x77ca8aa1
mov dword [ebp - 0x20], 8
jmp 0x77ca8c5f
mov esi, ebx
push 0xfffffffffffffffe
pop edi
and esi, edi
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.77d05cde
test eax, eax
jne 0x77cd64f5
cmp dword [ebp - 0x40], 5
jb 0x77cd64a7
cmp dword [ebp - 0x40], 0xa
jbe 0x77cd64f5
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 0x77cd647a
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.77d03848
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
jmp 0x77cd6551
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.77d03848
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
jmp 0x77cd65fb
test eax, eax
je 0x77cd655c
cmp eax, 0xea
jne 0x77cd6571
cmp dword [ebp + 0x18], 0x7fff0000
jbe 0x77cd6571
mov dword [ebp - 0x20], 0xd
jmp 0x77ca8c5f
test eax, eax
jne 0x77cd65b1
cmp dword [ebp - 0x24], 1
je 0x77cd6587
cmp dword [ebp - 0x24], 7
je 0x77cd6587
cmp dword [ebp - 0x24], 2
jne 0x77cd6591
cmp dword [ebp + 0x18], 2
jb 0x77cd6591
sub dword [ebp + 0x18], 2
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x4c]
ja 0x77cd65aa
push eax
push dword [ebp - 0x28]
push dword [ebp + 0x20]
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x77cd65b1
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 0x77ca8b05
cmp dword [ebp - 0x20], 0
je 0x77cd660e
cmp dword [ebp - 0x20], 0xea
jne 0x77ca8b05
cmp dword [ebp + 0x18], 0x7fff0000
jbe 0x77ca8b05
jmp 0x77cd6565
cmp dword [ebp - 0x24], 2
je 0x77ca8b23
cmp dword [ebp - 0x24], 7
je 0x77ca8b23
jmp 0x77ca8bfd
mov dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jmp 0x77ca8bdc
cmp byte [ebp - 0x19], 0
je 0x77cd6749
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 0x77cd667c
mov dword [ebp - 0x20], 8
jmp 0x77ca8b81
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.77d03848
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
jmp 0x77cd66d1
test eax, eax
je 0x77cd66dc
cmp eax, 0xea
jne 0x77cd66e9
cmp dword [ebp + 0x18], 0x7fff0000
ja 0x77cd6565
test eax, eax
jne 0x77cd6729
cmp dword [ebp - 0x24], 1
je 0x77cd66ff
cmp dword [ebp - 0x24], 7
je 0x77cd66ff
cmp dword [ebp - 0x24], 2
jne 0x77cd6709
cmp dword [ebp + 0x18], 2
jb 0x77cd6709
sub dword [ebp + 0x18], 2
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 8]
ja 0x77cd6722
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x77cd6729
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 0x77ca8b81
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.77d03848
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
jmp 0x77cd679e
cmp dword [ebp - 0x20], 0
je 0x77cd67b1
cmp dword [ebp - 0x20], 0xea
jne 0x77ca8b81
cmp dword [ebp + 0x18], 0x7fff0000
jbe 0x77ca8b81
jmp 0x77cd6565
mov eax, dword [ebp + 8]
jmp 0x77ca8b8d
cmp dword [ebp + 0x20], 0
je 0x77ca8ba9
mov dword [ebp - 0x20], 0xea
jmp 0x77ca8ba9
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x20], eax
jmp 0x77ca8bd6
mov byte [eax], 0
jmp 0x77ca8bfd
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x20], eax
jmp 0x77ca8c5f
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 0x77ca8ca0
lea eax, [ebp - 0x38]
push eax
call fcn.77cc7890
jmp 0x77ca8ca9
mov esi, 0x77d1a580
push esi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push dword [ebp - 0x3c]
call fcn.77cc7d61
push esi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x77ca8cb2