Function at 0x40efd0
Capabilities:
Accept command line arguments
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41b838
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, closesocket
call fcn.00403c90
test eax, eax
je 0x40effc
mov esi, reloc.WS2_32.dll_bind
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40f023
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40f264
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, dword [0x41f0c8]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov dword [esp + 0x24], ecx
test esi, esi
je 0x40f091
mov edx, esi
shr edx, 0x10
jne 0x40f066
and esi, 0xffff
lea ecx, [esp + 0x24]
push esi
call fcn.0040d350
jmp 0x40f091
push esi
call ebp
mov edi, eax
test edi, edi
je 0x40f091
push edi
lea ecx, [esp + 0x28]
call fcn.004066d0
test eax, eax
je 0x40f091
mov ecx, edi
mov edi, dword [esp + 0x24]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call fcn.0040f510
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_CharLowerA]
push 0
push str..exe
lea ecx, [esp + 0x2c]
call fcn.0040f6b0
mov edx, dword [esp + 0x24]
add eax, 7
mov ecx, dword [edx - 8]
cmp eax, ecx
jle 0x40f1be
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40f1be
mov eax, dword [0x41f0c8]
mov ecx, esi
shr ecx, 0x10
mov dword [esp + 0x28], eax
jne 0x40f0fd
and esi, 0xffff
lea ecx, [esp + 0x28]
push esi
call fcn.0040d350
jmp 0x40f128
push esi
call ebp
mov edi, eax
test edi, edi
je 0x40f128
push edi
lea ecx, [esp + 0x2c]
call fcn.004066d0
test eax, eax
je 0x40f128
mov ecx, edi
mov edi, dword [esp + 0x28]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push 0x41fd9c
push ecx
mov byte [esp + 0x28], 1
call fcn.0040cc00
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push eax
mov byte [esp + 0x20], 2
mov edx, dword [eax - 8]
push edx
call fcn.0040f5b0
mov eax, dword [esp + 0x10]
mov edx, dword [0x41f0cc]
mov byte [esp + 0x1c], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f18a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f18a
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.00412b8c
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x41f0cc]
mov byte [esp + 0x1c], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f1be
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f1be
mov edx, dword [esp + 0x28]
lea eax, [edx - 0xc]
push eax
call fcn.00412b8c
add esp, 4
lea ecx, [esp + 0x24]
call fcn.0040f510
mov edi, dword [esp + 0x24]
xor esi, esi
cmp byte [edi], 0
je 0x40f210
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
movsx eax, byte [edi]
push eax
call fcn.004139db
add esp, 4
test eax, eax
je 0x40f1f0
test esi, esi
jne 0x40f1f2
mov esi, edi
jmp 0x40f1f2
xor esi, esi
push edi
call ebp
mov edi, eax
cmp byte [edi], 0
jne 0x40f1d8
test esi, esi
je 0x40f20c
mov byte [esi], 0
mov eax, dword [esp + 0x24]
sub esi, eax
mov dword [eax - 8], esi
mov edi, dword [esp + 0x24]
mov eax, dword [edi - 8]
mov ecx, dword [esp + 0xc]
push eax
push edi
push 1
push 0
push 0x41fd90
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x24]
mov ecx, dword [0x41f0cc]
pop edi
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax - 0xc]
pop ebp
cmp edx, ecx
je 0x40f274
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f274
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00412b8c
add esp, 4
jmp 0x40f274
mov ecx, dword [esp + 4]
push 0x41fd90
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret