Function at 0x10035fb0
Capabilities:
Allocate or change rwx memory
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [0x101ce2f4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xffffffff
mov eax, eax
mov al, al
mov ch, ch
test ebx, ebx
test ah, ah
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10035c10
add esp, 0xc
mov dword [ebp - 0xc], eax
test edi, edi
cmp dword [ebp - 0xc], 0
jne 0x10035ffe
mov eax, dword [ebp - 0x18]
jmp 0x10036269
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x2f0]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10035e80
add esp, 0x1c
test eax, eax
je 0x10036243
mov dword [ebp - 0x2f8], 0
mov dl, dl
test al, al
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x34]
cmp eax, dword [ebp - 0x10]
jne 0x1003607e
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x18]
jb 0x1003607e
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2f8], edx
test eax, eax
lea eax, [ebp - 0x2f4]
push eax
push 0x40
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x2f8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
test ch, ch
jmp 0x1003610c
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.10035d80
add esp, 8
test eax, eax
je 0x100360b5
push 0x40
push 0x3000
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.100c8150
mov dword [ebp - 0x2f8], eax
mov esi, esi
cmp dword [ebp - 0x2f8], 0
jne 0x1003610c
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10035c80
add esp, 4
test eax, eax
je 0x1003610c
push 0x40
push 0x3000
mov edx, dword [ebp + 0x18]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.100c8150
mov dword [ebp - 0x2f8], eax
test ch, ch
cmp dword [ebp - 0x2f8], 0
je 0x1003610c
mov ecx, dword [ebp - 0x2f8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10035cc0
add esp, 0xc
cmp dword [ebp - 0x2f8], 0
je 0x10036218
lea ecx, [ebp - 0x2f4]
push ecx
push 4
lea edx, [ebp - 0x2f8]
push edx
mov eax, dword [ebp - 0x24c]
add eax, 8
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10062010
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2f8]
mov dword [edx + 0x34], eax
mov cl, cl
lea ecx, [ebp - 0x2f4]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x2f8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.10062010
add esp, 0x14
test eax, eax
je 0x100361f0
mov dword [ebp - 0x2f0], 0x10007
test ebx, ebx
mov eax, dword [ebp - 0x2f8]
cmp eax, dword [ebp - 0x10]
jne 0x1003619e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp + 0xc]
add edx, dword [eax + 0x28]
mov dword [ebp - 0x240], edx
jmp 0x100361b2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2f8]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x240], edx
xchg ebx, eax
xchg ebx, eax
lea eax, [ebp - 0x2f0]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetThreadContext]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, ebx
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test edi, edi
mov dword [ebp - 0x18], 1
push edx
pop edx
jmp 0x10036216
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov esi, esi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test ecx, ecx
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test al, al
jmp 0x10036241
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dh, dh
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, 0x4159
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, ecx
jmp 0x1003624c
mov dword [ebp - 0x18], 0xfffffffe
xchg ebx, eax
xchg ebx, eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x2fc], edx
mov eax, dword [ebp - 0x2fc]
push eax
call fcn.10105b4b
add esp, 4
test cl, cl
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1011717a
mov esp, ebp
pop ebp
ret