Function at 0x10005d5c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x910
mov eax, dword [0x1006a098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x903]
xor ebx, ebx
push 0x7ff
push ebx
push eax
mov byte [ebp - 0x904], bl
call fcn.10019f50
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push ebx
push eax
call fcn.10019f50
add esp, 0x18
lea eax, [ebp - 0x908]
mov esi, 0xf003f
push eax
push esi
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceRemote_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10005dfb
lea eax, [ebp - 0x910]
push eax
lea eax, [ebp - 0x908]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceRemote_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x10005dfb
push 2
pop eax
jmp 0x10006028
push 0xffffffffffffffff
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.1001b6b8
lea ecx, [ebp - 0x904]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005e1e
sub ecx, edx
lea eax, [ebp - 0x904]
push ecx
push eax
push 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.RestrictIP
push dword [ebp - 0x908]
call ebx
xor esi, esi
lea edx, [edi + 4]
test eax, eax
mov eax, 0xffff
push 4
pop ecx
cmovne esi, ecx
cmp dword [edx], 1
sbb ecx, ecx
neg ecx
cmp eax, dword [edx]
sbb eax, eax
neg eax
or ecx, eax
je 0x10005e6e
mov dword [edx], 0x1811
push 4
push edx
push 4
push 0
push str.WebPort
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x10005e89
add esi, 8
cmp dword [edi], 1
jbe 0x10005e91
and dword [edi], 0
push 4
push edi
push 4
push 0
push str.Allow
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x10005eac
add esi, 0x10
lea eax, [edi + 0x810]
cmp dword [eax], 1
jbe 0x10005eba
and dword [eax], 0
push 4
push eax
push 4
push 0
push str.AccessKey
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x10005ed8
add esi, 0x100
lea eax, [edi + 0xc]
cmp dword [eax], 1
jbe 0x10005ee3
and dword [eax], 0
push 4
push eax
push 4
push 0
push str.Restrict
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x10005efe
add esi, 0x20
lea eax, [edi + 8]
cmp dword [eax], 1
jbe 0x10005f09
and dword [eax], 0
push 4
push eax
push 4
push 0
push str.WebPortChange
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x10005f24
add esi, 0x40
push 0xffffffffffffffff
lea eax, [edi + 0x814]
push eax
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
call fcn.1001b6b8
lea ecx, [ebp - 0x104]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005f4a
sub ecx, edx
lea eax, [ebp - 0x104]
push ecx
push eax
push 1
push 0
push str.AccessKeySet
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x10005f73
sub esi, 0xffffff80
lea edx, [edi + 0x914]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x90c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005f84
sub ecx, dword [ebp - 0x90c]
push ecx
push edx
push 1
push 0
push str.AccessKeySetSnare1
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x10005fae
add esi, 0x100
lea edx, [edi + 0xa14]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x90c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005fbf
sub ecx, dword [ebp - 0x90c]
push ecx
push edx
push 1
push 0
push str.AccessKeySetSnare2
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x10005fe9
add esi, 0x200
add edi, 0xb14
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005ff4
sub ecx, edx
push ecx
push edi
push 1
push 0
push str.AccessKeySetSnare3
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x1000601a
add esi, 0x400
push dword [ebp - 0x908]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001890f
mov esp, ebp
pop ebp
ret