Function at 0x1006f9e6
Capabilities:
Allocate or change rwx memory
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x1006ffac
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
mov edx, dword [0x1005ff3e]
call fcn.1005f596
lea eax, [ebp - 0x30]
mov edx, dword [0x1005ff6a]
call fcn.1005f596
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0
je 0x1006ff6a
mov eax, dword [ebp - 8]
cmp byte [eax + 0x2c], 0
jne 0x1006ff6a
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0xc], 0
sete byte [ebp - 0x11]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [0x10098d70]
call fcn.1006d3d6
cmp byte [ebp - 0x11], 0
je 0x1006faca
lea edx, [ebp - 0x138]
mov eax, dword [0x10098d54]
call fcn.10061b16
push dword [ebp - 0x138]
push 0x1006ffc2
push dword [ebp - 0x18]
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.1005e74a
mov eax, dword [ebp - 0x134]
call fcn.1005e88a
push eax
call fcn.1006c9ee
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1006ff6a
xor edx, edx
push ebp
push 0x1006ff63
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp - 0x11], 0
je 0x1006faf3
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
xor edx, edx
push ebp
push 0x1006ff3f
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x10], 0
jne 0x1006fb4d
push 0xffffffffffffffff
lea edx, [ebp - 0x140]
mov eax, dword [0x10098d68]
call fcn.10061b16
push dword [ebp - 0x140]
push 0x1006ffc2
push dword [ebp - 0x18]
lea eax, [ebp - 0x13c]
mov edx, 3
call fcn.1005e74a
mov eax, dword [ebp - 0x13c]
call fcn.1005e88a
push eax
call fcn.1006d106
mov dword [ebp - 0x1c], eax
jmp 0x1006fb52
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], 0
jne 0x1006fb62
cmp dword [ebp - 0x1c], 0
je 0x1006fed9
xor edx, edx
push ebp
push 0x1006fed2
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x10], 0
jne 0x1006fb8d
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1006feb5
xor edx, edx
push ebp
push 0x1006feae
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
lea eax, [ebx + 0x16]
cmp byte [eax], 0xe9
jne 0x1006fbb9
mov esi, 5
jmp 0x1006fbbe
mov esi, 6
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
lea edx, [ebx + 0x16]
cmp eax, dword [edx]
jne 0x1006fc02
cmp esi, 5
jne 0x1006fbe1
mov eax, dword [ebx + 0xc]
add eax, 4
mov al, byte [eax]
lea edx, [ebx + 0x16]
add edx, 4
cmp al, byte [edx]
jne 0x1006fc02
cmp esi, 6
jne 0x1006fe91
mov eax, dword [ebx + 0xc]
add eax, 4
mov ax, word [eax]
lea edx, [ebx + 0x16]
add edx, 4
cmp ax, word [edx]
je 0x1006fe91
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x24]
push eax
push 0x40
push 8
push edi
call sub.KERNEL32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x1006fe91
lea edx, [ebp - 0x130]
mov eax, dword [ebx + 0xc]
call fcn.1006466a
mov eax, dword [ebp - 8]
cmp byte [eax + 0x35], 0
je 0x1006fc62
mov eax, dword [ebp - 0x110]
sub eax, dword [ebp - 0x114]
cmp esi, eax
jbe 0x1006fc62
push ebp
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebx + 0xc]
call fcn.1006f746
pop ecx
test al, al
jne 0x1006fc66
xor eax, eax
jmp 0x1006fc68
mov al, 1
mov byte [ebp - 0x25], al
cmp byte [ebp - 0x25], 0
je 0x1006fd53
mov byte [ebp - 0x26], 0xf4
mov edx, dword [ebx + 0xc]
lea eax, [ebp - 0x26]
mov ecx, 1
call fcn.1006c386
test al, al
jne 0x1006fc95
mov eax, dword [ebx + 0xc]
mov dl, byte [ebp - 0x26]
mov byte [eax], dl
mov eax, dword [ebx + 0xc]
mov edx, 1
call fcn.1006f666
lea eax, [ebp - 0x30]
mov edx, dword [0x1005ff6a]
call fcn.1005f596
push eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x1005ff3e]
call fcn.1005f596
mov edx, eax
mov al, 1
pop ecx
call fcn.1006f25a
test al, al
je 0x1006fd53
mov eax, dword [ebp - 0x30]
call fcn.1005f3d6
test eax, eax
jl 0x1006fd53
inc eax
mov dword [ebp - 0x40], eax
xor edi, edi
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x3c], eax
jmp 0x1006fd28
mov dword [ebp - 0x10c], 0x10001
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + edi*4]
push eax
call sub.KERNEL32.dll_GetThreadContext
test eax, eax
je 0x1006fd41
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp - 0x54]
jae 0x1006fd41
mov eax, dword [ebx + 0xc]
add eax, 5
cmp eax, dword [ebp - 0x54]
jbe 0x1006fd41
push 0xa
call sub.KERNEL32.dll_Sleep
cmp dword [0x10098c44], 0
je 0x1006fced
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 0x3c]
cmp eax, dword [0x10098c44]
jb 0x1006fced
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + edi*4]
push eax
call sub.KERNEL32.dll_CloseHandle
inc edi
dec dword [ebp - 0x40]
jne 0x1006fce3
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x16]
mov ecx, esi
call fcn.1006c386
test al, al
jne 0x1006fd71
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x16]
mov ecx, esi
call fcn.1005d5f6
mov eax, dword [ebx + 0xc]
mov edx, esi
call fcn.1006f666
cmp byte [ebp - 0x25], 0
je 0x1006fe6e
mov dl, 1
mov eax, dword [0x10098c7c]
call fcn.10065b96
mov esi, eax
lea eax, [esi + 0xe]
lea edx, [esi + 0xa]
add eax, dword [edx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
mov edx, dword [0x1005ff6a]
call fcn.1005f596
push eax
mov edx, dword [0x1005ff3e]
lea eax, [ebp - 0x2c]
call fcn.1005f596
mov edx, eax
mov al, 1
pop ecx
call fcn.1006f25a
test al, al
je 0x1006fe6e
mov eax, dword [ebp - 0x30]
call fcn.1005f3d6
test eax, eax
jl 0x1006fe6e
inc eax
mov dword [ebp - 0x40], eax
xor edi, edi
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x3c], eax
jmp 0x1006fe3f
mov dword [ebp - 0x10c], 0x10001
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + edi*4]
push eax
call sub.KERNEL32.dll_GetThreadContext
test eax, eax
je 0x1006fe58
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp - 0x54]
je 0x1006fe38
cmp esi, dword [ebp - 0x54]
ja 0x1006fe23
lea eax, [esi + 0xa]
cmp eax, dword [ebp - 0x54]
jae 0x1006fe38
mov eax, dword [ebp - 0x54]
and eax, 0xffff0000
mov edx, dword [ebp - 0x34]
and edx, 0xffff0000
cmp eax, edx
jne 0x1006fe58
push 0xa
call sub.KERNEL32.dll_Sleep
cmp dword [0x10098c44], 0
je 0x1006fded
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 0x3c]
cmp eax, dword [0x10098c44]
jb 0x1006fded
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + edi*4]
push eax
call sub.KERNEL32.dll_CloseHandle
inc edi
dec dword [ebp - 0x40]
jne 0x1006fde3
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 8
mov eax, dword [ebx + 0xc]
push eax
call sub.KERNEL32.dll_VirtualProtect
cmp byte [ebp - 0x25], 0
je 0x1006fe91
push ebp
mov eax, dword [ebp - 0x38]
call fcn.1006f966
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1006feb5
cmp dword [ebp - 0x1c], 0
je 0x1006fead
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1006fed9
cmp dword [ebp - 0x1c], 0
je 0x1006fed1
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
cmp dword [ebp - 0x20], 0
je 0x1006ff22
mov eax, dword [ebp - 8]
cmp byte [eax + 0x38], 0
je 0x1006ff22
mov eax, dword [ebp - 8]
cmp byte [eax + 0x37], 0
je 0x1006fefe
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.1006d732
jmp 0x1006ff00
xor eax, eax
mov edx, dword [ebp - 8]
cmp byte [edx + 0x37], 0
je 0x1006ff0d
test eax, eax
je 0x1006ff22
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x20]
call fcn.1006d89e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1006ff46
cmp byte [ebp - 0x11], 0
je 0x1006ff3e
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1006ffb3
lea eax, [ebp - 0x140]
mov edx, 4
call fcn.1005e45a
lea eax, [ebp - 0x30]
mov edx, dword [0x1005ff6a]
call fcn.1005f596
lea eax, [ebp - 0x2c]
mov edx, dword [0x1005ff3e]
call fcn.1005f596
lea eax, [ebp - 0x18]
call fcn.1005e436
ret