Function at 0x1005df40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cfa13
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x130
mov eax, dword [0x100fd230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp word [edi + 4], 0
je 0x1005e155
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x4c], eax
cmp eax, 0xffffffff
je 0x1005e13f
mov eax, 2
mov word [ebp - 0x88], ax
mov eax, dword [edi]
mov dword [ebp - 0x84], eax
movzx eax, word [edi + 4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x86], ax
lea eax, [ebp - 0x88]
push 0x10
push eax
push dword [edi + 0x4c]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1005e173
push ecx
lea ecx, [ebp - 0x140]
call fcn.100043e0
mov edx, str._TID:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.10006590
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1001c750
mov edx, 0x100e5420
mov ecx, eax
call fcn.10006590
movaps xmm0, xmmword [0x100e8f70]
mov esi, eax
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0x1e4c5b48
mov dword [ebp - 0x64], 0x52575f58
mov word [ebp - 0x60], 4
mov byte [ebp - 4], 1
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x77]
xor al, byte [ebp - 0x78]
mov byte [ebp + ecx - 0x5e], al
inc ecx
cmp ecx, 0x18
jb 0x1005e050
lea edx, [ebp - 0x5e]
mov byte [ebp - 0x46], 0
mov ecx, esi
call fcn.10006590
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.1001a4f0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1005e088
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, esi
call fcn.10006f60
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x1005e0cd
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005e0c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005e463
push ecx
push edx
call fcn.1008f79d
add esp, 8
mov byte [ebp - 4], 0
call fcn.100035c0
mov esi, eax
lea ecx, [ebp - 0x140]
lea eax, [ebp - 0x44]
push eax
call fcn.100042f0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x1005e0f3
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 4
call fcn.10003d10
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x1005e134
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005e12a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005e468
push ecx
push edx
call fcn.1008f79d
add esp, 8
lea ecx, [ebp - 0x140]
call fcn.10004220
mov eax, dword [edi + 0x4c]
cmp eax, 0xffffffff
je 0x1005e155
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x4c], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1008f445
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp byte [edi + 0x50], 0
je 0x1005e13f
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
lea eax, [edi + 0x1c]
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push eax
mov dword [ebp - 4], 4
call fcn.1008c6d5
add esp, 4
test eax, eax
jne 0x1005e45d
cmp dword [edi + 0x18], eax
je 0x1005e242
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
dec ecx
and ecx, dword [edi + 0x14]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x1005e1df
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1005e1d5
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008d80
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
dec ecx
and ecx, dword [edi + 0x14]
mov esi, dword [eax + ecx*4]
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x1005e21f
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1005e215
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005e463
mov eax, edx
push ecx
push eax
call fcn.1008f79d
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
add dword [edi + 0x18], 0xffffffff
jne 0x1005e23f
mov dword [edi + 0x14], 0
jmp 0x1005e242
inc dword [edi + 0x14]
lea eax, [edi + 0x1c]
push eax
call fcn.1008c6fa
mov ecx, dword [ebp - 0x1c]
add esp, 4
test ecx, ecx
je 0x1005e349
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
push dword [edi + 0x4c]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1005e368
push ecx
lea ecx, [ebp - 0x140]
call fcn.100043e0
mov edx, str._TID:
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x130]
call fcn.10006590
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1001c750
mov edx, 0x100e5420
mov ecx, eax
call fcn.10006590
movaps xmm0, xmmword [0x100e8ad0]
mov esi, eax
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x58], 0x53
mov byte [ebp - 4], 6
xor ecx, ecx
nop
mov al, byte [ebp + ecx - 0x67]
xor al, byte [ebp - 0x68]
mov byte [ebp + ecx - 0x56], al
inc ecx
cmp ecx, 0x10
jb 0x1005e2d0
lea edx, [ebp - 0x56]
mov byte [ebp - 0x46], 0
mov ecx, esi
call fcn.10006590
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.1001a4f0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1005e308
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, esi
call fcn.10006f60
mov byte [ebp - 4], 6
add esp, 4
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x1005e3b6
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005e3ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005e46d
jmp 0x1005e3ac
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 5
mov dword [ebp - 0x8c], 0
call fcn.1005e590
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x1005e173
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005e39d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005e463
push ecx
push edx
call fcn.1008f79d
add esp, 8
jmp 0x1005e173
push ecx
push edx
call fcn.1008f79d
add esp, 8
mov byte [ebp - 4], 5
call fcn.100035c0
mov esi, eax
lea ecx, [ebp - 0x140]
lea eax, [ebp - 0x44]
push eax
call fcn.100042f0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x1005e3dc
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 4
call fcn.10003d10
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x1005e419
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005e40f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005e472
push ecx
push edx
call fcn.1008f79d
add esp, 8
lea ecx, [ebp - 0x140]
call fcn.10004220
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x1005e13f
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005e44e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005e463
push ecx
push edx
call fcn.1008f79d
add esp, 8
jmp 0x1005e13f
push eax
call fcn.1008c12d
call fcn.1009b8bf
call fcn.1009b8bf
call fcn.1009b8bf
call fcn.1009b8bf
int3