Function at 0x102e106
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor eax, eax
mov esi, ecx
xor ecx, ecx
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], ecx
jne 0x102e155
mov eax, dword [section..data]
cmp eax, section..data
je 0x102e14b
test byte [eax + 0x1c], 1
je 0x102e14b
push 0x1006378
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, 0x80070057
jmp 0x102e381
cmp dword [esi + 0x18], eax
je 0x102e37f
cmp dword [esi + 0x1c], eax
je 0x102e37f
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 2
push 0x1005fc0
push 0x1005f48
mov edi, 0x80000001
push edi
call fcn.01032840
mov ebx, eax
test ebx, ebx
jge 0x102e1b0
mov eax, dword [section..data]
cmp eax, section..data
je 0x102e36a
test byte [eax + 0x1c], 1
je 0x102e36a
push 0x1006378
push 0x1c
jmp 0x102e35b
cmp dword [ebp - 8], 0
je 0x102e368
push dword [ebp + 8]
lea eax, [esi + 0x28]
push 2
push 0x103e420
push 2
push eax
mov dword [ebp - 0xc], eax
call fcn.01032b2d
mov ebx, eax
test ebx, ebx
jge 0x102e1ff
mov eax, dword [section..data]
cmp eax, section..data
je 0x102e36a
test byte [eax + 0x1c], 1
je 0x102e36a
push ebx
push 0x1006378
push 0x1d
jmp 0x102e2e4
and dword [ebp + 8], 0
lea ebx, [esi + 0x240]
lea eax, [ebx - 0x214]
push 0x1005b08
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x102e22f
mov eax, dword [ebx]
test eax, eax
je 0x102e22f
cmp eax, 1
ja 0x102e368
inc dword [ebp + 8]
add ebx, 0x220
cmp dword [ebp + 8], 2
jb 0x102e209
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0102d5f4
test eax, eax
jne 0x102e278
mov eax, dword [section..data]
cmp eax, section..data
je 0x102e270
test byte [eax + 0x1c], 4
je 0x102e270
push 0x1006378
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
xor ebx, ebx
inc ebx
jmp 0x102e36a
mov ecx, esi
call fcn.0102d81e
mov ebx, eax
test ebx, ebx
jge 0x102e2a9
mov eax, dword [section..data]
cmp eax, section..data
je 0x102e36a
test byte [eax + 0x1c], 1
je 0x102e36a
push ebx
push 0x1006378
push 0x1f
jmp 0x102e2e4
mov esi, 0x1006388
push esi
push edi
push 2
push dword [ebp - 0xc]
call fcn.010328e5
mov ebx, eax
xor eax, eax
cmp ebx, eax
jge 0x102e2f1
mov eax, dword [section..data]
cmp eax, section..data
je 0x102e36a
test byte [eax + 0x1c], 1
je 0x102e36a
push ebx
push 0x1006378
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x102e36a
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push 2
push eax
push eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
test eax, eax
je 0x102e326
mov eax, dword [section..data]
cmp eax, section..data
je 0x102e36a
test byte [eax + 0x1c], 1
je 0x102e36a
push 0x1006378
push 0x21
jmp 0x102e35b
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push 0x1006418
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
test eax, eax
je 0x102e368
mov eax, dword [section..data]
cmp eax, section..data
je 0x102e36a
test byte [eax + 0x1c], 1
je 0x102e36a
push 0x1006378
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x102e36a
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x102e379
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
jmp 0x102e381
xor eax, eax
pop esi
leave
ret 8