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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d138
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 0x440ee6
invalid
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
jne 0x440f05
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 0x441098
mov eax, dword [0x4cbb2c]
cmp eax, esi
jne 0x440f3f
mov eax, 0x48e810
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 0x44108a
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 0x440fae
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 [0x492cd4]
lea ecx, [ebp - 0x20]
push edx
push esi
push 0x4cbaf8
mov dword [ebp - 4], esi
call fcn.00412f10
mov eax, dword [0x492cd4]
mov edx, dword [ebp - 0x18]
sub eax, edx
cmp eax, 1
ja 0x440fda
call fcn.0047ac24
mov ecx, dword [ebp - 0x18]
push esi
lea edi, [ecx + 1]
lea ecx, [ebp - 0x20]
push edi
call fcn.00401850
test al, al
je 0x441003
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 0x441033
mov cl, byte [eax - 1]
test cl, cl
je 0x441028
cmp cl, 0xff
je 0x441028
push esi
push edx
lea ecx, [ebp - 0x20]
call fcn.00401850
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x441033
mov byte [eax - 1], 0xff
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
push edi
push eax
push 2
push esi
push str.ImagePath
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x441067
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 8], esi
cmp ecx, esi
je 0x44108a
mov al, byte [ecx - 1]
test al, al
je 0x441080
cmp al, 0xff
je 0x441080
dec al
mov byte [ecx - 1], al
jmp 0x44108a
mov ecx, dword [ebp - 0x1c]
cmp ecx, esi
je 0x44108a
mov al, byte [ecx - 1]
test al, al
je 0x441080
cmp al, 0xff
je 0x441080
dec al
mov byte [ecx - 1], al
jmp 0x44108a
dec ecx
push ecx
call fcn.00486808
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x441098
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