Function at 0x418640
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x82c]
sub esp, 0x82c
push 0xffffffffffffffff
push 0x61c038
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x828], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x20]
call fcn.004e3790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004e3cf0
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0xf003f
push ebx
push 0x64f8bc
push ebx
push str.SoftwareMicrosoftInternet_ExplorerLow_Rights
push 0x80000001
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call edi
cmp eax, ebx
jne 0x418af8
push 0x104
lea ecx, [ebp + 0x218]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x41871d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Err__ld_GetMdlFN_in_AddDAM2_n
mov ecx, esi
call fcn.00416ec0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.004e37b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x828]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x82c
mov esp, ebp
pop ebp
ret
mov dword [ebp], ebx
mov dword [ebp + 8], ebx
xor edx, edx
mov word [ebp + 4], dx
mov byte [ebp - 4], 2
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x14], ebx
xor eax, eax
mov word [ebp + 0x10], ax
mov ebx, 3
mov byte [ebp - 4], bl
push 0x100
lea ecx, [ebp + 0x620]
push ecx
push 0x100
lea edx, [ebp + 0x420]
push edx
push 0x100
lea eax, [ebp + 0x18]
push eax
push ebx
lea ecx, [ebp + 0x820]
push ecx
lea edx, [ebp + 0x218]
push edx
call fcn.005fb587
add esp, 0x24
test eax, eax
jne 0x4187b5
push eax
lea eax, [ebp + 0x620]
push eax
lea ecx, [ebp + 0x420]
push ecx
push 0x64ed70
lea ecx, [ebp]
call fcn.00402300
push 0
lea edx, [ebp + 0x18]
push edx
lea eax, [ebp + 0x820]
push eax
push 0x64ed70
lea ecx, [ebp + 0xc]
call fcn.00402300
jmp 0x4187db
mov eax, dword [0x70f66c]
test eax, eax
jne 0x4187c3
mov eax, 0x70f670
push eax
lea ecx, [ebp + 0xc]
call fcn.004017d0
push 0
push 0x652bd0
lea ecx, [ebp]
call fcn.00401960
mov esi, dword [ebp + 0xc]
test esi, esi
mov eax, esi
jne 0x4187e7
lea eax, [ebp + 0x10]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4187f0
sub eax, edx
sar eax, 1
cmp eax, 1
jle 0x41881c
test esi, esi
mov ecx, esi
jne 0x41880d
lea ecx, [ebp + 0x10]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x41881c
xor edx, edx
mov word [ecx + eax*2 - 2], dx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x14]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0x64f8bc
push 0
push str.SoftwareMicrosoftInternet_ExplorerLow_RightsElevationPolicy
push 0x80000001
call edi
test eax, eax
jne 0x4189d4
mov edx, dword [ebp - 0x14]
push edx
call esi
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0x64f8bc
push 0
push str.SoftwareMicrosoftInternet_ExplorerLow_RightsElevationPolicyE0DACC63_037F_46EE_AC02_E4C7B0FBFEB4
push 0x80000001
call edi
test eax, eax
jne 0x418928
mov edx, dword [ebp]
test edx, edx
mov eax, edx
jne 0x418891
lea eax, [ebp + 4]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418894
sub eax, esi
sar eax, 1
test edx, edx
mov ecx, edx
jne 0x4188ac
lea ecx, [ebp + 4]
lea edx, [eax + eax + 2]
push edx
push ecx
push 1
push 0
push str.AppName
mov eax, dword [ebp - 0x14]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call edi
mov edx, dword [ebp + 0xc]
test edx, edx
mov eax, edx
jne 0x4188d3
lea eax, [ebp + 0x10]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4188d6
sub eax, esi
sar eax, 1
test edx, edx
mov ecx, edx
jne 0x4188ee
lea ecx, [ebp + 0x10]
lea edx, [eax + eax + 2]
push edx
push ecx
push 1
push 0
push str.AppPath
mov eax, dword [ebp - 0x14]
push eax
call edi
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
push str.Policy
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41892e
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0x64f8bc
push 0
push str.SoftwareMicrosoftInternet_ExplorerLow_RightsElevationPolicy1902485B_CE75_42C1_BA2D_57E660793D9A
push 0x80000001
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call ebx
test eax, eax
jne 0x4189e0
push 0x1c
push str.IEMonitor.exe
push 1
push eax
push str.AppName
mov edx, dword [ebp - 0x14]
push edx
call edi
mov edx, dword [ebp + 0xc]
test edx, edx
mov eax, edx
jne 0x41897f
lea eax, [ebp + 0x10]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418982
sub eax, esi
sar eax, 1
test edx, edx
mov ecx, edx
jne 0x41899a
lea ecx, [ebp + 0x10]
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push 0
push str.AppPath
mov ecx, dword [ebp - 0x14]
push ecx
call edi
push 4
lea edx, [ebp - 0x18]
push edx
push 4
push 0
push str.Policy
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4189e0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0xf003f
push 0
push 0x64f8bc
push 0
push str.SoftwareMicrosoftInternet_ExplorerLow_RightsDragDrop
push 0x80000001
call ebx
test eax, eax
jne 0x418ae0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0x64f8bc
push 0
push str.SoftwareMicrosoftInternet_ExplorerLow_RightsDragDrop19129CDA_AFC0_4330_99BC_C5A834F89006
push 0x80000001
call ebx
test eax, eax
jne 0x418ae0
mov edx, dword [ebp]
test edx, edx
mov eax, edx
jne 0x418a4a
lea eax, [ebp + 4]
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418a50
sub eax, esi
sar eax, 1
test edx, edx
mov ecx, edx
jne 0x418a68
lea ecx, [ebp + 4]
lea edx, [eax + eax + 2]
push edx
push ecx
push 1
push 0
push str.AppName
mov eax, dword [ebp - 0x14]
push eax
call edi
mov edx, dword [ebp + 0xc]
test edx, edx
mov eax, edx
jne 0x418a89
lea eax, [ebp + 0x10]
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418a90
sub eax, esi
sar eax, 1
test edx, edx
mov ecx, edx
jne 0x418aa8
lea ecx, [ebp + 0x10]
lea edx, [eax + eax + 2]
push edx
push ecx
push 1
push 0
push str.AppPath
mov eax, dword [ebp - 0x14]
push eax
call edi
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
push str.Policy
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.004011f0
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.004011f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004e37b0
mov dword [ebp - 4], 0xffffffff
jmp 0x4186f8