Function at 0x100029d0
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 - 0x198], 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 - 0x1ac], 0
call fcn.1000a480
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 0x10002e1a
cmp dword [ebp - 8], 0x40
jb 0x10002e1a
push 0xf8
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.1000a480
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 0x10002e1a
cmp dword [ebp - 8], 0xf8
jb 0x10002e1a
mov eax, 0x10b
cmp word [ebp - 0x118], ax
je 0x10002ac2
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1ac]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008800
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 0x10002b6b
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 0x10002e1a
cmp dword [ebp - 8], 0x28
jb 0x10002e1a
cmp dword [ebp - 0x58], 0
mov edx, dword [ebp - 0xb0]
jne 0x10002b54
mov ecx, dword [ebp - 0x28]
cmp edx, ecx
jb 0x10002b54
mov esi, dword [ebp - 0x24]
lea eax, [esi + ecx]
cmp edx, eax
jae 0x10002b4e
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 0x10002af7
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
jmp 0x10002b71
mov edx, dword [ebp - 0xb0]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test edx, edx
je 0x10002c08
cmp dword [ebp - 0xac], 0
jne 0x10002c08
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 0x10002e1a
nop dword [eax]
add dword [ebp - 0xac], 0x14
cmp dword [ebp - 0x14], 0
je 0x10002bec
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 0x10002bb0
mov eax, dword [ebp - 0x1ac]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008800
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 0x10002c08
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 0x10002e1a
jb 0x10002c3c
cmp esi, 0xffffffff
ja 0x10002e1a
lea eax, [ecx + ecx*4]
shl eax, 2
mov dword [ebp - 0x194], eax
add eax, esi
cmp eax, esi
jb 0x10002e1a
lea ecx, [eax + 7]
and ecx, 0xfffffff8
mov dword [ebp - 0x190], ecx
cmp ecx, eax
jb 0x10002e1a
mov eax, ebx
mov edx, 0x10
mul edx
test edx, edx
ja 0x10002e1a
jb 0x10002c82
cmp eax, 0xffffffff
ja 0x10002e1a
lea edx, [eax + ecx]
mov dword [ebp - 0x184], edx
cmp edx, ecx
jb 0x10002e1a
mov ebx, edx
xor edx, edx
mov dword [ebp - 0x188], ebx
cmp dword [ebp - 0x17c], edx
jbe 0x10002cea
nop word [eax + eax]
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax + edx*4]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002cc0
sub ecx, esi
lea eax, [ecx + 4]
and eax, 0xfffffffc
add eax, ebx
cmp eax, ebx
jb 0x10002e1a
inc edx
mov ebx, eax
mov dword [ebp - 0x188], ebx
cmp edx, dword [ebp - 0x17c]
jb 0x10002cb0
push ebx
call fcn.10008944
add esp, 4
mov dword [ebp - 0x180], eax
push ebx
push 0
push eax
call fcn.1000a480
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 0x10002e0a
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop
mov edx, dword [ebp - 0x1c]
mov eax, edx
and eax, 0xfff
cmp eax, 0xfff
je 0x10002e0c
cmp dword [ebp - 0x18], 0x10000
mov ecx, dword [ebp - 0x28]
jne 0x10002dd3
cmp ecx, ebx
lea eax, [edx + ecx]
mov esi, ebx
cmova esi, ecx
add esi, 0xffff
and esi, 0xffff0000
cmp esi, eax
jae 0x10002dd3
nop dword [eax + eax]
push 4
push 0x3000
push dword [ebp - 0x188]
push esi
push dword [ebp - 0x174]
call edi
mov dword [ebp - 0x18c], eax
test eax, eax
jne 0x10002e31
mov edx, dword [ebp - 0x1c]
add esi, 0x10000
mov ecx, dword [ebp - 0x28]
lea eax, [edx + ecx]
cmp esi, eax
jb 0x10002da0
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 0x10002d60
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp - 0x180]
call fcn.1000893f
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1ac]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10008800
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 - 0x1a8], edi
mov dword [ebp - 0xc], 0
test ecx, ecx
je 0x10002e8f
mov esi, dword [ebp - 0x194]
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 0x10002e0c
cmp dword [ebp - 8], esi
jb 0x10002e0c
mov eax, dword [ebp - 0x18c]
xor esi, esi
mov dword [ebp - 0x1a4], esi
cmp dword [ebp - 0x17c], esi
jbe 0x1000306c
lea ecx, [ebx + 4]
mov dword [ebp - 0x194], ecx
mov ecx, dword [ebp - 0x190]
lea edx, [edi + ecx]
add ecx, 4
mov dword [ebp - 0x19c], edx
mov edx, dword [ebp - 0x180]
add ecx, edx
mov dword [ebp - 0x190], ecx
mov ecx, dword [ebp - 0x184]
nop dword [eax]
nop word [eax + eax]
mov dword [ebp - 0x18c], eax
lea edx, [edx + ecx]
mov eax, dword [ebp - 0x198]
mov eax, dword [eax + esi*4]
mov esi, dword [ebp - 0x188]
sub esi, ecx
je 0x10002e0c
cmp esi, 0x7fffffff
ja 0x10003056
mov ebx, 0x7ffffffe
mov dword [ebp - 0x1a0], 0
sub ebx, esi
mov edi, esi
sub eax, edx
mov ecx, edx
mov dword [ebp - 0x1b0], eax
nop dword [eax]
lea eax, [edi + ebx]
test eax, eax
je 0x10002f60
mov eax, dword [ebp - 0x1b0]
mov al, byte [ecx + eax]
test al, al
je 0x10002f54
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x10002f30
dec ecx
mov eax, 0x8007007a
jmp 0x10002f66
test edi, edi
jne 0x10002f60
dec ecx
mov eax, 0x8007007a
jmp 0x10002f66
mov eax, dword [ebp - 0x1a0]
mov byte [ecx], 0
test eax, eax
js 0x10002e0c
test edx, edx
je 0x10002f99
cmp esi, 2
jb 0x10002f99
nop word [eax + eax]
cmp byte [edx], 0x3f
jne 0x10002f8b
cmp byte [edx + 1], 0x3f
je 0x10002f94
dec esi
inc edx
cmp esi, 2
jae 0x10002f80
jmp 0x10002f99
mov word [edx], 0x3233
mov ebx, dword [ebp - 0x194]
mov edi, dword [ebp - 0x190]
mov eax, dword [ebp - 0x19c]
mov esi, dword [ebp - 0x1a4]
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 - 0x1a8]
add eax, dword [ebp - 0x184]
mov dword [edi + 4], 0x80000001
mov dword [edi + 8], 0
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x198]
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 0x10003000
add dword [ebp - 0x19c], 0x10
sub ecx, edx
inc esi
add edi, 0x10
add ebx, 0x14
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 0x190], edi
lea eax, [ecx + 4]
mov dword [ebp - 0x194], ebx
mov ecx, dword [ebp - 0x184]
and eax, 0xfffffffc
add ecx, eax
mov dword [ebp - 0x184], ecx
cmp esi, dword [ebp - 0x17c]
jae 0x1000305e
mov eax, dword [ebp - 0x18c]
mov edx, dword [ebp - 0x180]
jmp 0x10002ee0
mov byte [edx], 0
jmp 0x10002e0c
mov edi, dword [ebp - 0x1a8]
mov ebx, dword [ebp - 0x180]
jmp 0x10003072
mov ecx, dword [ebp - 0x184]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push ecx
push ebx
push dword [ebp - 0x18c]
mov ebx, dword [ebp - 0x174]
push ebx
call esi
test eax, eax
je 0x10002e0c
cmp dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x188]
jne 0x100030a5
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 0x10002e0c
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 0x10002e0c
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 0x10002e0c
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 0x10002e0c
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 0x10002e0c
mov dword [ebp - 0x1ac], 1
jmp 0x10002e0c