Function at 0x1012ce91
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x1012ced9
mov eax, 0x10582b2a
push eax
push 1
mov ebx, 0x130
call fcn.1019d730
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push 4
push 0x1000
push dword [ebp - 0x1c]
push 0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1012cf2d
push 0x3b
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1012cf44
mov eax, 0
jmp 0x1012d41d
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x1012cf59
mov eax, 0x10582b2a
push eax
push 1
mov ebx, 0x198
call fcn.1019d610
add esp, 0x10
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x1012cf84
mov eax, 0x10582b2a
push eax
push 1
mov ebx, 0x130
call fcn.1019d730
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1012cfaf
add eax, 8
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x1012cfdc
push 0xf7
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1012cfec
push ebx
call fcn.1019b494
add esp, 4
mov dword [ebp - 0x1c], esp
push str.Kernel32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1012d01a
push 0x146
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0x10582f0a
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x1012d04e
push 0x146
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x198
call fcn.1019d610
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x198
call fcn.1019d610
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x198
call fcn.1019d610
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x106d404a
push dword [ebp - 0x24]
push 0x106d4056
push dword [ebp - 0x20]
push 0x106d4056
push dword [ebp - 0x1c]
push 0x105831bd
mov ecx, 7
call fcn.1010dcc9
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1012d0eb
push ebx
call fcn.1019b494
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1012d0fb
push ebx
call fcn.1019b494
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x1012d10b
push ebx
call fcn.1019b494
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1012d11f
push ebx
call fcn.1019b494
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x1012d136
mov eax, 0x10582afd
push eax
push 1
mov ebx, 0x194
call fcn.1019cc30
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push 4
push 0x1000
push dword [ebp - 0x1c]
push 0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1012d18a
push 0x27e
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1012d1da
mov dword [ebp - 0x1c], esp
push 0x8000
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualFreeEx]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1012d1d0
push 0x2e2
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov eax, 0
jmp 0x1012d41d
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x1012d1ed
mov eax, 0x10582afd
push eax
push 1
mov ebx, 0x194
call fcn.1019cc30
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1012d218
add eax, 8
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1012d245
push 0x35a
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov dword [ebp - 0x1c], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1012d28d
push 0x397
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1012d316
mov dword [ebp - 0x1c], esp
push 0x8000
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualFreeEx]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1012d2d3
push 0x41c
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov dword [ebp - 0x1c], esp
push 0x8000
push 0
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualFreeEx]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1012d30c
push 0x44f
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov eax, 0
jmp 0x1012d41d
mov dword [ebp - 0x1c], esp
push 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1012d347
push 0x4a0
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_GetExitCodeThread]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1012d377
push 0x4c3
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov dword [ebp - 0x1c], esp
push 0x8000
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualFreeEx]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1012d3b0
push 0x4e4
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov dword [ebp - 0x1c], esp
push 0x8000
push 0
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualFreeEx]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1012d3e9
push 0x517
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1012d415
push 0x54a
push 0x401143d
push 6
call fcn.1019b49a
add esp, 0xc
mov eax, dword [ebp - 0x18]
jmp 0x1012d41d
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1012d42e
push ebx
call fcn.1019b494
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc