Function at 0x403930
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411fad
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 4], esi
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x58], esi
test ecx, ecx
je 0x403bb5
mov eax, dword [ecx]
lea edx, [ebp - 0x58]
push edx
push 0x4132d0
push ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
js 0x403bba
mov esi, dword [ebp - 0x58]
push esi
mov dword [ebp - 0x68], esi
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push str.SystemCurrentControlSetServicesMDHFSSettingsExtensionMaps
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SystemCurrentControlSetServicesMDHFSSettingsExtensionMaps
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
jle 0x4039e9
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
js 0x403b97
mov dword [ebp - 0x58], 0
push str._mac_extension_maps_maps_map__id__00000000_0000_0000_0000_000000000000_
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x68]
call fcn.00402980
mov ebx, eax
test ebx, ebx
js 0x403a32
cmp dword [ebp - 0x58], 0
je 0x403a32
push str.default
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x58]
call fcn.00403bf0
add esp, 4
mov ebx, eax
mov dword [ebp - 0x64], 0
test ebx, ebx
js 0x403b6e
push str._mac_extension_maps_maps_map__id___00000000_0000_0000_0000_000000000000_
mov byte [ebp - 4], 3
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
xor ebx, ebx
test edi, edi
mov dword [ebp - 0x5c], edi
mov eax, 0x8007000e
cmove ebx, eax
je 0x403a73
mov eax, dword [esi]
lea ecx, [ebp - 0x64]
push ecx
push edi
push esi
call dword [eax + 0x90]
mov ebx, eax
mov byte [ebp - 4], 2
test edi, edi
je 0x403a82
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
js 0x403b68
cmp ebx, 1
je 0x403b68
mov dword [ebp - 0x60], 0
xor edi, edi
nop dword [eax]
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov ebx, eax
test ebx, ebx
js 0x403b58
cmp ebx, 1
je 0x403b2e
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x60]
push ecx
mov dword [ebp - 0x5c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 0x60], 0
push 0
push eax
call fcn.004064d0
add esp, 0xc
lea eax, [ebp - 0x50]
push 0xa
push 0x20
push eax
push edi
call fcn.00408e19
lea eax, [ebp - 0x50]
inc edi
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x5c]
call fcn.00403bf0
add esp, 0x14
mov ebx, eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x403b20
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
test ebx, ebx
jns 0x403aa0
jmp 0x403b58
push 4
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], edi
push eax
push 4
push 0
push str.count
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
jle 0x403b58
movzx ebx, bx
or ebx, 0x80070000
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x64], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x403b7f
js 0x403b7a
push eax
call edi
xor eax, eax
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x403b93
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x54]
test ebx, ebx
jns 0x403baa
push str.SystemCurrentControlSetServicesMDHFSSettingsExtensionMaps
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x403bba
js 0x403bba
push eax
call edi
jmp 0x403bba
mov ebx, 0x80004005
mov dword [ebp - 4], 7
test esi, esi
je 0x403bcb
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404f90
mov esp, ebp
pop ebp
ret