Function at 0x100a2ab
Capabilities:
Set registry value

Disassembly:
push 0x70
mov eax, 0x101d921
call fcn.0100431e
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.01007ba5
cmp dword [esi], ebx
je 0x100d59b
mov eax, dword [edi]
lea ecx, [ebp - 0x64]
push ecx
push 0x10027c8
push edi
call dword [eax]
mov esi, eax
cmp esi, ebx
jl 0x100a459
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 0x100a459
push edi
push ebx
push edi
push dword [ebp - 0x64]
push 0x10027c8
push dword [ebp - 0x5c]
call dword [sym.imp.ole32.dll_CoMarshalInterface]
mov esi, eax
cmp esi, ebx
jl 0x100a459
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 0x100a47a
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 0x100d5b8
push eax
call fcn.01001502
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 0x100a37d
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.01001502
mov edi, eax
mov dword [ebp - 0x78], edi
mov dword [esp], 0x100a498
push esi
push edi
mov byte [ebp - 4], 4
call fcn.0100a10f
push 0x1003410
push esi
push edi
call fcn.010088c2
push dword [ebp - 0x6c]
push esi
push edi
call fcn.010088c2
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
push ebx
push ebx
push dword [0x100a484]
push dword [0x100a480]
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 0x100a441
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 0x100a431
push dword [ebp - 0x70]
push dword [ebp - 0x68]
push 3
push ebx
push 0x100a488
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jg 0x100d5ca
mov esi, eax
cmp esi, ebx
jl 0x100d5d9
push edi
call fcn.010014d2
push dword [ebp - 0x68]
call fcn.010014d2
pop ecx
pop ecx
lea ecx, [ebp - 0x60]
call fcn.0100a51d
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.010015aa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.010015aa
mov eax, esi
call fcn.01009af4
ret 4
mov esi, eax
jmp 0x100a459
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jle 0x100a47a
and eax, 0xffff
or eax, 0x80070000
jmp 0x100a47a
lea ecx, [ebp - 0x60]
call fcn.0100a51d
mov esi, 0x8000ffff
jmp 0x100a459
and eax, 0xffff
or eax, 0x80070000
jmp 0x100a437
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.ole32.dll_CoDisconnectObject]
jmp 0x100a441