Function at 0x10002e6b
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x10a0]
mov eax, 0x1120
call fcn.100065b0
mov eax, dword [0x1001010c]
xor eax, ebp
mov dword [ebp + 0x109c], eax
mov eax, dword [ebp + 0x10b0]
push ebx
mov ebx, dword [ebp + 0x10ac]
push esi
mov esi, dword [ebp + 0x10a8]
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x9c]
xor edi, edi
push eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], edi
call fcn.10001a7c
cmp eax, edi
jl 0x10003160
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x9c]
push eax
call fcn.10001921
pop ecx
pop ecx
test eax, eax
jne 0x10002ee4
mov eax, 0x80020009
jmp 0x10003160
mov ecx, dword [ebp - 0x7c]
call fcn.10001a5a
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp + 0x9c]
push eax
call fcn.10001a7c
cmp eax, edi
jl 0x10003160
movzx eax, word [ebp - 0x6c]
sub eax, 8
je 0x1000312f
sub eax, 9
je 0x10003077
dec eax
dec eax
je 0x10002fd5
sub eax, 0x3ff5
jne 0x1000314f
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
inc eax
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], edi
call fcn.10002ca4
mov esi, dword [ebp - 0x68]
cmp esi, edi
je 0x10002fb9
cmp byte [ebp + 0x9c], 0
lea edi, [ebp + 0x9c]
je 0x10002f9e
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x10002f7d
cmp byte [eax], 0x30
jne 0x10002f7d
mov byte [esi], 0
push eax
inc esi
call ebx
mov edi, eax
jmp 0x10002f99
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10002f97
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x10002f9e
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x10002f63
mov ecx, dword [ebp - 0x74]
mov byte [esi], 0
mov byte [esi + 1], 0
push dword [ebp - 0x68]
push dword [ebp - 0x78]
call fcn.100017de
mov esi, eax
xor edi, edi
jmp 0x10002fbc
push 0xe
pop esi
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x10003142
lea ecx, [ebp - 0x68]
call fcn.10001cd8
jmp 0x10003142
lea eax, [ebp + 0x9c]
push eax
mov dword [ebp - 0x6c], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 2
push eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
call fcn.10001045
add esp, 0xc
test eax, eax
jl 0x1000303c
mov ebx, dword [ebp - 0x70]
cmp ebx, 0x400
jg 0x1000301d
push ebx
call fcn.100013c8
pop ecx
test al, al
je 0x1000301d
mov eax, ebx
call fcn.100062c0
mov eax, esp
jmp 0x10003026
push ebx
lea ecx, [ebp - 0x6c]
call fcn.1000150a
push 3
shr ebx, 1
push ebx
lea ecx, [ebp + 0x9c]
push ecx
push eax
call fcn.10001072
cmp eax, edi
jne 0x1000304e
lea ecx, [ebp - 0x6c]
call fcn.1000135c
mov eax, 0x8007000e
jmp 0x10003160
lea ecx, [ebp - 0x74]
push ecx
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x74]
mov ecx, esi
push dword [ebp - 0x78]
call fcn.10001790
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.1000135c
jmp 0x10003142
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x70], eax
test al, 1
je 0x10003095
mov eax, 0x80004005
jmp 0x10003160
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], edi
call fcn.10002ca4
cmp dword [ebp - 0x68], edi
jne 0x100030be
lea eax, [ebp - 0x64]
test eax, eax
je 0x1000308b
lea ecx, [ebp - 0x68]
call fcn.10001cd8
jmp 0x1000308b
push ebx
push edi
push dword [ebp - 0x68]
call fcn.10005f00
add esp, 0xc
cmp dword [ebp - 0x70], edi
jle 0x10003108
mov ecx, dword [ebp - 0x68]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, byte [ebp + edi + 0x9c]
push eax
call fcn.100019b5
pop ecx
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 - 0x70]
jl 0x100030d0
mov esi, dword [ebp - 0x74]
xor edi, edi
mov eax, dword [esi]
push ebx
push dword [ebp - 0x68]
push 3
push edi
push dword [ebp - 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x10003142
lea ecx, [ebp - 0x68]
call fcn.10001cd8
jmp 0x10003142
push 1
lea eax, [ebp + 0x9c]
push eax
push ebx
mov ecx, esi
call fcn.100017aa
mov esi, eax
cmp esi, edi
je 0x1000314f
push esi
call fcn.10001672
pop ecx
jmp 0x10003160
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
call fcn.10001a7c
cmp eax, edi
jl 0x10003160
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x109c]
xor ecx, ebp
call fcn.10006596
add ebp, 0x10a0
leave
ret 0xc