Function at 0x401a30
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40fd16
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x41c028]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41c028]
xor eax, esp
push eax
lea eax, [esp + 0x378]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x271]
push ebx
xor ebp, ebp
push eax
mov esi, ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x278], bl
call fcn.004082c0
add esp, 0xc
push ebx
push 0x418f4c
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.004030b0
mov dword [esp + 0x380], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push esi
lea ecx, [esp + 0x270]
push str.SOFTWARE_s
push ecx
mov byte [esp + 0x38c], 1
call sub.ntdll.dll_sprintf
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push ebx
lea eax, [esp + 0x278]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401d0c
push 0x103
lea ecx, [esp + 0x169]
push ebx
push ecx
xor edi, edi
mov byte [esp + 0x170], bl
call fcn.004082c0
add esp, 0xc
push 0x103
lea edx, [esp + 0x61]
push ebx
mov esi, 0x104
push edx
mov dword [esp + 0x24], esi
mov byte [esp + 0x68], bl
call fcn.004082c0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x168]
push ecx
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x28]
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x70]
push ecx
push ebx
push edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x58], 3
call ebp
test eax, eax
jne 0x401c70
lea ebx, [ebx]
push ebx
push 0x418f4c
lea ecx, [esp + 0x48]
call fcn.004030b0
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401ba6
sub eax, edx
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x48]
call fcn.00402d30
lea ecx, [esp + 0x40]
push ecx
lea esi, [esp + 0x28]
call fcn.00402c80
mov edx, dword [esp + 0x18]
push edx
call fcn.004054b0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x401c12
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x168]
push ecx
push esi
call fcn.00408870
add esp, 0xc
push esi
call sub.iphlpapi.dll_CreateIpForwardEntry
test eax, eax
jne 0x401c09
mov dword [esp + 0x34], 1
push esi
call fcn.004053d3
add esp, 4
mov esi, 0x104
push esi
lea edx, [esp + 0x60]
push ebx
push edx
call fcn.004082c0
add esp, 0xc
push esi
lea eax, [esp + 0x168]
push ebx
push eax
mov dword [esp + 0x2c], esi
call fcn.004082c0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x168]
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x70]
push edx
add edi, 1
push edi
push eax
mov dword [esp + 0x38], esi
call ebp
test eax, eax
je 0x401b90
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x401cea
mov ecx, dword [esp + 0x2c]
mov edi, ecx
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x401cea
xor edi, edi
xor ebp, ebp
lea esp, [esp]
cmp esi, ebx
je 0x401cea
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x401cea
cmp dword [esi + ebp + 0x18], 0x10
jb 0x401cca
mov esi, dword [esi + ebp + 4]
jmp 0x401cce
lea esi, [esi + ebp + 4]
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
add edi, 1
add ebp, 0x1c
jmp 0x401ca0
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x26c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x401d32
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
push ecx
call fcn.00403960
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
call fcn.004056ad
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jb 0x401d52
mov eax, dword [esp + 0x44]
push eax
call fcn.004056ad
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x378]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.00405196
add esp, 0x370
ret