Function at 0x40bceb
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453c5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
mov dword [esp + 0x18], ebx
call fcn.00405331
pop ecx
pop ecx
cmp eax, ebx
je 0x40bd2d
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
jmp 0x40bd2f
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x344], esi
cmp dword [0x4686fc], 8
mov eax, dword [0x4686e8]
jae 0x40bd59
mov eax, 0x4686e8
lea ecx, [esp + 0x38]
push ecx
push 0xf003f
push ebx
push eax
push dword [0x468670]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40bd8e
or dword [esp + 0x344], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.0040c6ce
xor al, al
jmp 0x40c486
push dword [esp + 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xb0]
push eax
mov ecx, edi
call fcn.0040db58
pop ecx
pop ecx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x14c]
push eax
mov byte [esp + 0x35c], 2
mov dword [esp + 0x2c], ebx
push ebx
jmp 0x40bf7f
lea eax, [esp + 0x40]
push eax
push 0xf003f
push ebx
lea eax, [esp + 0x144]
push eax
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bf66
push dword [esp + 0x40]
lea eax, [esp + 0xdc]
push eax
mov ecx, edi
call fcn.0040db58
pop ecx
pop ecx
push 4
pop esi
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push str.FileType
push dword [esp + 0x54]
mov dword [esp + 0x4c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bf58
cmp dword [esp + 0x18], esi
jne 0x40bf58
lea eax, [esp + 0xd8]
push eax
call fcn.0040db6b
pop ecx
lea eax, [esp + 0xb8]
push eax
call fcn.0040c7c0
push eax
lea esi, [esp + 0x20]
mov byte [esp + 0x348], 3
call fcn.0040c768
lea eax, [esp + 0xb8]
push eax
mov byte [esp + 0x348], 2
call fcn.0040c914
push str.type
lea ecx, [esp + 0x94]
call fcn.0040162e
mov byte [esp + 0x344], 4
push dword [esp + 0x70]
lea eax, [esp + 0xbc]
push eax
call fcn.0040ad72
pop ecx
pop ecx
mov esi, eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x348], 5
call fcn.0040c71c
mov ecx, eax
call fcn.0040c7ff
push 0xffffffffffffffff
push ebx
push esi
mov ecx, eax
call fcn.004017f0
push ebx
push 1
lea ecx, [esp + 0xc0]
call fcn.004018a6
push ebx
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x34c], 2
call fcn.004017a5
push str.filemd5
lea ecx, [esp + 0x94]
call fcn.0040162e
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x348], 6
call fcn.0040c71c
mov ecx, eax
call fcn.0040c7ff
lea ecx, [esp + 0x138]
push ecx
mov ecx, eax
call fcn.00401882
push ebx
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x34c], 2
call fcn.004017a5
jmp 0x40bf66
lea eax, [esp + 0xd8]
push eax
call fcn.0040db6b
pop ecx
inc dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x14c]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x54]
mov dword [esp + 0x5c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40bdcc
push str.tb.sogou.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
jne 0x40c00f
push 0x4590c0
push 8
push dword [0x468678]
call fcn.00429300
lea eax, [esp + 0xb8]
add esp, 0xc
push eax
call fcn.0040db6b
pop ecx
mov dword [esp + 0x344], 7
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40bff3
push dword [esp + 0x2c]
call fcn.0040cf81
push dword [esp + 0x28]
call fcn.0043a3dd
pop ecx
push dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0043a3dd
xor al, al
jmp 0x40c485
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0x18], eax
xor eax, eax
lea edi, [esp + 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
mov word [esp + 0x44], ax
xor eax, eax
mov word [esp + 0x46], ax
push 0x10
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x54], ebx
call dword [sym.imp.WS2_32.dll_bind]
xor eax, eax
lea edi, [esp + 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
mov word [esp + 0x44], ax
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 0x50
mov dword [esp + 0x4c], eax
call dword [sym.imp.WS2_32.dll_htons]
push str.KeepAlive_r_n
lea ecx, [esp + 0x78]
mov word [esp + 0x4a], ax
call fcn.0040162e
push str.type:add_r_n
lea ecx, [esp + 0x78]
mov byte [esp + 0x348], 8
call fcn.00402b8d
push str.uid:
lea ecx, [esp + 0x78]
call fcn.00402b8d
cmp dword [0x468730], ebx
jne 0x40c0d2
push str.Unknown
lea ecx, [esp + 0xbc]
call fcn.0040162e
xor esi, esi
inc esi
mov byte [esp + 0x344], 9
mov dword [esp + 0x10], esi
jmp 0x40c0da
xor esi, esi
mov eax, 0x46871c
inc esi
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x80]
call fcn.00402eb1
mov dword [esp + 0x344], 8
test byte [esp + 0x10], 1
je 0x40c10a
push ebx
push esi
lea ecx, [esp + 0xc0]
call fcn.004017a5
mov edi, 0x4585d0
push edi
lea ecx, [esp + 0x78]
call fcn.00402b8d
push str.hash:
lea ecx, [esp + 0x78]
call fcn.00402b8d
lea eax, [esp + 0xe4]
push eax
call fcn.0040ada0
mov byte [esp + 0x348], 0xa
lea eax, [esp + 0xe8]
mov dword [esp], 0x45842a
call fcn.0040304d
test eax, eax
jne 0x40c17f
push ebx
push esi
lea ecx, [esp + 0xec]
call fcn.004017a5
push ebx
push esi
lea ecx, [esp + 0x7c]
call fcn.004017a5
lea eax, [esp + 0xac]
push eax
call fcn.0040db6b
pop ecx
jmp 0x40bd75
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x80]
call fcn.00402eb1
push edi
lea ecx, [esp + 0x78]
call fcn.00402b8d
push 0x26
pop ecx
mov eax, 0x578
sub eax, dword [esp + 0x88]
xor edx, edx
div ecx
push eax
push 0x459104
push 8
push dword [0x468678]
mov dword [esp + 0x44], eax
call fcn.00429300
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
add esp, 0x10
sar eax, 5
mov dword [esp + 0x10], ebx
cmp eax, ebx
jbe 0x40c417
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x58]
call fcn.00401650
mov byte [esp + 0x344], 0xb
cmp dword [esp + 0x34], ebx
mov dword [esp + 0x14], ebx
jle 0x40c3a4
mov edi, dword [esp + 0x10]
shl edi, 5
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 5
cmp dword [esp + 0x10], eax
jae 0x40c3a4
push str.filemd5
lea ecx, [esp + 0x120]
call fcn.0040162e
mov byte [esp + 0x344], 0xc
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 5
cmp dword [esp + 0x10], eax
jb 0x40c256
call fcn.0043b0d6
xor esi, esi
inc esi
mov eax, dword [esp + 0x28]
lea ecx, [edi + eax]
push ebx
push ecx
lea eax, [esp + 0x124]
push eax
call fcn.0040c7ff
add esp, 4
lea ecx, [esp + 0x94]
call fcn.00426250
pop ecx
push ebx
push esi
lea ecx, [esp + 0x124]
mov byte [esp + 0x34c], 0xe
call fcn.004017a5
push str.type
lea ecx, [esp + 0xbc]
call fcn.0040162e
mov byte [esp + 0x344], 0xf
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 5
cmp dword [esp + 0x10], eax
jb 0x40c2c4
call fcn.0043b0d6
xor esi, esi
inc esi
mov eax, dword [esp + 0x28]
lea ecx, [edi + eax]
push ebx
push ecx
lea eax, [esp + 0xc0]
push eax
call fcn.0040c7ff
add esp, 4
lea ecx, [esp + 0x104]
call fcn.00426250
pop ecx
push ebx
push esi
lea ecx, [esp + 0xc0]
mov byte [esp + 0x34c], 0x11
call fcn.004017a5
push 0x459124
lea eax, [esp + 0x104]
call fcn.0040304d
test eax, eax
jne 0x40c31c
push str.md5:
jmp 0x40c336
push 0x459130
lea eax, [esp + 0x104]
call fcn.0040304d
test eax, eax
jne 0x40c363
push str.MD5:
lea ecx, [esp + 0x58]
call fcn.00402b8d
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x60]
call fcn.00402eb1
push 0x4585d0
lea ecx, [esp + 0x58]
call fcn.00402b8d
jmp 0x40c367
dec dword [esp + 0x14]
push ebx
push esi
lea ecx, [esp + 0x108]
call fcn.004017a5
push ebx
push esi
lea ecx, [esp + 0x98]
mov byte [esp + 0x34c], 0xb
call fcn.004017a5
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
inc dword [esp + 0x10]
add edi, 0x20
cmp eax, dword [esp + 0x34]
jl 0x40c20f
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x40c3b3
lea eax, [esp + 0x58]
push eax
push str.Send_Shared_Files:_r_n_s_n
push 8
push dword [0x468678]
call fcn.00429300
mov eax, dword [esp + 0x68]
add esp, 0x10
cmp dword [esp + 0x6c], 0x10
jae 0x40c3d8
lea eax, [esp + 0x58]
push 0x10
lea ecx, [esp + 0x48]
push ecx
push ebx
push dword [esp + 0x74]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_sendto]
push ebx
push esi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x34c], 0xa
call fcn.004017a5
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 5
cmp dword [esp + 0x10], eax
jb 0x40c1e4
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
push esi
lea ecx, [esp + 0xec]
call fcn.004017a5
push ebx
push esi
lea ecx, [esp + 0x7c]
call fcn.004017a5
lea eax, [esp + 0xac]
push eax
call fcn.0040db6b
pop ecx
mov dword [esp + 0x344], 0x12
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40c46e
push dword [esp + 0x2c]
call fcn.0040cf81
push dword [esp + 0x28]
call fcn.0043a3dd
pop ecx
push dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0043a3dd
mov al, 1
pop ecx
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret