Function at 0x100018b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100110d1
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x1001f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x140], esi
mov edi, ecx
mov dword [ebp - 0x150], edi
xorps xmm0, xmm0
movlpd qword [ebp - 0x11c], xmm0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
call fcn.100029d0
mov ecx, eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi + 0x7c], 0
je 0x10002130
mov edx, dword [eax + esi + 0x78]
mov eax, dword [edx + esi + 0x1c]
add edx, esi
add eax, esi
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x158], eax
mov eax, dword [edx + 0x24]
mov ebx, dword [edx + 0x20]
add eax, esi
mov dword [ebp - 0x14c], eax
add ebx, esi
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x10002130
mov eax, dword [eax + edi + 0x78]
add eax, edi
xor edi, edi
mov dword [ebp - 0x154], eax
cmp dword [edx + 0x18], edi
jbe 0x10001abe
nop dword [eax]
mov edx, dword [ebx + edi*4]
add edx, esi
mov dword [ebp - 0x12c], 0
mov ecx, edx
mov dword [ebp - 0x128], 0xf
mov byte [ebp - 0x13c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100019a5
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x13c]
call fcn.100022d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x12c], 0
je 0x10001a69
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x158]
movzx eax, word [eax + edi*2]
mov esi, dword [ecx + eax*4]
lea eax, [ebp - 0x13c]
add esi, dword [ebp - 0x140]
lea ecx, [ebp - 0x1b4]
push eax
call fcn.10002200
mov dword [ebp - 0x19c], esi
lea eax, [ebp - 0x1b4]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x11c]
call fcn.10002a90
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x11c]
call fcn.10002ae0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1a0]
cmp edx, 0x10
jb 0x10001a69
mov ecx, dword [ebp - 0x1b4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001a5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002175
push edx
push ecx
call fcn.10003a02
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x128]
cmp edx, 0x10
jb 0x10001aa7
mov ecx, dword [ebp - 0x13c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001a9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002175
push edx
push ecx
call fcn.10003a02
add esp, 8
mov eax, dword [ebp - 0x148]
inc edi
cmp edi, dword [eax + 0x18]
jae 0x10001abe
mov esi, dword [ebp - 0x140]
jmp 0x10001980
mov esi, dword fs:[0x30]
lea eax, [ebp - 0x114]
push 0x104
push 0
push eax
call fcn.10005a20
add esp, 0xc
lea eax, [ebp - 0x114]
mov dword [ebp - 0x164], eax
push 0x104
push eax
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dl, byte [ebp - 0x114]
test dl, dl
je 0x10001b2d
lea ecx, [ebp - 0x114]
nop dword [eax]
cmp dl, 0x5c
je 0x10001b1a
cmp dl, 0x2f
jne 0x10001b23
lea ebx, [ecx + 1]
mov dword [ebp - 0x164], ebx
mov al, byte [ecx + 1]
inc ecx
mov dl, al
test al, al
jne 0x10001b10
mov ecx, dword [esi + 0xc]
mov edx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add ecx, 0x14
mov dword [ebp - 0x158], ecx
mov eax, dword [ecx]
mov dword [ebp - 0x14c], eax
cmp eax, ecx
je 0x10001ecb
nop
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x168], ebx
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov dword [ebp - 0x160], eax
cmp dword [eax + 0xdc], 0
je 0x10001eb5
cmp dword [eax + 0x84], 0
je 0x10001eb5
mov esi, dword [eax + 0x80]
lea edi, [ebp - 0x124]
mov ecx, dword [eax + 0xd8]
add esi, ebx
push edi
push 4
mov dword [ebp - 0x124], 0
add ecx, ebx
push dword [eax + 0xdc]
mov dword [ebp - 0x170], ecx
push ecx
call edx
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test eax, eax
je 0x1000212a
cmp dword [esi], 0
je 0x10001e7e
mov eax, dword [esi + 0xc]
add eax, ebx
push eax
push dword [ebp - 0x164]
call fcn.100081db
add esp, 8
test eax, eax
je 0x10001bec
add esi, 0x14
cmp dword [esi], 0
jne 0x10001bc7
jmp 0x10001e7e
mov eax, dword [esi + 0x10]
add eax, ebx
mov dword [ebp - 0x15c], eax
mov eax, dword [esi]
add eax, ebx
mov dword [ebp - 0x16c], eax
mov eax, dword [eax]
test eax, eax
je 0x10001e7e
jns 0x10001c19
push 0x1001d524
call edi
jmp 0x10001e5e
add ebx, 2
mov dword [ebp - 0x17c], 0
add ebx, eax
mov dword [ebp - 0x178], 0xf
mov ecx, ebx
mov dword [ebp - 0x194], ebx
mov byte [ebp - 0x18c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001c44
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x18c]
call fcn.100022d0
mov edx, dword [ebp - 0x11c]
mov esi, edx
mov ebx, dword [edx + 4]
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x144], edx
cmp byte [ebx + 0xd], 0
jne 0x10001dea
nop dword [eax + eax]
cmp dword [ebp - 0x178], 0x10
lea eax, [ebp - 0x18c]
cmovae eax, edx
cmp dword [ebx + 0x24], 0x10
lea edx, [ebx + 0x10]
jb 0x10001c9c
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x20]
mov edi, ecx
cmp dword [ebp - 0x17c], ecx
mov dword [ebp - 0x190], ecx
cmovb edi, dword [ebp - 0x17c]
sub edi, 4
jb 0x10001cd1
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10001cd6
add edx, 4
add eax, 4
sub edi, 4
jae 0x10001cc0
cmp edi, 0xfffffffc
je 0x10001d0a
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x10001d03
cmp edi, 0xfffffffd
je 0x10001d0a
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x10001d03
cmp edi, 0xfffffffe
je 0x10001d0a
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x10001d03
cmp edi, 0xffffffff
je 0x10001d0a
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x10001d0a
sbb eax, eax
or eax, 1
jmp 0x10001d0c
xor eax, eax
test eax, eax
jne 0x10001dca
mov eax, dword [ebp - 0x17c]
cmp dword [ebp - 0x190], eax
jb 0x10001dd0
mov esi, ebx
mov ebx, dword [ebx]
cmp byte [ebx + 0xd], 0
mov edx, dword [ebp - 0x144]
je 0x10001c80
cmp esi, dword [ebp - 0x11c]
je 0x10001dea
cmp dword [esi + 0x24], 0x10
lea ecx, [esi + 0x10]
jb 0x10001d52
mov ecx, dword [esi + 0x10]
cmp dword [ebp - 0x178], 0x10
lea edx, [ebp - 0x18c]
mov ebx, dword [esi + 0x20]
cmovae edx, dword [ebp - 0x144]
mov edi, dword [ebp - 0x17c]
cmp ebx, edi
cmovb edi, ebx
sub edi, 4
jb 0x10001d91
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10001d96
add edx, 4
add ecx, 4
sub edi, 4
jae 0x10001d80
cmp edi, 0xfffffffc
je 0x10001dd8
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x10001dc3
cmp edi, 0xfffffffd
je 0x10001dd8
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x10001dc3
cmp edi, 0xfffffffe
je 0x10001dd8
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x10001dc3
cmp edi, 0xffffffff
je 0x10001dd8
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x10001dd8
sbb eax, eax
or eax, 1
jmp 0x10001dda
jns 0x10001d26
mov ebx, dword [ebx + 8]
jmp 0x10001d2a
xor eax, eax
test eax, eax
jne 0x10001de8
cmp dword [ebp - 0x17c], ebx
jae 0x10001df0
jmp 0x10001dea
jns 0x10001df0
mov esi, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x178]
cmp eax, 0x10
jb 0x10001e2c
mov edx, dword [ebp - 0x144]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x10001e22
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002175
push ecx
push edx
call fcn.10003a02
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, dword [ebp - 0x11c]
je 0x10001e58
push str.___Patching_IAT_for:
call edi
push dword [ebp - 0x194]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x15c]
mov eax, dword [esi + 0x28]
mov dword [ecx], eax
mov ebx, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x16c]
add dword [ebp - 0x15c], 4
add ecx, 4
mov dword [ebp - 0x16c], ecx
mov eax, dword [ecx]
test eax, eax
jne 0x10001c0b
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x160]
push dword [ebp - 0x124]
push dword [eax + 0xdc]
push dword [ebp - 0x170]
call esi
test eax, eax
je 0x1000212a
mov ecx, dword [ebp - 0x158]
mov edx, esi
mov eax, dword [ebp - 0x14c]
mov eax, dword [eax]
mov dword [ebp - 0x14c], eax
cmp eax, ecx
jne 0x10001b50
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0
push eax
push 4
push 0x40
push dword [ebp - 0x154]
call edx
test eax, eax
je 0x1000212a
mov edi, dword [ebp - 0x148]
xor edx, edx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x20]
add eax, dword [ebp - 0x140]
mov ebx, dword [edi + 0x18]
lea esi, [ecx + ecx*4]
mov dword [ebp - 0x144], eax
add esi, esi
test ebx, ebx
je 0x10001f53
nop word [eax + eax]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp - 0x140]
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001f30
mov eax, dword [ebp - 0x144]
sub ecx, edi
inc esi
inc edx
add esi, ecx
cmp edx, ebx
jb 0x10001f20
mov edi, dword [ebp - 0x148]
mov ebx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push 4
lea eax, [ecx + ebx*2]
lea esi, [esi + eax*2]
push 0x3000
push esi
push 0
mov dword [ebp - 0x170], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x160], ebx
test ebx, ebx
je 0x1000212a
push esi
push 0
push ebx
call fcn.10005a20
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x20]
add eax, dword [ebp - 0x140]
shl ecx, 2
push ecx
push eax
push ebx
call fcn.10005be0
mov eax, dword [edi + 0x14]
xor esi, esi
mov ecx, dword [ebp - 0x154]
add esp, 0x18
lea edi, [ebx + eax*4]
mov eax, ebx
sub eax, dword [ebp - 0x150]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 0x140]
cmp dword [eax + 0x14], esi
jbe 0x1000200b
mov edx, edi
sub edx, dword [ebp - 0x150]
sub ebx, ecx
nop dword [eax]
mov dword [ebx + ecx], edx
lea ecx, [ecx + 4]
mov byte [edi], 0x68
inc esi
mov eax, dword [ecx - 4]
add edx, 6
add eax, dword [ebp - 0x140]
mov dword [edi + 1], eax
mov eax, dword [ebp - 0x148]
mov byte [edi + 5], 0xc3
add edi, 6
cmp esi, dword [eax + 0x14]
jb 0x10001fe0
mov esi, dword [ebp - 0x148]
mov eax, dword [esi + 0x18]
shl eax, 2
push eax
mov eax, dword [esi + 0x20]
add eax, dword [ebp - 0x140]
push eax
push edi
call fcn.10005be0
mov eax, dword [esi + 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x14c], 0
lea ebx, [edi + eax*4]
mov eax, edi
sub eax, dword [ebp - 0x150]
mov dword [ecx + 0x20], eax
cmp dword [esi + 0x18], 0
jbe 0x100020b2
mov eax, dword [ebp - 0x144]
sub eax, edi
mov dword [ebp - 0x144], eax
mov ecx, dword [eax + edi]
add ecx, dword [ebp - 0x140]
mov esi, ecx
lea edx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10002070
sub esi, edx
push esi
push ecx
push ebx
call fcn.10005be0
mov eax, ebx
inc esi
sub eax, dword [ebp - 0x150]
add ebx, esi
mov esi, dword [ebp - 0x148]
add esp, 0xc
mov dword [edi], eax
add edi, 4
mov eax, dword [ebp - 0x14c]
inc eax
cmp eax, dword [esi + 0x18]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x144]
jb 0x10002060
mov eax, dword [esi + 0x14]
add eax, eax
push eax
mov eax, dword [esi + 0x24]
add eax, dword [ebp - 0x140]
push eax
push ebx
call fcn.10005be0
mov ecx, dword [ebp - 0x154]
add esp, 0xc
sub ebx, dword [ebp - 0x150]
mov dword [ecx + 0x24], ebx
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ecx + 0x18], eax
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x120]
push 0x40
push ecx
call esi
test eax, eax
je 0x1000212a
lea eax, [ebp - 0x120]
push eax
push 0x20
push dword [ebp - 0x170]
push dword [ebp - 0x160]
call esi
test eax, eax
je 0x1000212a
mov ecx, dword [ebp - 0x11c]
mov esi, 1
jmp 0x10002132
mov ecx, dword [ebp - 0x11c]
xor esi, esi
push ecx
push dword [ecx]
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x11c]
call fcn.10002410
push 0x2c
push dword [ebp - 0x11c]
call fcn.10003a02
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100039f1
mov esp, ebp
pop ebp
ret
call fcn.10008150
int3