Function at 0x429ef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov edi, edx
mov dword [ebp - 0x58], ecx
mov eax, dword [0x49503c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, 7
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], 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 0x429f4f
lea eax, [ebp - 0x28]
mov dword [eax + 0x10], ebx
mov ecx, ebx
add ecx, ebx
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [ebp + ebx*2 - 0x28], 0
jmp 0x429f68
sub esp, 0xc
mov al, byte [ebp - 0x50]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], ebx
lea ecx, [ebp - 0x28]
call fcn.00452270
movzx eax, word [ebp - 0x28]
movsd xmm0, qword [ebp - 0x20]
movsd qword [ebp - 0x32], xmm0
movsd xmm0, qword [ebp - 0x26]
movsd qword [ebp - 0x38], xmm0
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov word [ebp - 0x28], ax
movsd xmm0, qword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x32]
movsd qword [ebp - 0x26], xmm0
movsd qword [ebp - 0x20], xmm1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x50]
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], 0
mov word [edi], 0
sub esp, 0xc
mov al, byte [ebp - 0x54]
mov byte [esp + 4], al
mov dword [esp + 8], str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov dword [esp], 0x2e
mov ecx, edi
call fcn.00452270
cmp dword [ebp + 0xc], 0
je 0x42a094
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
cmp ecx, eax
je 0x42a007
lea edx, [eax + 1]
mov dword [ebp - 0x40], edx
cmp ecx, 7
jbe 0x429ff8
mov edi, dword [ebp - 0x50]
mov word [edi + eax*2], 0x5c
mov word [edi + eax*2 + 2], 0
jmp 0x42a02b
sub esp, 0x10
mov al, byte [ebp - 0x54]
mov byte [esp + 4], al
xor eax, eax
inc eax
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov dword [esp + 8], 0x490144
lea ecx, [ebp - 0x50]
call fcn.004520d0
push dword [ebp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov esi, edx
sub esi, ecx
cmp esi, eax
jb 0x42a071
lea esi, [ecx + eax]
mov dword [ebp - 0x40], esi
cmp edx, 7
jbe 0x42a054
mov edi, dword [ebp - 0x50]
jmp 0x42a057
lea edi, [ebp - 0x50]
lea ecx, [edi + ecx*2]
add eax, eax
push eax
push dword [ebp + 0xc]
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [edi + esi*2], 0
jmp 0x42a091
sub esp, 0x10
mov cl, byte [ebp - 0x54]
mov byte [esp + 4], cl
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp], eax
lea ecx, [ebp - 0x50]
call fcn.004520d0
mov ebx, dword [ebp - 0x14]
cmp ebx, 7
jbe 0x42a09e
mov eax, dword [ebp - 0x28]
jmp 0x42a0a1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x3c], 7
jbe 0x42a0ac
mov ecx, dword [ebp - 0x50]
jmp 0x42a0af
lea ecx, [ebp - 0x50]
mov edx, 4
lea esi, [ebp + 8]
push edx
push esi
push edx
push eax
push ecx
push SysReAllocString
call dword [sym.imp.advapi32.dll_RegSetKeyValueW]
test eax, eax
je 0x42a0ef
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
mov edx, str.RegistrySetValueDword
push 0x140
call fcn.0042bc70
add esp, 4
jmp 0x42a0f1
xor edi, edi
mov esi, dword [ebp - 0x58]
mov dword [esi], edi
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x42a119
mov eax, dword [ebp - 0x50]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x42a150
push edx
push eax
call fcn.00450591
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x42a13c
mov eax, dword [ebp - 0x28]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x42a16b
push edx
push eax
call fcn.00450591
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004503b0
mov eax, esi
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42a186
add ecx, ecx
add ecx, 0x25
mov edx, ecx
mov esi, dword [ebp - 0x58]
jmp 0x42a10f
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42a186
add ecx, ecx
add ecx, 0x25
mov edx, ecx
mov esi, dword [ebp - 0x58]
jmp 0x42a132
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3