Function at 0x40b963
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 0x4539a7
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.00405259
pop ecx
pop ecx
cmp eax, ebx
je 0x40b9a5
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
jmp 0x40b9a7
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 [0x4674fc], 8
mov eax, dword [0x4674e8]
jae 0x40b9d1
mov eax, 0x4674e8
lea ecx, [esp + 0x38]
push ecx
push 0xf003f
push ebx
push eax
push dword [0x467470]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ba06
or dword [esp + 0x344], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.0040c311
xor al, al
jmp 0x40c0fe
push dword [esp + 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xb0]
push eax
mov ecx, edi
call fcn.00419fc8
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 0x40bbf7
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 0x40bbde
push dword [esp + 0x40]
lea eax, [esp + 0xdc]
push eax
mov ecx, edi
call fcn.00419fc8
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 0x40bbd0
cmp dword [esp + 0x18], esi
jne 0x40bbd0
lea eax, [esp + 0xd8]
push eax
call fcn.0040d7e8
pop ecx
lea eax, [esp + 0xb8]
push eax
call fcn.0040c403
push eax
lea esi, [esp + 0x20]
mov byte [esp + 0x348], 3
call fcn.0040c3ab
lea eax, [esp + 0xb8]
push eax
mov byte [esp + 0x348], 2
call fcn.0040c557
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.0040a9ea
pop ecx
pop ecx
mov esi, eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x348], 5
call fcn.0040c35f
mov ecx, eax
call fcn.0040c442
push 0xffffffffffffffff
push ebx
push esi
mov ecx, eax
call fcn.004017f2
push ebx
push 1
lea ecx, [esp + 0xc0]
call fcn.004018a8
push ebx
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x34c], 2
call fcn.004017a7
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.0040c35f
mov ecx, eax
call fcn.0040c442
lea ecx, [esp + 0x138]
push ecx
mov ecx, eax
call fcn.00401884
push ebx
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x34c], 2
call fcn.004017a7
jmp 0x40bbde
lea eax, [esp + 0xd8]
push eax
call fcn.0040d7e8
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 0x40ba44
push str.tb.sogou.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
jne 0x40bc87
push 0x4580b8
push 8
push dword [0x467478]
call fcn.00429210
lea eax, [esp + 0xb8]
add esp, 0xc
push eax
call fcn.0040d7e8
pop ecx
mov dword [esp + 0x344], 7
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40bc6b
push dword [esp + 0x2c]
call fcn.0040cbc4
push dword [esp + 0x28]
call fcn.0043a14d
pop ecx
push dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0043a14d
xor al, al
jmp 0x40c0fd
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.00402b8f
push str.uid:
lea ecx, [esp + 0x78]
call fcn.00402b8f
cmp dword [0x467530], ebx
jne 0x40bd4a
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 0x40bd52
xor esi, esi
mov eax, 0x46751c
inc esi
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x80]
call fcn.00402eb3
mov dword [esp + 0x344], 8
test byte [esp + 0x10], 1
je 0x40bd82
push ebx
push esi
lea ecx, [esp + 0xc0]
call fcn.004017a7
mov edi, 0x4575c8
push edi
lea ecx, [esp + 0x78]
call fcn.00402b8f
push str.hash:
lea ecx, [esp + 0x78]
call fcn.00402b8f
lea eax, [esp + 0xe4]
push eax
call fcn.0040aa18
mov byte [esp + 0x348], 0xa
lea eax, [esp + 0xe8]
mov dword [esp], 0x457422
call fcn.0040304d
test eax, eax
jne 0x40bdf7
push ebx
push esi
lea ecx, [esp + 0xec]
call fcn.004017a7
push ebx
push esi
lea ecx, [esp + 0x7c]
call fcn.004017a7
lea eax, [esp + 0xac]
push eax
call fcn.0040d7e8
pop ecx
jmp 0x40b9ed
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x80]
call fcn.00402eb3
push edi
lea ecx, [esp + 0x78]
call fcn.00402b8f
push 0x26
pop ecx
mov eax, 0x578
sub eax, dword [esp + 0x88]
xor edx, edx
div ecx
push eax
push 0x4580fc
push 8
push dword [0x467478]
mov dword [esp + 0x44], eax
call fcn.00429210
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 0x40c08f
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 0x40c01c
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 0x40c01c
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 0x40bece
call fcn.0043ae46
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.0040c442
add esp, 4
lea ecx, [esp + 0x94]
call fcn.0042619d
pop ecx
push ebx
push esi
lea ecx, [esp + 0x124]
mov byte [esp + 0x34c], 0xe
call fcn.004017a7
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 0x40bf3c
call fcn.0043ae46
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.0040c442
add esp, 4
lea ecx, [esp + 0x104]
call fcn.0042619d
pop ecx
push ebx
push esi
lea ecx, [esp + 0xc0]
mov byte [esp + 0x34c], 0x11
call fcn.004017a7
push 0x45811c
lea eax, [esp + 0x104]
call fcn.0040304d
test eax, eax
jne 0x40bf94
push str.md5:
jmp 0x40bfae
push 0x458128
lea eax, [esp + 0x104]
call fcn.0040304d
test eax, eax
jne 0x40bfdb
push str.MD5:
lea ecx, [esp + 0x58]
call fcn.00402b8f
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x60]
call fcn.00402eb3
push 0x4575c8
lea ecx, [esp + 0x58]
call fcn.00402b8f
jmp 0x40bfdf
dec dword [esp + 0x14]
push ebx
push esi
lea ecx, [esp + 0x108]
call fcn.004017a7
push ebx
push esi
lea ecx, [esp + 0x98]
mov byte [esp + 0x34c], 0xb
call fcn.004017a7
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
inc dword [esp + 0x10]
add edi, 0x20
cmp eax, dword [esp + 0x34]
jl 0x40be87
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x40c02b
lea eax, [esp + 0x58]
push eax
push str.Send_Shared_Files:_r_n_s_n
push 8
push dword [0x467478]
call fcn.00429210
mov eax, dword [esp + 0x68]
add esp, 0x10
cmp dword [esp + 0x6c], 0x10
jae 0x40c050
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.004017a7
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 5
cmp dword [esp + 0x10], eax
jb 0x40be5c
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
push esi
lea ecx, [esp + 0xec]
call fcn.004017a7
push ebx
push esi
lea ecx, [esp + 0x7c]
call fcn.004017a7
lea eax, [esp + 0xac]
push eax
call fcn.0040d7e8
pop ecx
mov dword [esp + 0x344], 0x12
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40c0e6
push dword [esp + 0x2c]
call fcn.0040cbc4
push dword [esp + 0x28]
call fcn.0043a14d
pop ecx
push dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0043a14d
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