Function at 0x40234b
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov dword [ebp - 0x210], 0
jmp 0x40236f
mov eax, dword [ebp - 0x210]
add eax, 1
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x210]
cmp edx, dword [ecx + 0x2b0]
jge 0x4025d7
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [str.EnumMF_]
push edx
push 0x40e440
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x208]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4023ca
jmp 0x402360
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x210]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004025db
add esp, 0x10
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp + 0xc]
cmp dword [edx + ecx*4 + 0x230], 0
jne 0x402410
mov eax, dword [str.PORTNAME]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40248f
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4 + 0x230]
push ecx
push 0x40e454
lea edx, [ebp - 0x25c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x25c]
push edx
push 1
push 0
mov eax, dword [str.PORTNAME]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004025fd
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x208]
push edx
push 1
push 0
mov eax, dword [str.DeviceDesc]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x20c]
push edx
lea eax, [ebp - 0x208]
push eax
push 1
push 0
mov ecx, dword [str.FriendlyName]
push ecx
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x20c], 0x104
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x208]
push ecx
push 0
push 0
mov edx, dword [str.Driver]
push edx
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp + 0xc]
cmp dword [eax + edx*4 + 0x230], 0
jne 0x402545
jmp 0x402360
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [str.SystemCurrentControlSetServicesClass_]
push edx
push 0x40e45c
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x104]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40258a
jmp 0x402360
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x24c]
push edx
push 1
push 0
mov eax, dword [str.DriverDesc]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402360
mov esp, ebp
pop ebp
ret