Function at 0x111c120
Capabilities:
Check os version
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov esi, dword [ebp + 8]
mov dword [esi], eax
test eax, eax
jne 0x111c14e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push 0x11c
lea edi, [esi + 0xc8]
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
mov dword [edi], 0x11c
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
jl 0x111c18d
push 0
push 0x2c
lea eax, [esi + 0x1e4]
push eax
push 0
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jge 0x111c19c
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x1ec]
push ebx
mov ebx, 1
mov dword [esi + 0x210], 0
test bl, al
jne 0x111c1d4
jmp 0x111c1c0
add dword [esi + 0x210], ebx
mov ecx, dword [esi + 0x210]
mov edx, ebx
shl edx, cl
test eax, edx
je 0x111c1c0
cmp eax, 0x1000
jne 0x111c40d
cmp dword [esi + 0x210], 0xc
jne 0x111c40d
mov ecx, dword [esi + 0x1f0]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 3
mov dword [esi + 0x214], ecx
mov dword [esi + 0x798], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x100060
mov dword [esi + 0x734], eax
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [esi + 0x738], eax
test eax, eax
je 0x111c243
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x218], eax
test eax, eax
jne 0x111c252
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x104fcfc
call fcn.0111b620
test eax, eax
jne 0x111c412
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
lea eax, [esi + 0x430]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x104fb68
push 0x80000002
call ebx
test eax, eax
jne 0x111c412
lea ecx, [esi + 0x2c]
push ecx
push 4
push 4
push 0x104f974
call fcn.0111ae20
cmp dword [esi + 0x214], 0x14000
ja 0x111c2b8
or dword [esi + 0x488], 0x10
push 0
lea edi, [esi + 0x434]
push edi
push 0
push 0xf003f
push 0
push 0
push 0
push 0x104fc50
push 0x80000002
call ebx
test eax, eax
jne 0x111c412
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov edx, dword [edi]
lea eax, [esi + 0x438]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0x104fc40
push edx
mov dword [ebp - 4], 4
call ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [edi]
lea ecx, [esi + 0x28]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x104fc2c
push eax
mov dword [ebp - 4], 4
call ebx
push 0x104fc0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x428], eax
test eax, eax
je 0x111c350
push 0x104fbf8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x42c], eax
lea ecx, [esi + 0x74c]
push ecx
call fcn.0111a5c0
lea edx, [esi + 0x48c]
push edx
call fcn.0111a550
test eax, eax
jne 0x111c412
mov eax, dword [esi + 0x738]
push eax
push 0x23
lea ecx, [esi + 0x4c8]
push ecx
call fcn.0111cf30
test eax, eax
jne 0x111c412
lea edx, [esi + 0x53c]
push edx
call fcn.0111a9e0
test eax, eax
je 0x111c3a6
cmp dword [esi + 0xcc], 6
jae 0x111c412
lea eax, [esi + 0x7c0]
push eax
call fcn.0111c090
test eax, eax
jne 0x111c412
lea ecx, [esi + 0x68]
push ecx
call fcn.0111d7f0
push 9
push 0x104fbe4
lea edi, [esi + 4]
push edi
call fcn.0111e220
mov dword [esi + 0x73c], eax
test eax, eax
jne 0x111c3e7
pop ebx
pop edi
mov eax, 8
pop esi
mov esp, ebp
pop ebp
ret 4
push 5
push 0x104fbd8
push edi
call fcn.0111e220
mov dword [esi + 0x740], eax
neg eax
sbb eax, eax
pop ebx
and eax, 0xfffffff8
pop edi
add eax, 8
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, 0x70d
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4