Function at 0x10002a00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x1001d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x194], eax
mov edi, edx
mov eax, dword [ebp + 0xc]
mov esi, ecx
push 0x40
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x170]
push 0
push eax
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x174], esi
mov dword [ebp - 0x1a8], 0
call fcn.1000a330
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 8]
add esp, 0xc
push eax
push 0x40
lea eax, [ebp - 0x170]
push eax
push edi
push esi
call ebx
test eax, eax
je 0x10002e4a
cmp dword [ebp - 8], 0x40
jb 0x10002e4a
push 0xf8
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.1000a330
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
add eax, edi
push eax
push esi
call ebx
test eax, eax
je 0x10002e4a
cmp dword [ebp - 8], 0xf8
jb 0x10002e4a
mov eax, 0x10b
cmp word [ebp - 0x118], ax
je 0x10002af2
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1a8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100087ff
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebp - 0x11c]
xor edi, edi
mov eax, dword [ebp - 0x134]
add ecx, 0x18
add eax, ecx
mov dword [ebp - 0x60], 0
xor ecx, ecx
mov dword [ebp - 0x5c], 0
cmp cx, word [ebp - 0x12a]
jae 0x10002b9b
mov ebx, dword [ebp - 0x178]
add ebx, eax
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
push 0x28
lea eax, [ebp - 0x34]
movq qword [ebp - 0x14], xmm0
push eax
push ebx
push esi
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10002e4a
cmp dword [ebp - 8], 0x28
jb 0x10002e4a
cmp dword [ebp - 0x58], 0
mov edx, dword [ebp - 0xb0]
jne 0x10002b84
mov ecx, dword [ebp - 0x28]
cmp edx, ecx
jb 0x10002b84
mov esi, dword [ebp - 0x24]
lea eax, [esi + ecx]
cmp edx, eax
jae 0x10002b7e
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], esi
mov esi, dword [ebp - 0x174]
movzx eax, word [ebp - 0x12a]
inc edi
add ebx, 0x28
cmp edi, eax
jb 0x10002b27
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
jmp 0x10002ba1
mov edx, dword [ebp - 0xb0]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test edx, edx
je 0x10002c38
cmp dword [ebp - 0xac], 0
jne 0x10002c38
mov esi, dword [ebp - 0x178]
lea eax, [ebp - 0x20]
push 0
push 0x14
push eax
add esi, edx
push esi
push dword [ebp - 0x174]
call ebx
test eax, eax
je 0x10002e4a
nop dword [eax]
add dword [ebp - 0xac], 0x14
cmp dword [ebp - 0x14], 0
je 0x10002c1c
push 0
push 0x14
lea eax, [ebp - 0x20]
add esi, 0x14
push eax
push esi
push dword [ebp - 0x174]
call ebx
test eax, eax
jne 0x10002be0
mov eax, dword [ebp - 0x1a8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100087ff
mov esp, ebp
pop ebp
ret
call edi
push str._This_PE_file_has_an_import_table__but_the_import_table_size_is_marked_as_0._This_is_an_error.If_it_is_not_repaired__the_launched_program_will_not_work_properly__Detours_has_automatically_repaired_its_import_table_size_for_you_______r_n
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call edi
cmp eax, esi
je 0x10002c38
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp - 0x17c]
mov eax, 0xcccccccd
mul dword [ebp - 0xac]
mov eax, ebx
mov ecx, edx
mov edx, 0x14
mul edx
shr ecx, 4
mov esi, eax
test edx, edx
ja 0x10002e4a
jb 0x10002c6c
cmp esi, 0xffffffff
ja 0x10002e4a
lea eax, [ecx + ecx*4]
shl eax, 2
mov dword [ebp - 0x190], eax
add eax, esi
cmp eax, esi
jb 0x10002e4a
lea ecx, [eax + 7]
and ecx, 0xfffffff8
mov dword [ebp - 0x18c], ecx
cmp ecx, eax
jb 0x10002e4a
mov eax, ebx
mov edx, 0x10
mul edx
test edx, edx
ja 0x10002e4a
jb 0x10002cb2
cmp eax, 0xffffffff
ja 0x10002e4a
lea edx, [eax + ecx]
mov dword [ebp - 0x184], edx
cmp edx, ecx
jb 0x10002e4a
mov ebx, edx
xor edx, edx
mov dword [ebp - 0x188], ebx
cmp dword [ebp - 0x17c], edx
jbe 0x10002d1a
nop word [eax + eax]
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax + edx*4]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002cf0
sub ecx, esi
lea eax, [ecx + 4]
and eax, 0xfffffffc
add eax, ebx
cmp eax, ebx
jb 0x10002e4a
inc edx
mov ebx, eax
mov dword [ebp - 0x188], ebx
cmp edx, dword [ebp - 0x17c]
jb 0x10002ce0
push ebx
call fcn.10008942
add esp, 4
mov dword [ebp - 0x180], eax
push ebx
push 0
push eax
call fcn.1000a330
mov edx, dword [ebp - 0x178]
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x10c]
add esp, 0xc
add ebx, edx
mov dword [ebp - 0x10], 0
add ebx, dword [ebp - 0x110]
xorps xmm0, xmm0
add ebx, dword [ebp - 0x114]
add ebx, dword [ebp - 0x104]
push 0x1c
cmp edx, ebx
movq qword [ebp - 0x18], xmm0
push eax
cmovae ebx, edx
push ebx
push dword [ebp - 0x174]
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10002e3a
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop
mov edx, dword [ebp - 0x1c]
mov eax, edx
and eax, 0xfff
cmp eax, 0xfff
je 0x10002e3c
cmp dword [ebp - 0x18], 0x10000
mov ecx, dword [ebp - 0x28]
jne 0x10002e03
cmp ecx, ebx
lea eax, [edx + ecx]
mov esi, ebx
cmova esi, ecx
add esi, 0xffff
and esi, 0xffff0000
cmp esi, eax
jae 0x10002e03
nop dword [eax + eax]
push 4
push 0x3000
push dword [ebp - 0x188]
push esi
push dword [ebp - 0x174]
call edi
mov dword [ebp - 0x1b0], eax
test eax, eax
jne 0x10002e61
mov edx, dword [ebp - 0x1c]
add esi, 0x10000
mov ecx, dword [ebp - 0x28]
lea eax, [edx + ecx]
cmp esi, eax
jb 0x10002dd0
lea eax, [edx + ecx]
mov dword [ebp - 0x10], 0
push 0x1c
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
push ecx
push eax
push dword [ebp - 0x174]
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x10002d90
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp - 0x180]
call fcn.1000893d
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1a8]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100087ff
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x178]
mov edi, eax
mov ecx, dword [ebp - 0xb0]
sub edi, edx
mov ebx, dword [ebp - 0x180]
mov dword [ebp - 0x1a4], edi
mov dword [ebp - 0xc], 0
test ecx, ecx
je 0x10002eb9
mov esi, dword [ebp - 0x190]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x17c]
push esi
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
push eax
lea eax, [ecx + edx]
push eax
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10002e3c
cmp dword [ebp - 8], esi
jb 0x10002e3c
xor esi, esi
mov dword [ebp - 0x1a0], esi
cmp dword [ebp - 0x17c], esi
jbe 0x10003076
mov edx, dword [ebp - 0x180]
lea eax, [edx + 4]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x18c]
lea ecx, [edi + eax]
add eax, 4
add eax, edx
mov dword [ebp - 0x198], ecx
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0x18c], eax
nop dword [eax]
mov eax, dword [ebp - 0x194]
lea edx, [edx + ecx]
mov eax, dword [eax + esi*4]
mov esi, dword [ebp - 0x188]
sub esi, ecx
je 0x10002e3c
cmp esi, 0x7fffffff
ja 0x10003060
mov ebx, 0x7ffffffe
mov dword [ebp - 0x19c], 0
sub ebx, esi
mov edi, esi
sub eax, edx
mov ecx, edx
mov dword [ebp - 0x1ac], eax
lea eax, [edi + ebx]
test eax, eax
je 0x10002f73
mov eax, dword [ebp - 0x1ac]
mov al, byte [ecx + eax]
test al, al
je 0x10002f67
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x10002f43
dec ecx
mov eax, 0x8007007a
jmp 0x10002f79
test edi, edi
jne 0x10002f73
dec ecx
mov eax, 0x8007007a
jmp 0x10002f79
mov eax, dword [ebp - 0x19c]
mov byte [ecx], 0
test eax, eax
js 0x10002e3c
test edx, edx
je 0x10002fa9
cmp esi, 2
jb 0x10002fa9
nop dword [eax]
cmp byte [edx], 0x3f
jne 0x10002f9b
cmp byte [edx + 1], 0x3f
je 0x10002fa4
dec esi
inc edx
cmp esi, 2
jae 0x10002f90
jmp 0x10002fa9
mov word [edx], 0x3233
mov ebx, dword [ebp - 0x190]
mov edi, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x198]
mov esi, dword [ebp - 0x1a0]
mov dword [ebx - 4], eax
add eax, 8
mov dword [edi - 4], 0x80000001
mov dword [edi], 0
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1a4]
add eax, dword [ebp - 0x184]
mov dword [edi + 4], 0x80000001
mov dword [edi + 8], 0
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x194]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov ecx, dword [eax + esi*4]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003010
add dword [ebp - 0x198], 0x10
sub ecx, edx
inc esi
add edi, 0x10
add ebx, 0x14
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x18c], edi
lea eax, [ecx + 4]
mov dword [ebp - 0x190], ebx
mov ecx, dword [ebp - 0x184]
and eax, 0xfffffffc
add ecx, eax
mov dword [ebp - 0x184], ecx
cmp esi, dword [ebp - 0x17c]
jae 0x10003068
mov edx, dword [ebp - 0x180]
jmp 0x10002f00
mov byte [edx], 0
jmp 0x10002e3c
mov edi, dword [ebp - 0x1a4]
mov ebx, dword [ebp - 0x180]
jmp 0x1000307c
mov ecx, dword [ebp - 0x184]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push ecx
push ebx
push dword [ebp - 0x1b0]
mov ebx, dword [ebp - 0x174]
push ebx
call esi
test eax, eax
je 0x10002e3c
cmp dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x188]
jne 0x100030af
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], eax
push 0x1c
mov dword [ebp - 0xac], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0xb0], edi
mov edi, dword [ebp - 0xdc]
push eax
push dword [ebp - 0x178]
movups xmmword [ebp - 0x28], xmm0
push ebx
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10002e3c
test byte [ebp - 0x14], 0xf0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x40
mov eax, 4
cmovne eax, ecx
push eax
push edi
push dword [ebp - 0x178]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
call edi
test eax, eax
je 0x10002e3c
push 0
push 0x40
lea eax, [ebp - 0x170]
mov dword [ebp - 0xd8], 0
push eax
push dword [ebp - 0x178]
push ebx
call esi
test eax, eax
je 0x10002e3c
push 0
push 0xf8
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
add eax, dword [ebp - 0x178]
push eax
push ebx
call esi
test eax, eax
je 0x10002e3c
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0xdc]
push dword [ebp - 0x178]
push ebx
call edi
test eax, eax
je 0x10002e3c
mov dword [ebp - 0x1a8], 1
jmp 0x10002e3c