Function at 0x1009e8f
Capabilities:
Set registry value

Disassembly:
push 0x70
mov eax, 0x101d37d
call fcn.010042ad
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x64], ebx
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 1
lea esi, [edi + 0x10]
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_CreateEventW]
push eax
mov ecx, esi
call fcn.0100766d
cmp dword [esi], ebx
je 0x100d503
mov eax, dword [edi]
lea ecx, [ebp - 0x64]
push ecx
push 0x1002688
push edi
call dword [eax]
mov esi, eax
cmp esi, ebx
jl 0x100a03d
lea eax, [ebp - 0x5c]
push eax
xor edi, edi
inc edi
push edi
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, eax
cmp esi, ebx
jl 0x100a03d
push edi
push ebx
push edi
push dword [ebp - 0x64]
push 0x1002688
push dword [ebp - 0x5c]
call dword [sym.imp.ole32.dll_CoMarshalInterface]
mov esi, eax
cmp esi, ebx
jl 0x100a03d
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x58]
push edx
push eax
call dword [ecx + 0x30]
cmp eax, ebx
jl 0x100a05e
mov dword [ebp - 0x60], ebx
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 2
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x4c], ebx
jne 0x100d520
push eax
call fcn.01001544
pop ecx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], 3
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1009f61
sub eax, ecx
sar eax, 1
lea esi, [eax + 0x42]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01001544
mov edi, eax
mov dword [ebp - 0x78], edi
mov dword [esp], 0x100a080
push esi
push edi
mov byte [ebp - 4], 4
call fcn.01009cf3
push 0x100337c
push esi
push edi
call fcn.0100838a
push dword [ebp - 0x6c]
push esi
push edi
call fcn.0100838a
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
push ebx
push ebx
push dword [0x100a06c]
push dword [0x100a068]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push dword [ebp - 0x70]
push dword [ebp - 0x68]
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jl 0x100a025
lea eax, [ebp - 0x60]
push eax
push 2
push ebx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100a015
push dword [ebp - 0x70]
push dword [ebp - 0x68]
push 3
push ebx
push 0x100a070
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jg 0x100d532
mov esi, eax
cmp esi, ebx
jl 0x100d541
push edi
call fcn.01001514
push dword [ebp - 0x68]
call fcn.01001514
pop ecx
pop ecx
lea ecx, [ebp - 0x60]
call fcn.0100a105
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.010015ec
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.010015ec
mov eax, esi
call fcn.010095b0
ret 4
mov esi, eax
jmp 0x100a03d
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jle 0x100a05e
and eax, 0xffff
or eax, 0x80070000
jmp 0x100a05e
lea ecx, [ebp - 0x60]
call fcn.0100a105
mov esi, 0x8000ffff
jmp 0x100a03d
and eax, 0xffff
or eax, 0x80070000
jmp 0x100a01b
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.ole32.dll_CoDisconnectObject]
jmp 0x100a025