Function at 0x427940
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov dword [esp + 4], ecx
mov edi, edx
mov esi, 7
mov eax, dword [0x49803c]
xor eax, ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], 0
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ebx, eax
cmp eax, 7
ja 0x4279a8
mov ecx, ebx
lea eax, [esp + 0x38]
add ecx, ebx
mov dword [eax + 0x10], ebx
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esp + ebx*2 + 0x38], 0
jmp 0x4279c3
sub esp, 0xc
mov al, byte [esp + 0x1c]
lea ecx, [esp + 0x44]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], ebx
call fcn.00424520
movsd xmm0, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x3a]
xor ebx, ebx
movzx eax, word [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
lea edi, [esp + 0x10]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x32], ebx
mov dword [esp + 0x2e], ebx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov word [edi], 0
movsd qword [esp + 0x2e], xmm0
movsd qword [esp + 0x28], xmm1
mov word [esp + 0x38], ax
movsd xmm0, qword [esp + 0x28]
movsd xmm1, qword [esp + 0x2e]
movsd qword [esp + 0x3a], xmm0
movsd qword [esp + 0x40], xmm1
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
sub esp, 0xc
mov al, byte [esp + 0x18]
mov ecx, edi
mov byte [esp + 4], al
mov dword [esp + 8], str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov dword [esp], 0x2e
call fcn.00424520
cmp dword [ebp + 0xc], 0
je 0x427acf
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x427c4c
lea edx, [eax + 1]
cmp ecx, 7
mov dword [esp + 0x20], edx
jbe 0x427a75
mov edi, dword [esp + 0x10]
mov word [edi + eax*2], 0x5c
mov word [edi + eax*2 + 2], 0
push dword [ebp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov esi, edx
sub esi, ecx
cmp esi, eax
jb 0x427c77
lea esi, [ecx + eax]
cmp edx, 7
mov dword [esp + 0x20], esi
jbe 0x427ab3
mov edi, dword [esp + 0x10]
jmp 0x427ab7
lea edi, [esp + 0x10]
add eax, eax
lea ecx, [edi + ecx*2]
push eax
push dword [ebp + 0xc]
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [edi + esi*2], 0
push ebx
push ebx
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x427b36
xor edi, edi
mov ebx, eax
mov dword [esp + 8], eax
dec edi
add ebx, eax
cmovae edi, ebx
push edi
call fcn.0045f403
add esp, 4
mov esi, eax
xor eax, eax
push edi
push eax
xor edi, edi
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [esp + 8]
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x427b66
cmp dword [esp + 0x4c], 7
jbe 0x427b88
mov eax, dword [esp + 0x38]
jmp 0x427b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
mov edx, str.RegistrySetValueString
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
push 0x7f
call fcn.00428eb0
add esp, 4
mov eax, dword [esp + 4]
mov dword [eax], edi
jmp 0x427be7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov edx, str.RegistrySetValueString
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
push 0x88
jmp 0x427bcc
lea eax, [esp + 0x38]
cmp dword [esp + 0x24], 7
jbe 0x427b99
mov ecx, dword [esp + 0x10]
jmp 0x427b9d
lea ecx, [esp + 0x10]
push ebx
push esi
push 1
push eax
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x427bd6
movzx ebx, ax
mov edx, str.RegistrySetValueString
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
push 0x92
call fcn.00428eb0
add esp, 4
jmp 0x427bd8
xor ebx, ebx
mov eax, dword [esp + 4]
mov dword [eax], ebx
push esi
call fcn.0045f40c
add esp, 4
mov ecx, dword [esp + 0x24]
cmp ecx, 8
jb 0x427c0e
mov eax, dword [esp + 0x10]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jae 0x427c9e
push edx
push eax
call fcn.0045f3d1
add esp, 8
mov ecx, dword [esp + 0x4c]
cmp ecx, 8
jb 0x427c35
mov eax, dword [esp + 0x38]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jae 0x427cb9
push edx
push eax
call fcn.0045f3d1
add esp, 8
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.0045fb40
mov eax, dword [esp + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
mov al, byte [esp + 0x1c]
lea ecx, [esp + 0x20]
mov byte [esp + 4], al
xor eax, eax
mov dword [esp + 8], 0x493a50
inc eax
mov dword [esp + 0xc], eax
mov dword [esp], eax
call fcn.00423e40
jmp 0x427a82
sub esp, 0x10
mov cl, byte [esp + 0x1c]
mov byte [esp + 4], cl
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov dword [esp + 8], ecx
lea ecx, [esp + 0x20]
call fcn.00423e40
jmp 0x427acf
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x427cd4
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x427c04
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x427cd4
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x427c2b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3