Function at 0x10007902
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000ddeb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x112c
call fcn.1000ca97
mov eax, dword [0x10001f94]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x112c], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x1014]
xor ebx, ebx
push eax
mov dword [ebp - 0x1124], ecx
mov dword [ebp - 0x1120], edi
mov dword [ebp - 0x1128], esi
mov dword [ebp - 0x111c], ebx
call fcn.10007da7
test eax, eax
js 0x10007d21
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.10007da7
pop ecx
pop ecx
test eax, eax
jne 0x1000799e
mov eax, 0x80020009
jmp 0x10007d21
mov ecx, dword [ebp - 0x112c]
call fcn.100077d1
mov ecx, dword [ebp - 0x112c]
lea eax, [ebp - 0x1014]
push eax
call fcn.10007da7
test eax, eax
js 0x10007d21
movzx eax, word [ebp - 0x111c]
sub eax, 8
je 0x10007cea
sub eax, 9
je 0x10007bbc
dec eax
dec eax
je 0x10007adb
sub eax, 0x3ff5
jne 0x10007d0a
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
add eax, 2
mov dword [ebp - 0x1118], ebx
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x1118]
mov byte [ebp - 4], 1
call fcn.10007da7
jmp 0x10007a39
mov esi, dword [ebp - 0x1118]
test esi, esi
je 0x10007aba
cmp byte [ebp - 0x1014], 0
lea edi, [ebp - 0x1014]
je 0x10007a94
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x10007a73
cmp byte [eax], 0x30
jne 0x10007a73
mov byte [esi], bl
push eax
inc esi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x10007a8f
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.kernel32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10007a8d
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x10007a94
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x10007a52
mov ecx, dword [ebp - 0x1120]
mov word [esi], 0
push dword [ebp - 0x1118]
push dword [ebp - 0x1128]
call fcn.10007da7
mov esi, dword [ebp - 0x1118]
mov edi, eax
jmp 0x10007abd
push 0xe
pop edi
lea eax, [ebp - 0x1114]
cmp esi, eax
je 0x10007cfd
lea ecx, [ebp - 0x1118]
call fcn.10008e4b
jmp 0x10007cfd
mov dword [ebp - 0x1120], ebx
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 4], 3
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
push 2
push eax
mov dword [ebp - 0x111c], eax
lea eax, [ebp - 0x111c]
push eax
call fcn.10007da7
add esp, 0xc
test eax, eax
js 0x10007ba7
mov esi, dword [ebp - 0x111c]
cmp esi, 0x400
jg 0x10007b3d
push esi
call fcn.100055f7
pop ecx
test al, al
je 0x10007b3d
mov eax, esi
call fcn.1000c873
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10007b49
push esi
lea ecx, [ebp - 0x1120]
call fcn.10007da7
push 3
shr esi, 1
push esi
lea ecx, [ebp - 0x1014]
push ecx
push eax
call fcn.10007da7
test eax, eax
je 0x10007ba7
lea ecx, [ebp - 0x1130]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1130]
push 4
mov dword [ebp - 0x1124], eax
lea eax, [ebp - 0x1124]
push eax
push 4
push ebx
push dword [ebp - 0x1128]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x1120]
mov edi, eax
call fcn.1000575f
jmp 0x10007cfd
lea ecx, [ebp - 0x1120]
call fcn.1000575f
mov eax, 0x8007000e
jmp 0x10007d21
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
mov dword [ebp - 0x111c], eax
test al, 1
je 0x10007bdd
mov eax, 0x80004005
jmp 0x10007d21
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x1130], edi
mov dword [ebp - 0x1118], ebx
mov dword [ebp - 4], 4
push edi
lea ecx, [ebp - 0x1118]
mov byte [ebp - 4], 5
call fcn.10007da7
jmp 0x10007c2e
cmp dword [ebp - 0x1118], 0
jne 0x10007c4e
lea eax, [ebp - 0x1114]
test eax, eax
je 0x10007bd3
lea ecx, [ebp - 0x1118]
call fcn.10008e4b
jmp 0x10007bd3
push edi
push ebx
push dword [ebp - 0x1118]
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [ebp - 0x111c], 0
mov dword [ebp - 0x1124], ebx
jle 0x10007caf
mov edi, dword [ebp - 0x111c]
mov esi, dword [ebp - 0x1118]
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add esi, eax
movzx eax, byte [ebp + ebx - 0x1014]
push eax
call fcn.10007da7
pop ecx
mov edx, ebx
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc ebx
cmp ebx, edi
jl 0x10007c73
mov edi, dword [ebp - 0x1130]
xor ebx, ebx
mov eax, dword [ebp - 0x1120]
push edi
push dword [ebp - 0x1118]
push 3
push ebx
push dword [ebp - 0x1128]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x10007cfd
lea ecx, [ebp - 0x1118]
call fcn.10008e4b
jmp 0x10007cfd
push 1
lea eax, [ebp - 0x1014]
push eax
push esi
mov ecx, edi
call fcn.10007da7
mov edi, eax
test edi, edi
je 0x10007d0a
push edi
call fcn.10007da7
pop ecx
jmp 0x10007d21
push dword [ebp - 0x1134]
mov ecx, dword [ebp - 0x112c]
call fcn.10007da7
test eax, eax
js 0x10007d21
xor eax, eax
lea esp, [ebp - 0x114c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000ba05
leave
ret 0xc