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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2174
call fcn.004216d0
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.00421540
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 [0x459648]
call fcn.00411e7c
add esp, 0xc
push ebx
push esi
push 2
call dword [0x458b74]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
jne 0x411fbb
push eax
call dword [0x458c90]
or eax, edi
jmp 0x4123af
push 0x10
lea eax, [ebp - 0x30]
push eax
push edi
call dword [0x458c68]
cmp eax, 0xffffffff
jne 0x411fd5
push 0xfffffffffffffffe
pop esi
jmp 0x4123a6
push accept
push edi
call dword [0x458cb0]
cmp eax, 0xffffffff
jne 0x411fea
push 0xfffffffffffffffd
jmp 0x411fcf
lea eax, [ebp - 0x14]
push eax
push 0x8004667e
push edi
call dword [0x458af0]
cmp eax, 0xffffffff
jne 0x412003
push 0xfffffffffffffffc
jmp 0x411fcf
cmp byte [0x4594f0], 0
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x174], ebx
mov dword [0x459714], edi
mov dword [0x459710], esi
mov dword [ebp - 8], edi
mov byte [0x459814], 1
jne 0x4123a4
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, 0x459710
lea edi, [ebp - 0x174]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [0x458c30]
cmp eax, 0xffffffff
je 0x4123b4
call fcn.00411507
call fcn.00411702
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 4]
call dword [0x458bd4]
test eax, eax
je 0x412385
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jne 0x412163
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 0x412385
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.00411546
cmp eax, dword [0x45945c]
pop ecx
pop ecx
ja 0x41214c
cmp dword [0x459710], 0x40
jae 0x41214c
call fcn.004114b8
cmp eax, 0x2710
ja 0x41214c
call fcn.004114cb
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 [0x459710]
xor ecx, ecx
test eax, eax
jbe 0x412123
cmp dword [ecx*4 + 0x459714], edi
je 0x412123
inc ecx
cmp ecx, eax
jb 0x412115
cmp ecx, eax
jne 0x412139
cmp eax, 0x40
jae 0x412139
mov dword [ecx*4 + 0x459714], edi
inc dword [0x459710]
xor ebx, ebx
cmp edi, dword [ebp - 8]
jbe 0x412385
mov dword [ebp - 8], edi
jmp 0x412385
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 0x412385
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1174]
push ebx
push eax
call fcn.00421540
push esi
lea eax, [ebp - 0x2174]
push ebx
push eax
call fcn.00421540
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 0x412202
mov eax, dword [0x459710]
xor ecx, ecx
cmp eax, ebx
jbe 0x4121da
cmp dword [ecx*4 + 0x459714], edi
je 0x4121cd
inc ecx
cmp ecx, eax
jb 0x4121a9
jmp 0x4121da
mov eax, dword [ecx*4 + 0x459718]
mov dword [ecx*4 + 0x459714], eax
mov eax, dword [0x459710]
inc ecx
lea edx, [eax - 1]
cmp ecx, edx
jb 0x4121b9
dec eax
mov dword [0x459710], eax
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [0x458c90]
push edi
call fcn.00411473
cmp eax, ebx
pop ecx
je 0x412385
mov byte [eax + 0xe], 1
jmp 0x412385
push 0xa
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x1174]
push eax
call fcn.004215a0
add esp, 0xc
test eax, eax
jne 0x4122ef
push edi
call fcn.00411473
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x412234
push dword [ebp - 4]
jmp 0x41237f
push 0x77
call fcn.0041157f
cmp eax, dword [0x45947c]
pop ecx
ja 0x41222c
cmp byte [esi + 0xc], 0
jne 0x41225b
push 0x77
push dword [esi + 4]
call fcn.00411546
cmp eax, 1
pop ecx
pop ecx
jg 0x41222c
mov edi, dword [esi + 4]
push edi
mov byte [esi + 0xc], 1
mov byte [esi + 0xd], 0x77
call fcn.00411613
cmp eax, ebx
pop ecx
je 0x41228a
cmp byte [eax + 9], 0
je 0x412291
push ebx
push 2
push 0x42a910
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x41222c
push edi
call fcn.004116b4
pop ecx
mov byte [eax + 9], 1
mov dword [eax + 4], esi
mov ecx, dword [0x459710]
xor edx, edx
cmp ecx, ebx
jbe 0x4122da
mov esi, dword [ebp - 4]
cmp dword [edx*4 + 0x459714], esi
je 0x4122cc
inc edx
cmp edx, ecx
jb 0x4122a4
jmp 0x4122da
mov ecx, dword [edx*4 + 0x459718]
mov dword [edx*4 + 0x459714], ecx
mov ecx, dword [0x459710]
inc edx
lea esi, [ecx - 1]
cmp edx, esi
jb 0x4122b7
dec ecx
mov dword [0x459710], ecx
push ebx
push ebx
push eax
push 0x411e31
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x412385
lea eax, [ebp - 0x1174]
push str.GET
push eax
call fcn.00413394
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41237e
lea eax, [ebp - 0x1174]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 5
jle 0x41237e
push edi
call fcn.00411473
cmp eax, ebx
pop ecx
je 0x41237e
add esi, 4
push esi
push eax
mov byte [eax + 0xd], 0x68
call fcn.00411b05
sub eax, ebx
pop ecx
pop ecx
je 0x41237e
dec eax
dec eax
jne 0x412385
mov eax, dword [0x459710]
xor ecx, ecx
cmp eax, ebx
jbe 0x412385
mov edx, dword [ebp - 4]
cmp dword [ecx*4 + 0x459714], edx
je 0x41236f
inc ecx
cmp ecx, eax
jb 0x412348
jmp 0x412385
mov eax, dword [ecx*4 + 0x459718]
mov dword [ecx*4 + 0x459714], eax
mov eax, dword [0x459710]
inc ecx
lea edx, [eax - 1]
cmp ecx, edx
jb 0x41235b
dec eax
mov dword [0x459710], eax
jmp 0x412385
push edi
call fcn.00411eda
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jbe 0x412074
cmp byte [0x4594f0], 0
je 0x412036
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 0x4123a6