Function at 0x413790
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov dword [ebp - 0xe4], ecx
lea edi, [ebp - 0x7c]
mov ecx, 0x1c
mov dword [ebp - 0xf0], eax
mov esi, str.SOFTWAREMicrosoftInternet_ExplorerBrowserMachineCode
mov dword [ebp - 0xec], eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe0], eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xe0]
push eax
push 0
push 0x20019
push 0
push 0
push 0
lea eax, [ebp - 0x7c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x413a67
mov esi, dword [ebp - 0xe0]
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xe0]
push eax
push 0x2001b
push 0
lea eax, [ebp - 0x7c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41398f
test esi, esi
je 0x41385f
push esi
call edi
mov eax, dword [ebp - 0xe0]
push ebx
push ecx
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xe8], 0
call fcn.00418000
cmp dword [ebx + 0x10], 0
mov esi, dword [ebp - 0xf0]
jne 0x413975
mov ecx, dword [ebp - 0xe4]
lea eax, [ebp - 0xdc]
push eax
call fcn.00413630
xor ecx, ecx
mov dword [ebp - 0xb0], 7
mov dword [ebp - 0xb4], 0
mov word [ebp - 0xc4], cx
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4138cc
mov eax, dword [eax]
lea ecx, [ebp - 0xc4]
push ecx
mov ecx, eax
call fcn.00416ca0
add esp, 4
lea eax, [ebp - 0xc4]
mov ecx, ebx
push eax
call fcn.00405610
cmp dword [ebp - 0xb0], 8
jb 0x413902
push dword [ebp - 0xc4]
call fcn.00420949
add esp, 4
xor eax, eax
mov dword [ebp - 0xb0], 7
cmp dword [ebp - 0xc8], 0x10
mov dword [ebp - 0xb4], 0
mov word [ebp - 0xc4], ax
jb 0x413936
push dword [ebp - 0xdc]
call fcn.00420949
add esp, 4
cmp dword [ebx + 0x14], 8
jb 0x413940
mov edx, dword [ebx]
jmp 0x413942
mov edx, ebx
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413947
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.MachineGuid
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x413a57
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413a57
mov ecx, dword [ebp - 0xe4]
lea eax, [ebp - 0xdc]
push eax
call fcn.00413630
xor ecx, ecx
mov dword [ebp - 0x80], 7
mov dword [ebp - 0x84], 0
mov word [ebp - 0x94], cx
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4139c6
mov eax, dword [eax]
lea ecx, [ebp - 0x94]
push ecx
mov ecx, eax
call fcn.00416ca0
lea eax, [ebp - 0x94]
add esp, 4
cmp ebx, eax
je 0x413a12
cmp dword [ebx + 0x14], 8
jb 0x4139f1
push dword [ebx]
call fcn.00420949
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov word [ebx], ax
lea eax, [ebp - 0x94]
push eax
call fcn.004057a0
cmp dword [ebp - 0x80], 8
jb 0x413a26
push dword [ebp - 0x94]
call fcn.00420949
add esp, 4
xor eax, eax
mov dword [ebp - 0x80], 7
cmp dword [ebp - 0xc8], 0x10
mov dword [ebp - 0x84], 0
mov word [ebp - 0x94], ax
jb 0x413a57
push dword [ebp - 0xdc]
call fcn.00420949
add esp, 4
test esi, esi
je 0x413b38
push esi
call edi
jmp 0x413b38
mov ecx, dword [ebp - 0xe4]
lea eax, [ebp - 0xdc]
push eax
call fcn.00413630
xor ecx, ecx
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], 0
mov word [ebp - 0xac], cx
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x413aa1
mov eax, dword [eax]
lea ecx, [ebp - 0xac]
push ecx
mov ecx, eax
call fcn.00416ca0
lea eax, [ebp - 0xac]
add esp, 4
cmp ebx, eax
je 0x413aed
cmp dword [ebx + 0x14], 8
jb 0x413acc
push dword [ebx]
call fcn.00420949
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov word [ebx], ax
lea eax, [ebp - 0xac]
push eax
call fcn.004057a0
cmp dword [ebp - 0x98], 8
jb 0x413b04
push dword [ebp - 0xac]
call fcn.00420949
add esp, 4
xor eax, eax
mov dword [ebp - 0x98], 7
cmp dword [ebp - 0xc8], 0x10
mov dword [ebp - 0x9c], 0
mov word [ebp - 0xac], ax
jb 0x413b38
push dword [ebp - 0xdc]
call fcn.00420949
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421184
mov esp, ebp
pop ebp
ret 4