Function at 0x1001ed20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10004fe0]
push ebx
push esi
push edi
test eax, eax
je 0x1001f275
mov eax, dword [0x100367ac]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push eax
mov dword [0x10004fe0], 0
call ebx
test eax, eax
jne 0x1001f275
mov ecx, dword [0x100367ac]
push 4
mov esi, dword [ecx]
push esi
call ebx
test eax, eax
jne 0x1001f275
mov edi, dword [esi]
push 4
push edi
call ebx
test eax, eax
jne 0x1001f275
mov esi, dword [edi + 4]
mov edx, dword [edi + 8]
mov edi, dword [edi + 0xc]
push 0x100
push esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
call ebx
test eax, eax
jne 0x1001f275
mov eax, dword [ebp - 0xc]
push 0x100
push eax
call ebx
test eax, eax
jne 0x1001f275
push 0x100
push edi
call ebx
test eax, eax
jne 0x1001f275
mov dl, byte [0x1002a850]
mov ecx, 0x1f
lea edi, [ebp - 0x113]
mov byte [ebp - 0x114], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x193]
mov byte [ebp - 0x194], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x93]
mov byte [ebp - 0x94], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esi, 0x3c
mov dword [ebp - 4], 0
stosb byte es:[edi], al
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov edi, dword [esi]
push 0xc
push edi
call ebx
test eax, eax
jne 0x1001ee5d
mov esi, dword [edi + 4]
push 4
push esi
call ebx
test eax, eax
jne 0x1001ee5d
mov ecx, dword [edi]
mov edx, dword [0x1003674c]
xor ecx, edx
push 4
lea esi, [esi + ecx*4]
push esi
call ebx
test eax, eax
jne 0x1001ee5d
mov eax, dword [edi + 8]
mov ecx, dword [esi]
mov edx, dword [ebp - 4]
xor eax, ecx
mov byte [ebp + edx - 0x114], al
je 0x1001ee76
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
inc eax
add esi, 4
cmp eax, 0x80
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
jl 0x1001ee1d
jmp 0x1001eeb8
cmp dword [ebp - 4], 0x80
jge 0x1001eeb8
lea edi, [ebp - 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jbe 0x1001eeb8
lea edi, [ebp - 0x114]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x10036128
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
add ecx, 0x3c
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push 0xc
mov esi, dword [edx]
push esi
call ebx
test eax, eax
jne 0x1001ef0b
mov edi, dword [esi + 4]
push 4
push edi
call ebx
test eax, eax
jne 0x1001ef0b
mov eax, dword [esi]
mov ecx, dword [0x1003674c]
xor eax, ecx
push 4
lea edi, [edi + eax*4]
push edi
call ebx
test eax, eax
jne 0x1001ef0b
mov eax, dword [esi + 8]
mov ecx, dword [edi]
xor eax, ecx
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x94], al
je 0x1001ef27
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc eax
add edx, 4
cmp eax, 0x80
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
jl 0x1001eec8
jmp 0x1001efc8
cmp dword [ebp - 4], 0x80
jge 0x1001efc8
lea edi, [ebp - 0x94]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 8
jne 0x1001efc8
mov edx, 1
xor ecx, ecx
mov dword [0x10036700], edx
mov al, byte [ebp + ecx - 0x94]
cmp al, 0x30
jl 0x1001ef65
cmp al, 0x39
jle 0x1001ef67
xor edx, edx
inc ecx
cmp ecx, 8
jl 0x1001ef56
test edx, edx
mov dword [0x10036700], edx
je 0x1001efa9
lea edi, [ebp - 0x94]
or ecx, 0xffffffff
xor eax, eax
mov dword [0x10036714], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x10036228
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1001efb0
mov byte [0x10036228], 0
push 0
push 0
push 0
push 0x1001f8b0
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], 0
add eax, 0x3c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov esi, dword [eax]
push 0xc
push esi
call ebx
test eax, eax
jne 0x1001f01b
mov edi, dword [esi + 4]
push 4
push edi
call ebx
test eax, eax
jne 0x1001f01b
mov ecx, dword [esi]
mov edx, dword [0x1003674c]
xor ecx, edx
push 4
lea edi, [edi + ecx*4]
push edi
call ebx
test eax, eax
jne 0x1001f01b
mov eax, dword [esi + 8]
mov ecx, dword [edi]
mov edx, dword [ebp - 4]
xor eax, ecx
mov byte [ebp + edx - 0x194], al
je 0x1001f038
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
inc ecx
add eax, 4
cmp ecx, 0x80
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
jl 0x1001efdb
jmp 0x1001f0ec
cmp dword [ebp - 4], 0x80
jge 0x1001f0ec
lea edi, [ebp - 0x194]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jbe 0x1001f0ec
lea edi, [ebp - 0x194]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [0x10036710], 1
mov eax, ecx
mov esi, edi
mov edi, 0x100361a8
mov dword [0x10036730], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call esi
call esi
cmp dword [0x10036740], eax
je 0x1001f0ec
mov eax, dword [0x1003672c]
test eax, eax
jne 0x1001f0ec
mov al, byte [0x10036128]
test al, al
je 0x1001f0ec
mov al, byte [0x100361a8]
test al, al
je 0x1001f0ec
push 0x10035e84
push 0
push 0
push 0x10035d80
push 0x10035c7c
mov byte [0x10035c7c], 0
mov byte [0x10035d80], 0
call fcn.1001b540
add esp, 0x14
mov al, byte [0x10035f88]
test al, al
je 0x1001f102
mov al, byte [0x10036008]
test al, al
jne 0x1001f18a
mov eax, dword [0x1003671c]
test eax, eax
je 0x1001f137
mov edi, 0x1000598c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x10035f88
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10005980
jmp 0x1001f16a
mov eax, dword [0x10036720]
test eax, eax
je 0x1001f18a
mov edi, 0x10005978
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x10035f88
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1000596c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x10036008
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x10036718]
test eax, eax
je 0x1001f275
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push 0xc
mov esi, dword [edx]
push esi
call ebx
test eax, eax
jne 0x1001f1ef
mov edi, dword [esi + 4]
push 4
push edi
call ebx
test eax, eax
jne 0x1001f1ef
mov eax, dword [esi]
mov ecx, dword [0x1003674c]
xor eax, ecx
push 4
lea edi, [edi + eax*4]
push edi
call ebx
test eax, eax
jne 0x1001f1ef
mov eax, dword [ebp - 4]
mov edx, dword [edi]
movsx ecx, byte [eax + 0x10035f88]
xor ecx, edx
mov dword [esi + 8], ecx
mov cl, byte [eax + 0x10035f88]
test cl, cl
je 0x1001f206
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc eax
add edx, 4
cmp eax, 0x80
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
jl 0x1001f1a4
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push 0xc
mov esi, dword [eax]
push esi
call ebx
test eax, eax
jne 0x1001f25e
mov edi, dword [esi + 4]
push 4
push edi
call ebx
test eax, eax
jne 0x1001f25e
mov ecx, dword [esi]
mov edx, dword [0x1003674c]
xor ecx, edx
push 4
lea edi, [edi + ecx*4]
push edi
call ebx
test eax, eax
jne 0x1001f25e
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
movsx edx, byte [eax + 0x10036008]
xor edx, ecx
mov dword [esi + 8], edx
mov cl, byte [eax + 0x10036008]
test cl, cl
je 0x1001f275
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc eax
add edx, 4
cmp eax, 0x80
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
jl 0x1001f213
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4