Function at 0x407490
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov esi, esp
mov dword [esi + 0xe8], ebp
mov dword [esi + 0xec], esp
mov dword [esi + 0xf8], 0xffffffff
mov dword [esi + 0xf4], 0x4083d0
lea eax, [esi + 0xf0]
mov ecx, dword fs:[0]
mov dword [esi + 0xf0], ecx
mov dword fs:[0], eax
lea eax, [esi + 0x1c]
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 1
mov dword [esi + 0x50], 0
mov dword [esi + 0x1c], 0
push eax
push 0
push 1
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000000
mov eax, 1
jb 0x4075e9
mov edx, dword [esi + 0x1c]
test edx, edx
js 0x407be1
xor edi, edi
mov dword [esi + 4], 1
nop word [eax + eax]
test edx, edx
mov ebx, 1
mov dword [esi + 8], edx
je 0x407554
push 1
push edx
call fcn.00408ce0
add esp, 8
test eax, eax
je 0x407b7b
mov edx, dword [esi + 8]
mov ebx, eax
mov ecx, dword [esi + 0x48]
sub ecx, edi
cmp ecx, edx
jae 0x407590
mov dword [esi + 4], ebx
mov dword [esi + 0xf8], 1
push 1
push 1
push edx
push edi
lea eax, [esi + 0x48]
push eax
call fcn.00426220
add esp, 0x14
mov ecx, dword [esi + 0x4c]
mov edi, dword [esi + 0x50]
mov ebx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x407593
mov ecx, dword [esi + 4]
mov dword [esi + 4], ecx
add ecx, edi
push edx
push ebx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
add edi, eax
test eax, eax
mov dword [esi + 0x50], edi
je 0x4075bb
push 1
push eax
push ebx
call fcn.00408ca0
add esp, 0xc
lea eax, [esi + 0x1c]
push eax
push dword [esi + 0x1c]
push dword [esi + 4]
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xbfffffff
jbe 0x4075e6
mov edx, dword [esi + 0x1c]
test edx, edx
jns 0x407530
xor eax, eax
jmp 0x407b83
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
lea edi, [eax + 4]
lea ebx, [eax + 0x20]
xor edx, edx
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 8
mov dword [esi + 0x58], eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], ecx
jmp 0x407629
mov edx, dword [esi + 0x64]
add ebx, 0x11c
cmp edx, dword [esi + 0x60]
jae 0x4079ff
imul ecx, edx, 0x11c
mov dword [esi + 8], ebx
movzx eax, word [edi + ecx + 0x1a]
cmp eax, 0x100
ja 0x407afc
movzx ebx, word [edi + ecx + 0x18]
inc edx
movsd xmm2, qword [edi + ecx + 4]
movsd xmm0, qword [edi + ecx + 0xc]
movss xmm1, dword [edi + ecx + 0x14]
mov dword [esi + 0x64], edx
lea edx, [edi + ecx]
mov word [esi + 0x44], bx
lea ebx, [edi + ecx + 0x1c]
lea edi, [eax + edx + 0x1c]
mov edx, dword [esi + 8]
mov ecx, 0x100
sub ecx, eax
mov dword [esi + 0x10], edi
mov edi, 0xffffffff
mov dword [esi + 4], ecx
add edx, eax
add eax, 0xffffff00
nop word cs:[eax + eax]
nop dword [eax + eax]
lea ecx, [eax + edi]
cmp ecx, 0xffffffff
je 0x407ac4
cmp byte [edx + edi + 1], 0
lea ecx, [edi + 1]
mov edi, ecx
jne 0x4076a0
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ebx
lea ebx, [ecx + 1]
movaps xmmword [esi + 0xb0], xmm2
movaps xmmword [esi + 0xc0], xmm1
movaps xmmword [esi + 0xd0], xmm0
cmp ecx, eax
jae 0x407b1e
movzx eax, byte [0x430121]
push 1
push ebx
call fcn.00408c90
add esp, 8
test eax, eax
mov dword [esi + 0xf8], 3
je 0x407b3c
mov edi, eax
push ebx
push dword [esi + 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esi + 0x30]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ebx
push eax
lea eax, [esi + 0x68]
push eax
call fcn.00420960
add esp, 8
xor edx, edx
cmp dword [esi + 0x68], 2
mov ebx, dword [esi + 8]
jne 0x407738
mov edx, dword [esi + 0x6c]
mov edi, dword [esi + 0x70]
jne 0x407a16
xor eax, eax
mov ecx, 0xffffff00
mov dword [esi + 4], edx
mov dword [esi + 0x10], edi
nop
test ecx, ecx
je 0x407ae0
dec eax
cmp byte [ebx + ecx + 0x100], 0
lea ecx, [ecx + 1]
jne 0x407750
mov ebx, eax
neg ebx
cmp eax, 0xfffffeff
jbe 0x407b5c
movzx eax, byte [0x430121]
push 1
push ebx
call fcn.00408c90
add esp, 8
test eax, eax
mov dword [esi + 0xf8], 4
je 0x407b4c
mov edi, eax
push ebx
push dword [esi + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esi + 0x30]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ebx
push eax
lea eax, [esi + 0x68]
push eax
call fcn.00420960
add esp, 8
cmp dword [esi + 0x68], 2
mov eax, dword [esi + 0x70]
jne 0x407a33
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x6c]
mov dword [esi + 0xf8], 5
mov dword [esi + 0x2c], eax
push dword [esi + 0x10]
push dword [esi + 4]
lea eax, [esi + 0x30]
push eax
call fcn.00420ae0
add esp, 0xc
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x34]
test ebx, ebx
mov dword [esi + 0x54], edi
js 0x407b99
je 0x407830
movzx eax, byte [0x430121]
push 1
push ebx
call fcn.00408c90
add esp, 8
test eax, eax
jne 0x407835
jmp 0x407bc1
mov eax, 1
mov dword [esi + 0x18], ebx
push ebx
push edi
mov dword [esi + 0x14], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi + 0xf8], 9
push dword [esi + 0xc]
push dword [esi + 0x2c]
lea eax, [esi + 0x68]
push eax
call fcn.00420ae0
add esp, 0xc
mov edi, dword [esi + 0x70]
mov ecx, dword [esi + 0x6c]
mov ebx, dword [esi + 8]
test edi, edi
mov dword [esi + 0x3c], ecx
js 0x407b9d
je 0x4078a0
movzx eax, byte [0x430121]
push 1
push edi
call fcn.00408c90
add esp, 8
test eax, eax
je 0x407ba1
mov ecx, dword [esi + 0x3c]
jmp 0x4078a5
mov eax, 1
push edi
push ecx
mov dword [esi + 0x40], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x68]
test eax, 0x7fffffff
jne 0x4079d0
mov eax, dword [esi + 0x30]
test eax, 0x7fffffff
jne 0x4079ec
movaps xmm1, xmmword [esi + 0xb0]
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
xorps xmm0, xmm0
unpcklps xmm1, xmm0
movaps xmm0, xmmword [esi + 0xd0]
movups xmmword [esi + 0x68], xmm1
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x40]
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], edi
mov edi, dword [esi + 0x28]
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 4
mov dword [esi + 0x98], 0
movlps qword [esi + 0x9c], xmm0
movaps xmm0, xmmword [esi + 0xc0]
movzx eax, word [esi + 0x44]
cmp edi, dword [esi + 0x20]
movss dword [esi + 0xa4], xmm0
mov word [esi + 0xa8], ax
jne 0x407974
lea eax, [esi + 0x20]
mov dword [esi + 0xf8], 6
push eax
mov dword [esi + 0x44], edi
call fcn.00408be0
mov edi, dword [esi + 0x44]
mov ebx, dword [esi + 8]
add esp, 4
lea eax, [edi + edi*8]
shl eax, 3
add eax, dword [esi + 0x24]
push 0x48
lea ecx, [esi + 0x68]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x2c]
inc edi
mov dword [esi + 0x28], edi
test eax, eax
mov byte [ecx], 0
je 0x4079a9
push 1
push eax
push ecx
call fcn.00408ca0
add esp, 0xc
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 4]
mov edi, dword [esi + 0x5c]
test ecx, ecx
mov byte [eax], 0
je 0x407620
push 1
push ecx
push eax
call fcn.00408ca0
add esp, 0xc
jmp 0x407620
push 1
push eax
push dword [esi + 0x3c]
call fcn.00408ca0
add esp, 0xc
mov eax, dword [esi + 0x30]
test eax, 0x7fffffff
je 0x4078cf
push 1
push eax
push dword [esi + 0x54]
call fcn.00408ca0
add esp, 0xc
jmp 0x4078cf
mov eax, dword [esi + 0x28]
mov ecx, dword [ebp + 8]
movsd xmm0, qword [esi + 0x20]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
jmp 0x407a98
test edi, edi
je 0x407a28
push 1
push edi
push dword [esi + 0x74]
call fcn.00408ca0
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0x80000000
jmp 0x407a67
mov edi, dword [esi + 0x10]
test eax, eax
je 0x407a48
push 1
push eax
push dword [esi + 0x74]
call fcn.00408ca0
add esp, 0xc
mov eax, dword [ebp + 8]
test edi, edi
mov dword [eax], 0x80000000
mov eax, dword [esi + 4]
mov byte [eax], 0
je 0x407a67
push 1
push edi
push eax
call fcn.00408ca0
add esp, 0xc
lea eax, [esi + 0x20]
mov dword [esi + 0xf8], 2
push eax
call fcn.004054a0
add esp, 4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x407a98
shl eax, 3
lea eax, [eax + eax*8]
push 8
push eax
push dword [esi + 0x24]
call fcn.00408ca0
add esp, 0xc
mov eax, dword [esi + 0x48]
test eax, eax
je 0x407aad
push 1
push eax
push dword [esi + 0x58]
call fcn.00408ca0
add esp, 0xc
mov eax, dword [esi + 0xf0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0xf8], 3
push 0x428958
call fcn.00426fb0
add esp, 4
jmp 0x407bdf
mov dword [esi + 0xf8], 4
push 0x428978
call fcn.00426fb0
add esp, 4
jmp 0x407bdf
mov dword [esi + 0xf8], 3
push 0x428998
push 0x100
push eax
call fcn.004273a0
add esp, 0xc
jmp 0x407bdf
mov dword [esi + 0xf8], 3
push 0x428968
push eax
push ebx
call fcn.00427400
add esp, 0xc
jmp 0x407bdf
push ebx
push 1
call fcn.00426f20
add esp, 8
jmp 0x407bdf
push ebx
push 1
call fcn.00426f20
add esp, 8
jmp 0x407bdf
mov dword [esi + 0xf8], 4
push 0x428988
push 0x100
push ebx
call fcn.00427400
add esp, 0xc
jmp 0x407bdf
mov ebx, dword [esi + 8]
mov eax, 1
mov dword [esi + 0xf8], 0
push ebx
push eax
call fcn.00426f20
add esp, 8
jmp 0x407bdf
xor eax, eax
jmp 0x407bc9
xor eax, eax
jmp 0x407ba9
mov eax, 1
mov dword [esi + 0x40], edi
mov dword [esi + 0xf8], 8
push dword [esi + 0x40]
push eax
call fcn.00426f20
add esp, 8
jmp 0x407bdf
mov eax, 1
mov dword [esi + 0x14], ebx
mov dword [esi + 0xf8], 7
push dword [esi + 0x14]
push eax
call fcn.00426f20
add esp, 8
ud2
xor eax, eax
jmp 0x407b83