Function at 0x1005c850
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 0x100d19be
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x140
mov eax, dword [0x10100230]
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 0x1005ca70
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
je 0x1005ca4f
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 + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1005ca8e
push ecx
lea ecx, [ebp - 0x150]
call fcn.100045c0
mov edx, str._TID:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x140]
call fcn.10006770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1001e850
mov edx, 0x100e846c
mov ecx, eax
call fcn.10006770
movaps xmm0, xmmword [0x100ebf30]
mov esi, eax
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0x2504754
mov dword [ebp - 0x64], 0x4e4b4344
mov word [ebp - 0x60], 0x18
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 0x1005c960
lea edx, [ebp - 0x5e]
mov byte [ebp - 0x46], 0
mov ecx, esi
call fcn.10006770
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.1001ae10
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1005c998
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, esi
call fcn.10007140
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x1005c9dd
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c9d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cda9
push ecx
push edx
call fcn.10091f2c
add esp, 8
mov byte [ebp - 4], 0
call fcn.100037a0
mov esi, eax
lea ecx, [ebp - 0x150]
lea eax, [ebp - 0x44]
push eax
call fcn.100044d0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x1005ca03
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 4
call fcn.10003ef0
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x1005ca44
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005ca3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cdae
push ecx
push edx
call fcn.10091f2c
add esp, 8
lea ecx, [ebp - 0x150]
call fcn.10004400
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x1005ca70
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 8], 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.10091bd4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp byte [edi + 0x51], 0
mov byte [edi + 0x52], 1
je 0x1005ca4f
lea esi, [edi + 0x20]
mov dword [ebp - 0x9c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push esi
mov dword [ebp - 4], 4
call fcn.1008ee15
add esp, 4
test eax, eax
jne 0x1005cda3
mov byte [ebp - 4], 5
cmp dword [edi + 0x1c], eax
je 0x1005cb77
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
dec ecx
and ecx, dword [edi + 0x18]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x1005cb08
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1005cafe
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008f60
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
dec ecx
and ecx, dword [edi + 0x18]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x8c], eax
mov ecx, dword [eax + 0x14]
cmp ecx, 0x10
jb 0x1005cb54
mov eax, dword [eax]
inc ecx
cmp ecx, 0x1000
jb 0x1005cb44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cda9
mov eax, edx
push ecx
push eax
call fcn.10091f2c
mov eax, dword [ebp - 0x8c]
add esp, 8
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
add dword [edi + 0x1c], 0xffffffff
jne 0x1005cb74
mov dword [edi + 0x18], 0
jmp 0x1005cb77
inc dword [edi + 0x18]
push esi
mov byte [ebp - 4], 4
call fcn.1008ee3a
mov ecx, dword [ebp - 0x1c]
add esp, 4
test ecx, ecx
je 0x1005cc89
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1005cca8
push ecx
lea ecx, [ebp - 0x150]
mov byte [edi + 0x52], 0
call fcn.100045c0
mov edx, str._TID:
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x140]
call fcn.10006770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1001e850
mov edx, 0x100e846c
mov ecx, eax
call fcn.10006770
movaps xmm0, xmmword [0x100ec010]
mov esi, eax
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x58], 0xb
mov byte [ebp - 4], 7
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x67]
xor al, byte [ebp - 0x68]
mov byte [ebp + ecx - 0x56], al
inc ecx
cmp ecx, 0x10
jb 0x1005cc10
lea edx, [ebp - 0x56]
mov byte [ebp - 0x46], 0
mov ecx, esi
call fcn.10006770
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.1001ae10
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1005cc48
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, esi
call fcn.10007140
mov byte [ebp - 4], 7
add esp, 4
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x1005ccfc
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005ccf2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cdb3
jmp 0x1005ccf2
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], 3
mov dword [ebp - 0x94], 0
call fcn.1005cf60
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x1005cce3
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005ccd9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cda9
push ecx
push edx
call fcn.10091f2c
add esp, 8
cmp byte [edi + 0x51], 0
jne 0x1005caa1
jmp 0x1005ca4f
push ecx
push edx
call fcn.10091f2c
add esp, 8
mov byte [ebp - 4], 6
call fcn.100037a0
mov esi, eax
lea ecx, [ebp - 0x150]
lea eax, [ebp - 0x44]
push eax
call fcn.100044d0
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x1005cd22
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 4
call fcn.10003ef0
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x1005cd5f
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005cd55
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cdb8
push ecx
push edx
call fcn.10091f2c
add esp, 8
lea ecx, [ebp - 0x150]
call fcn.10004400
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x1005ca4f
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005cd94
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005cda9
push ecx
push edx
call fcn.10091f2c
add esp, 8
jmp 0x1005ca4f
push eax
call fcn.1008e86d
call fcn.1009dddf
call fcn.1009dddf
call fcn.1009dddf
call fcn.1009dddf
int3