Function at 0x41fb64
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 0x510aaf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
push edi
inc esi
push esi
mov dword [esp + 0x18], edi
call fcn.0047df04
pop ecx
pop ecx
cmp eax, edi
je 0x41fba6
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
jmp 0x41fba8
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x344], esi
cmp dword [0x55a570], 8
mov eax, dword [0x55a55c]
jae 0x41fbd2
mov eax, 0x55a55c
lea ecx, [esp + 0x38]
push ecx
push 0xf003f
push edi
push eax
push dword [0x55a4dc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41fc07
or dword [esp + 0x344], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.0042052d
xor al, al
jmp 0x4202ef
push dword [esp + 0x38]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xb0]
push eax
mov ecx, ebx
call fcn.00421a4a
pop ecx
pop ecx
push edi
push edi
push edi
push edi
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x14c]
push eax
mov byte [esp + 0x35c], 2
mov dword [esp + 0x2c], edi
push edi
jmp 0x41fdf8
lea eax, [esp + 0x40]
push eax
push 0xf003f
push edi
lea eax, [esp + 0x144]
push eax
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41fddf
push dword [esp + 0x40]
lea eax, [esp + 0xdc]
push eax
mov ecx, ebx
call fcn.00421a4a
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 edi
push str.FileType
push dword [esp + 0x54]
mov dword [esp + 0x4c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41fdd1
cmp dword [esp + 0x18], esi
jne 0x41fdd1
lea eax, [esp + 0xd8]
push eax
call fcn.00421a5d
pop ecx
lea eax, [esp + 0xb8]
push eax
call fcn.0042061f
push eax
lea esi, [esp + 0x20]
mov byte [esp + 0x348], 3
call fcn.004205c7
lea eax, [esp + 0xb8]
push eax
mov byte [esp + 0x348], 2
call fcn.00420773
push str.type
lea ecx, [esp + 0x94]
call fcn.00401644
mov byte [esp + 0x344], 4
push dword [esp + 0x70]
lea eax, [esp + 0xbc]
push eax
call fcn.0041ec2c
pop ecx
pop ecx
mov esi, eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x348], 5
call fcn.0042057b
mov ecx, eax
call fcn.0042065e
push 0xffffffffffffffff
push edi
push esi
mov ecx, eax
call fcn.004019f3
push edi
push 1
lea ecx, [esp + 0xc0]
call fcn.0040184d
push edi
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x34c], 2
call fcn.004017de
push str.filemd5
lea ecx, [esp + 0x94]
call fcn.00401644
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x348], 6
call fcn.0042057b
mov ecx, eax
call fcn.0042065e
lea ecx, [esp + 0x138]
push ecx
mov ecx, eax
call fcn.00401829
push edi
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x34c], 2
call fcn.004017de
jmp 0x41fddf
lea eax, [esp + 0xd8]
push eax
call fcn.00421a5d
pop ecx
inc dword [esp + 0x14]
push edi
push edi
push edi
push edi
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 0x41fc45
push str.tb.sogou.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, edi
jne 0x41fe7e
push 0x53ab6c
call fcn.00413df9
pop ecx
lea eax, [esp + 0xac]
push eax
call fcn.00421a5d
pop ecx
mov dword [esp + 0x344], 7
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x41fe62
push dword [esp + 0x2c]
call fcn.00420e47
push dword [esp + 0x28]
call fcn.0049a490
pop ecx
push dword [esp + 0x1c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.0049a490
xor al, al
jmp 0x4202ee
push edi
push 2
pop ebx
push ebx
push ebx
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x48]
push edi
push eax
call fcn.0049d740
mov eax, ebx
mov word [esp + 0x50], ax
add esp, 0xc
xor eax, eax
mov word [esp + 0x46], ax
push 0x10
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x54], edi
call dword [sym.imp.WS2_32.dll_bind]
push 0x10
lea eax, [esp + 0x48]
push edi
push eax
call fcn.0049d740
mov word [esp + 0x50], bx
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
add esp, 0xc
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.00401644
push str.type:add_r_n
lea ecx, [esp + 0x78]
mov byte [esp + 0x348], 8
call fcn.0040c0b4
push str.uid:
lea ecx, [esp + 0x78]
call fcn.0040c0b4
cmp dword [0x55a5e4], edi
jne 0x41ff4b
push str.Unknown
lea ecx, [esp + 0xbc]
call fcn.00401644
mov byte [esp + 0x344], 9
mov dword [esp + 0x10], 1
jmp 0x41ff50
mov eax, 0x55a5d0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x80]
call fcn.00409cc4
mov dword [esp + 0x344], 8
test byte [esp + 0x10], 1
je 0x41ff81
push edi
push 1
lea ecx, [esp + 0xc0]
call fcn.004017de
mov esi, 0x53a15c
push esi
lea ecx, [esp + 0x78]
call fcn.0040c0b4
push str.hash:
lea ecx, [esp + 0x78]
call fcn.0040c0b4
lea eax, [esp + 0xe4]
push eax
call fcn.0041ec5a
mov byte [esp + 0x348], 0xa
lea ecx, [esp + 0xe8]
mov dword [esp], 0x535d5a
call fcn.0040bf93
test eax, eax
jne 0x41fff8
push edi
push 1
lea ecx, [esp + 0xec]
call fcn.004017de
push edi
push 1
lea ecx, [esp + 0x7c]
call fcn.004017de
lea eax, [esp + 0xac]
push eax
call fcn.00421a5d
pop ecx
jmp 0x41fbee
push 0xffffffffffffffff
push edi
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x80]
call fcn.00409cc4
push esi
lea ecx, [esp + 0x78]
call fcn.0040c0b4
push 0x26
mov eax, 0x578
sub eax, dword [esp + 0x8c]
pop ecx
xor edx, edx
div ecx
push eax
push 0x53abb0
mov dword [esp + 0x3c], eax
call fcn.00413df9
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
pop ecx
sar eax, 5
pop ecx
mov dword [esp + 0x10], edi
cmp eax, edi
jbe 0x42027e
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x58]
call fcn.00403731
mov byte [esp + 0x344], 0xb
cmp dword [esp + 0x34], edi
mov dword [esp + 0x14], edi
jle 0x420213
mov esi, dword [esp + 0x10]
shl esi, 5
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 5
cmp dword [esp + 0x10], eax
jae 0x420213
push str.filemd5
lea ecx, [esp + 0x120]
call fcn.00401644
mov byte [esp + 0x344], 0xc
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 5
cmp dword [esp + 0x10], eax
jb 0x4200c3
call fcn.0049af27
mov eax, dword [esp + 0x28]
lea ecx, [esi + eax]
push edi
push ecx
lea eax, [esp + 0x124]
push eax
call fcn.0042065e
add esp, 4
lea ecx, [esp + 0x94]
call fcn.004221c4
pop ecx
xor ebx, ebx
push edi
inc ebx
push ebx
lea ecx, [esp + 0x124]
mov byte [esp + 0x34c], 0xe
call fcn.004017de
push str.type
lea ecx, [esp + 0xbc]
call fcn.00401644
mov byte [esp + 0x344], 0xf
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 5
cmp dword [esp + 0x10], eax
jb 0x420131
call fcn.0049af27
mov eax, dword [esp + 0x28]
lea ecx, [esi + eax]
xor eax, eax
push eax
push ecx
lea eax, [esp + 0xc0]
push eax
call fcn.0042065e
add esp, 4
lea ecx, [esp + 0x104]
call fcn.004221c4
pop ecx
push edi
push ebx
lea ecx, [esp + 0xc0]
mov byte [esp + 0x34c], 0x11
call fcn.004017de
push 0x5386e4
lea ecx, [esp + 0x104]
call fcn.0040bf93
test eax, eax
jne 0x42018b
push str.md5:
jmp 0x4201a5
push 0x53abd8
lea ecx, [esp + 0x104]
call fcn.0040bf93
test eax, eax
jne 0x4201d2
push str.MD5:
lea ecx, [esp + 0x58]
call fcn.0040c0b4
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x60]
call fcn.00409cc4
push 0x53a15c
lea ecx, [esp + 0x58]
call fcn.0040c0b4
jmp 0x4201d6
dec dword [esp + 0x14]
push edi
push ebx
lea ecx, [esp + 0x108]
call fcn.004017de
push edi
push ebx
lea ecx, [esp + 0x98]
mov byte [esp + 0x34c], 0xb
call fcn.004017de
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
inc dword [esp + 0x10]
add esi, 0x20
cmp eax, dword [esp + 0x34]
jl 0x42007f
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x420222
lea eax, [esp + 0x58]
push eax
push str.Send_Shared_Files:_r_n_s_n
call fcn.00413df9
cmp dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x60]
pop ecx
pop ecx
jae 0x42023e
lea eax, [esp + 0x58]
push 0x10
lea ecx, [esp + 0x48]
push ecx
push edi
push dword [esp + 0x74]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_sendto]
push edi
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x34c], 0xa
call fcn.004017de
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 5
cmp dword [esp + 0x10], eax
jb 0x420054
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_closesocket]
push edi
push 1
lea ecx, [esp + 0xec]
call fcn.004017de
push edi
push 1
lea ecx, [esp + 0x7c]
call fcn.004017de
lea eax, [esp + 0xac]
push eax
call fcn.00421a5d
pop ecx
mov dword [esp + 0x344], 0x12
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x4202d7
push dword [esp + 0x2c]
call fcn.00420e47
push dword [esp + 0x28]
call fcn.0049a490
pop ecx
push dword [esp + 0x1c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.0049a490
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