Function at 0x4120d3
Capabilities:
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2174
call fcn.00421ba0
push ebx
push esi
push edi
xor eax, eax
push 7
pop ecx
mov byte [ebp - 0x50], 0
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov edx, 0x3ff
mov byte [ebp - 0x1174], 0
mov ecx, edx
lea edi, [ebp - 0x1173]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x2174], 0
mov ecx, edx
lea edi, [ebp - 0x2173]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
stosb byte es:[edi], al
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x30]
push ebx
inc esi
push eax
mov dword [ebp - 0x14], esi
call fcn.00421a10
xor eax, eax
mov ax, word [0x459440]
add esp, 0xc
mov word [ebp - 0x30], 2
push eax
call dword [0x458cdc]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x50]
push eax
xor eax, eax
mov ax, word [0x459440]
mov dword [ebp - 0x2c], ebx
push eax
push dword [0x459650]
call fcn.00412056
add esp, 0xc
push ebx
push esi
push 2
call dword [0x458b74]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
jne 0x412195
push eax
call dword [0x458c90]
or eax, edi
jmp 0x412589
push 0x10
lea eax, [ebp - 0x30]
push eax
push edi
call dword [0x458c68]
cmp eax, 0xffffffff
jne 0x4121af
push 0xfffffffffffffffe
pop esi
jmp 0x412580
push accept
push edi
call dword [0x458cb0]
cmp eax, 0xffffffff
jne 0x4121c4
push 0xfffffffffffffffd
jmp 0x4121a9
lea eax, [ebp - 0x14]
push eax
push 0x8004667e
push edi
call dword [0x458af0]
cmp eax, 0xffffffff
jne 0x4121dd
push 0xfffffffffffffffc
jmp 0x4121a9
cmp byte [0x4594f0], 0
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x174], ebx
mov dword [0x45971c], edi
mov dword [0x459718], esi
mov dword [ebp - 8], edi
mov byte [0x45981c], 1
jne 0x41257e
push 0x41
pop ecx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
lea eax, [ebp - 0x174]
push eax
mov eax, dword [ebp - 8]
inc eax
mov esi, 0x459718
lea edi, [ebp - 0x174]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [0x458c30]
cmp eax, 0xffffffff
je 0x41258e
call fcn.00411699
call fcn.004118dc
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 4]
call dword [0x458bd4]
test eax, eax
je 0x41255f
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jne 0x41233d
push 0x10
pop esi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
je 0x41255f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.WS2_32.dll_getpeername]
mov ebx, dword [ebp - 0x5c]
push 0
push ebx
call fcn.00411720
cmp eax, dword [0x45945c]
pop ecx
pop ecx
ja 0x412326
cmp dword [0x459718], 0x40
jae 0x412326
call fcn.0041164a
cmp eax, 0x1f4
ja 0x412326
call fcn.0041165d
mov esi, eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x10], eax
mov eax, dword [0x459718]
xor ecx, ecx
test eax, eax
jbe 0x4122fd
cmp dword [ecx*4 + 0x45971c], edi
je 0x4122fd
inc ecx
cmp ecx, eax
jb 0x4122ef
cmp ecx, eax
jne 0x412313
cmp eax, 0x40
jae 0x412313
mov dword [ecx*4 + 0x45971c], edi
inc dword [0x459718]
xor ebx, ebx
cmp edi, dword [ebp - 8]
jbe 0x41255f
mov dword [ebp - 8], edi
jmp 0x41255f
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor ebx, ebx
jmp 0x41255f
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1174]
push ebx
push eax
call fcn.00421a10
push esi
lea eax, [ebp - 0x2174]
push ebx
push eax
call fcn.00421a10
mov edi, dword [ebp - 4]
add esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x1174]
push eax
push edi
call dword [0x458ac0]
test eax, eax
jg 0x4123dc
mov eax, dword [0x459718]
xor ecx, ecx
cmp eax, ebx
jbe 0x4123b4
cmp dword [ecx*4 + 0x45971c], edi
je 0x4123a7
inc ecx
cmp ecx, eax
jb 0x412383
jmp 0x4123b4
mov eax, dword [ecx*4 + 0x459720]
mov dword [ecx*4 + 0x45971c], eax
mov eax, dword [0x459718]
inc ecx
lea edx, [eax - 1]
cmp ecx, edx
jb 0x412393
dec eax
mov dword [0x459718], eax
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [0x458c90]
push edi
call fcn.00411605
cmp eax, ebx
pop ecx
je 0x41255f
mov byte [eax + 0xe], 1
jmp 0x41255f
push 0xa
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x1174]
push eax
call fcn.00421a70
add esp, 0xc
test eax, eax
jne 0x4124c9
push edi
call fcn.00411605
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x41240e
push dword [ebp - 4]
jmp 0x412559
push 0x77
call fcn.00411759
cmp eax, dword [0x45947c]
pop ecx
ja 0x412406
cmp byte [esi + 0xc], 0
jne 0x412435
push 0x77
push dword [esi + 4]
call fcn.00411720
cmp eax, 1
pop ecx
pop ecx
jg 0x412406
mov edi, dword [esi + 4]
push edi
mov byte [esi + 0xc], 1
mov byte [esi + 0xd], 0x77
call fcn.004117ed
cmp eax, ebx
pop ecx
je 0x412464
cmp byte [eax + 9], 0
je 0x41246b
push ebx
push 2
push 0x42a90c
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x412406
push edi
call fcn.0041188e
pop ecx
mov byte [eax + 9], 1
mov dword [eax + 4], esi
mov ecx, dword [0x459718]
xor edx, edx
cmp ecx, ebx
jbe 0x4124b4
mov esi, dword [ebp - 4]
cmp dword [edx*4 + 0x45971c], esi
je 0x4124a6
inc edx
cmp edx, ecx
jb 0x41247e
jmp 0x4124b4
mov ecx, dword [edx*4 + 0x459720]
mov dword [edx*4 + 0x45971c], ecx
mov ecx, dword [0x459718]
inc edx
lea esi, [ecx - 1]
cmp edx, esi
jb 0x412491
dec ecx
mov dword [0x459718], ecx
push ebx
push ebx
push eax
push 0x41200b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x41255f
lea eax, [ebp - 0x1174]
push str.GET
push eax
call fcn.0041356e
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x412558
lea eax, [ebp - 0x1174]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 5
jle 0x412558
push edi
call fcn.00411605
cmp eax, ebx
pop ecx
je 0x412558
add esi, 4
push esi
push eax
mov byte [eax + 0xd], 0x68
call fcn.00411cdf
sub eax, ebx
pop ecx
pop ecx
je 0x412558
dec eax
dec eax
jne 0x41255f
mov eax, dword [0x459718]
xor ecx, ecx
cmp eax, ebx
jbe 0x41255f
mov edx, dword [ebp - 4]
cmp dword [ecx*4 + 0x45971c], edx
je 0x412549
inc ecx
cmp ecx, eax
jb 0x412522
jmp 0x41255f
mov eax, dword [ecx*4 + 0x459720]
mov dword [ecx*4 + 0x45971c], eax
mov eax, dword [0x459718]
inc ecx
lea edx, [eax - 1]
cmp ecx, edx
jb 0x412535
dec eax
mov dword [0x459718], eax
jmp 0x41255f
push edi
call fcn.004120b4
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jbe 0x41224e
cmp byte [0x4594f0], 0
je 0x412210
mov edi, dword [ebp - 0xc]
xor esi, esi
push edi
call dword [0x458c90]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [ebp - 0xc]
push 0xfffffffffffffffb
pop esi
jmp 0x412580