Function at 0x10003480
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018cb56
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x150]
push eax
push 0x20206
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x100034ff
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x150]
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 7
mov word [ebp - 0x14c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], 7
mov word [ebp - 0x12c], ax
mov byte [ebp - 4], 1
lea edx, [ebp - 0x14c]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], 4
call fcn.10046030
push 1
push 0x101af5dc
lea ecx, [ebp - 0x12c]
call fcn.10001d60
cmp dword [ebp - 0x138], 8
lea edx, [ebp - 0x14c]
cmovae edx, dword [ebp - 0x14c]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003580
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x12c]
call fcn.10001e70
push 0x17
push 0x101af5e0
lea ecx, [ebp - 0x12c]
call fcn.10001e70
push 1
push 0x101af5dc
lea ecx, [ebp - 0x12c]
call fcn.10001e70
push 0x13
push str.___showwindowfalse
lea ecx, [ebp - 0x12c]
call fcn.10001e70
push 0x13
push str.___onOSstartuptrue
lea ecx, [ebp - 0x12c]
call fcn.10001e70
cmp dword [ebp - 0x118], 8
lea eax, [ebp - 0x110]
push 0xff
push 0
lea edi, [ebp - 0x12c]
mov dword [ebp - 0x134], 1
cmovae edi, dword [ebp - 0x12c]
push eax
call fcn.10160450
add esp, 0xc
mov dword [ebp - 0x130], 0xff
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x134]
push eax
push 0
push 0x101af38c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000368f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003652
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0
push 0x101af38c
push dword [ebp - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000368f
mov bl, 1
jmp 0x10003691
xor bl, bl
mov edx, dword [ebp - 0x118]
cmp edx, 8
jb 0x100036d1
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100036c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003748
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov edx, dword [ebp - 0x138]
xor eax, eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 7
mov word [ebp - 0x12c], ax
cmp edx, 8
jb 0x1000372a
mov ecx, dword [ebp - 0x14c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10003720
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003748
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
call fcn.101686f5
int3