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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b9a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push eax
xor eax, eax
pop eax
je 0x43f756
invalid
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
jne 0x43f775
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
mov dword [ebp + 8], 0xffffffff
push eax
push 0x20006
push esi
push str.SystemCurrentControlSetServicesDisk
push reloc.WSOCK32.dll_bind
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43f908
mov eax, dword [0x4c89dc]
cmp eax, esi
jne 0x43f7af
mov eax, 0x48d810
mov ecx, dword [ebp - 0x10]
push 0xb18
push edi
push 3
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, esi
jne 0x43f8fa
mov dl, byte [ebp + 0xb]
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], dl
call fcn.004017b0
mov edi, str.system32drivers_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x20]
push ebx
call fcn.00401850
test al, al
je 0x43f81e
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
mov eax, ecx
mov esi, str.system32drivers_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
xor esi, esi
mov byte [ecx + ebx], 0
mov edx, dword [0x491cd4]
lea ecx, [ebp - 0x20]
push edx
push esi
push 0x4c89a8
mov dword [ebp - 4], esi
call fcn.00412f80
mov eax, dword [0x491cd4]
mov edx, dword [ebp - 0x18]
sub eax, edx
cmp eax, 1
ja 0x43f84a
call fcn.00479494
mov ecx, dword [ebp - 0x18]
push esi
lea edi, [ecx + 1]
lea ecx, [ebp - 0x20]
push edi
call fcn.00401850
test al, al
je 0x43f873
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add eax, edx
mov byte [eax], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
mov byte [ecx + edi], 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
cmp eax, esi
mov edi, edx
je 0x43f8a3
mov cl, byte [eax - 1]
test cl, cl
je 0x43f898
cmp cl, 0xff
je 0x43f898
push esi
push edx
lea ecx, [ebp - 0x20]
call fcn.00401850
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x43f8a3
mov byte [eax - 1], 0xff
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
push edi
push eax
push 2
push esi
push 0x4b0d78
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x43f8d7
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 8], esi
cmp ecx, esi
je 0x43f8fa
mov al, byte [ecx - 1]
test al, al
je 0x43f8f0
cmp al, 0xff
je 0x43f8f0
dec al
mov byte [ecx - 1], al
jmp 0x43f8fa
mov ecx, dword [ebp - 0x1c]
cmp ecx, esi
je 0x43f8fa
mov al, byte [ecx - 1]
test al, al
je 0x43f8f0
cmp al, 0xff
je 0x43f8f0
dec al
mov byte [ecx - 1], al
jmp 0x43f8fa
dec ecx
push ecx
call fcn.00485078
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x43f908
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4