Function at 0x401360
Capabilities:
Delete registry value
Disable system features via registry on windows
Persist via windows service
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xe8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xe4], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xfc]
xor ebx, ebx
mov ebp, 1
mov esi, 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebp
cmp edi, 7
jne 0x40143d
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401428
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push str.DisableTaskMgr
push eax
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [esp + 0x24], 1
jne 0x401410
mov ecx, dword [esp + 0x10]
push str.DisableTaskMgr
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4017a5
mov eax, dword [esp + 0x10]
push esi
lea edx, [esp + 0x2c]
push edx
push esi
push ebx
push str.DisableTaskMgr
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 7
jmp 0x4017a5
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftMSMQParameters
push 0x80000002
call esi
cmp edi, ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x4014b4
cmp eax, ebx
je 0x40148f
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0xf003f
push ebx
push 0x409293
push ebx
push str.SOFTWAREMicrosoftMSMQParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x2c]
push edx
push 4
push ebx
push str.TCPNoDelay
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jmp 0x4014fe
mov ecx, dword [esp + 0x10]
cmp edi, ebx
jne 0x4014d3
push str.TCPNoDelay
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jmp 0x4014fe
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push str.TCPNoDelay
push ecx
mov dword [esp + 0x38], 4
call ebp
cmp byte [esp + 0x24], 1
jne 0x4014fe
mov dword [esp + 0x18], 3
lea edx, [esp + 0x10]
push edx
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
push 0x80000002
call esi
mov ecx, dword [esp + 0x10]
push 0x28
lea eax, [esp + 0x60]
push eax
push ebx
push ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4016ba
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
jmp 0x401546
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, 0x14
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x409244
lea eax, [esp + 0x88]
push eax
call edi
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x88]
push edx
call edi
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x90]
push ecx
push 0x80000002
inc ebx
call esi
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
xor esi, esi
push esi
push esi
push str.IPAddress
push ecx
call ebp
cmp byte [esp + 0x34], 0x30
je 0x4015c8
test eax, eax
jne 0x4015c8
lea esi, [eax + 1]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
push 0
push 0
push str.DhcpIPAddress
push ecx
call ebp
cmp byte [esp + 0x48], 0x30
je 0x4015f0
test eax, eax
jne 0x4015f0
lea esi, [eax + 1]
mov eax, dword [esp + 0xfc]
cmp eax, 1
jne 0x401632
test esi, esi
je 0x401698
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x2c]
push edx
push 4
push 0
push str.TcpAckFrequency
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401655
mov eax, 1
and dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
jmp 0x401698
test eax, eax
jne 0x40165f
test esi, esi
je 0x401698
mov ecx, dword [esp + 0x1c]
push str.TcpAckFrequency
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x401655
and dword [esp + 0x14], 1
jmp 0x401698
mov dword [esp + 0x14], 0
jmp 0x401698
cmp eax, 3
jne 0x401698
test esi, esi
je 0x401698
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 0
push str.TcpAckFrequency
push ecx
call ebp
cmp byte [esp + 0x34], 1
jne 0x401690
cmp dword [esp + 0x18], 3
je 0x401698
mov dword [esp + 0x18], 4
mov eax, dword [esp + 0x10]
push 0x28
lea edx, [esp + 0x60]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x401540
mov edi, dword [esp + 0xfc]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
cmp edi, 3
je 0x4017a1
cmp dword [esp + 0x14], 0
je 0x40173f
mov dword [esp + 0x18], 1
call fcn.00401100
test eax, eax
je 0x40170f
call fcn.00401220
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x1f4
call esi
call fcn.00401220
push 0x1f4
call esi
jmp 0x40171f
call fcn.00401220
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp edi, 1
jne 0x401731
mov eax, dword [0x40cc8c]
push 0x409208
push eax
jmp 0x40179b
mov ecx, dword [0x40cc8c]
push 0x4091f8
push ecx
jmp 0x40179b
cmp dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
je 0x4017a1
mov dword [esp + 0x18], 5
call fcn.00401100
test eax, eax
je 0x40177f
call fcn.00401220
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x1f4
call esi
call fcn.00401220
push 0x1f4
call esi
jmp 0x40178f
call fcn.00401220
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov edx, dword [0x40cc8c]
push 0x4091e8
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004021e3
add esp, 0xe8
ret