Function at 0x10004ec0
Capabilities:
Check os version
Delete file
Query or enumerate registry value
Set file attributes
Set registry value
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x1001b887
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x3c], 0
mov ebp, dword [esp + 0x150]
mov dword [esp + 0x140], 1
mov edi, str.ok668ok_E11E4F4B38DACC9566C010F0192779DAD5C926FFE24A0BAA2DE61E9E3C382E52E6FE7D6D17940668
mov eax, ebp
mov ebx, 2
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x10004f29
test cl, cl
je 0x10004f25
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x10004f29
add eax, ebx
add edi, ebx
test cl, cl
jne 0x10004f07
xor eax, eax
jmp 0x10004f2e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10004f39
push 0
call fcn.1000a70c
mov eax, dword [esp + 0x14c]
mov eax, dword [eax - 8]
cmp eax, 0xa
je 0x10004f69
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.GetMachineID
call fcn.10012996
mov ecx, esi
call fcn.10003e90
test al, al
je 0x10005685
push str.VersionID
lea ecx, [esi + 0x3c]
call fcn.10012ab1
push str.ExeName
lea ecx, [esi + 0x40]
call fcn.10012ab1
push str.ExePath
lea ecx, [esi + 0x44]
call fcn.10012ab1
push 0x100244f0
lea ecx, [esi + 0x7c]
call fcn.10012ab1
push 0x100244e4
lea ecx, [esi + 0x80]
call fcn.10012ab1
push 0x100244d8
lea ecx, [esi + 0x84]
call fcn.10012ab1
push 0x100244cc
lea ecx, [esi + 0x88]
call fcn.10012ab1
push 0x100244c0
lea ecx, [esi + 0x8c]
call fcn.10012ab1
push 0x100244b4
lea ecx, [esi + 0x90]
call fcn.10012ab1
push 0x100244ac
lea ecx, [esi + 0x94]
call fcn.10012ab1
push 0x100244a4
lea ecx, [esi + 0x98]
call fcn.10012ab1
push 0x1002449c
lea ecx, [esi + 0x9c]
call fcn.10012ab1
push 0x10024490
lea ecx, [esi + 0xa0]
call fcn.10012ab1
push 0x10024484
lea ecx, [esi + 0xa4]
call fcn.10012ab1
push 0x10024478
lea ecx, [esi + 0xa8]
call fcn.10012ab1
lea eax, [esi + 0xec]
lea ecx, [esp + 0x18]
push eax
push 0x1002445c
push ecx
mov dword [esp + 0x34], eax
call fcn.10012bf0
push 0x10024434
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x14c], bl
call fcn.10012b7c
lea ecx, [esi + 0xac]
push eax
mov byte [esp + 0x144], 3
mov dword [esp + 0x28], ecx
call fcn.10012a61
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], bl
call fcn.10012928
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], 1
call fcn.10012928
lea ebp, [esi + 0xb8]
push str.Shiyan
mov ecx, ebp
call fcn.10012ab1
lea eax, [esi + 0x164]
lea ecx, [esi + 0xbc]
push eax
call fcn.10012ab1
push 0x100240e0
lea ecx, [esi + 0xe8]
call fcn.10012ab1
push str.20131109
lea ecx, [esi + 0x120]
call fcn.10012ab1
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x58], 0x9c
call edi
test eax, eax
jne 0x10005138
lea edx, [esp + 0x54]
mov dword [esp + 0x54], 0x94
push edx
call edi
test eax, eax
je 0x1000526b
mov eax, dword [esp + 0x64]
sub eax, 0
je 0x1000525b
dec eax
je 0x10005209
dec eax
jne 0x1000526b
cmp dword [esp + 0x58], 4
ja 0x1000516a
push str.Microsoft_Windows_NT
lea ecx, [esi + 0xb4]
call fcn.10012ab1
mov eax, dword [esp + 0x58]
mov edi, 5
cmp eax, edi
jne 0x100051cc
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x10005195
push str.Microsoft_Windows_2000
lea ecx, [esi + 0xb4]
call fcn.10012ab1
cmp dword [esp + 0x58], edi
jne 0x100051cc
cmp dword [esp + 0x5c], 1
jne 0x100051b2
push str.Microsoft_Windows_XP
lea ecx, [esi + 0xb4]
call fcn.10012ab1
cmp dword [esp + 0x58], edi
jne 0x100051cc
cmp dword [esp + 0x5c], ebx
jne 0x1000526b
push str.Microsoft_Windows_Server_2003
lea ecx, [esi + 0xb4]
call fcn.10012ab1
mov eax, dword [esp + 0x58]
mov edi, 6
cmp eax, edi
jne 0x1000526b
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x100051fb
push str.Microsoft_Windows_Vista
lea ecx, [esi + 0xb4]
call fcn.10012ab1
cmp dword [esp + 0x58], edi
jne 0x1000526b
cmp dword [esp + 0x5c], 1
jne 0x1000526b
push str.Microsoft_Windows_7
jmp 0x10005260
cmp dword [esp + 0x58], 4
jne 0x1000526b
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x1000522f
push str.Microsoft_Windows_95
lea ecx, [esi + 0xb4]
call fcn.10012ab1
cmp dword [esp + 0x58], 4
jne 0x1000526b
cmp dword [esp + 0x5c], 0xa
jne 0x1000524d
push str.Microsoft_Windows_98
lea ecx, [esi + 0xb4]
call fcn.10012ab1
cmp dword [esp + 0x58], 4
jne 0x1000526b
cmp dword [esp + 0x5c], 0x5a
jne 0x1000526b
push str.Microsoft_Windows_Me
jmp 0x10005260
push str.Microsoft_Win32s
lea ecx, [esi + 0xb4]
call fcn.10012ab1
push ebp
lea eax, [esp + 0x24]
push str.SoftwareMicrosoftCaiTong_
push eax
call fcn.10012bf0
push str.UserInfo_
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x14c], 4
call fcn.10012b7c
mov edi, dword [eax]
lea ecx, [esp + 0x10]
call fcn.10012928
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], 1
call fcn.10012928
lea edx, [esp + 0x2c]
push edx
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x100052d5
lea eax, [esp + 0x2c]
push eax
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 0x33
call fcn.10012669
mov ebp, eax
mov eax, dword [0x1002512c]
mov ebx, 1
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x40], 0x33
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
lea ecx, [esi + 0xf4]
mov byte [esp + 0x140], 6
mov dword [esp + 0x10], ecx
push ebx
lea edx, [esp + 0x3c]
push 0x1002430c
push edx
call fcn.100120bc
add esp, 0xc
lea eax, [esp + 0x38]
lea ecx, [esp + 0x34]
push eax
push str.UserInfo
push ecx
call fcn.10012bf0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x144], 7
call fcn.10012a61
lea ecx, [esp + 0x34]
mov byte [esp + 0x140], 6
call fcn.10012928
mov ecx, 0xc
xor eax, eax
mov edi, ebp
mov dword [esp + 0x18], 1
mov dword [esp + 0x40], 0x33
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
push ebp
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100053b1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push 1
push ebp
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [0x1002512c]
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edx
call fcn.10012ab1
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
mov ecx, edi
mov byte [esp + 0x144], 8
call fcn.10012a61
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], 6
call fcn.10012928
inc ebx
add edi, 4
cmp ebx, 0xc
mov dword [esp + 0x10], edi
jl 0x10005311
push ebp
call fcn.10012692
mov ecx, dword [esp + 0x30]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x38]
mov byte [esp + 0x140], 5
call fcn.10012928
lea ecx, [esp + 0x30]
mov byte [esp + 0x140], 1
call fcn.10012928
mov edx, dword [0x1002512c]
mov dword [esp + 0x1c], edx
push str._UserOptions__r_n
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 9
call fcn.10012996
mov byte [esp + 0x140], 0xa
add esi, 0xb4
mov edi, 0x1c
mov bl, 0xb
lea eax, [esi - 0x78]
push 0x100242ec
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.10012b7c
push esi
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x14c], bl
call fcn.10012b16
push 0x100242e8
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x148], 0xc
push eax
call fcn.10012b7c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 0xd
call fcn.10012cff
lea ecx, [esp + 0x34]
mov byte [esp + 0x140], 0xc
call fcn.10012928
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], bl
call fcn.10012928
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], 0xa
call fcn.10012928
add esi, 4
dec edi
jne 0x1000546a
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ebx
call fcn.10012cff
mov ecx, 8
mov esi, str.18995B0158AEDA2E3A044F33EC07A37C
lea edi, [esp + 0x114]
mov edx, dword [ebx]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 8
mov esi, str.E3ABC4A6C4110102405BE6E53726CBAC
lea edi, [esp + 0xf0]
mov ebp, dword [edx - 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
movsb byte es:[edi], byte [esi]
mov eax, dword [ecx - 8]
xor edi, edi
sub eax, ebp
xor esi, esi
test eax, eax
jle 0x10005587
mov al, byte [esi + ecx]
mov dl, byte [esp + edi + 0xf0]
mov cl, byte [esp + edi + 0x114]
xor al, dl
xor al, cl
mov byte [esp + 0x24], al
mov ecx, dword [esp + 0x24]
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.10012dd2
cmp edi, 0x1f
jne 0x10005573
xor edi, edi
jmp 0x10005574
inc edi
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
inc esi
mov eax, dword [ecx - 8]
mov ebp, dword [edx - 8]
sub eax, ebp
cmp esi, eax
jl 0x10005542
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
push 0x100242e4
push ecx
call fcn.10012bf0
push str.Reg.ini
lea edx, [esp + 0x2c]
mov bl, 0xe
push eax
push edx
mov byte [esp + 0x14c], bl
call fcn.10012b7c
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 0xf
call fcn.10012a61
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], bl
call fcn.10012928
lea ecx, [esp + 0x24]
mov byte [esp + 0x140], 0xa
call fcn.10012928
mov eax, dword [esp + 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x1c]
push 0x1001
push edx
lea ecx, [esp + 0x4c]
call fcn.10015a96
mov eax, dword [esp + 0x14]
mov byte [esp + 0x140], 0x10
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x4c]
call fcn.10015d4a
lea ecx, [esp + 0x44]
call fcn.10015e0e
mov esi, dword [esp + 0x148]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.1001269d
mov dword [esp + 0x3c], 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x140], 0xa
call fcn.10015b36
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 9
call fcn.10012928
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 1
call fcn.10012928
jmp 0x100056a0
mov esi, dword [esp + 0x148]
push 0x10026420
mov ecx, esi
call fcn.10012996
mov dword [esp + 0x3c], 1
lea ecx, [esp + 0x14c]
mov byte [esp + 0x140], 0
call fcn.10012928
mov ecx, dword [esp + 0x138]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x134
ret 0xc