Function at 0x418c1a
Capabilities:
Check if file exists
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push ebx
push esi
push edi
mov edi, ecx
lea edx, [ebp + 8]
push str.WindowsSystem32configSOFTWARE
lea ecx, [ebp - 0x2c]
call fcn.0043ab55
mov esi, dword [ebp - 0x2c]
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418c4f
push 0xa
pop ebx
jmp 0x41903a
lea eax, [ebp - 0x2c]
mov edx, str.bf1a281b_ad7b_4476_ac95_f47682990ce7
push eax
lea ecx, [ebp - 0x24]
call fcn.00430fb9
pop ecx
push 0x2f
push 0x5c
pop eax
push eax
lea ecx, [ebp - 0x24]
call fcn.0043ba25
push esi
push dword [ebp - 0x24]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov ebx, eax
test ebx, ebx
jne 0x41902f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 0x2001f
push dword [0x4ab220]
push str.MountedDevices
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419027
lea eax, [ebp - 0x24]
mov dword [ebp - 0x5c], 0x491604
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x84]
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x38], eax
call fcn.0043aa99
lea ecx, [ebp - 0x5c]
call fcn.0043aa7b
call fcn.0043c5cd
push eax
lea ecx, [ebp - 8]
call fcn.0043ac50
push str.MicrosoftWindows_NTCurrentVersion
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0043ab55
lea ecx, [ebp - 8]
push ecx
push str.SystemRoot
mov edx, dword [eax]
mov ecx, 0x80000002
call fcn.0044cebc
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov esi, dword [ebp - 8]
test edi, edi
je 0x418d26
mov ebx, edi
jmp 0x419011
cmp dword [esi - 0xc], 4
jl 0x41900e
movzx eax, word [esi]
push 0x5a
pop ecx
push 0x41
pop edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
cmp ax, dx
jb 0x418d49
cmp ax, cx
jbe 0x418d5b
cmp eax, 0x61
jb 0x41900e
cmp eax, 0x7a
ja 0x41900e
push 0x3a
pop ecx
cmp word [esi + 2], cx
jne 0x41900e
push 0x5c
pop ecx
cmp word [esi + 4], cx
jne 0x41900e
cmp eax, 0x78
je 0x419011
mov edi, dword [ebp + 8]
push 0x19
pop edx
movzx eax, word [edi]
cmp ax, word [ebp - 0x14]
jb 0x418d93
cmp ax, word [ebp - 0x10]
jbe 0x418d9f
add eax, 0xffffff9f
cmp ax, dx
ja 0x41900e
push 0x3a
pop eax
cmp word [edi + 2], ax
jne 0x41900e
cmp word [edi + 4], cx
jne 0x41900e
call fcn.0043c5cd
push eax
lea ecx, [ebp - 8]
call fcn.0043ac50
movzx eax, word [edi]
lea ecx, [ebp - 0x20]
push 0x498610
push eax
push str.DosDevices_
call fcn.0043b487
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.00430f7e
pop ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.0043ab55
lea edx, [ebp - 8]
mov ecx, 0x80000002
push edx
lea edx, [ebp - 0x30]
push edx
push dword [eax]
mov edx, str.SYSTEMMountedDevices
call fcn.0044cfa0
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0043c924
test edi, edi
mov edi, dword [ebp - 8]
jne 0x419001
cmp dword [ebp - 0x30], 3
jne 0x419001
mov eax, dword [edi - 0xc]
mov dword [ebp - 0xc], eax
call fcn.0043c5cd
push eax
lea ecx, [ebp - 0x14]
call fcn.0043ac50
push dword [ebp - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0043aa22
mov ecx, eax
mov dword [ebp - 0x1c], 0x104
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], ecx
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ecx, ecx
inc ecx
mov dword [ebp - 8], ecx
jmp 0x418f25
test eax, eax
mov eax, dword [ebp - 0xc]
jne 0x418ef5
cmp dword [ebp - 0x1c], 0xe
jne 0x418ef5
cmp dword [ebp - 0x28], eax
jne 0x418ef5
cmp dword [ebp - 0x10], 3
jne 0x418ef5
push 0xc
push str.DosDevices_
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x418ef2
push 0x3a
pop eax
cmp word [ebp - 0x272], ax
jne 0x418ef2
push dword [ebp - 0xc]
push edi
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
je 0x418fb8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0x104
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 8]
cmp eax, 0x103
jne 0x418e9e
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [esi - 0xc], ebx
jl 0x419056
movzx ecx, word [esi]
lea eax, [ecx - 0x61]
cmp eax, 0x19
ja 0x418f4d
add ecx, 0xffffffe0
push 0x498610
push ecx
push str.DosDevices_
lea ecx, [ebp - 0x1c]
call fcn.0043b487
mov edx, eax
lea ecx, [ebp - 8]
call fcn.00430f7e
pop ecx
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.0043ab55
pop ecx
push dword [ebp - 0x10]
push edi
push 3
push ebx
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x20]
mov ebx, eax
add ecx, 0xfffffff0
call fcn.0043c924
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.0043c924
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0043c924
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043c924
jmp 0x419004
cmp dword [esi - 0xc], ebx
jl 0x419056
movzx edx, word [esi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x418fcf
add edx, 0x20
movzx ecx, word [ebp - 0x274]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x418fe1
add ecx, 0x20
cmp edx, ecx
je 0x418fab
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x418f30
mov ebx, eax
jmp 0x418fab
push 0xa
pop ebx
lea ecx, [edi - 0x10]
call fcn.0043c924
jmp 0x419011
push 0xa
pop ebx
lea ecx, [esi - 0x10]
call fcn.0043c924
lea ecx, [ebp - 0x84]
call fcn.0043aa5e
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
call fcn.0043a910
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [esi - 0x10]
call fcn.0043c924
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
push 0x80070057
call fcn.0043c873
int3