Function at 0x421e50
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x436c46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x28], ebp
lea eax, [ebp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [esp + 0x140]
xor esi, esi
mov dword [esp + 0x138], esi
lea eax, [edi - 6]
cmp eax, 6
ja case.default.0x421ea7
jmp dword [eax*4 + 0x4221b8]
push str.SYSTEMCurrentControlSetServicesmkusb20dParameters
jmp 0x421edd
push str.SYSTEMCurrentControlSetServicesmkusb20sParameters
jmp 0x421edd
push str.SYSTEMCurrentControlSetServicesiwij600dParameters
jmp 0x421edd
push str.SYSTEMCurrentControlSetServicesiwij600sParameters
jmp 0x421edd
push str.SYSTEMCurrentControlSetServicesmkusbParameters
jmp 0x421edd
push str.SYSTEMCurrentControlSetServicesFWPort
jmp 0x421edd
push str.SYSTEMCurrentControlSetServicesPAR1284Parameters
lea ecx, [esp + 0x14]
call fcn.0043185a
cmp edi, 0xc
ja 0x421eef
mov esi, dword [ebp + edi*4]
test esi, esi
mov ebx, esi
jne 0x421f09
mov edx, dword [ebp + 0x138]
lea ecx, [ebp + 0x138]
call dword [edx + 0x1c]
jmp 0x422189
cmp edi, 0xc
jne 0x421f7b
lea eax, [esp + 0x18]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesPAR1284
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x421f42
mov edx, dword [ebp + 0x138]
lea ecx, [ebp + 0x138]
call dword [edx + 0x1c]
jmp 0x422189
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x476d28
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x421f9d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x422169
cmp dword [esi], 0
je 0x422162
lea eax, [esi + 4]
lea ebp, [esi + 0x108]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x140]
cmp eax, 0xb
jne 0x421fd0
cmp dword [ebx], 0xd
je 0x42213c
mov edx, dword [esp + 0x18]
cmp eax, 0xc
mov dword [esp + 0x20], edx
jne 0x4220a6
mov eax, dword [ebx]
cmp eax, 1
je 0x421ff6
cmp eax, 2
je 0x421ff6
cmp eax, 3
jne 0x4220a6
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebx]
mov byte [esp + 0x138], 1
cmp eax, 1
jne 0x422015
push str.LPT1
jmp 0x42202b
cmp eax, 2
jne 0x422021
push str.LPT2
jmp 0x42202b
cmp eax, 3
jne 0x422034
push str.LPT3
lea ecx, [esp + 0x20]
call fcn.0043185a
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push 0xf003f
push 0
push 0x476d28
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x422091
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
add eax, 0x510
add ebx, 0x510
add ebp, 0x510
mov dword [esp + 0x14], eax
mov byte [esp + 0x138], 0
call sub.MFC42.DLL_CString::CString
jmp 0x422155
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 0x104]
sub eax, 0
je 0x42210a
dec eax
je 0x422101
dec eax
je 0x4220c0
cmp edx, dword [esp + 0x18]
je 0x42213c
push edx
jmp 0x42213a
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x24], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
not ecx
jmp 0x422118
mov ecx, dword [ebp]
mov dword [esp + 0x30], ecx
jmp 0x422111
mov eax, dword [ebp]
mov dword [esp + 0x30], eax
mov ecx, 4
mov eax, ecx
push ecx
lea ecx, [esp + 0x34]
push ecx
push eax
mov eax, dword [esp + 0x20]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x42213c
push eax
call edi
mov eax, dword [esp + 0x14]
add ebx, 0x510
add ebp, 0x510
add eax, 0x510
mov dword [esp + 0x14], eax
cmp dword [ebx], 0
jne 0x421fbb
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push ecx
call edi
mov edx, dword [ebp + 0x138]
lea ecx, [ebp + 0x138]
call dword [edx + 0x1c]
jmp 0x422189
mov eax, dword [ebp + 0x138]
lea ecx, [ebp + 0x138]
call dword [eax + 0x1c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 4