Function at 0x1000ad20
Capabilities:
Persist via run registry key
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003076c
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x10044070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], eax
mov word [ebp - 0x250], ax
lea edx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.1000b200
lea edx, [ebp - 0x250]
mov ecx, esi
call fcn.1000b200
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x290]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x220], 1
call esi
test eax, eax
jne 0x1000af50
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100150e0
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0
push eax
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmovae eax, dword [ebp - 0x250]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x294], esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 8
jb 0x1000ae7d
mov eax, dword [edx]
jmp 0x1000ae7f
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x218], cx
je 0x1000aea5
lea ecx, [ebp - 0x218]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ae96
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, edx
push eax
call fcn.1000d140
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x1000aed5
mov eax, dword [ecx]
jmp 0x1000aed7
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x250]
push edx
push eax
call fcn.1000d240
mov byte [ebp - 4], 1
call fcn.1000ab20
add esp, 0x30
test eax, eax
jne 0x1000af3e
cmp dword [ebp - 0x23c], 8
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x238]
cmovae edx, dword [ebp - 0x250]
cmp dword [ebp - 0x224], 8
cmovae ecx, dword [ebp - 0x238]
add eax, eax
push eax
push edx
push 1
push 0
push ecx
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], 0
mov word [ebp - 0x268], ax
push str.GetNativeSystemInfo
push str.kernel32.dll
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000afb1
lea ecx, [ebp - 0x28c]
push ecx
call eax
mov ax, word [ebp - 0x28c]
cmp ax, 9
je 0x1000afa8
cmp ax, 6
jne 0x1000afb1
push 0x48
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun32
jmp 0x1000afb8
push 0x46
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
lea ecx, [ebp - 0x268]
call fcn.1000d140
cmp dword [ebp - 0x254], 8
lea ecx, [ebp - 0x290]
push ecx
push 0xf013f
lea eax, [ebp - 0x268]
cmovae eax, dword [ebp - 0x268]
push 0
push eax
push 0x80000002
call esi
test eax, eax
jne 0x1000b0a2
push 0x104
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.100150e0
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0
push eax
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000b096
cmp byte [ebp - 0x118], 2
je 0x1000b096
push dword [ebp - 0x21c]
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x118]
push ecx
push dword [ebp - 0x220]
lea eax, [ebp - 0x238]
mov byte [ebp - 0x118], 2
cmovae eax, dword [ebp - 0x238]
push 0
push eax
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x254]
cmp eax, 8
jb 0x1000b0c0
inc eax
lea ecx, [ebp - 0x268]
push eax
push dword [ebp - 0x268]
call fcn.1000dcc0
xor eax, eax
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x258], 0
cmp eax, 8
jb 0x1000b0fb
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.1000dcc0
xor eax, eax
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x240], 0
cmp eax, 8
jb 0x1000b136
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.1000dcc0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10011dd0
mov esp, ebp
pop ebp
ret