Function at 0x3502a7ab
Capabilities:
Set registry value

Disassembly:
push 0x28
mov eax, 0x3509279d
call fcn.3505b82d
mov dword [ebp - 0x20], ecx
and dword [ebp - 0x28], 0
and dword [ebp - 4], 0
mov esi, dword [sym.imp.msvcrt.dll_malloc]
mov edi, 0x1000
push edi
call esi
mov ebx, eax
pop ecx
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x3502a7f8
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.350298a7
mov eax, esi
lea esp, [ebp - 0x44]
call fcn.3505b8bf
ret 0x10
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.35028b69
mov dword [ebp - 0x1c], eax
test eax, eax
jge 0x3502a815
push ebx
call dword [sym.imp.msvcrt.dll_free]
mov esi, dword [ebp - 0x1c]
pop ecx
jmp 0x3502a7df
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.35028946
test eax, eax
jne 0x3502a832
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov esi, 0x80020009
jmp 0x3502a7df
push edi
call esi
mov ebx, eax
xor edi, edi
pop ecx
mov dword [ebp - 0x34], ebx
cmp ebx, edi
jne 0x3502a84d
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x3502a7da
mov ecx, dword [ebp - 0x20]
call fcn.35028b40
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.35028b69
cmp eax, edi
mov dword [ebp - 0x1c], eax
jge 0x3502a876
mov edi, dword [sym.imp.msvcrt.dll_free]
push ebx
call edi
push dword [ebp - 0x18]
call edi
pop ecx
jmp 0x3502a80f
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x3502a99f
sub eax, 9
je 0x3502a8f5
dec eax
dec eax
jne 0x3502aae4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x400
ja 0x3502a8ba
push edi
call fcn.35028319
test al, al
je 0x3502a8ba
mov eax, edi
call fcn.3505bc40
mov eax, esp
jmp 0x3502a8c3
push edi
lea ecx, [ebp - 0x28]
call fcn.3502a1fe
push esi
push ebx
push eax
call fcn.3502842b
test eax, eax
je 0x3502a9e2
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x30]
call fcn.3502863e
jmp 0x3502aae4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1c], eax
test al, 1
jne 0x3502a9ba
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x24], esi
cmp esi, 0x400
ja 0x3502a92f
push esi
call fcn.35028319
test al, al
je 0x3502a92f
mov eax, esi
call fcn.3505bc40
mov dword [ebp - 0x14], esp
jmp 0x3502a93b
push esi
lea ecx, [ebp - 0x28]
call fcn.3502a1fe
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], edi
je 0x3502a9ba
push esi
push edi
push dword [ebp - 0x14]
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp - 0x1c], edi
jle 0x3502a983
mov ecx, dword [ebp - 0x14]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, byte [edi + ebx]
push eax
call fcn.350289e0
mov edx, edi
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x3502a952
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push dword [ebp - 0x14]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x3502aae4
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x24], ebx
je 0x3502aaca
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xffe
jle 0x3502a9d4
mov esi, dword [sym.imp.msvcrt.dll_free]
push ebx
call esi
push dword [ebp - 0x18]
call esi
pop ecx
pop ecx
mov esi, 0x80004005
jmp 0x3502a7df
push 0x1000
call esi
mov edi, eax
pop ecx
test edi, edi
jne 0x3502a9f6
mov esi, dword [sym.imp.msvcrt.dll_free]
push ebx
call esi
push dword [ebp - 0x18]
call esi
pop ecx
jmp 0x3502a84a
and dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push 0x350036a0
call fcn.3502a6b7
mov dword [ebp - 0x14], eax
test eax, eax
je 0x3502aabe
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x3502aa41
push esi
call fcn.35028319
test al, al
je 0x3502aa41
mov eax, esi
call fcn.3505bc40
mov eax, esp
jmp 0x3502aa4a
push esi
lea ecx, [ebp - 0x1c]
call fcn.3502a1fe
push esi
push dword [ebp - 0x14]
push eax
call fcn.35028449
mov dword [ebp - 0x14], eax
test eax, eax
je 0x3502ab0a
push eax
push ebx
call fcn.35028a8d
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x3502aabe
cmp esi, dword [ebp + 0x10]
je 0x3502aa81
push esi
push ebx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x22
je 0x3502aabe
sub esi, ebx
push esi
push ebx
push edi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, 0x3500369c
push ebx
push edi
call esi
push dword [ebp - 0x14]
push edi
call esi
push ebx
push edi
call esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 0x2c]
push eax
push edi
call esi
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.350298a7
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x24]
call fcn.35028661
test edi, edi
je 0x3502aae4
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
call fcn.35028b69
mov esi, eax
push ebx
test esi, esi
jge 0x3502ab2f
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [ebp - 0x18]
call edi
pop ecx
pop ecx
jmp 0x3502a7df
mov esi, dword [sym.imp.msvcrt.dll_free]
push edi
call esi
push ebx
call esi
push dword [ebp - 0x18]
call esi
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.350298a7
jmp 0x3502a7da
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp - 0x18]
call esi
pop ecx
pop ecx
xor esi, esi
jmp 0x3502a7df