Function at 0x10006f13
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001aaad
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x12ec
call fcn.100102e0
mov eax, dword [0x1002005c]
xor eax, ebp
mov dword [ebp - 0x24], 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 - 0x12e8], ecx
xor eax, eax
mov word [ebp - 0x1c], ax
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x1028]
push eax
mov ecx, dword [ebp - 0x12e8]
call fcn.10007451
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x10006945
mov eax, dword [ebp - 0x20]
jmp 0x1000706d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1028]
push eax
call fcn.1000648b
pop ecx
pop ecx
test eax, eax
jne 0x10006965
mov eax, 0x80020009
jmp 0x1000706d
mov ecx, dword [ebp - 0x12e8]
call fcn.10008013
lea eax, [ebp - 0x1028]
push eax
mov ecx, dword [ebp - 0x12e8]
call fcn.10007451
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x10006993
mov eax, dword [ebp - 0x20]
jmp 0x1000706d
movzx eax, word [ebp - 0x1c]
mov dword [ebp - 0x12ec], eax
cmp dword [ebp - 0x12ec], 8
je 0x100069d1
cmp dword [ebp - 0x12ec], 0x11
je 0x10006ea1
cmp dword [ebp - 0x12ec], 0x13
je 0x10006bf7
cmp dword [ebp - 0x12ec], 0x4008
je 0x10006a2a
jmp 0x10007037
xor eax, eax
jne 0x100069d1
xor eax, eax
jne 0x100069d1
lea eax, [ebp - 0x1028]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x1284], eax
jne 0x100069f6
mov dword [ebp - 0x18], 0xd
jmp 0x10006a25
xor eax, eax
jne 0x100069d9
lea eax, [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1028]
push eax
push 1
push 0
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], eax
jmp 0x10007037
lea eax, [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
inc eax
mov dword [ebp - 0x1134], eax
and dword [ebp - 0x1130], 0
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
push dword [ebp - 0x1134]
lea ecx, [ebp - 0x1130]
call fcn.1000656a
jmp 0x10006a6b
and dword [ebp - 4], 0
cmp dword [ebp - 0x1130], 0
je 0x10006bce
mov eax, dword [ebp - 0x1130]
mov dword [ebp - 0x1138], eax
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x113c], eax
and dword [ebp - 0x1134], 0
mov eax, dword [ebp - 0x113c]
movsx eax, byte [eax]
test eax, eax
je 0x10006b8d
push dword [ebp - 0x113c]
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x1140], eax
mov eax, dword [ebp - 0x113c]
movsx eax, byte [eax]
cmp eax, 0x5c
jne 0x10006b04
mov eax, dword [ebp - 0x1140]
movsx eax, byte [eax]
cmp eax, 0x30
jne 0x10006b04
mov eax, dword [ebp - 0x1138]
mov byte [eax], 0
mov eax, dword [ebp - 0x1138]
inc eax
mov dword [ebp - 0x1138], eax
push dword [ebp - 0x1140]
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x113c], eax
jmp 0x10006b7b
mov eax, dword [ebp - 0x1138]
mov ecx, dword [ebp - 0x113c]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp - 0x113c]
movzx eax, byte [eax]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10006b61
mov eax, dword [ebp - 0x1138]
inc eax
mov dword [ebp - 0x1138], eax
mov eax, dword [ebp - 0x113c]
inc eax
mov dword [ebp - 0x113c], eax
mov eax, dword [ebp - 0x113c]
movsx eax, byte [eax]
test eax, eax
jne 0x10006b51
jmp 0x10006b8d
mov eax, dword [ebp - 0x1138]
mov ecx, dword [ebp - 0x113c]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp - 0x1138]
inc eax
mov dword [ebp - 0x1138], eax
mov eax, dword [ebp - 0x113c]
inc eax
mov dword [ebp - 0x113c], eax
mov eax, dword [ebp - 0x1134]
inc eax
mov dword [ebp - 0x1134], eax
jmp 0x10006a9b
mov eax, dword [ebp - 0x1138]
mov byte [eax], 0
mov eax, dword [ebp - 0x1138]
inc eax
mov dword [ebp - 0x1138], eax
mov eax, dword [ebp - 0x1138]
mov byte [eax], 0
mov eax, dword [ebp - 0x1130]
mov dword [ebp - 0x1294], eax
push dword [ebp - 0x1294]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.100065b2
mov dword [ebp - 0x18], eax
jmp 0x10006bd5
mov dword [ebp - 0x18], 0xe
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x112c]
cmp dword [ebp - 0x1130], eax
je 0x10006bf2
lea ecx, [ebp - 0x1130]
call fcn.100058c3
jmp 0x10007037
mov dword [ebp - 0x1150], 3
and dword [ebp - 0x1158], 0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x1148], eax
cmp dword [ebp - 0x1148], 0
jne 0x10006c30
and dword [ebp - 0x12f0], 0
jmp 0x10006dbf
push dword [ebp - 0x1148]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x1154], eax
mov eax, dword [ebp - 0x1154]
mov dword [ebp - 0x12a0], eax
push 2
pop eax
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [ebp - 0x12a0]
cdq
push esi
push ecx
push edx
push eax
call fcn.10013300
mov dword [ebp - 0x129c], eax
mov dword [ebp - 0x1298], edx
cmp dword [ebp - 0x1298], 0
jg 0x10006ca1
jl 0x10006c8a
cmp dword [ebp - 0x129c], 0x7fffffff
ja 0x10006ca1
cmp dword [ebp - 0x1298], 0xffffffff
jg 0x10006cad
jl 0x10006ca1
cmp dword [ebp - 0x129c], 0x80000000
jae 0x10006cad
mov dword [ebp - 0x12a4], 0x80070057
jmp 0x10006cc0
mov eax, dword [ebp - 0x129c]
mov dword [ebp - 0x1154], eax
and dword [ebp - 0x12a4], 0
cmp dword [ebp - 0x12a4], 0
jge 0x10006cd5
and dword [ebp - 0x12f4], 0
jmp 0x10006db3
cmp dword [ebp - 0x1154], 0x400
jg 0x10006d16
push dword [ebp - 0x1154]
call fcn.100066a0
pop ecx
movzx eax, al
test eax, eax
je 0x10006d16
mov eax, dword [ebp - 0x1154]
call fcn.10012fe0
mov dword [ebp - 0x12f8], esp
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x12f8]
mov dword [ebp - 0x12bc], eax
jmp 0x10006d2d
push dword [ebp - 0x1154]
lea ecx, [ebp - 0x1158]
call fcn.100067a1
mov dword [ebp - 0x12bc], eax
mov eax, dword [ebp - 0x1154]
shr eax, 1
mov dword [ebp - 0x12c0], eax
mov eax, dword [ebp - 0x12c4]
mov dword [ebp - 0x12f4], eax
cmp dword [ebp - 0x12bc], 0
je 0x10006d59
cmp dword [ebp - 0x1148], 0
jne 0x10006d62
and dword [ebp - 0x12f4], 0
jmp 0x10006db3
xor eax, eax
mov ecx, dword [ebp - 0x12bc]
mov word [ecx], ax
push dword [ebp - 0x12c0]
push dword [ebp - 0x12bc]
push 0xffffffffffffffff
push dword [ebp - 0x1148]
push 0
push dword [ebp - 0x1150]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x12b8], eax
cmp dword [ebp - 0x12b8], 0
jne 0x10006da7
and dword [ebp - 0x12f4], 0
jmp 0x10006db3
mov eax, dword [ebp - 0x12bc]
mov dword [ebp - 0x12f4], eax
mov eax, dword [ebp - 0x12f4]
mov dword [ebp - 0x12f0], eax
mov eax, dword [ebp - 0x12f0]
mov dword [ebp - 0x114c], eax
cmp dword [ebp - 0x114c], 0
jne 0x10006e1e
mov dword [ebp - 0x1278], 0x8007000e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1158], 0
je 0x10006e13
mov eax, dword [ebp - 0x1158]
mov dword [ebp - 0x12c8], eax
mov eax, dword [ebp - 0x1158]
mov eax, dword [eax]
mov dword [ebp - 0x1158], eax
push dword [ebp - 0x12c8]
call fcn.1000a04a
pop ecx
jmp 0x10006de2
mov eax, dword [ebp - 0x1278]
jmp 0x1000706d
lea eax, [ebp - 0x115c]
push eax
push 0
push 0
push dword [ebp - 0x114c]
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x115c]
mov dword [ebp - 0x12cc], eax
xor eax, eax
jne 0x10006e41
xor eax, eax
jne 0x10006e41
push 4
lea eax, [ebp - 0x12cc]
push eax
push 4
push 0
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1158], 0
je 0x10006e9c
mov eax, dword [ebp - 0x1158]
mov dword [ebp - 0x12d0], eax
mov eax, dword [ebp - 0x1158]
mov eax, dword [eax]
mov dword [ebp - 0x1158], eax
push dword [ebp - 0x12d0]
call fcn.1000a04a
pop ecx
jmp 0x10006e6b
jmp 0x10007037
lea eax, [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1164], eax
mov eax, dword [ebp - 0x1164]
and eax, 1
je 0x10006ec9
mov eax, 0x80004005
jmp 0x1000706d
mov eax, dword [ebp - 0x1164]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1160], eax
and dword [ebp - 0x1270], 0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
push dword [ebp - 0x1160]
lea ecx, [ebp - 0x1270]
call fcn.1000656a
jmp 0x10006f0c
mov dword [ebp - 4], 4
cmp dword [ebp - 0x1270], 0
jne 0x10006f4e
mov dword [ebp - 0x127c], 0x80004005
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x126c]
cmp dword [ebp - 0x1270], eax
je 0x10006f43
lea ecx, [ebp - 0x1270]
call fcn.100058c3
mov eax, dword [ebp - 0x127c]
jmp 0x1000706d
push dword [ebp - 0x1160]
push 0
push dword [ebp - 0x1270]
call fcn.10009880
add esp, 0xc
and dword [ebp - 0x1274], 0
jmp 0x10006f7a
mov eax, dword [ebp - 0x1274]
inc eax
mov dword [ebp - 0x1274], eax
mov eax, dword [ebp - 0x1274]
cmp eax, dword [ebp - 0x1164]
jge 0x10006fe1
mov eax, dword [ebp - 0x1274]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x1270]
mov dword [ebp - 0x12fc], eax
mov eax, dword [ebp - 0x1274]
and eax, 1
xor esi, esi
inc esi
sub esi, eax
shl esi, 2
mov eax, dword [ebp - 0x1274]
movzx eax, byte [ebp + eax - 0x1028]
push eax
call fcn.10006889
pop ecx
movzx eax, al
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x12fc]
movzx ecx, byte [ecx]
or ecx, eax
mov eax, dword [ebp - 0x12fc]
mov byte [eax], cl
jmp 0x10006f6d
mov eax, dword [ebp - 0x1270]
mov dword [ebp - 0x12e0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x12e4], eax
push dword [ebp - 0x1160]
push dword [ebp - 0x12e0]
push 3
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x12e4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x126c]
cmp dword [ebp - 0x1270], eax
je 0x10007037
lea ecx, [ebp - 0x1270]
call fcn.100058c3
cmp dword [ebp - 0x18], 0
je 0x1000704f
mov dword [ebp - 0x14], 0x204
push dword [ebp - 0x18]
call fcn.100073eb
pop ecx
jmp 0x1000706d
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x12e8]
call fcn.10007451
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x1000706b
mov eax, dword [ebp - 0x20]
jmp 0x1000706d
xor eax, eax
lea esp, [ebp - 0x130c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.10009868
leave
ret 0xc