Function at 0x100c904
Capabilities:
Check os version
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x2b0], bl
lea edi, [ebp - 0x2af]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
mov byte [ebp - 0x118], bl
pop ecx
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1ac]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1ac], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x100c970
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100cbd1
cmp dword [ebp - 0x19c], 1
jne 0x100c991
push dword [ebp + 0xc]
lea eax, [ebp - 0x2b0]
push 0x1003e2c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp - 0x19c], 2
jne 0x100c9b2
push dword [ebp + 0xc]
lea eax, [ebp - 0x2b0]
push 0x1003e08
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push ebx
lea eax, [ebp - 0x2b0]
push eax
mov esi, closesocket
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100cbd1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push 0x1003dfc
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x100ca0c
mov eax, edi
jmp 0x100cbd1
mov eax, dword [ebp + 8]
cmp eax, 5
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
je 0x100cb1b
cmp eax, 6
je 0x100cafc
cmp eax, 7
jbe 0x100ca5f
cmp eax, 9
jbe 0x100cadd
cmp eax, 0xa
jne 0x100ca5f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20019
push ebx
push 0x1003534
push ebx
push 0x1003cd4
push esi
call edi
cmp eax, ebx
jne 0x100cbd1
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], bl
je 0x100ca75
mov eax, ecx
inc eax
cmp byte [eax], 0x5c
jne 0x100ca71
mov byte [eax], 0x2f
cmp byte [eax], bl
jne 0x100ca68
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x20006
push ebx
push 0x1003534
push ebx
push ecx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x100cbce
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x118]
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x118]
push eax
push 1
push ebx
push 0x1003df0
push dword [ebp - 8]
call edi
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x100cb3a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
jmp 0x100cbd1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20019
push ebx
push 0x1003534
push ebx
push 0x1003d04
jmp 0x100ca54
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20019
push ebx
push 0x1003534
push ebx
push 0x1003d60
jmp 0x100ca54
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20019
push ebx
push 0x1003534
push ebx
push 0x1003d30
jmp 0x100ca54
mov eax, dword [ebp + 0xc]
push dword [eax + 0x104]
lea eax, [ebp - 0x118]
push 0x1003dec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call esi
mov ecx, dword [ebp + 8]
sub ecx, 8
mov dword [ebp - 0x10], eax
je 0x100cbac
dec ecx
je 0x100cb9a
dec ecx
jne 0x100cbbe
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push ebx
push 0x1003de4
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
je 0x100cbbe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100cbd1
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push ebx
push 0x1003dd8
jmp 0x100cb82
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push ebx
push 0x1003dcc
jmp 0x100cb82
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8